[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:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]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:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]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:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]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:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]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:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]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:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]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:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:15]accept exits with 7 [05:29:15]New connection [05:29:15]New thread 3066899812 created [05:29:15]Thread 3067043172 joined [05:29:15]Waiting for new connection... [05:29:15] Sock 7.Parse request [05:29:15]Sock 7.Check first char [05:29:15]Sock 7.First char is OK [05:29:15]request: POST /json_proto HTTP/1.0 [05:29:15]Method: POST [05:29:15]URL: /json_proto [05:29:15]Method is POST - this is cgi request [05:29:15]url: /json_proto [05:29:15]query_string will be loaded in cgi processing [05:29:15]execute_cgi json_proto POST (null) [05:29:15]execute_cgi path=json_proto method=POST [05:29:15]POST find Content-Length [05:29:15]Host: 172.17.51.3:8080 [05:29:15]Content-Length: 682 [05:29:15]Content-Type: application/json [05:29:15] [05:29:15]POST finish read [05:29:15]Found Content-Length = 682 [05:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 15.570, "sum" : 1155.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1155.00, "total" : 1155.00, "payments": [ { "type": 0, "sum" : 1155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:15]execute_script... [05:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 15.570, "sum" : 1155.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1155.00, "total" : 1155.00, "payments": [ { "type": 0, "sum" : 1155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:15]POST & json_proto [05:29:15]process_json_proto [05:29:15]json parsed OK: [05:29:15]protocol is kg_v1.0 [05:29:15]action value=close_receipt [05:29:15]process_action close_receipt [05:29:15]cmd_close_receipt [05:29:15]MH_GetDate [05:29:15]Write to MH i2c: F0 00 00 F3 2D 0F [05:29:15]Write i2c OK [05:29:15]MH_I2C_Read... [05:29:15]Read from MH i2c: F0 [05:29:15]MH_I2C_Read... [05:29:15]Read from MH i2c: F0 09 00 [05:29:15]MH_I2C_Read... [05:29:15]Read from MH i2c: F0 09 00 F3 2D 00 AF 89 18 67 04 C1 95 66 8F [05:29:15]GetLastDocTimeStamp 1729646799 [05:29:15]current date 1729661359 [05:29:15]FM_GetShiftState [05:29:15]SAM_PROTO_GetShiftState [05:29:15]wFMCommunicate request_size=4 [05:29:15]MH_SAM_APDU [05:29:15]CAPDU: 80 13 01 00 [05:29:15]Write to MH i2c: E2 08 00 F4 2D 80 13 01 00 00 00 00 00 9E [05:29:15]Write i2c OK [05:29:15]MH_I2C_Read... [05:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:15]Read from MH i2c: E2 [05:29:15]MH_I2C_Read... [05:29:15]Read from MH i2c: E2 0E 00 [05:29:15]MH_I2C_Read... [05:29:15]Read from MH i2c: E2 0E 00 F4 2D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 58 [05:29:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [05:29:15]wFMCommunicate OK [05:29:15]SAM_PROTO_GetShiftState done [05:29:15]FM_GetShiftState done [05:29:15]opened in 1729643755 [05:29:15]opened+sec_in_day 1729730155 [05:29:15]quantity*price = 115529 [05:29:15]sum+1 = 115530 [05:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1155.00 Внесено: 1155.00 СДАЧА: 0.00 НСП 1% : 10.22 НДС 12% : 122.69 Наличными: 1155.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 2 23.10.2024 05:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31058 ФПД: 240731228167328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T052919&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31058&fm=240731228167328&tin=02508201610067®Number=0000000000186857&sum=115500 [05:29:16]StoreToDocumentArchive [05:29:16]shift 117 fd 31058 [05:29:16]save to /storage/0117/doc_00031058 [05:29:16]save last doc name /storage/0117/doc_00031058 to /storage/kkm_last_doc_name [05:29:16]save OK [05:29:16]Clear old archive folders... [05:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:29:16]tlvbuf is 00D67AE0 [05:29:16]SAM_PROTO_ClearQueue [05:29:16]wFMCommunicate request_size=4 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 09 00 00 [05:29:16]Write to MH i2c: E2 08 00 01 2E 80 09 00 00 00 00 00 00 A1 [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [05:29:16]RAPDU: 90 00 [05:29:16]wFMCommunicate OK [05:29:16]SAM_PROTO_ClearQueue done [05:29:16]KKMCreateOFDPacket [05:29:16]OFDProtocolAddRootSTLVToBuf [05:29:16]FM_MakeSignedData [05:29:16]FM_MakeSignedData [05:29:16]SAM_PROTO_SignData [05:29:16]wFMCommunicate request_size=4 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 0D 01 02 [05:29:16]Write to MH i2c: E2 08 00 02 2E 80 0D 01 02 00 00 00 00 A9 [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [05:29:16]RAPDU: 90 00 [05:29:16]wFMCommunicate OK [05:29:16]wFMCommunicate request_size=255 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 3C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 2F 00 00 00 00 07 04 06 00 2C C3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AF 89 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 79 00 00 35 04 06 00 DA [05:29:16]Write to MH i2c: E2 02 01 03 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 3C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 2F 00 00 00 00 07 04 06 00 2C C3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AF 89 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 79 00 00 35 04 06 00 DA 00 00 BD [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [05:29:16]RAPDU: 90 00 [05:29:16]wFMCommunicate OK [05:29:16]wFMCommunicate request_size=10 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 0D 02 02 05 F1 9B 57 5C A0 [05:29:16]Write to MH i2c: E2 0D 00 04 2E 80 0D 02 02 05 00 F1 9B 57 5C A0 00 00 95 [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [05:29:16]RAPDU: 90 00 [05:29:16]wFMCommunicate OK [05:29:16]wFMCommunicate request_size=4 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 0D 03 02 [05:29:16]Write to MH i2c: E2 08 00 05 2E 80 0D 03 02 00 00 00 00 AE [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 0B 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 0B 00 05 2E 00 E5 77 AB 00 4F 92 0C 50 90 00 F3 [05:29:16]RAPDU: E5 77 AB 00 4F 92 0C 50 90 00 [05:29:16]wFMCommunicate OK [05:29:16]SAM_PROTO_SignData done [05:29:16]FM_MakeSignedData done [05:29:16]CreateOFDProtocolMessage [05:29:16]wFMCommunicate request_size=4 [05:29:16]MH_SAM_APDU [05:29:16]CAPDU: 80 11 00 00 [05:29:16]Write to MH i2c: E2 08 00 06 2E 80 11 00 00 00 00 00 00 AE [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:29:16]Read from MH i2c: E2 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 17 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: E2 17 00 06 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [05:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:29:16]wFMCommunicate OK [05:29:16]CreateOFDProtocolMessage done [05:29:16]OFDSenderStorePacket 31058 [05:29:16]StoreOFDPacket docnum=31058 [05:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 38 07 01 57 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 3C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 2F 00 00 00 00 07 04 06 00 2C C3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AF 89 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 79 00 00 35 04 06 00 DA F1 9B 57 5C A0 E5 77 AB 00 4F 92 0C 50 [05:29:16]CheckFolder [05:29:16]dirname=/storage/ofd_packets [05:29:16]CheckFolder done [05:29:16]ProducePacketName [05:29:16]name=ofd_packets/00031058 [05:29:16]NVStorageSaveData ofd_packets/00031058 [05:29:16]File name is /storage/ofd_packets/00031058 [05:29:16]Write 301 bytes [05:29:16]NVStorageSaveData done [05:29:16]OFDSenderStorePacket done [05:29:16]KKMCreateOFDPacket done [05:29:16]NVStorageSaveData kkm_last_timestamp [05:29:16]File name is /storage/kkm_last_timestamp [05:29:16]Write 4 bytes [05:29:16]NVStorageSaveData done [05:29:16]ExternCall_PrintAddStr [05:29:16]wPrintStart [05:29:16]Write to MH i2c: 01 00 00 07 2E 35 [05:29:16]Write i2c OK [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: 01 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: 01 07 00 [05:29:16]MH_I2C_Read... [05:29:16]Read from MH i2c: 01 07 00 07 2E 00 00 00 00 00 FF 0F 4A [05:29:16]RasterBufferAndPrint [05:29:16]line Счет N : (1)343496 [05:29:16]line ИНН: 02508201610067 [05:29:16]line Контрольно-Кассовый Чек [05:29:16]line ПРОДАЖА [05:29:16]line ТРК (МРК, ГНК) : 42 [05:29:16]line Товар: 2710124500 [05:29:16]line Аи-95-К-3 [05:29:16]line 15.570 * 74.20 [05:29:16]line = 1155.29 [05:29:16]line НДС 12% НСП 1% [05:29:16]line > о реализуемом товаре [05:29:16]line ОКРУГЛЕНИЕ: -0.29 [05:29:16]line ИТОГО: 1155.00 [05:29:16]line Внесено: 1155.00 [05:29:16]line СДАЧА: 0.00 [05:29:16]line НСП 1% : 10.22 [05:29:16]line НДС 12% : 122.69 [05:29:16]line Наличными: 1155.00 [05:29:16]line Безнал.: 0.00 [05:29:16]line Место: АЗС № 78 "Партнер Нефть" [05:29:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:29:16]line СНО: Общий режим [05:29:16]line Чек 2 23.10.2024 05:29 [05:29:16]line Смена: 117 ФФД: 1.0 [05:29:16]line ЗНМ: 0300000137 [05:29:16]line РНМ: 0000000000186857 [05:29:16]line Версия ККМ: v1.0 [05:29:16]line ФМ: 0000000002094219 [05:29:16]line ФД: 31058 [05:29:16]line ФПД: 240731228167328 [05:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T052919&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31058&fm=240731228167328&tin=02508201610067®Number=0000000000186857&sum=115500 [05:29:17]OFD Sender: Processing packet 31058 [packets to send 11, broken 10] [05:29:17]ProducePacketName [05:29:17]name=ofd_packets/00031058 [05:29:17]OFD Sender: To server: pG, [05:29:17]CommunicateWithHost lk.salyk.kg:30040 [05:29:17]ConnectInit lk.salyk.kg [05:29:17]written 0, free lines is 4095 [05:29:17]Connected sock=10 [05:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 38 07 01 57 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 3C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 2F 00 00 00 00 07 04 06 00 2C C3 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AF 89 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 79 00 00 35 04 06 00 DA F1 9B 57 5C A0 E5 77 AB 00 4F 92 0C 50 [05:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CD CD 47 00 E0 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 79 00 00 F4 03 04 00 2A 34 18 67 B6 04 01 00 00 06 B9 D3 CA DE C6 6B B0 [05:29:17]CommunicateWithHost err = 0 [05:29:17]CheckOFDResponse [05:29:17]1017 (14) - 77093643461234 [05:29:17]1041 (16) - 0000000002094219 [05:29:17]1040 (4) - 31058 [05:29:17]1012 (4) - 22.10.2024 23:24 [05:29:17]1206 (1) - 0 [05:29:17]OFD Sender: Remove packet 31058 [05:29:17]ProducePacketName [05:29:17]name=ofd_packets/00031058 [05:29:17]NVStorageDeleteData [05:29:17]Write to MH i2c: 01 00 00 32 2E 60 [05:29:17]Write i2c OK [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: 01 [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: 01 07 00 [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: 01 07 00 32 2E 00 00 00 00 00 F5 0C 68 [05:29:17]RasterBufferAndPrint [05:29:17]line [05:29:17]line [05:29:17]line [05:29:17]line [05:29:17]line [05:29:17]written 0, free lines is 3324 [05:29:17]MH_Cut [05:29:17]Write to MH i2c: D1 01 00 39 2E 01 39 [05:29:17]Write i2c OK [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: D1 [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: D1 01 00 [05:29:17]MH_I2C_Read... [05:29:17]Read from MH i2c: D1 01 00 39 2E 00 38 [05:29:17]Write to MH i2c: 01 00 00 3A 2E 68 [05:29:17]Write i2c OK [05:29:17]MH_I2C_Read... [05:29:17]OFD Sender: No OFD packet to send [05:29:18]*** Cut start [05:29:18]*** Partial cut [05:29:18]*** CUTSNS_PIN = 1 [05:29:18]*** CUTSNS_PIN = 0 [05:29:18]*** Brake cut motor [05:29:18]Read from MH i2c: 01 [05:29:18]MH_I2C_Read... [05:29:18]*** Stop cut motor [05:29:18]*** Cut end [05:29:18]Read from MH i2c: 01 07 00 [05:29:18]MH_I2C_Read... [05:29:18]Read from MH i2c: 01 07 00 3A 2E 00 00 00 00 00 FF 0F 7D [05:29:18]process_action close_receipt done [05:29:18]requested_data is exist [05:29:18]produce_requested_data [05:29:18]requested_item fm.sn is exist - process it [05:29:18]wFMCommunicate request_size=4 [05:29:18]MH_SAM_APDU [05:29:18]CAPDU: 80 11 00 00 [05:29:18]Write to MH i2c: E2 08 00 3B 2E 80 11 00 00 00 00 00 00 E3 [05:29:18]Write i2c OK [05:29:18]MH_I2C_Read... [05:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:29:18]Read from MH i2c: E2 [05:29:18]MH_I2C_Read... [05:29:18]Read from MH i2c: E2 17 00 [05:29:18]MH_I2C_Read... [05:29:18]Read from MH i2c: E2 17 00 3B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [05:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:29:18]wFMCommunicate OK [05:29:18]requested_item fd.num is exist - process it [05:29:18]SAM_PROTO_GetFieldsCounters [05:29:18]wFMCommunicate request_size=4 [05:29:18]MH_SAM_APDU [05:29:18]CAPDU: 80 13 00 00 [05:29:18]Write to MH i2c: E2 08 00 3C 2E 80 13 00 00 00 00 00 00 E6 [05:29:18]Write i2c OK [05:29:18]MH_I2C_Read... [05:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:29:19]Read from MH i2c: E2 [05:29:19]MH_I2C_Read... [05:29:19]Read from MH i2c: E2 62 00 [05:29:19]MH_I2C_Read... [05:29:19]Read from MH i2c: E2 62 00 3C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 79 00 00 0E 04 04 00 75 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 52 [05:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 79 00 00 0E 04 04 00 75 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:29:19]wFMCommunicate OK [05:29:19]SAM_PROTO_GetFieldsCounters done [05:29:19]requested_item shift.num is exist - process it [05:29:19]requested_item shift.opened is exist - process it [05:29:19]req_shift_opened [05:29:19]FM_GetShiftState [05:29:19]SAM_PROTO_GetShiftState [05:29:19]wFMCommunicate request_size=4 [05:29:19]MH_SAM_APDU [05:29:19]CAPDU: 80 13 01 00 [05:29:19]Write to MH i2c: E2 08 00 3D 2E 80 13 01 00 00 00 00 00 E8 [05:29:19]Write i2c OK [05:29:19]MH_I2C_Read... [05:29:19]Read from MH i2c: E2 [05:29:19]MH_I2C_Read... [05:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:19]Read from MH i2c: E2 0E 00 [05:29:19]MH_I2C_Read... [05:29:19]Read from MH i2c: E2 0E 00 3D 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A2 [05:29:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [05:29:19]wFMCommunicate OK [05:29:19]SAM_PROTO_GetShiftState done [05:29:19]FM_GetShiftState done [05:29:19]req_shift_opened done [05:29:19]requested_item shift.open_date is exist - process it [05:29:19]req_shift_open_date [05:29:19]req_shift_open_date done [05:29:19]produce_requested_data done [05:29:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31058,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [05:29:19]process_action_free close_receipt [05:29:19]json_value_free [05:29:19]json_value_free done [05:29:19]process_json_proto returns [05:29:19]Send response to host [05:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31058,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [05:29:19]free response buf [05:29:19]execute_script done [05:29:19]execute_script returns [05:29:19]free content buf [05:29:19]Sock 7.Close socket [05:29:19]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50: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:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11: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:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32: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:18]accept exits with 9 [06:34:18]New connection [06:34:18]New thread 3067043172 created [06:34:18]Thread 3066899812 joined [06:34:18]Waiting for new connection... [06:34:18] Sock 9.Parse request [06:34:18]Sock 9.Check first char [06:34:18]Sock 9.First char is OK [06:34:18]request: POST /json_proto HTTP/1.0 [06:34:18]Method: POST [06:34:18]URL: /json_proto [06:34:18]Method is POST - this is cgi request [06:34:18]url: /json_proto [06:34:18]query_string will be loaded in cgi processing [06:34:18]execute_cgi json_proto POST (null) [06:34:18]execute_cgi path=json_proto method=POST [06:34:18]POST find Content-Length [06:34:18]Host: 172.17.51.3:8080 [06:34:18]Content-Length: 677 [06:34:18]Content-Type: application/json [06:34:18] [06:34:18]POST finish read [06:34:18]Found Content-Length = 677 [06:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:18]execute_script... [06:34:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:18]POST & json_proto [06:34:18]process_json_proto [06:34:18]json parsed OK: [06:34:18]protocol is kg_v1.0 [06:34:18]action value=close_receipt [06:34:18]process_action close_receipt [06:34:18]cmd_close_receipt [06:34:18]MH_GetDate [06:34:18]Write to MH i2c: F0 00 00 3E 2E 5B [06:34:18]Write i2c OK [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: F0 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: F0 09 00 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: F0 09 00 3E 2E 00 EF 98 18 67 04 C1 95 66 2A [06:34:18]GetLastDocTimeStamp 1729661359 [06:34:18]current date 1729665263 [06:34:18]FM_GetShiftState [06:34:18]SAM_PROTO_GetShiftState [06:34:18]wFMCommunicate request_size=4 [06:34:18]MH_SAM_APDU [06:34:18]CAPDU: 80 13 01 00 [06:34:18]Write to MH i2c: E2 08 00 3F 2E 80 13 01 00 00 00 00 00 EA [06:34:18]Write i2c OK [06:34:18]MH_I2C_Read... [06:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:18]Read from MH i2c: E2 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: E2 0E 00 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: E2 0E 00 3F 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A4 [06:34:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:34:18]wFMCommunicate OK [06:34:18]SAM_PROTO_GetShiftState done [06:34:18]FM_GetShiftState done [06:34:18]opened in 1729643755 [06:34:18]opened+sec_in_day 1729730155 [06:34:18]quantity*price = 40006 [06:34:18]sum+1 = 40007 [06:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 3 23.10.2024 06:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31059 ФПД: 131460946287680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31059&fm=131460946287680&tin=02508201610067®Number=0000000000186857&sum=40000 [06:34:19]StoreToDocumentArchive [06:34:19]shift 117 fd 31059 [06:34:19]save to /storage/0117/doc_00031059 [06:34:19]save last doc name /storage/0117/doc_00031059 to /storage/kkm_last_doc_name [06:34:19]save OK [06:34:19]Clear old archive folders... [06:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:34:19]tlvbuf is 00D575B0 [06:34:19]SAM_PROTO_ClearQueue [06:34:19]wFMCommunicate request_size=4 [06:34:19]MH_SAM_APDU [06:34:19]CAPDU: 80 09 00 00 [06:34:19]Write to MH i2c: E2 08 00 4C 2E 80 09 00 00 00 00 00 00 EC [06:34:19]Write i2c OK [06:34:19]MH_I2C_Read... [06:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:19]Read from MH i2c: E2 [06:34:19]MH_I2C_Read... [06:34:19]Read from MH i2c: E2 03 00 [06:34:19]MH_I2C_Read... [06:34:19]Read from MH i2c: E2 03 00 4C 2E 00 90 00 EE [06:34:19]RAPDU: 90 00 [06:34:19]wFMCommunicate OK [06:34:19]SAM_PROTO_ClearQueue done [06:34:19]KKMCreateOFDPacket [06:34:19]OFDProtocolAddRootSTLVToBuf [06:34:19]FM_MakeSignedData [06:34:19]FM_MakeSignedData [06:34:19]SAM_PROTO_SignData [06:34:19]wFMCommunicate request_size=4 [06:34:19]MH_SAM_APDU [06:34:19]CAPDU: 80 0D 01 02 [06:34:19]Write to MH i2c: E2 08 00 4D 2E 80 0D 01 02 00 00 00 00 F4 [06:34:19]Write i2c OK [06:34:19]MH_I2C_Read... [06:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:19]Read from MH i2c: E2 [06:34:19]MH_I2C_Read... [06:34:19]Read from MH i2c: E2 03 00 [06:34:19]MH_I2C_Read... [06:34:19]Read from MH i2c: E2 03 00 4D 2E 00 90 00 EF [06:34:19]RAPDU: 90 00 [06:34:19]wFMCommunicate OK [06:34:19]wFMCommunicate request_size=255 [06:34:19]MH_SAM_APDU [06:34:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EF 98 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 79 00 00 35 04 06 00 77 [06:34:19]Write to MH i2c: E2 02 01 4E 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EF 98 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 79 00 00 35 04 06 00 77 00 00 15 [06:34:19]Write i2c OK [06:34:19]MH_I2C_Read... [06:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:20]Read from MH i2c: E2 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 03 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 03 00 4E 2E 00 90 00 F0 [06:34:20]RAPDU: 90 00 [06:34:20]wFMCommunicate OK [06:34:20]wFMCommunicate request_size=10 [06:34:20]MH_SAM_APDU [06:34:20]CAPDU: 80 0D 02 02 05 90 23 01 5C 40 [06:34:20]Write to MH i2c: E2 0D 00 4F 2E 80 0D 02 02 05 00 90 23 01 5C 40 00 00 51 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:20]Read from MH i2c: E2 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 03 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 03 00 4F 2E 00 90 00 F1 [06:34:20]RAPDU: 90 00 [06:34:20]wFMCommunicate OK [06:34:20]wFMCommunicate request_size=4 [06:34:20]MH_SAM_APDU [06:34:20]CAPDU: 80 0D 03 02 [06:34:20]Write to MH i2c: E2 08 00 50 2E 80 0D 03 02 00 00 00 00 F9 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:20]Read from MH i2c: E2 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 0B 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 0B 00 50 2E 00 18 7D 83 90 4B 96 62 41 90 00 26 [06:34:20]RAPDU: 18 7D 83 90 4B 96 62 41 90 00 [06:34:20]wFMCommunicate OK [06:34:20]SAM_PROTO_SignData done [06:34:20]FM_MakeSignedData done [06:34:20]CreateOFDProtocolMessage [06:34:20]wFMCommunicate request_size=4 [06:34:20]MH_SAM_APDU [06:34:20]CAPDU: 80 11 00 00 [06:34:20]Write to MH i2c: E2 08 00 51 2E 80 11 00 00 00 00 00 00 F9 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:20]Read from MH i2c: E2 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 17 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 17 00 51 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [06:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:34:20]wFMCommunicate OK [06:34:20]CreateOFDProtocolMessage done [06:34:20]OFDSenderStorePacket 31059 [06:34:20]StoreOFDPacket docnum=31059 [06:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 25 07 01 3F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EF 98 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 79 00 00 35 04 06 00 77 90 23 01 5C 40 18 7D 83 90 4B 96 62 41 [06:34:20]CheckFolder [06:34:20]dirname=/storage/ofd_packets [06:34:20]CheckFolder done [06:34:20]ProducePacketName [06:34:20]name=ofd_packets/00031059 [06:34:20]NVStorageSaveData ofd_packets/00031059 [06:34:20]File name is /storage/ofd_packets/00031059 [06:34:20]Write 301 bytes [06:34:20]NVStorageSaveData done [06:34:20]OFDSenderStorePacket done [06:34:20]KKMCreateOFDPacket done [06:34:20]NVStorageSaveData kkm_last_timestamp [06:34:20]File name is /storage/kkm_last_timestamp [06:34:20]Write 4 bytes [06:34:20]NVStorageSaveData done [06:34:20]ExternCall_PrintAddStr [06:34:20]wPrintStart [06:34:20]Write to MH i2c: 01 00 00 52 2E 80 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: 01 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: 01 07 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: 01 07 00 52 2E 00 00 00 00 00 FF 0F 95 [06:34:20]RasterBufferAndPrint [06:34:20]line Счет N : (1)343497 [06:34:20]line ИНН: 02508201610067 [06:34:20]line Контрольно-Кассовый Чек [06:34:20]line ПРОДАЖА [06:34:20]line ТРК (МРК, ГНК) : 53 [06:34:20]line Товар: 2710124130 [06:34:20]line Аи-92-К-2 [06:34:20]line 5.980 * 66.90 [06:34:20]line = 400.06 [06:34:20]line НДС 12% НСП 1% [06:34:20]line > о реализуемом товаре [06:34:20]line ОКРУГЛЕНИЕ: -0.06 [06:34:20]line ИТОГО: 400.00 [06:34:20]line Внесено: 400.00 [06:34:20]line СДАЧА: 0.00 [06:34:20]line НСП 1% : 3.54 [06:34:20]line НДС 12% : 42.48 [06:34:20]line Наличными: 400.00 [06:34:20]line Безнал.: 0.00 [06:34:20]line Место: АЗС № 78 "Партнер Нефть" [06:34:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:34:20]line СНО: Общий режим [06:34:20]line Чек 3 23.10.2024 06:34 [06:34:20]line Смена: 117 ФФД: 1.0 [06:34:20]line ЗНМ: 0300000137 [06:34:20]line РНМ: 0000000000186857 [06:34:20]line Версия ККМ: v1.0 [06:34:20]line ФМ: 0000000002094219 [06:34:20]line ФД: 31059 [06:34:20]line ФПД: 131460946287680 [06:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31059&fm=131460946287680&tin=02508201610067®Number=0000000000186857&sum=40000 [06:34:20]OFD Sender: Processing packet 31059 [packets to send 11, broken 10] [06:34:20]ProducePacketName [06:34:20]name=ofd_packets/00031059 [06:34:20]OFD Sender: To server: pG, [06:34:20]CommunicateWithHost lk.salyk.kg:30040 [06:34:20]ConnectInit lk.salyk.kg [06:34:20]written 0, free lines is 4095 [06:34:20]Connected sock=10 [06:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 25 07 01 3F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EF 98 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 79 00 00 35 04 06 00 77 90 23 01 5C 40 18 7D 83 90 4B 96 62 41 [06:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 32 73 47 00 65 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 79 00 00 F4 03 04 00 6A 43 18 67 B6 04 01 00 00 B5 AD 0D D7 49 39 06 02 [06:34:20]CommunicateWithHost err = 0 [06:34:20]CheckOFDResponse [06:34:20]1017 (14) - 77093643461234 [06:34:20]1041 (16) - 0000000002094219 [06:34:20]1040 (4) - 31059 [06:34:20]1012 (4) - 23.10.2024 00:29 [06:34:20]1206 (1) - 0 [06:34:20]OFD Sender: Remove packet 31059 [06:34:20]ProducePacketName [06:34:20]name=ofd_packets/00031059 [06:34:20]NVStorageDeleteData [06:34:21]Write to MH i2c: 01 00 00 7D 2E AB [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 07 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 07 00 7D 2E 00 00 00 00 00 EB 0C A9 [06:34:21]RasterBufferAndPrint [06:34:21]line [06:34:21]line [06:34:21]line [06:34:21]line [06:34:21]line [06:34:21]written 0, free lines is 3313 [06:34:21]MH_Cut [06:34:21]Write to MH i2c: D1 01 00 84 2E 01 84 [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: D1 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: D1 01 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: D1 01 00 84 2E 00 83 [06:34:21]Write to MH i2c: 01 00 00 85 2E B3 [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]OFD Sender: No OFD packet to send [06:34:21]*** Cut start [06:34:21]*** Partial cut [06:34:21]*** CUTSNS_PIN = 1 [06:34:21]*** CUTSNS_PIN = 0 [06:34:21]*** Brake cut motor [06:34:22]Read from MH i2c: 01 [06:34:22]MH_I2C_Read... [06:34:22]*** Stop cut motor [06:34:22]*** Cut end [06:34:22]Read from MH i2c: 01 07 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: 01 07 00 85 2E 00 00 00 00 00 FF 0F C8 [06:34:22]process_action close_receipt done [06:34:22]requested_data is exist [06:34:22]produce_requested_data [06:34:22]requested_item fm.sn is exist - process it [06:34:22]wFMCommunicate request_size=4 [06:34:22]MH_SAM_APDU [06:34:22]CAPDU: 80 11 00 00 [06:34:22]Write to MH i2c: E2 08 00 86 2E 80 11 00 00 00 00 00 00 2E [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:22]Read from MH i2c: E2 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 17 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 17 00 86 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [06:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:34:22]wFMCommunicate OK [06:34:22]requested_item fd.num is exist - process it [06:34:22]SAM_PROTO_GetFieldsCounters [06:34:22]wFMCommunicate request_size=4 [06:34:22]MH_SAM_APDU [06:34:22]CAPDU: 80 13 00 00 [06:34:22]Write to MH i2c: E2 08 00 87 2E 80 13 00 00 00 00 00 00 31 [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:22]Read from MH i2c: E2 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 62 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 62 00 87 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 79 00 00 0E 04 04 00 75 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 A1 [06:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 79 00 00 0E 04 04 00 75 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 [06:34:22]wFMCommunicate OK [06:34:22]SAM_PROTO_GetFieldsCounters done [06:34:22]requested_item shift.num is exist - process it [06:34:22]requested_item shift.opened is exist - process it [06:34:22]req_shift_opened [06:34:22]FM_GetShiftState [06:34:22]SAM_PROTO_GetShiftState [06:34:22]wFMCommunicate request_size=4 [06:34:22]MH_SAM_APDU [06:34:22]CAPDU: 80 13 01 00 [06:34:22]Write to MH i2c: E2 08 00 88 2E 80 13 01 00 00 00 00 00 33 [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:22]Read from MH i2c: E2 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 0E 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: E2 0E 00 88 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 ED [06:34:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:34:22]wFMCommunicate OK [06:34:22]SAM_PROTO_GetShiftState done [06:34:22]FM_GetShiftState done [06:34:22]req_shift_opened done [06:34:22]requested_item shift.open_date is exist - process it [06:34:22]req_shift_open_date [06:34:22]req_shift_open_date done [06:34:22]produce_requested_data done [06:34:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31059,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [06:34:22]process_action_free close_receipt [06:34:22]json_value_free [06:34:22]json_value_free done [06:34:22]process_json_proto returns [06:34:22]Send response to host [06:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31059,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [06:34:22]free response buf [06:34:22]execute_script done [06:34:22]execute_script returns [06:34:22]free content buf [06:34:22]Sock 9.Close socket [06:34:22]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:19]accept exits with 7 [06:53:19]New connection [06:53:19]New thread 3066899812 created [06:53:19]Thread 3067043172 joined [06:53:19]Waiting for new connection... [06:53:19] Sock 7.Parse request [06:53:19]Sock 7.Check first char [06:53:19]Sock 7.First char is OK [06:53:19]request: POST /json_proto HTTP/1.0 [06:53:19]Method: POST [06:53:19]URL: /json_proto [06:53:19]Method is POST - this is cgi request [06:53:19]url: /json_proto [06:53:19]query_string will be loaded in cgi processing [06:53:19]execute_cgi json_proto POST (null) [06:53:19]execute_cgi path=json_proto method=POST [06:53:19]POST find Content-Length [06:53:19]Host: 172.17.51.3:8080 [06:53:19]Content-Length: 677 [06:53:19]Content-Type: application/json [06:53:19] [06:53:19]POST finish read [06:53:19]Found Content-Length = 677 [06:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:19]execute_script... [06:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:19]POST & json_proto [06:53:19]process_json_proto [06:53:19]json parsed OK: [06:53:19]protocol is kg_v1.0 [06:53:19]action value=close_receipt [06:53:19]process_action close_receipt [06:53:19]cmd_close_receipt [06:53:19]MH_GetDate [06:53:19]Write to MH i2c: F0 00 00 89 2E A6 [06:53:19]Write i2c OK [06:53:19]MH_I2C_Read... [06:53:19]Read from MH i2c: F0 [06:53:19]MH_I2C_Read... [06:53:19]Read from MH i2c: F0 09 00 [06:53:19]MH_I2C_Read... [06:53:19]Read from MH i2c: F0 09 00 89 2E 00 64 9D 18 67 04 C1 95 66 EF [06:53:19]GetLastDocTimeStamp 1729665263 [06:53:19]current date 1729666404 [06:53:19]FM_GetShiftState [06:53:19]SAM_PROTO_GetShiftState [06:53:19]wFMCommunicate request_size=4 [06:53:19]MH_SAM_APDU [06:53:19]CAPDU: 80 13 01 00 [06:53:19]Write to MH i2c: E2 08 00 8A 2E 80 13 01 00 00 00 00 00 35 [06:53:19]Write i2c OK [06:53:19]MH_I2C_Read... [06:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:19]Read from MH i2c: E2 [06:53:19]MH_I2C_Read... [06:53:19]Read from MH i2c: E2 0E 00 [06:53:19]MH_I2C_Read... [06:53:19]Read from MH i2c: E2 0E 00 8A 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EF [06:53:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:53:19]wFMCommunicate OK [06:53:19]SAM_PROTO_GetShiftState done [06:53:19]FM_GetShiftState done [06:53:19]opened in 1729643755 [06:53:19]opened+sec_in_day 1729730155 [06:53:19]quantity*price = 20003 [06:53:19]sum+1 = 20004 [06:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 4 23.10.2024 06:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31060 ФПД: 168724462914850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31060&fm=168724462914850&tin=02508201610067®Number=0000000000186857&sum=20000 [06:53:21]StoreToDocumentArchive [06:53:21]shift 117 fd 31060 [06:53:21]save to /storage/0117/doc_00031060 [06:53:21]save last doc name /storage/0117/doc_00031060 to /storage/kkm_last_doc_name [06:53:21]save OK [06:53:21]Clear old archive folders... [06:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:21]tlvbuf is 00D608F0 [06:53:21]SAM_PROTO_ClearQueue [06:53:21]wFMCommunicate request_size=4 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 09 00 00 [06:53:21]Write to MH i2c: E2 08 00 97 2E 80 09 00 00 00 00 00 00 37 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 97 2E 00 90 00 39 [06:53:21]RAPDU: 90 00 [06:53:21]wFMCommunicate OK [06:53:21]SAM_PROTO_ClearQueue done [06:53:21]KKMCreateOFDPacket [06:53:21]OFDProtocolAddRootSTLVToBuf [06:53:21]FM_MakeSignedData [06:53:21]FM_MakeSignedData [06:53:21]SAM_PROTO_SignData [06:53:21]wFMCommunicate request_size=4 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 0D 01 02 [06:53:21]Write to MH i2c: E2 08 00 98 2E 80 0D 01 02 00 00 00 00 3F [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 98 2E 00 90 00 3A [06:53:21]RAPDU: 90 00 [06:53:21]wFMCommunicate OK [06:53:21]wFMCommunicate request_size=255 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 64 9D 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 79 00 00 35 04 06 00 99 [06:53:21]Write to MH i2c: E2 02 01 99 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 64 9D 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 79 00 00 35 04 06 00 99 00 00 F1 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [06:53:21]RAPDU: 90 00 [06:53:21]wFMCommunicate OK [06:53:21]wFMCommunicate request_size=10 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 0D 02 02 05 74 39 AD 4D 22 [06:53:21]Write to MH i2c: E2 0D 00 9A 2E 80 0D 02 02 05 00 74 39 AD 4D 22 00 00 15 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [06:53:21]RAPDU: 90 00 [06:53:21]wFMCommunicate OK [06:53:21]wFMCommunicate request_size=4 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 0D 03 02 [06:53:21]Write to MH i2c: E2 08 00 9B 2E 80 0D 03 02 00 00 00 00 44 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 0B 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 0B 00 9B 2E 00 25 96 66 C0 9B F9 B7 51 90 00 C2 [06:53:21]RAPDU: 25 96 66 C0 9B F9 B7 51 90 00 [06:53:21]wFMCommunicate OK [06:53:21]SAM_PROTO_SignData done [06:53:21]FM_MakeSignedData done [06:53:21]CreateOFDProtocolMessage [06:53:21]wFMCommunicate request_size=4 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 11 00 00 [06:53:21]Write to MH i2c: E2 08 00 9C 2E 80 11 00 00 00 00 00 00 44 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 17 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 17 00 9C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [06:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:53:21]wFMCommunicate OK [06:53:21]CreateOFDProtocolMessage done [06:53:21]OFDSenderStorePacket 31060 [06:53:21]StoreOFDPacket docnum=31060 [06:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 CF 07 01 30 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 64 9D 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 79 00 00 35 04 06 00 99 74 39 AD 4D 22 25 96 66 C0 9B F9 B7 51 [06:53:21]CheckFolder [06:53:21]dirname=/storage/ofd_packets [06:53:21]CheckFolder done [06:53:21]ProducePacketName [06:53:21]name=ofd_packets/00031060 [06:53:21]NVStorageSaveData ofd_packets/00031060 [06:53:21]File name is /storage/ofd_packets/00031060 [06:53:21]Write 301 bytes [06:53:21]NVStorageSaveData done [06:53:21]OFDSenderStorePacket done [06:53:21]KKMCreateOFDPacket done [06:53:21]NVStorageSaveData kkm_last_timestamp [06:53:21]File name is /storage/kkm_last_timestamp [06:53:21]Write 4 bytes [06:53:21]NVStorageSaveData done [06:53:21]ExternCall_PrintAddStr [06:53:21]wPrintStart [06:53:21]Write to MH i2c: 01 00 00 9D 2E CB [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: 01 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: 01 07 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: 01 07 00 9D 2E 00 00 00 00 00 FF 0F E0 [06:53:21]RasterBufferAndPrint [06:53:21]line Счет N : (1)343498 [06:53:21]line ИНН: 02508201610067 [06:53:21]line Контрольно-Кассовый Чек [06:53:21]line ПРОДАЖА [06:53:21]line ТРК (МРК, ГНК) : 63 [06:53:21]line Товар: 2710124130 [06:53:21]line Аи-92-К-2 [06:53:21]line 2.990 * 66.90 [06:53:21]line = 200.03 [06:53:21]line НДС 12% НСП 1% [06:53:21]line > о реализуемом товаре [06:53:21]line ОКРУГЛЕНИЕ: -0.03 [06:53:21]line ИТОГО: 200.00 [06:53:21]line Внесено: 200.00 [06:53:21]line СДАЧА: 0.00 [06:53:21]line НСП 1% : 1.77 [06:53:21]line НДС 12% : 21.24 [06:53:21]line Наличными: 200.00 [06:53:21]line Безнал.: 0.00 [06:53:21]line Место: АЗС № 78 "Партнер Нефть" [06:53:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:53:21]line СНО: Общий режим [06:53:21]line Чек 4 23.10.2024 06:53 [06:53:21]line Смена: 117 ФФД: 1.0 [06:53:21]line ЗНМ: 0300000137 [06:53:21]line РНМ: 0000000000186857 [06:53:21]line Версия ККМ: v1.0 [06:53:21]line ФМ: 0000000002094219 [06:53:21]line ФД: 31060 [06:53:21]line ФПД: 168724462914850 [06:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065324&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31060&fm=168724462914850&tin=02508201610067®Number=0000000000186857&sum=20000 [06:53:21]OFD Sender: Processing packet 31060 [packets to send 11, broken 10] [06:53:21]ProducePacketName [06:53:21]name=ofd_packets/00031060 [06:53:21]OFD Sender: To server: pG, [06:53:21]CommunicateWithHost lk.salyk.kg:30040 [06:53:21]ConnectInit lk.salyk.kg [06:53:21]written 0, free lines is 4095 [06:53:22]Connected sock=10 [06:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 CF 07 01 30 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 64 9D 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 79 00 00 35 04 06 00 99 74 39 AD 4D 22 25 96 66 C0 9B F9 B7 51 [06:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 20 B6 47 00 DA D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 79 00 00 F4 03 04 00 DF 47 18 67 B6 04 01 00 00 0B CF D6 7F B7 8B 8A 73 [06:53:22]CommunicateWithHost err = 0 [06:53:22]CheckOFDResponse [06:53:22]1017 (14) - 77093643461234 [06:53:22]1041 (16) - 0000000002094219 [06:53:22]1040 (4) - 31060 [06:53:22]1012 (4) - 23.10.2024 00:48 [06:53:22]1206 (1) - 0 [06:53:22]OFD Sender: Remove packet 31060 [06:53:22]ProducePacketName [06:53:22]name=ofd_packets/00031060 [06:53:22]NVStorageDeleteData [06:53:22]Write to MH i2c: 01 00 00 C8 2E F6 [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 07 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 07 00 C8 2E 00 00 00 00 00 E4 0C ED [06:53:22]RasterBufferAndPrint [06:53:22]line [06:53:22]line [06:53:22]line [06:53:22]line [06:53:22]line [06:53:22]written 0, free lines is 3306 [06:53:22]MH_Cut [06:53:22]Write to MH i2c: D1 01 00 CF 2E 01 CF [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: D1 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: D1 01 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: D1 01 00 CF 2E 00 CE [06:53:22]Write to MH i2c: 01 00 00 D0 2E FE [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]OFD Sender: No OFD packet to send [06:53:23]*** Cut start [06:53:23]*** Partial cut [06:53:23]*** CUTSNS_PIN = 1 [06:53:23]*** CUTSNS_PIN = 0 [06:53:23]*** Brake cut motor [06:53:23]Read from MH i2c: 01 [06:53:23]MH_I2C_Read... [06:53:23]*** Stop cut motor [06:53:23]*** Cut end [06:53:23]Read from MH i2c: 01 07 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: 01 07 00 D0 2E 00 00 00 00 00 FF 0F 13 [06:53:23]process_action close_receipt done [06:53:23]requested_data is exist [06:53:23]produce_requested_data [06:53:23]requested_item fm.sn is exist - process it [06:53:23]wFMCommunicate request_size=4 [06:53:23]MH_SAM_APDU [06:53:23]CAPDU: 80 11 00 00 [06:53:23]Write to MH i2c: E2 08 00 D1 2E 80 11 00 00 00 00 00 00 79 [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:23]Read from MH i2c: E2 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 17 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 17 00 D1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [06:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:53:23]wFMCommunicate OK [06:53:23]requested_item fd.num is exist - process it [06:53:23]SAM_PROTO_GetFieldsCounters [06:53:23]wFMCommunicate request_size=4 [06:53:23]MH_SAM_APDU [06:53:23]CAPDU: 80 13 00 00 [06:53:23]Write to MH i2c: E2 08 00 D2 2E 80 13 00 00 00 00 00 00 7C [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:23]Read from MH i2c: E2 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 62 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 62 00 D2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 79 00 00 0E 04 04 00 75 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 F0 [06:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 79 00 00 0E 04 04 00 75 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 [06:53:23]wFMCommunicate OK [06:53:23]SAM_PROTO_GetFieldsCounters done [06:53:23]requested_item shift.num is exist - process it [06:53:23]requested_item shift.opened is exist - process it [06:53:23]req_shift_opened [06:53:23]FM_GetShiftState [06:53:23]SAM_PROTO_GetShiftState [06:53:23]wFMCommunicate request_size=4 [06:53:23]MH_SAM_APDU [06:53:23]CAPDU: 80 13 01 00 [06:53:23]Write to MH i2c: E2 08 00 D3 2E 80 13 01 00 00 00 00 00 7E [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:23]Read from MH i2c: E2 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 0E 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: E2 0E 00 D3 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 38 [06:53:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:53:23]wFMCommunicate OK [06:53:23]SAM_PROTO_GetShiftState done [06:53:23]FM_GetShiftState done [06:53:23]req_shift_opened done [06:53:23]requested_item shift.open_date is exist - process it [06:53:23]req_shift_open_date [06:53:23]req_shift_open_date done [06:53:23]produce_requested_data done [06:53:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31060,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [06:53:23]process_action_free close_receipt [06:53:23]json_value_free [06:53:23]json_value_free done [06:53:23]process_json_proto returns [06:53:23]Send response to host [06:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31060,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [06:53:23]free response buf [06:53:23]execute_script done [06:53:23]execute_script returns [06:53:23]free content buf [06:53:23]Sock 7.Close socket [06:53:23]Sock 7.Thread stoped [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:43]accept exits with 9 [06:57:43]New connection [06:57:43]New thread 3067043172 created [06:57:43]Thread 3066899812 joined [06:57:43]Waiting for new connection... [06:57:43] Sock 9.Parse request [06:57:43]Sock 9.Check first char [06:57:43]Sock 9.First char is OK [06:57:43]request: POST /json_proto HTTP/1.0 [06:57:43]Method: POST [06:57:43]URL: /json_proto [06:57:43]Method is POST - this is cgi request [06:57:43]url: /json_proto [06:57:43]query_string will be loaded in cgi processing [06:57:43]execute_cgi json_proto POST (null) [06:57:43]execute_cgi path=json_proto method=POST [06:57:43]POST find Content-Length [06:57:43]Host: 172.17.51.3:8080 [06:57:43]Content-Length: 682 [06:57:43]Content-Type: application/json [06:57:43] [06:57:43]POST finish read [06:57:43]Found Content-Length = 682 [06:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:43]execute_script... [06:57:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:43]POST & json_proto [06:57:43]process_json_proto [06:57:43]json parsed OK: [06:57:43]protocol is kg_v1.0 [06:57:43]action value=close_receipt [06:57:43]process_action close_receipt [06:57:43]cmd_close_receipt [06:57:43]MH_GetDate [06:57:43]Write to MH i2c: F0 00 00 D4 2E F1 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: F0 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: F0 09 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: F0 09 00 D4 2E 00 6C 9E 18 67 04 C1 95 66 43 [06:57:43]GetLastDocTimeStamp 1729666404 [06:57:43]current date 1729666668 [06:57:43]FM_GetShiftState [06:57:43]SAM_PROTO_GetShiftState [06:57:43]wFMCommunicate request_size=4 [06:57:43]MH_SAM_APDU [06:57:43]CAPDU: 80 13 01 00 [06:57:43]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [06:57:43]Write i2c OK [06:57:43]MH_I2C_Read... [06:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:43]Read from MH i2c: E2 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 0E 00 [06:57:43]MH_I2C_Read... [06:57:43]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3A [06:57:43]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:57:43]wFMCommunicate OK [06:57:43]SAM_PROTO_GetShiftState done [06:57:43]FM_GetShiftState done [06:57:43]opened in 1729643755 [06:57:43]opened+sec_in_day 1729730155 [06:57:43]quantity*price = 250005 [06:57:43]sum+1 = 250006 [06:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 5 23.10.2024 06:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31061 ФПД: 106594026401205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31061&fm=106594026401205&tin=02508201610067®Number=0000000000186857&sum=250000 [06:57:44]StoreToDocumentArchive [06:57:44]shift 117 fd 31061 [06:57:44]save to /storage/0117/doc_00031061 [06:57:44]save last doc name /storage/0117/doc_00031061 to /storage/kkm_last_doc_name [06:57:44]save OK [06:57:44]Clear old archive folders... [06:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:44]tlvbuf is 00D33490 [06:57:44]SAM_PROTO_ClearQueue [06:57:44]wFMCommunicate request_size=4 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 09 00 00 [06:57:44]Write to MH i2c: E2 08 00 E2 2E 80 09 00 00 00 00 00 00 82 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [06:57:44]RAPDU: 90 00 [06:57:44]wFMCommunicate OK [06:57:44]SAM_PROTO_ClearQueue done [06:57:44]KKMCreateOFDPacket [06:57:44]OFDProtocolAddRootSTLVToBuf [06:57:44]FM_MakeSignedData [06:57:44]FM_MakeSignedData [06:57:44]SAM_PROTO_SignData [06:57:44]wFMCommunicate request_size=4 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 0D 01 02 [06:57:44]Write to MH i2c: E2 08 00 E3 2E 80 0D 01 02 00 00 00 00 8A [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 E3 2E 00 90 00 85 [06:57:44]RAPDU: 90 00 [06:57:44]wFMCommunicate OK [06:57:44]wFMCommunicate request_size=255 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6C 9E 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 79 00 00 35 04 06 00 60 [06:57:44]Write to MH i2c: E2 02 01 E4 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6C 9E 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 79 00 00 35 04 06 00 60 00 00 84 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [06:57:44]RAPDU: 90 00 [06:57:44]wFMCommunicate OK [06:57:44]wFMCommunicate request_size=10 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 0D 02 02 05 F2 5B 14 2D B5 [06:57:44]Write to MH i2c: E2 0D 00 E5 2E 80 0D 02 02 05 00 F2 5B 14 2D B5 00 00 DA [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [06:57:44]RAPDU: 90 00 [06:57:44]wFMCommunicate OK [06:57:44]wFMCommunicate request_size=4 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 0D 03 02 [06:57:44]Write to MH i2c: E2 08 00 E6 2E 80 0D 03 02 00 00 00 00 8F [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 0B 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 0B 00 E6 2E 00 CF 96 84 31 8F 7C BC 92 90 00 03 [06:57:44]RAPDU: CF 96 84 31 8F 7C BC 92 90 00 [06:57:44]wFMCommunicate OK [06:57:44]SAM_PROTO_SignData done [06:57:44]FM_MakeSignedData done [06:57:44]CreateOFDProtocolMessage [06:57:44]wFMCommunicate request_size=4 [06:57:44]MH_SAM_APDU [06:57:44]CAPDU: 80 11 00 00 [06:57:44]Write to MH i2c: E2 08 00 E7 2E 80 11 00 00 00 00 00 00 8F [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:44]Read from MH i2c: E2 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 17 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: E2 17 00 E7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [06:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:57:44]wFMCommunicate OK [06:57:44]CreateOFDProtocolMessage done [06:57:44]OFDSenderStorePacket 31061 [06:57:44]StoreOFDPacket docnum=31061 [06:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9B 9E 07 01 68 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6C 9E 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 79 00 00 35 04 06 00 60 F2 5B 14 2D B5 CF 96 84 31 8F 7C BC 92 [06:57:44]CheckFolder [06:57:44]dirname=/storage/ofd_packets [06:57:44]CheckFolder done [06:57:44]ProducePacketName [06:57:44]name=ofd_packets/00031061 [06:57:44]NVStorageSaveData ofd_packets/00031061 [06:57:44]File name is /storage/ofd_packets/00031061 [06:57:44]Write 301 bytes [06:57:44]NVStorageSaveData done [06:57:44]OFDSenderStorePacket done [06:57:44]KKMCreateOFDPacket done [06:57:44]NVStorageSaveData kkm_last_timestamp [06:57:44]File name is /storage/kkm_last_timestamp [06:57:44]Write 4 bytes [06:57:44]NVStorageSaveData done [06:57:44]ExternCall_PrintAddStr [06:57:44]wPrintStart [06:57:44]Write to MH i2c: 01 00 00 E8 2E 16 [06:57:44]Write i2c OK [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 07 00 [06:57:44]MH_I2C_Read... [06:57:44]Read from MH i2c: 01 07 00 E8 2E 00 00 00 00 00 FF 0F 2B [06:57:44]RasterBufferAndPrint [06:57:44]line Счет N : (1)343499 [06:57:44]line ИНН: 02508201610067 [06:57:44]line Контрольно-Кассовый Чек [06:57:44]line ПРОДАЖА [06:57:44]line ТРК (МРК, ГНК) : 33 [06:57:44]line Товар: 2710124130 [06:57:44]line Аи-92-К-2 [06:57:44]line 37.370 * 66.90 [06:57:44]line = 2500.05 [06:57:44]line НДС 12% НСП 1% [06:57:44]line > о реализуемом товаре [06:57:44]line ОКРУГЛЕНИЕ: -0.05 [06:57:44]line ИТОГО: 2500.00 [06:57:44]line Внесено: 2500.00 [06:57:44]line СДАЧА: 0.00 [06:57:44]line НСП 1% : 22.12 [06:57:44]line НДС 12% : 265.49 [06:57:44]line Наличными: 2500.00 [06:57:44]line Безнал.: 0.00 [06:57:44]line Место: АЗС № 78 "Партнер Нефть" [06:57:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:57:44]line СНО: Общий режим [06:57:44]line Чек 5 23.10.2024 06:57 [06:57:44]line Смена: 117 ФФД: 1.0 [06:57:44]line ЗНМ: 0300000137 [06:57:44]line РНМ: 0000000000186857 [06:57:44]line Версия ККМ: v1.0 [06:57:44]line ФМ: 0000000002094219 [06:57:44]line ФД: 31061 [06:57:44]line ФПД: 106594026401205 [06:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T065748&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31061&fm=106594026401205&tin=02508201610067®Number=0000000000186857&sum=250000 [06:57:45]OFD Sender: Processing packet 31061 [packets to send 11, broken 10] [06:57:45]ProducePacketName [06:57:45]name=ofd_packets/00031061 [06:57:45]OFD Sender: To server: pG, [06:57:45]CommunicateWithHost lk.salyk.kg:30040 [06:57:45]ConnectInit lk.salyk.kg [06:57:45]written 0, free lines is 4095 [06:57:45]Connected sock=10 [06:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9B 9E 07 01 68 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6C 9E 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 79 00 00 35 04 06 00 60 F2 5B 14 2D B5 CF 96 84 31 8F 7C BC 92 [06:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 31 B6 47 00 6D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 79 00 00 F4 03 04 00 E7 48 18 67 B6 04 01 00 00 D0 13 1E 9C 41 AC 31 6E [06:57:45]CommunicateWithHost err = 0 [06:57:45]CheckOFDResponse [06:57:45]1017 (14) - 77093643461234 [06:57:45]1041 (16) - 0000000002094219 [06:57:45]1040 (4) - 31061 [06:57:45]1012 (4) - 23.10.2024 00:52 [06:57:45]1206 (1) - 0 [06:57:45]OFD Sender: Remove packet 31061 [06:57:45]ProducePacketName [06:57:45]name=ofd_packets/00031061 [06:57:45]NVStorageDeleteData [06:57:45]Write to MH i2c: 01 00 00 13 2F 42 [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: 01 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: 01 07 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: 01 07 00 13 2F 00 00 00 00 00 ED 0C 42 [06:57:45]RasterBufferAndPrint [06:57:45]line [06:57:45]line [06:57:45]line [06:57:45]line [06:57:45]line [06:57:45]written 0, free lines is 3315 [06:57:45]MH_Cut [06:57:45]Write to MH i2c: D1 01 00 1A 2F 01 1B [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: D1 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: D1 01 00 [06:57:45]MH_I2C_Read... [06:57:45]Read from MH i2c: D1 01 00 1A 2F 00 1A [06:57:45]Write to MH i2c: 01 00 00 1B 2F 4A [06:57:45]Write i2c OK [06:57:45]MH_I2C_Read... [06:57:46]OFD Sender: No OFD packet to send [06:57:46]*** Cut start [06:57:46]*** Partial cut [06:57:46]*** CUTSNS_PIN = 1 [06:57:46]*** CUTSNS_PIN = 0 [06:57:46]*** Brake cut motor [06:57:46]Read from MH i2c: 01 [06:57:46]MH_I2C_Read... [06:57:46]*** Stop cut motor [06:57:46]*** Cut end [06:57:46]Read from MH i2c: 01 07 00 [06:57:46]MH_I2C_Read... [06:57:46]Read from MH i2c: 01 07 00 1B 2F 00 00 00 00 00 FF 0F 5F [06:57:46]process_action close_receipt done [06:57:46]requested_data is exist [06:57:46]produce_requested_data [06:57:46]requested_item fm.sn is exist - process it [06:57:46]wFMCommunicate request_size=4 [06:57:46]MH_SAM_APDU [06:57:46]CAPDU: 80 11 00 00 [06:57:46]Write to MH i2c: E2 08 00 1C 2F 80 11 00 00 00 00 00 00 C5 [06:57:46]Write i2c OK [06:57:46]MH_I2C_Read... [06:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:46]Read from MH i2c: E2 [06:57:46]MH_I2C_Read... [06:57:46]Read from MH i2c: E2 17 00 [06:57:46]MH_I2C_Read... [06:57:46]Read from MH i2c: E2 17 00 1C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [06:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:57:46]wFMCommunicate OK [06:57:46]requested_item fd.num is exist - process it [06:57:46]SAM_PROTO_GetFieldsCounters [06:57:46]wFMCommunicate request_size=4 [06:57:46]MH_SAM_APDU [06:57:46]CAPDU: 80 13 00 00 [06:57:46]Write to MH i2c: E2 08 00 1D 2F 80 13 00 00 00 00 00 00 C8 [06:57:46]Write i2c OK [06:57:46]MH_I2C_Read... [06:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:47]Read from MH i2c: E2 [06:57:47]MH_I2C_Read... [06:57:47]Read from MH i2c: E2 62 00 [06:57:47]MH_I2C_Read... [06:57:47]Read from MH i2c: E2 62 00 1D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 79 00 00 0E 04 04 00 75 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 40 [06:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 79 00 00 0E 04 04 00 75 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 [06:57:47]wFMCommunicate OK [06:57:47]SAM_PROTO_GetFieldsCounters done [06:57:47]requested_item shift.num is exist - process it [06:57:47]requested_item shift.opened is exist - process it [06:57:47]req_shift_opened [06:57:47]FM_GetShiftState [06:57:47]SAM_PROTO_GetShiftState [06:57:47]wFMCommunicate request_size=4 [06:57:47]MH_SAM_APDU [06:57:47]CAPDU: 80 13 01 00 [06:57:47]Write to MH i2c: E2 08 00 1E 2F 80 13 01 00 00 00 00 00 CA [06:57:47]Write i2c OK [06:57:47]MH_I2C_Read... [06:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:47]Read from MH i2c: E2 [06:57:47]MH_I2C_Read... [06:57:47]Read from MH i2c: E2 0E 00 [06:57:47]MH_I2C_Read... [06:57:47]Read from MH i2c: E2 0E 00 1E 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 84 [06:57:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [06:57:47]wFMCommunicate OK [06:57:47]SAM_PROTO_GetShiftState done [06:57:47]FM_GetShiftState done [06:57:47]req_shift_opened done [06:57:47]requested_item shift.open_date is exist - process it [06:57:47]req_shift_open_date [06:57:47]req_shift_open_date done [06:57:47]produce_requested_data done [06:57:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31061,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [06:57:47]process_action_free close_receipt [06:57:47]json_value_free [06:57:47]json_value_free done [06:57:47]process_json_proto returns [06:57:47]Send response to host [06:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31061,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [06:57:47]free response buf [06:57:47]execute_script done [06:57:47]execute_script returns [06:57:47]free content buf [06:57:47]Sock 9.Close socket [06:57:47]Sock 9.Thread stoped [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:45]accept exits with 7 [07:11:45]New connection [07:11:45]New thread 3066899812 created [07:11:45]Thread 3067043172 joined [07:11:45]Waiting for new connection... [07:11:45] Sock 7.Parse request [07:11:45]Sock 7.Check first char [07:11:45]Sock 7.First char is OK [07:11:45]request: POST /json_proto HTTP/1.0 [07:11:45]Method: POST [07:11:45]URL: /json_proto [07:11:45]Method is POST - this is cgi request [07:11:45]url: /json_proto [07:11:45]query_string will be loaded in cgi processing [07:11:45]execute_cgi json_proto POST (null) [07:11:45]execute_cgi path=json_proto method=POST [07:11:45]POST find Content-Length [07:11:45]Host: 172.17.51.3:8080 [07:11:45]Content-Length: 677 [07:11:45]Content-Type: application/json [07:11:45] [07:11:45]POST finish read [07:11:45]Found Content-Length = 677 [07:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.990, "sum" : 668.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 668.00, "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:45]execute_script... [07:11:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.990, "sum" : 668.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 668.00, "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:45]POST & json_proto [07:11:45]process_json_proto [07:11:45]json parsed OK: [07:11:45]protocol is kg_v1.0 [07:11:45]action value=close_receipt [07:11:45]process_action close_receipt [07:11:45]cmd_close_receipt [07:11:45]MH_GetDate [07:11:45]Write to MH i2c: F0 00 00 1F 2F 3D [07:11:45]Write i2c OK [07:11:45]MH_I2C_Read... [07:11:45]Read from MH i2c: F0 [07:11:45]MH_I2C_Read... [07:11:45]Read from MH i2c: F0 09 00 [07:11:45]MH_I2C_Read... [07:11:45]Read from MH i2c: F0 09 00 1F 2F 00 B6 A1 18 67 04 C1 95 66 DC [07:11:45]GetLastDocTimeStamp 1729666668 [07:11:45]current date 1729667510 [07:11:45]FM_GetShiftState [07:11:45]SAM_PROTO_GetShiftState [07:11:45]wFMCommunicate request_size=4 [07:11:45]MH_SAM_APDU [07:11:45]CAPDU: 80 13 01 00 [07:11:45]Write to MH i2c: E2 08 00 20 2F 80 13 01 00 00 00 00 00 CC [07:11:45]Write i2c OK [07:11:45]MH_I2C_Read... [07:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:45]Read from MH i2c: E2 [07:11:45]MH_I2C_Read... [07:11:45]Read from MH i2c: E2 0E 00 [07:11:45]MH_I2C_Read... [07:11:45]Read from MH i2c: E2 0E 00 20 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 86 [07:11:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:11:45]wFMCommunicate OK [07:11:45]SAM_PROTO_GetShiftState done [07:11:45]FM_GetShiftState done [07:11:45]opened in 1729643755 [07:11:45]opened+sec_in_day 1729730155 [07:11:45]quantity*price = 66833 [07:11:45]sum+1 = 66834 [07:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 668.00 Внесено: 800.00 СДАЧА: 132.00 НСП 1% : 5.91 НДС 12% : 70.97 Наличными: 668.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 6 23.10.2024 07:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31062 ФПД: 237697987759640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071150&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31062&fm=237697987759640&tin=02508201610067®Number=0000000000186857&sum=66800 [07:11:46]StoreToDocumentArchive [07:11:46]shift 117 fd 31062 [07:11:46]save to /storage/0117/doc_00031062 [07:11:46]save last doc name /storage/0117/doc_00031062 to /storage/kkm_last_doc_name [07:11:46]save OK [07:11:46]Clear old archive folders... [07:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:11:46]tlvbuf is 00CD4870 [07:11:46]SAM_PROTO_ClearQueue [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 09 00 00 [07:11:46]Write to MH i2c: E2 08 00 2D 2F 80 09 00 00 00 00 00 00 CE [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 2D 2F 00 90 00 D0 [07:11:46]RAPDU: 90 00 [07:11:46]wFMCommunicate OK [07:11:46]SAM_PROTO_ClearQueue done [07:11:46]KKMCreateOFDPacket [07:11:46]OFDProtocolAddRootSTLVToBuf [07:11:46]FM_MakeSignedData [07:11:46]FM_MakeSignedData [07:11:46]SAM_PROTO_SignData [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 0D 01 02 [07:11:46]Write to MH i2c: E2 08 00 2E 2F 80 0D 01 02 00 00 00 00 D6 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 2E 2F 00 90 00 D1 [07:11:46]RAPDU: 90 00 [07:11:46]wFMCommunicate OK [07:11:46]wFMCommunicate request_size=255 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B6 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 79 00 00 35 04 06 00 D8 [07:11:46]Write to MH i2c: E2 02 01 2F 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B6 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 79 00 00 35 04 06 00 D8 00 00 69 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]OFD Sender: No OFD packet to send [07:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [07:11:46]RAPDU: 90 00 [07:11:46]wFMCommunicate OK [07:11:46]wFMCommunicate request_size=10 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 0D 02 02 05 2F 60 1F CE 18 [07:11:46]Write to MH i2c: E2 0D 00 30 2F 80 0D 02 02 05 00 2F 60 1F CE 18 00 00 77 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [07:11:46]RAPDU: 90 00 [07:11:46]wFMCommunicate OK [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 0D 03 02 [07:11:46]Write to MH i2c: E2 08 00 31 2F 80 0D 03 02 00 00 00 00 DB [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 0B 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 0B 00 31 2F 00 56 9A 41 6A A5 56 CE 9B 90 00 DB [07:11:46]RAPDU: 56 9A 41 6A A5 56 CE 9B 90 00 [07:11:46]wFMCommunicate OK [07:11:46]SAM_PROTO_SignData done [07:11:46]FM_MakeSignedData done [07:11:46]CreateOFDProtocolMessage [07:11:46]wFMCommunicate request_size=4 [07:11:46]MH_SAM_APDU [07:11:46]CAPDU: 80 11 00 00 [07:11:46]Write to MH i2c: E2 08 00 32 2F 80 11 00 00 00 00 00 00 DB [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:46]Read from MH i2c: E2 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 17 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: E2 17 00 32 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [07:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:11:46]wFMCommunicate OK [07:11:46]CreateOFDProtocolMessage done [07:11:46]OFDSenderStorePacket 31062 [07:11:46]StoreOFDPacket docnum=31062 [07:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 57 07 01 9B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B6 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 79 00 00 35 04 06 00 D8 2F 60 1F CE 18 56 9A 41 6A A5 56 CE 9B [07:11:46]CheckFolder [07:11:46]dirname=/storage/ofd_packets [07:11:46]CheckFolder done [07:11:46]ProducePacketName [07:11:46]name=ofd_packets/00031062 [07:11:46]NVStorageSaveData ofd_packets/00031062 [07:11:46]File name is /storage/ofd_packets/00031062 [07:11:46]Write 301 bytes [07:11:46]NVStorageSaveData done [07:11:46]OFDSenderStorePacket done [07:11:46]KKMCreateOFDPacket done [07:11:46]NVStorageSaveData kkm_last_timestamp [07:11:46]File name is /storage/kkm_last_timestamp [07:11:46]Write 4 bytes [07:11:46]NVStorageSaveData done [07:11:46]ExternCall_PrintAddStr [07:11:46]wPrintStart [07:11:46]Write to MH i2c: 01 00 00 33 2F 62 [07:11:46]Write i2c OK [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: 01 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: 01 07 00 [07:11:46]MH_I2C_Read... [07:11:46]Read from MH i2c: 01 07 00 33 2F 00 00 00 00 00 FF 0F 77 [07:11:46]RasterBufferAndPrint [07:11:46]line Счет N : (1)343500 [07:11:46]line ИНН: 02508201610067 [07:11:46]line Контрольно-Кассовый Чек [07:11:46]line ПРОДАЖА [07:11:46]line ТРК (МРК, ГНК) : 63 [07:11:46]line Товар: 2710124130 [07:11:46]line Аи-92-К-2 [07:11:46]line 9.990 * 66.90 [07:11:46]line = 668.33 [07:11:46]line НДС 12% НСП 1% [07:11:46]line > о реализуемом товаре [07:11:46]line ОКРУГЛЕНИЕ: -0.33 [07:11:46]line ИТОГО: 668.00 [07:11:46]line Внесено: 800.00 [07:11:46]line СДАЧА: 132.00 [07:11:46]line НСП 1% : 5.91 [07:11:46]line НДС 12% : 70.97 [07:11:46]line Наличными: 668.00 [07:11:46]line Безнал.: 0.00 [07:11:46]line Место: АЗС № 78 "Партнер Нефть" [07:11:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:11:46]line СНО: Общий режим [07:11:46]line Чек 6 23.10.2024 07:11 [07:11:46]line Смена: 117 ФФД: 1.0 [07:11:46]line ЗНМ: 0300000137 [07:11:46]line РНМ: 0000000000186857 [07:11:46]line Версия ККМ: v1.0 [07:11:46]line ФМ: 0000000002094219 [07:11:46]line ФД: 31062 [07:11:46]line ФПД: 237697987759640 [07:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071150&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31062&fm=237697987759640&tin=02508201610067®Number=0000000000186857&sum=66800 [07:11:46]written 0, free lines is 4095 [07:11:46]OFD Sender: Processing packet 31062 [packets to send 11, broken 10] [07:11:46]ProducePacketName [07:11:46]name=ofd_packets/00031062 [07:11:46]OFD Sender: To server: pG, [07:11:46]CommunicateWithHost lk.salyk.kg:30040 [07:11:46]ConnectInit lk.salyk.kg [07:11:47]Connected sock=10 [07:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 57 07 01 9B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1B 00 00 00 00 07 04 06 00 F0 04 01 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 B6 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 79 00 00 35 04 06 00 D8 2F 60 1F CE 18 56 9A 41 6A A5 56 CE 9B [07:11:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BB 35 47 00 6A 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 79 00 00 F4 03 04 00 30 4C 18 67 B6 04 01 00 00 72 64 A0 00 40 B8 E5 B9 [07:11:47]CommunicateWithHost err = 0 [07:11:47]CheckOFDResponse [07:11:47]1017 (14) - 77093643461234 [07:11:47]1041 (16) - 0000000002094219 [07:11:47]1040 (4) - 31062 [07:11:47]1012 (4) - 23.10.2024 01:06 [07:11:47]1206 (1) - 0 [07:11:47]OFD Sender: Remove packet 31062 [07:11:47]ProducePacketName [07:11:47]name=ofd_packets/00031062 [07:11:47]NVStorageDeleteData [07:11:47]Write to MH i2c: 01 00 00 5E 2F 8D [07:11:47]Write i2c OK [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: 01 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: 01 07 00 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 F5 0C 95 [07:11:47]RasterBufferAndPrint [07:11:47]line [07:11:47]line [07:11:47]line [07:11:47]line [07:11:47]line [07:11:47]written 0, free lines is 3327 [07:11:47]MH_Cut [07:11:47]Write to MH i2c: D1 01 00 65 2F 01 66 [07:11:47]Write i2c OK [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: D1 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: D1 01 00 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: D1 01 00 65 2F 00 65 [07:11:47]Write to MH i2c: 01 00 00 66 2F 95 [07:11:47]Write i2c OK [07:11:47]MH_I2C_Read... [07:11:47]OFD Sender: No OFD packet to send [07:11:48]*** Cut start [07:11:48]*** Partial cut [07:11:48]*** CUTSNS_PIN = 1 [07:11:48]*** CUTSNS_PIN = 0 [07:11:48]*** Brake cut motor [07:11:48]Read from MH i2c: 01 [07:11:48]MH_I2C_Read... [07:11:48]*** Stop cut motor [07:11:48]*** Cut end [07:11:48]Read from MH i2c: 01 07 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: 01 07 00 66 2F 00 00 00 00 00 FF 0F AA [07:11:48]process_action close_receipt done [07:11:48]requested_data is exist [07:11:48]produce_requested_data [07:11:48]requested_item fm.sn is exist - process it [07:11:48]wFMCommunicate request_size=4 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 11 00 00 [07:11:48]Write to MH i2c: E2 08 00 67 2F 80 11 00 00 00 00 00 00 10 [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:48]Read from MH i2c: E2 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 17 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 17 00 67 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [07:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:11:48]wFMCommunicate OK [07:11:48]requested_item fd.num is exist - process it [07:11:48]SAM_PROTO_GetFieldsCounters [07:11:48]wFMCommunicate request_size=4 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 13 00 00 [07:11:48]Write to MH i2c: E2 08 00 68 2F 80 13 00 00 00 00 00 00 13 [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:48]Read from MH i2c: E2 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 62 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 62 00 68 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 79 00 00 0E 04 04 00 75 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 8F [07:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 79 00 00 0E 04 04 00 75 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:11:48]wFMCommunicate OK [07:11:48]SAM_PROTO_GetFieldsCounters done [07:11:48]requested_item shift.num is exist - process it [07:11:48]requested_item shift.opened is exist - process it [07:11:48]req_shift_opened [07:11:48]FM_GetShiftState [07:11:48]SAM_PROTO_GetShiftState [07:11:48]wFMCommunicate request_size=4 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 13 01 00 [07:11:48]Write to MH i2c: E2 08 00 69 2F 80 13 01 00 00 00 00 00 15 [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:48]Read from MH i2c: E2 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 0E 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 0E 00 69 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CF [07:11:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:11:48]wFMCommunicate OK [07:11:48]SAM_PROTO_GetShiftState done [07:11:48]FM_GetShiftState done [07:11:48]req_shift_opened done [07:11:48]requested_item shift.open_date is exist - process it [07:11:48]req_shift_open_date [07:11:48]req_shift_open_date done [07:11:48]produce_requested_data done [07:11:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31062,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [07:11:48]process_action_free close_receipt [07:11:48]json_value_free [07:11:48]json_value_free done [07:11:48]process_json_proto returns [07:11:48]Send response to host [07:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31062,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [07:11:48]free response buf [07:11:48]execute_script done [07:11:48]execute_script returns [07:11:48]free content buf [07:11:48]Sock 7.Close socket [07:11:48]Sock 7.Thread stoped [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:44]accept exits with 9 [07:12:44]New connection [07:12:44]New thread 3067043172 created [07:12:44]Thread 3066899812 joined [07:12:44]Waiting for new connection... [07:12:44] Sock 9.Parse request [07:12:44]Sock 9.Check first char [07:12:44]Sock 9.First char is OK [07:12:44]request: POST /json_proto HTTP/1.0 [07:12:44]Method: POST [07:12:44]URL: /json_proto [07:12:44]Method is POST - this is cgi request [07:12:44]url: /json_proto [07:12:44]query_string will be loaded in cgi processing [07:12:44]execute_cgi json_proto POST (null) [07:12:44]execute_cgi path=json_proto method=POST [07:12:44]POST find Content-Length [07:12:44]Host: 172.17.51.3:8080 [07:12:44]Content-Length: 677 [07:12:44]Content-Type: application/json [07:12:44] [07:12:44]POST finish read [07:12:44]Found Content-Length = 677 [07:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:44]execute_script... [07:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:44]POST & json_proto [07:12:44]process_json_proto [07:12:44]json parsed OK: [07:12:44]protocol is kg_v1.0 [07:12:44]action value=close_receipt [07:12:44]process_action close_receipt [07:12:44]cmd_close_receipt [07:12:44]MH_GetDate [07:12:44]Write to MH i2c: F0 00 00 6A 2F 88 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: F0 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: F0 09 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: F0 09 00 6A 2F 00 F1 A1 18 67 04 C1 95 66 62 [07:12:44]GetLastDocTimeStamp 1729667510 [07:12:44]current date 1729667569 [07:12:44]FM_GetShiftState [07:12:44]SAM_PROTO_GetShiftState [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 13 01 00 [07:12:44]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 0E 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D1 [07:12:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:12:44]wFMCommunicate OK [07:12:44]SAM_PROTO_GetShiftState done [07:12:44]FM_GetShiftState done [07:12:44]opened in 1729643755 [07:12:44]opened+sec_in_day 1729730155 [07:12:44]quantity*price = 40068 [07:12:44]sum+1 = 40069 [07:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 7 23.10.2024 07:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31063 ФПД: 277217023360544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071249&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31063&fm=277217023360544&tin=02508201610067®Number=0000000000186857&sum=40000 [07:12:45]StoreToDocumentArchive [07:12:45]shift 117 fd 31063 [07:12:45]save to /storage/0117/doc_00031063 [07:12:45]save last doc name /storage/0117/doc_00031063 to /storage/kkm_last_doc_name [07:12:45]save OK [07:12:45]Clear old archive folders... [07:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:45]tlvbuf is 00D337B0 [07:12:45]SAM_PROTO_ClearQueue [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 09 00 00 [07:12:45]Write to MH i2c: E2 08 00 78 2F 80 09 00 00 00 00 00 00 19 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 78 2F 00 90 00 1B [07:12:45]RAPDU: 90 00 [07:12:45]wFMCommunicate OK [07:12:45]SAM_PROTO_ClearQueue done [07:12:45]KKMCreateOFDPacket [07:12:45]OFDProtocolAddRootSTLVToBuf [07:12:45]FM_MakeSignedData [07:12:45]FM_MakeSignedData [07:12:45]SAM_PROTO_SignData [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 0D 01 02 [07:12:45]Write to MH i2c: E2 08 00 79 2F 80 0D 01 02 00 00 00 00 21 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [07:12:45]RAPDU: 90 00 [07:12:45]wFMCommunicate OK [07:12:45]wFMCommunicate request_size=255 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F1 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 79 00 00 35 04 06 00 FC [07:12:45]Write to MH i2c: E2 02 01 7A 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F1 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 79 00 00 35 04 06 00 FC 00 00 BB [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [07:12:45]RAPDU: 90 00 [07:12:45]wFMCommunicate OK [07:12:45]wFMCommunicate request_size=10 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 0D 02 02 05 20 9E 33 FE 20 [07:12:45]Write to MH i2c: E2 0D 00 7B 2F 80 0D 02 02 05 00 20 9E 33 FE 20 00 00 3D [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:46]Read from MH i2c: E2 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 03 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [07:12:46]RAPDU: 90 00 [07:12:46]wFMCommunicate OK [07:12:46]wFMCommunicate request_size=4 [07:12:46]MH_SAM_APDU [07:12:46]CAPDU: 80 0D 03 02 [07:12:46]Write to MH i2c: E2 08 00 7C 2F 80 0D 03 02 00 00 00 00 26 [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:46]Read from MH i2c: E2 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 0B 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 0B 00 7C 2F 00 D1 99 79 76 28 5F 88 DE 90 00 6D [07:12:46]RAPDU: D1 99 79 76 28 5F 88 DE 90 00 [07:12:46]wFMCommunicate OK [07:12:46]SAM_PROTO_SignData done [07:12:46]FM_MakeSignedData done [07:12:46]CreateOFDProtocolMessage [07:12:46]wFMCommunicate request_size=4 [07:12:46]MH_SAM_APDU [07:12:46]CAPDU: 80 11 00 00 [07:12:46]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:46]Read from MH i2c: E2 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 17 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [07:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:12:46]wFMCommunicate OK [07:12:46]CreateOFDProtocolMessage done [07:12:46]OFDSenderStorePacket 31063 [07:12:46]StoreOFDPacket docnum=31063 [07:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 04 07 01 0D 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F1 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 79 00 00 35 04 06 00 FC 20 9E 33 FE 20 D1 99 79 76 28 5F 88 DE [07:12:46]CheckFolder [07:12:46]dirname=/storage/ofd_packets [07:12:46]CheckFolder done [07:12:46]ProducePacketName [07:12:46]name=ofd_packets/00031063 [07:12:46]NVStorageSaveData ofd_packets/00031063 [07:12:46]File name is /storage/ofd_packets/00031063 [07:12:46]Write 301 bytes [07:12:46]NVStorageSaveData done [07:12:46]OFDSenderStorePacket done [07:12:46]KKMCreateOFDPacket done [07:12:46]NVStorageSaveData kkm_last_timestamp [07:12:46]File name is /storage/kkm_last_timestamp [07:12:46]Write 4 bytes [07:12:46]NVStorageSaveData done [07:12:46]ExternCall_PrintAddStr [07:12:46]wPrintStart [07:12:46]Write to MH i2c: 01 00 00 7E 2F AD [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 07 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 07 00 7E 2F 00 00 00 00 00 FF 0F C2 [07:12:46]RasterBufferAndPrint [07:12:46]line Счет N : (1)343501 [07:12:46]line ИНН: 02508201610067 [07:12:46]line Контрольно-Кассовый Чек [07:12:46]line ПРОДАЖА [07:12:46]line ТРК (МРК, ГНК) : 52 [07:12:46]line Товар: 2710124500 [07:12:46]line Аи-95-К-3 [07:12:46]line 5.400 * 74.20 [07:12:46]line = 400.68 [07:12:46]line НДС 12% НСП 1% [07:12:46]line > о реализуемом товаре [07:12:46]line ОКРУГЛЕНИЕ: -0.68 [07:12:46]line ИТОГО: 400.00 [07:12:46]line Внесено: 400.00 [07:12:46]line СДАЧА: 0.00 [07:12:46]line НСП 1% : 3.55 [07:12:46]line НДС 12% : 42.55 [07:12:46]line Наличными: 400.00 [07:12:46]line Безнал.: 0.00 [07:12:46]line Место: АЗС № 78 "Партнер Нефть" [07:12:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:12:46]line СНО: Общий режим [07:12:46]line Чек 7 23.10.2024 07:12 [07:12:46]line Смена: 117 ФФД: 1.0 [07:12:46]line ЗНМ: 0300000137 [07:12:46]line РНМ: 0000000000186857 [07:12:46]line Версия ККМ: v1.0 [07:12:46]line ФМ: 0000000002094219 [07:12:46]line ФД: 31063 [07:12:46]line ФПД: 277217023360544 [07:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071249&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31063&fm=277217023360544&tin=02508201610067®Number=0000000000186857&sum=40000 [07:12:46]OFD Sender: Processing packet 31063 [packets to send 11, broken 10] [07:12:46]ProducePacketName [07:12:46]name=ofd_packets/00031063 [07:12:46]OFD Sender: To server: pG, [07:12:46]CommunicateWithHost lk.salyk.kg:30040 [07:12:46]ConnectInit lk.salyk.kg [07:12:46]written 0, free lines is 4095 [07:12:46]Connected sock=10 [07:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 04 07 01 0D 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F1 A1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 79 00 00 35 04 06 00 FC 20 9E 33 FE 20 D1 99 79 76 28 5F 88 DE [07:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D5 4C 47 00 59 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 79 00 00 F4 03 04 00 6C 4C 18 67 B6 04 01 00 00 E9 3D 26 0C 1C A3 95 23 [07:12:46]CommunicateWithHost err = 0 [07:12:46]CheckOFDResponse [07:12:46]1017 (14) - 77093643461234 [07:12:46]1041 (16) - 0000000002094219 [07:12:46]1040 (4) - 31063 [07:12:46]1012 (4) - 23.10.2024 01:07 [07:12:46]1206 (1) - 0 [07:12:46]OFD Sender: Remove packet 31063 [07:12:46]ProducePacketName [07:12:46]name=ofd_packets/00031063 [07:12:46]NVStorageDeleteData [07:12:46]Write to MH i2c: 01 00 00 A9 2F D8 [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 07 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 E0 0C CB [07:12:46]RasterBufferAndPrint [07:12:46]line [07:12:46]line [07:12:46]line [07:12:46]line [07:12:46]line [07:12:46]written 0, free lines is 3302 [07:12:46]MH_Cut [07:12:46]Write to MH i2c: D1 01 00 B0 2F 01 B1 [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: D1 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: D1 01 00 [07:12:46]MH_I2C_Read... [07:12:46]Read from MH i2c: D1 01 00 B0 2F 00 B0 [07:12:46]Write to MH i2c: 01 00 00 B1 2F E0 [07:12:46]Write i2c OK [07:12:46]MH_I2C_Read... [07:12:47]OFD Sender: No OFD packet to send [07:12:47]*** Cut start [07:12:47]*** Partial cut [07:12:47]*** CUTSNS_PIN = 1 [07:12:47]*** CUTSNS_PIN = 0 [07:12:47]*** Brake cut motor [07:12:48]Read from MH i2c: 01 [07:12:48]MH_I2C_Read... [07:12:48]*** Stop cut motor [07:12:48]*** Cut end [07:12:48]Read from MH i2c: 01 07 00 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [07:12:48]process_action close_receipt done [07:12:48]requested_data is exist [07:12:48]produce_requested_data [07:12:48]requested_item fm.sn is exist - process it [07:12:48]wFMCommunicate request_size=4 [07:12:48]MH_SAM_APDU [07:12:48]CAPDU: 80 11 00 00 [07:12:48]Write to MH i2c: E2 08 00 B2 2F 80 11 00 00 00 00 00 00 5B [07:12:48]Write i2c OK [07:12:48]MH_I2C_Read... [07:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:48]Read from MH i2c: E2 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 17 00 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 17 00 B2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [07:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:12:48]wFMCommunicate OK [07:12:48]requested_item fd.num is exist - process it [07:12:48]SAM_PROTO_GetFieldsCounters [07:12:48]wFMCommunicate request_size=4 [07:12:48]MH_SAM_APDU [07:12:48]CAPDU: 80 13 00 00 [07:12:48]Write to MH i2c: E2 08 00 B3 2F 80 13 00 00 00 00 00 00 5E [07:12:48]Write i2c OK [07:12:48]MH_I2C_Read... [07:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:48]Read from MH i2c: E2 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 62 00 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 62 00 B3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 79 00 00 0E 04 04 00 75 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 DE [07:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 79 00 00 0E 04 04 00 75 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:12:48]wFMCommunicate OK [07:12:48]SAM_PROTO_GetFieldsCounters done [07:12:48]requested_item shift.num is exist - process it [07:12:48]requested_item shift.opened is exist - process it [07:12:48]req_shift_opened [07:12:48]FM_GetShiftState [07:12:48]SAM_PROTO_GetShiftState [07:12:48]wFMCommunicate request_size=4 [07:12:48]MH_SAM_APDU [07:12:48]CAPDU: 80 13 01 00 [07:12:48]Write to MH i2c: E2 08 00 B4 2F 80 13 01 00 00 00 00 00 60 [07:12:48]Write i2c OK [07:12:48]MH_I2C_Read... [07:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:48]Read from MH i2c: E2 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 0E 00 [07:12:48]MH_I2C_Read... [07:12:48]Read from MH i2c: E2 0E 00 B4 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1A [07:12:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:12:48]wFMCommunicate OK [07:12:48]SAM_PROTO_GetShiftState done [07:12:48]FM_GetShiftState done [07:12:48]req_shift_opened done [07:12:48]requested_item shift.open_date is exist - process it [07:12:48]req_shift_open_date [07:12:48]req_shift_open_date done [07:12:48]produce_requested_data done [07:12:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31063,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [07:12:48]process_action_free close_receipt [07:12:48]json_value_free [07:12:48]json_value_free done [07:12:48]process_json_proto returns [07:12:48]Send response to host [07:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31063,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [07:12:48]free response buf [07:12:48]execute_script done [07:12:48]execute_script returns [07:12:48]free content buf [07:12:48]Sock 9.Close socket [07:12:48]Sock 9.Thread stoped [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:10]accept exits with 7 [07:22:10]New connection [07:22:10]New thread 3066899812 created [07:22:10]Thread 3067043172 joined [07:22:10]Waiting for new connection... [07:22:10] Sock 7.Parse request [07:22:10]Sock 7.Check first char [07:22:10]Sock 7.First char is OK [07:22:10]request: POST /json_proto HTTP/1.0 [07:22:10]Method: POST [07:22:10]URL: /json_proto [07:22:10]Method is POST - this is cgi request [07:22:10]url: /json_proto [07:22:10]query_string will be loaded in cgi processing [07:22:10]execute_cgi json_proto POST (null) [07:22:10]execute_cgi path=json_proto method=POST [07:22:10]POST find Content-Length [07:22:10]Host: 172.17.51.3:8080 [07:22:10]Content-Length: 677 [07:22:10]Content-Type: application/json [07:22:10] [07:22:10]POST finish read [07:22:10]Found Content-Length = 677 [07:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:10]execute_script... [07:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:10]POST & json_proto [07:22:10]process_json_proto [07:22:10]json parsed OK: [07:22:10]protocol is kg_v1.0 [07:22:10]action value=close_receipt [07:22:10]process_action close_receipt [07:22:10]cmd_close_receipt [07:22:10]MH_GetDate [07:22:10]Write to MH i2c: F0 00 00 B5 2F D3 [07:22:10]Write i2c OK [07:22:10]MH_I2C_Read... [07:22:10]Read from MH i2c: F0 [07:22:10]MH_I2C_Read... [07:22:10]Read from MH i2c: F0 09 00 [07:22:10]MH_I2C_Read... [07:22:10]Read from MH i2c: F0 09 00 B5 2F 00 27 A4 18 67 04 C1 95 66 E6 [07:22:10]GetLastDocTimeStamp 1729667569 [07:22:10]current date 1729668135 [07:22:10]FM_GetShiftState [07:22:10]SAM_PROTO_GetShiftState [07:22:10]wFMCommunicate request_size=4 [07:22:10]MH_SAM_APDU [07:22:10]CAPDU: 80 13 01 00 [07:22:10]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [07:22:10]Write i2c OK [07:22:10]MH_I2C_Read... [07:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:10]Read from MH i2c: E2 [07:22:10]MH_I2C_Read... [07:22:10]Read from MH i2c: E2 0E 00 [07:22:10]MH_I2C_Read... [07:22:10]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1C [07:22:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:22:10]wFMCommunicate OK [07:22:10]SAM_PROTO_GetShiftState done [07:22:10]FM_GetShiftState done [07:22:10]opened in 1729643755 [07:22:10]opened+sec_in_day 1729730155 [07:22:10]quantity*price = 20003 [07:22:10]sum+1 = 20004 [07:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 8 23.10.2024 07:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31064 ФПД: 216452310129624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072215&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31064&fm=216452310129624&tin=02508201610067®Number=0000000000186857&sum=20000 [07:22:11]StoreToDocumentArchive [07:22:11]shift 117 fd 31064 [07:22:11]save to /storage/0117/doc_00031064 [07:22:11]save last doc name /storage/0117/doc_00031064 to /storage/kkm_last_doc_name [07:22:11]save OK [07:22:11]Clear old archive folders... [07:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:11]tlvbuf is 00DA1A10 [07:22:11]SAM_PROTO_ClearQueue [07:22:11]wFMCommunicate request_size=4 [07:22:11]MH_SAM_APDU [07:22:11]CAPDU: 80 09 00 00 [07:22:11]Write to MH i2c: E2 08 00 C3 2F 80 09 00 00 00 00 00 00 64 [07:22:11]Write i2c OK [07:22:11]MH_I2C_Read... [07:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:11]Read from MH i2c: E2 [07:22:11]MH_I2C_Read... [07:22:11]Read from MH i2c: E2 03 00 [07:22:11]MH_I2C_Read... [07:22:11]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [07:22:11]RAPDU: 90 00 [07:22:11]wFMCommunicate OK [07:22:11]SAM_PROTO_ClearQueue done [07:22:11]KKMCreateOFDPacket [07:22:11]OFDProtocolAddRootSTLVToBuf [07:22:11]FM_MakeSignedData [07:22:11]FM_MakeSignedData [07:22:11]SAM_PROTO_SignData [07:22:11]wFMCommunicate request_size=4 [07:22:11]MH_SAM_APDU [07:22:11]CAPDU: 80 0D 01 02 [07:22:11]Write to MH i2c: E2 08 00 C4 2F 80 0D 01 02 00 00 00 00 6C [07:22:11]Write i2c OK [07:22:11]MH_I2C_Read... [07:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:11]Read from MH i2c: E2 [07:22:11]MH_I2C_Read... [07:22:11]Read from MH i2c: E2 03 00 [07:22:11]MH_I2C_Read... [07:22:11]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [07:22:11]RAPDU: 90 00 [07:22:11]wFMCommunicate OK [07:22:11]wFMCommunicate request_size=255 [07:22:11]MH_SAM_APDU [07:22:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 A4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 79 00 00 35 04 06 00 C4 [07:22:11]Write to MH i2c: E2 02 01 C5 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 A4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 79 00 00 35 04 06 00 C4 00 00 1B [07:22:11]Write i2c OK [07:22:11]MH_I2C_Read... [07:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:12]Read from MH i2c: E2 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 03 00 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [07:22:12]RAPDU: 90 00 [07:22:12]wFMCommunicate OK [07:22:12]wFMCommunicate request_size=10 [07:22:12]MH_SAM_APDU [07:22:12]CAPDU: 80 0D 02 02 05 DC BB 0E 5B D8 [07:22:12]Write to MH i2c: E2 0D 00 C6 2F 80 0D 02 02 05 00 DC BB 0E 5B D8 00 00 51 [07:22:12]Write i2c OK [07:22:12]MH_I2C_Read... [07:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:12]Read from MH i2c: E2 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 03 00 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [07:22:12]RAPDU: 90 00 [07:22:12]wFMCommunicate OK [07:22:12]wFMCommunicate request_size=4 [07:22:12]MH_SAM_APDU [07:22:12]CAPDU: 80 0D 03 02 [07:22:12]Write to MH i2c: E2 08 00 C7 2F 80 0D 03 02 00 00 00 00 71 [07:22:12]Write i2c OK [07:22:12]MH_I2C_Read... [07:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:12]Read from MH i2c: E2 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 0B 00 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 0B 00 C7 2F 00 53 44 45 09 F3 E5 BA 27 90 00 10 [07:22:12]RAPDU: 53 44 45 09 F3 E5 BA 27 90 00 [07:22:12]wFMCommunicate OK [07:22:12]SAM_PROTO_SignData done [07:22:12]FM_MakeSignedData done [07:22:12]CreateOFDProtocolMessage [07:22:12]wFMCommunicate request_size=4 [07:22:12]MH_SAM_APDU [07:22:12]CAPDU: 80 11 00 00 [07:22:12]Write to MH i2c: E2 08 00 C8 2F 80 11 00 00 00 00 00 00 71 [07:22:12]Write i2c OK [07:22:12]MH_I2C_Read... [07:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:12]Read from MH i2c: E2 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 17 00 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: E2 17 00 C8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [07:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:22:12]wFMCommunicate OK [07:22:12]CreateOFDProtocolMessage done [07:22:12]OFDSenderStorePacket 31064 [07:22:12]StoreOFDPacket docnum=31064 [07:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AE FB 07 01 C0 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 A4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 79 00 00 35 04 06 00 C4 DC BB 0E 5B D8 53 44 45 09 F3 E5 BA 27 [07:22:12]CheckFolder [07:22:12]dirname=/storage/ofd_packets [07:22:12]CheckFolder done [07:22:12]ProducePacketName [07:22:12]name=ofd_packets/00031064 [07:22:12]NVStorageSaveData ofd_packets/00031064 [07:22:12]File name is /storage/ofd_packets/00031064 [07:22:12]Write 301 bytes [07:22:12]NVStorageSaveData done [07:22:12]OFDSenderStorePacket done [07:22:12]KKMCreateOFDPacket done [07:22:12]NVStorageSaveData kkm_last_timestamp [07:22:12]File name is /storage/kkm_last_timestamp [07:22:12]Write 4 bytes [07:22:12]NVStorageSaveData done [07:22:12]ExternCall_PrintAddStr [07:22:12]wPrintStart [07:22:12]Write to MH i2c: 01 00 00 C9 2F F8 [07:22:12]Write i2c OK [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: 01 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: 01 07 00 [07:22:12]MH_I2C_Read... [07:22:12]Read from MH i2c: 01 07 00 C9 2F 00 00 00 00 00 FF 0F 0D [07:22:12]RasterBufferAndPrint [07:22:12]line Счет N : (1)343502 [07:22:12]line ИНН: 02508201610067 [07:22:12]line Контрольно-Кассовый Чек [07:22:12]line ПРОДАЖА [07:22:12]line ТРК (МРК, ГНК) : 43 [07:22:12]line Товар: 2710124130 [07:22:12]line Аи-92-К-2 [07:22:12]line 2.990 * 66.90 [07:22:12]line = 200.03 [07:22:12]line НДС 12% НСП 1% [07:22:12]line > о реализуемом товаре [07:22:12]line ОКРУГЛЕНИЕ: -0.03 [07:22:12]line ИТОГО: 200.00 [07:22:12]line Внесено: 200.00 [07:22:12]line СДАЧА: 0.00 [07:22:12]line НСП 1% : 1.77 [07:22:12]line НДС 12% : 21.24 [07:22:12]line Наличными: 200.00 [07:22:12]line Безнал.: 0.00 [07:22:12]line Место: АЗС № 78 "Партнер Нефть" [07:22:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:22:12]line СНО: Общий режим [07:22:12]line Чек 8 23.10.2024 07:22 [07:22:12]line Смена: 117 ФФД: 1.0 [07:22:12]line ЗНМ: 0300000137 [07:22:12]line РНМ: 0000000000186857 [07:22:12]line Версия ККМ: v1.0 [07:22:12]line ФМ: 0000000002094219 [07:22:12]line ФД: 31064 [07:22:12]line ФПД: 216452310129624 [07:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072215&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31064&fm=216452310129624&tin=02508201610067®Number=0000000000186857&sum=20000 [07:22:12]OFD Sender: Processing packet 31064 [packets to send 11, broken 10] [07:22:12]ProducePacketName [07:22:12]name=ofd_packets/00031064 [07:22:12]OFD Sender: To server: pG, [07:22:12]CommunicateWithHost lk.salyk.kg:30040 [07:22:12]ConnectInit lk.salyk.kg [07:22:12]written 0, free lines is 4095 [07:22:12]Connected sock=10 [07:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AE FB 07 01 C0 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 A4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 79 00 00 35 04 06 00 C4 DC BB 0E 5B D8 53 44 45 09 F3 E5 BA 27 [07:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B0 AE 47 00 57 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 79 00 00 F4 03 04 00 A2 4E 18 67 B6 04 01 00 00 C1 41 A3 B3 85 C8 E0 5C [07:22:12]CommunicateWithHost err = 0 [07:22:12]CheckOFDResponse [07:22:12]1017 (14) - 77093643461234 [07:22:12]1041 (16) - 0000000002094219 [07:22:12]1040 (4) - 31064 [07:22:12]1012 (4) - 23.10.2024 01:17 [07:22:12]1206 (1) - 0 [07:22:12]OFD Sender: Remove packet 31064 [07:22:12]ProducePacketName [07:22:12]name=ofd_packets/00031064 [07:22:12]NVStorageDeleteData [07:22:13]Write to MH i2c: 01 00 00 F4 2F 23 [07:22:13]Write i2c OK [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: 01 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: 01 07 00 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: 01 07 00 F4 2F 00 00 00 00 00 E6 0C 1C [07:22:13]RasterBufferAndPrint [07:22:13]line [07:22:13]line [07:22:13]line [07:22:13]line [07:22:13]line [07:22:13]written 0, free lines is 3308 [07:22:13]MH_Cut [07:22:13]Write to MH i2c: D1 01 00 FB 2F 01 FC [07:22:13]Write i2c OK [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: D1 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: D1 01 00 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: D1 01 00 FB 2F 00 FB [07:22:13]Write to MH i2c: 01 00 00 FC 2F 2B [07:22:13]Write i2c OK [07:22:13]MH_I2C_Read... [07:22:13]OFD Sender: No OFD packet to send [07:22:13]*** Cut start [07:22:13]*** Partial cut [07:22:13]*** CUTSNS_PIN = 1 [07:22:13]*** CUTSNS_PIN = 0 [07:22:13]*** Brake cut motor [07:22:14]Read from MH i2c: 01 [07:22:14]MH_I2C_Read... [07:22:14]*** Stop cut motor [07:22:14]*** Cut end [07:22:14]Read from MH i2c: 01 07 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: 01 07 00 FC 2F 00 00 00 00 00 FF 0F 40 [07:22:14]process_action close_receipt done [07:22:14]requested_data is exist [07:22:14]produce_requested_data [07:22:14]requested_item fm.sn is exist - process it [07:22:14]wFMCommunicate request_size=4 [07:22:14]MH_SAM_APDU [07:22:14]CAPDU: 80 11 00 00 [07:22:14]Write to MH i2c: E2 08 00 FD 2F 80 11 00 00 00 00 00 00 A6 [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:14]Read from MH i2c: E2 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 17 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 17 00 FD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [07:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:22:14]wFMCommunicate OK [07:22:14]requested_item fd.num is exist - process it [07:22:14]SAM_PROTO_GetFieldsCounters [07:22:14]wFMCommunicate request_size=4 [07:22:14]MH_SAM_APDU [07:22:14]CAPDU: 80 13 00 00 [07:22:14]Write to MH i2c: E2 08 00 FE 2F 80 13 00 00 00 00 00 00 A9 [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:14]Read from MH i2c: E2 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 62 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 62 00 FE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 79 00 00 0E 04 04 00 75 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 2D [07:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 79 00 00 0E 04 04 00 75 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:22:14]wFMCommunicate OK [07:22:14]SAM_PROTO_GetFieldsCounters done [07:22:14]requested_item shift.num is exist - process it [07:22:14]requested_item shift.opened is exist - process it [07:22:14]req_shift_opened [07:22:14]FM_GetShiftState [07:22:14]SAM_PROTO_GetShiftState [07:22:14]wFMCommunicate request_size=4 [07:22:14]MH_SAM_APDU [07:22:14]CAPDU: 80 13 01 00 [07:22:14]Write to MH i2c: E2 08 00 FF 2F 80 13 01 00 00 00 00 00 AB [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:14]Read from MH i2c: E2 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 0E 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 0E 00 FF 2F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 65 [07:22:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:22:14]wFMCommunicate OK [07:22:14]SAM_PROTO_GetShiftState done [07:22:14]FM_GetShiftState done [07:22:14]req_shift_opened done [07:22:14]requested_item shift.open_date is exist - process it [07:22:14]req_shift_open_date [07:22:14]req_shift_open_date done [07:22:14]produce_requested_data done [07:22:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31064,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [07:22:14]process_action_free close_receipt [07:22:14]json_value_free [07:22:14]json_value_free done [07:22:14]process_json_proto returns [07:22:14]Send response to host [07:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31064,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [07:22:14]free response buf [07:22:14]execute_script done [07:22:14]execute_script returns [07:22:14]free content buf [07:22:14]Sock 7.Close socket [07:22:14]Sock 7.Thread stoped [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:56]accept exits with 9 [07:48:56]New connection [07:48:56]New thread 3067043172 created [07:48:56]Thread 3066899812 joined [07:48:56]Waiting for new connection... [07:48:56] Sock 9.Parse request [07:48:56]Sock 9.Check first char [07:48:56]Sock 9.First char is OK [07:48:56]request: POST /json_proto HTTP/1.0 [07:48:56]Method: POST [07:48:56]URL: /json_proto [07:48:56]Method is POST - this is cgi request [07:48:56]url: /json_proto [07:48:56]query_string will be loaded in cgi processing [07:48:56]execute_cgi json_proto POST (null) [07:48:56]execute_cgi path=json_proto method=POST [07:48:56]POST find Content-Length [07:48:56]Host: 172.17.51.3:8080 [07:48:56]Content-Length: 677 [07:48:56]Content-Type: application/json [07:48:56] [07:48:56]POST finish read [07:48:56]Found Content-Length = 677 [07:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:56]execute_script... [07:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:56]POST & json_proto [07:48:56]process_json_proto [07:48:56]json parsed OK: [07:48:56]protocol is kg_v1.0 [07:48:56]action value=close_receipt [07:48:56]process_action close_receipt [07:48:56]cmd_close_receipt [07:48:56]MH_GetDate [07:48:56]Write to MH i2c: F0 00 00 00 30 1F [07:48:56]Write i2c OK [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: F0 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: F0 09 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: F0 09 00 00 30 00 6D AA 18 67 04 C1 95 66 7E [07:48:56]GetLastDocTimeStamp 1729668135 [07:48:56]current date 1729669741 [07:48:56]FM_GetShiftState [07:48:56]SAM_PROTO_GetShiftState [07:48:56]wFMCommunicate request_size=4 [07:48:56]MH_SAM_APDU [07:48:56]CAPDU: 80 13 01 00 [07:48:56]Write to MH i2c: E2 08 00 01 30 80 13 01 00 00 00 00 00 AE [07:48:56]Write i2c OK [07:48:56]MH_I2C_Read... [07:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:56]Read from MH i2c: E2 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 0E 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 0E 00 01 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 68 [07:48:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:48:56]wFMCommunicate OK [07:48:56]SAM_PROTO_GetShiftState done [07:48:56]FM_GetShiftState done [07:48:56]opened in 1729643755 [07:48:56]opened+sec_in_day 1729730155 [07:48:56]quantity*price = 50041 [07:48:56]sum+1 = 50042 [07:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 9 23.10.2024 07:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31065 ФПД: 187033995073949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074901&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31065&fm=187033995073949&tin=02508201610067®Number=0000000000186857&sum=50000 [07:48:57]StoreToDocumentArchive [07:48:57]shift 117 fd 31065 [07:48:57]save to /storage/0117/doc_00031065 [07:48:57]save last doc name /storage/0117/doc_00031065 to /storage/kkm_last_doc_name [07:48:57]save OK [07:48:57]Clear old archive folders... [07:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:57]tlvbuf is 00CCD5C0 [07:48:57]SAM_PROTO_ClearQueue [07:48:57]wFMCommunicate request_size=4 [07:48:57]MH_SAM_APDU [07:48:57]CAPDU: 80 09 00 00 [07:48:57]Write to MH i2c: E2 08 00 0E 30 80 09 00 00 00 00 00 00 B0 [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:57]Read from MH i2c: E2 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 03 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [07:48:57]RAPDU: 90 00 [07:48:57]wFMCommunicate OK [07:48:57]SAM_PROTO_ClearQueue done [07:48:57]KKMCreateOFDPacket [07:48:57]OFDProtocolAddRootSTLVToBuf [07:48:57]FM_MakeSignedData [07:48:57]FM_MakeSignedData [07:48:57]SAM_PROTO_SignData [07:48:57]wFMCommunicate request_size=4 [07:48:57]MH_SAM_APDU [07:48:57]CAPDU: 80 0D 01 02 [07:48:57]Write to MH i2c: E2 08 00 0F 30 80 0D 01 02 00 00 00 00 B8 [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:57]Read from MH i2c: E2 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 03 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [07:48:57]RAPDU: 90 00 [07:48:57]wFMCommunicate OK [07:48:57]wFMCommunicate request_size=255 [07:48:57]MH_SAM_APDU [07:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6D AA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 79 00 00 35 04 06 00 AA [07:48:57]Write to MH i2c: E2 02 01 10 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6D AA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 79 00 00 35 04 06 00 AA 00 00 D9 [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=10 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 02 02 05 1B 3E D6 59 9D [07:48:58]Write to MH i2c: E2 0D 00 11 30 80 0D 02 02 05 00 1B 3E D6 59 9D 00 00 EA [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 11 30 00 90 00 B5 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 03 02 [07:48:58]Write to MH i2c: E2 08 00 12 30 80 0D 03 02 00 00 00 00 BD [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0B 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0B 00 12 30 00 8E F4 4D 3D C2 8D 88 9A 90 00 3B [07:48:58]RAPDU: 8E F4 4D 3D C2 8D 88 9A 90 00 [07:48:58]wFMCommunicate OK [07:48:58]SAM_PROTO_SignData done [07:48:58]FM_MakeSignedData done [07:48:58]CreateOFDProtocolMessage [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 11 00 00 [07:48:58]Write to MH i2c: E2 08 00 13 30 80 11 00 00 00 00 00 00 BD [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 17 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 17 00 13 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [07:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:48:58]wFMCommunicate OK [07:48:58]CreateOFDProtocolMessage done [07:48:58]OFDSenderStorePacket 31065 [07:48:58]StoreOFDPacket docnum=31065 [07:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 09 50 07 01 6B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6D AA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 79 00 00 35 04 06 00 AA 1B 3E D6 59 9D 8E F4 4D 3D C2 8D 88 9A [07:48:58]CheckFolder [07:48:58]dirname=/storage/ofd_packets [07:48:58]CheckFolder done [07:48:58]ProducePacketName [07:48:58]name=ofd_packets/00031065 [07:48:58]NVStorageSaveData ofd_packets/00031065 [07:48:58]File name is /storage/ofd_packets/00031065 [07:48:58]Write 301 bytes [07:48:58]NVStorageSaveData done [07:48:58]OFDSenderStorePacket done [07:48:58]KKMCreateOFDPacket done [07:48:58]NVStorageSaveData kkm_last_timestamp [07:48:58]File name is /storage/kkm_last_timestamp [07:48:58]Write 4 bytes [07:48:58]NVStorageSaveData done [07:48:58]ExternCall_PrintAddStr [07:48:58]wPrintStart [07:48:58]Write to MH i2c: 01 00 00 14 30 44 [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 07 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 07 00 14 30 00 00 00 00 00 FF 0F 59 [07:48:58]RasterBufferAndPrint [07:48:58]line Счет N : (1)343503 [07:48:58]line ИНН: 02508201610067 [07:48:58]line Контрольно-Кассовый Чек [07:48:58]line ПРОДАЖА [07:48:58]line ТРК (МРК, ГНК) : 63 [07:48:58]line Товар: 2710124130 [07:48:58]line Аи-92-К-2 [07:48:58]line 7.480 * 66.90 [07:48:58]line = 500.41 [07:48:58]line НДС 12% НСП 1% [07:48:58]line > о реализуемом товаре [07:48:58]line ОКРУГЛЕНИЕ: -0.41 [07:48:58]line ИТОГО: 500.00 [07:48:58]line Внесено: 500.00 [07:48:58]line СДАЧА: 0.00 [07:48:58]line НСП 1% : 4.43 [07:48:58]line НДС 12% : 53.14 [07:48:58]line Наличными: 500.00 [07:48:58]line Безнал.: 0.00 [07:48:58]line Место: АЗС № 78 "Партнер Нефть" [07:48:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:48:58]line СНО: Общий режим [07:48:58]line Чек 9 23.10.2024 07:49 [07:48:58]line Смена: 117 ФФД: 1.0 [07:48:58]line ЗНМ: 0300000137 [07:48:58]line РНМ: 0000000000186857 [07:48:58]line Версия ККМ: v1.0 [07:48:58]line ФМ: 0000000002094219 [07:48:58]line ФД: 31065 [07:48:58]line ФПД: 187033995073949 [07:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074901&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31065&fm=187033995073949&tin=02508201610067®Number=0000000000186857&sum=50000 [07:48:58]OFD Sender: Processing packet 31065 [packets to send 11, broken 10] [07:48:58]ProducePacketName [07:48:58]name=ofd_packets/00031065 [07:48:58]OFD Sender: To server: pG, [07:48:58]CommunicateWithHost lk.salyk.kg:30040 [07:48:58]ConnectInit lk.salyk.kg [07:48:58]written 0, free lines is 4095 [07:48:58]Connected sock=10 [07:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 09 50 07 01 6B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6D AA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 79 00 00 35 04 06 00 AA 1B 3E D6 59 9D 8E F4 4D 3D C2 8D 88 9A [07:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D7 93 47 00 E5 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 79 00 00 F4 03 04 00 E8 54 18 67 B6 04 01 00 00 56 99 DD D6 EF ED 7F A3 [07:48:58]CommunicateWithHost err = 0 [07:48:58]CheckOFDResponse [07:48:58]1017 (14) - 77093643461234 [07:48:58]1041 (16) - 0000000002094219 [07:48:58]1040 (4) - 31065 [07:48:58]1012 (4) - 23.10.2024 01:44 [07:48:58]1206 (1) - 0 [07:48:58]OFD Sender: Remove packet 31065 [07:48:58]ProducePacketName [07:48:58]name=ofd_packets/00031065 [07:48:58]NVStorageDeleteData [07:48:59]Write to MH i2c: 01 00 00 3F 30 6F [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 3F 30 00 00 00 00 00 F3 0C 75 [07:48:59]RasterBufferAndPrint [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]written 0, free lines is 3321 [07:48:59]MH_Cut [07:48:59]Write to MH i2c: D1 01 00 46 30 01 48 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 01 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 01 00 46 30 00 47 [07:48:59]Write to MH i2c: 01 00 00 47 30 77 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]OFD Sender: No OFD packet to send [07:48:59]*** Cut start [07:48:59]*** Partial cut [07:48:59]*** CUTSNS_PIN = 1 [07:48:59]*** CUTSNS_PIN = 0 [07:48:59]*** Brake cut motor [07:49:00]Read from MH i2c: 01 [07:49:00]MH_I2C_Read... [07:49:00]*** Stop cut motor [07:49:00]*** Cut end [07:49:00]Read from MH i2c: 01 07 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 07 00 47 30 00 00 00 00 00 FF 0F 8C [07:49:00]process_action close_receipt done [07:49:00]requested_data is exist [07:49:00]produce_requested_data [07:49:00]requested_item fm.sn is exist - process it [07:49:00]wFMCommunicate request_size=4 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 11 00 00 [07:49:00]Write to MH i2c: E2 08 00 48 30 80 11 00 00 00 00 00 00 F2 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 17 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 17 00 48 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [07:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:49:00]wFMCommunicate OK [07:49:00]requested_item fd.num is exist - process it [07:49:00]SAM_PROTO_GetFieldsCounters [07:49:00]wFMCommunicate request_size=4 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 13 00 00 [07:49:00]Write to MH i2c: E2 08 00 49 30 80 13 00 00 00 00 00 00 F5 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 62 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 62 00 49 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 79 00 00 0E 04 04 00 75 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 7D [07:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 79 00 00 0E 04 04 00 75 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:49:00]wFMCommunicate OK [07:49:00]SAM_PROTO_GetFieldsCounters done [07:49:00]requested_item shift.num is exist - process it [07:49:00]requested_item shift.opened is exist - process it [07:49:00]req_shift_opened [07:49:00]FM_GetShiftState [07:49:00]SAM_PROTO_GetShiftState [07:49:00]wFMCommunicate request_size=4 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 13 01 00 [07:49:00]Write to MH i2c: E2 08 00 4A 30 80 13 01 00 00 00 00 00 F7 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 0E 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 0E 00 4A 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B1 [07:49:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [07:49:00]wFMCommunicate OK [07:49:00]SAM_PROTO_GetShiftState done [07:49:00]FM_GetShiftState done [07:49:00]req_shift_opened done [07:49:00]requested_item shift.open_date is exist - process it [07:49:00]req_shift_open_date [07:49:00]req_shift_open_date done [07:49:00]produce_requested_data done [07:49:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31065,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [07:49:00]process_action_free close_receipt [07:49:00]json_value_free [07:49:00]json_value_free done [07:49:00]process_json_proto returns [07:49:00]Send response to host [07:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31065,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [07:49:00]free response buf [07:49:00]execute_script done [07:49:00]execute_script returns [07:49:00]free content buf [07:49:00]Sock 9.Close socket [07:49:00]Sock 9.Thread stoped [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:01:55]accept exits with 7 [08:01:55]New connection [08:01:55]New thread 3066899812 created [08:01:55]Thread 3067043172 joined [08:01:55]Waiting for new connection... [08:01:55] Sock 7.Parse request [08:01:55]Sock 7.Check first char [08:01:55]Sock 7.First char is OK [08:01:55]request: POST /json_proto HTTP/1.0 [08:01:55]Method: POST [08:01:55]URL: /json_proto [08:01:55]Method is POST - this is cgi request [08:01:55]url: /json_proto [08:01:55]query_string will be loaded in cgi processing [08:01:55]execute_cgi json_proto POST (null) [08:01:55]execute_cgi path=json_proto method=POST [08:01:55]POST find Content-Length [08:01:55]Host: 172.17.51.3:8080 [08:01:55]Content-Length: 677 [08:01:55]Content-Type: application/json [08:01:55] [08:01:55]POST finish read [08:01:55]Found Content-Length = 677 [08:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:55]execute_script... [08: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 : (1)343504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:55]POST & json_proto [08:01:55]process_json_proto [08:01:55]json parsed OK: [08:01:55]protocol is kg_v1.0 [08:01:55]action value=close_receipt [08:01:55]process_action close_receipt [08:01:55]cmd_close_receipt [08:01:55]MH_GetDate [08:01:55]Write to MH i2c: F0 00 00 4B 30 6A [08:01:55]Write i2c OK [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 09 00 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 09 00 4B 30 00 78 AD 18 67 04 C1 95 66 D7 [08:01:55]GetLastDocTimeStamp 1729669741 [08:01:55]current date 1729670520 [08:01:55]FM_GetShiftState [08:01:55]SAM_PROTO_GetShiftState [08:01:55]wFMCommunicate request_size=4 [08:01:55]MH_SAM_APDU [08:01:55]CAPDU: 80 13 01 00 [08:01:55]Write to MH i2c: E2 08 00 4C 30 80 13 01 00 00 00 00 00 F9 [08:01:55]Write i2c OK [08:01:55]MH_I2C_Read... [08:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:55]Read from MH i2c: E2 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: E2 0E 00 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: E2 0E 00 4C 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B3 [08:01:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:01:55]wFMCommunicate OK [08:01:55]SAM_PROTO_GetShiftState done [08:01:55]FM_GetShiftState done [08:01:55]opened in 1729643755 [08:01:55]opened+sec_in_day 1729730155 [08:01:55]quantity*price = 30038 [08:01:55]sum+1 = 30039 [08:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 10 23.10.2024 08:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31066 ФПД: 67244070680273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080200&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31066&fm=67244070680273&tin=02508201610067®Number=0000000000186857&sum=30000 [08:01:56]StoreToDocumentArchive [08:01:56]shift 117 fd 31066 [08:01:56]save to /storage/0117/doc_00031066 [08:01:56]save last doc name /storage/0117/doc_00031066 to /storage/kkm_last_doc_name [08:01:56]save OK [08:01:56]Clear old archive folders... [08:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:56]tlvbuf is 00CC50E0 [08:01:56]SAM_PROTO_ClearQueue [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 09 00 00 [08:01:56]Write to MH i2c: E2 08 00 59 30 80 09 00 00 00 00 00 00 FB [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 59 30 00 90 00 FD [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]SAM_PROTO_ClearQueue done [08:01:57]KKMCreateOFDPacket [08:01:57]OFDProtocolAddRootSTLVToBuf [08:01:57]FM_MakeSignedData [08:01:57]FM_MakeSignedData [08:01:57]SAM_PROTO_SignData [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 01 02 [08:01:57]Write to MH i2c: E2 08 00 5A 30 80 0D 01 02 00 00 00 00 03 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 5A 30 00 90 00 FE [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=255 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 78 AD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 79 00 00 35 04 06 00 3D [08:01:57]Write to MH i2c: E2 02 01 5B 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 78 AD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 79 00 00 35 04 06 00 3D 00 00 BB [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 5B 30 00 90 00 FF [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=10 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 02 02 05 28 7A F2 36 D1 [08:01:57]Write to MH i2c: E2 0D 00 5C 30 80 0D 02 02 05 00 28 7A F2 36 D1 00 00 AB [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 5C 30 00 90 00 00 [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 03 02 [08:01:57]Write to MH i2c: E2 08 00 5D 30 80 0D 03 02 00 00 00 00 08 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 5D 30 00 97 FC 01 2B 83 46 89 2A 90 00 44 [08:01:57]RAPDU: 97 FC 01 2B 83 46 89 2A 90 00 [08:01:57]wFMCommunicate OK [08:01:57]SAM_PROTO_SignData done [08:01:57]FM_MakeSignedData done [08:01:57]CreateOFDProtocolMessage [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 11 00 00 [08:01:57]Write to MH i2c: E2 08 00 5E 30 80 11 00 00 00 00 00 00 08 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 5E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [08:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:01:57]wFMCommunicate OK [08:01:57]CreateOFDProtocolMessage done [08:01:57]OFDSenderStorePacket 31066 [08:01:57]StoreOFDPacket docnum=31066 [08:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 78 07 01 44 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 78 AD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 79 00 00 35 04 06 00 3D 28 7A F2 36 D1 97 FC 01 2B 83 46 89 2A [08:01:57]CheckFolder [08:01:57]dirname=/storage/ofd_packets [08:01:57]CheckFolder done [08:01:57]ProducePacketName [08:01:57]name=ofd_packets/00031066 [08:01:57]NVStorageSaveData ofd_packets/00031066 [08:01:57]File name is /storage/ofd_packets/00031066 [08:01:57]Write 301 bytes [08:01:57]NVStorageSaveData done [08:01:57]OFDSenderStorePacket done [08:01:57]KKMCreateOFDPacket done [08:01:57]NVStorageSaveData kkm_last_timestamp [08:01:57]File name is /storage/kkm_last_timestamp [08:01:57]Write 4 bytes [08:01:57]NVStorageSaveData done [08:01:57]ExternCall_PrintAddStr [08:01:57]wPrintStart [08:01:57]Write to MH i2c: 01 00 00 5F 30 8F [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 5F 30 00 00 00 00 00 FF 0F A4 [08:01:57]RasterBufferAndPrint [08:01:57]line Счет N : (1)343504 [08:01:57]line ИНН: 02508201610067 [08:01:57]line Контрольно-Кассовый Чек [08:01:57]line ПРОДАЖА [08:01:57]line ТРК (МРК, ГНК) : 63 [08:01:57]line Товар: 2710124130 [08:01:57]line Аи-92-К-2 [08:01:57]line 4.490 * 66.90 [08:01:57]line = 300.38 [08:01:57]line НДС 12% НСП 1% [08:01:57]line > о реализуемом товаре [08:01:57]line ОКРУГЛЕНИЕ: -0.38 [08:01:57]line ИТОГО: 300.00 [08:01:57]line Внесено: 300.00 [08:01:57]line СДАЧА: 0.00 [08:01:57]line НСП 1% : 2.66 [08:01:57]line НДС 12% : 31.90 [08:01:57]line Наличными: 300.00 [08:01:57]line Безнал.: 0.00 [08:01:57]line Место: АЗС № 78 "Партнер Нефть" [08:01:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:01:57]line СНО: Общий режим [08:01:57]line Чек 10 23.10.2024 08:02 [08:01:57]line Смена: 117 ФФД: 1.0 [08:01:57]line ЗНМ: 0300000137 [08:01:57]line РНМ: 0000000000186857 [08:01:57]line Версия ККМ: v1.0 [08:01:57]line ФМ: 0000000002094219 [08:01:57]line ФД: 31066 [08:01:57]line ФПД: 67244070680273 [08:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080200&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31066&fm=67244070680273&tin=02508201610067®Number=0000000000186857&sum=30000 [08:01:57]OFD Sender: Processing packet 31066 [packets to send 11, broken 10] [08:01:57]ProducePacketName [08:01:57]name=ofd_packets/00031066 [08:01:57]OFD Sender: To server: pG, [08:01:57]CommunicateWithHost lk.salyk.kg:30040 [08:01:57]ConnectInit lk.salyk.kg [08:01:57]written 0, free lines is 4095 [08:01:57]Connected sock=10 [08:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 78 07 01 44 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 78 AD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 79 00 00 35 04 06 00 3D 28 7A F2 36 D1 97 FC 01 2B 83 46 89 2A [08:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D9 CB 47 00 70 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 79 00 00 F4 03 04 00 F3 57 18 67 B6 04 01 00 00 5A 30 14 F9 BE 0A B4 FE [08:01:58]CommunicateWithHost err = 0 [08:01:58]CheckOFDResponse [08:01:58]1017 (14) - 77093643461234 [08:01:58]1041 (16) - 0000000002094219 [08:01:58]1040 (4) - 31066 [08:01:58]1012 (4) - 23.10.2024 01:57 [08:01:58]1206 (1) - 0 [08:01:58]OFD Sender: Remove packet 31066 [08:01:58]ProducePacketName [08:01:58]name=ofd_packets/00031066 [08:01:58]NVStorageDeleteData [08:01:58]Write to MH i2c: 01 00 00 8A 30 BA [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 8A 30 00 00 00 00 00 E4 0C B1 [08:01:58]RasterBufferAndPrint [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]written 0, free lines is 3306 [08:01:58]MH_Cut [08:01:58]Write to MH i2c: D1 01 00 91 30 01 93 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 91 30 00 92 [08:01:58]Write to MH i2c: 01 00 00 92 30 C2 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]OFD Sender: No OFD packet to send [08:01:58]*** Cut start [08:01:58]*** Partial cut [08:01:58]*** CUTSNS_PIN = 1 [08:01:59]*** CUTSNS_PIN = 0 [08:01:59]*** Brake cut motor [08:01:59]Read from MH i2c: 01 [08:01:59]MH_I2C_Read... [08:01:59]*** Stop cut motor [08:01:59]*** Cut end [08:01:59]Read from MH i2c: 01 07 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 07 00 92 30 00 00 00 00 00 FF 0F D7 [08:01:59]process_action close_receipt done [08:01:59]requested_data is exist [08:01:59]produce_requested_data [08:01:59]requested_item fm.sn is exist - process it [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 11 00 00 [08:01:59]Write to MH i2c: E2 08 00 93 30 80 11 00 00 00 00 00 00 3D [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 93 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [08:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:01:59]wFMCommunicate OK [08:01:59]requested_item fd.num is exist - process it [08:01:59]SAM_PROTO_GetFieldsCounters [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 00 00 [08:01:59]Write to MH i2c: E2 08 00 94 30 80 13 00 00 00 00 00 00 40 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 94 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 79 00 00 0E 04 04 00 75 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 CC [08:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetFieldsCounters done [08:01:59]requested_item shift.num is exist - process it [08:01:59]requested_item shift.opened is exist - process it [08:01:59]req_shift_opened [08:01:59]FM_GetShiftState [08:01:59]SAM_PROTO_GetShiftState [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 01 00 [08:01:59]Write to MH i2c: E2 08 00 95 30 80 13 01 00 00 00 00 00 42 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 95 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FC [08:01:59]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetShiftState done [08:01:59]FM_GetShiftState done [08:01:59]req_shift_opened done [08:01:59]requested_item shift.open_date is exist - process it [08:01:59]req_shift_open_date [08:01:59]req_shift_open_date done [08:01:59]produce_requested_data done [08:01:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31066,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:01:59]process_action_free close_receipt [08:01:59]json_value_free [08:01:59]json_value_free done [08:01:59]process_json_proto returns [08:01:59]Send response to host [08:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31066,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:01:59]free response buf [08:01:59]execute_script done [08:01:59]execute_script returns [08:01:59]free content buf [08:01:59]Sock 7.Close socket [08:01:59]Sock 7.Thread stoped [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:52]accept exits with 9 [08:06:52]New connection [08:06:52]New thread 3067043172 created [08:06:52]Thread 3066899812 joined [08:06:52]Waiting for new connection... [08:06:52] Sock 9.Parse request [08:06:52]Sock 9.Check first char [08:06:52]Sock 9.First char is OK [08:06:52]request: POST /json_proto HTTP/1.0 [08:06:52]Method: POST [08:06:52]URL: /json_proto [08:06:52]Method is POST - this is cgi request [08:06:52]url: /json_proto [08:06:52]query_string will be loaded in cgi processing [08:06:52]execute_cgi json_proto POST (null) [08:06:52]execute_cgi path=json_proto method=POST [08:06:52]POST find Content-Length [08:06:52]Host: 172.17.51.3:8080 [08:06:52]Content-Length: 677 [08:06:52]Content-Type: application/json [08:06:52] [08:06:52]POST finish read [08:06:52]Found Content-Length = 677 [08:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:52]execute_script... [08:06:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:52]POST & json_proto [08:06:52]process_json_proto [08:06:52]json parsed OK: [08:06:52]protocol is kg_v1.0 [08:06:52]action value=close_receipt [08:06:52]process_action close_receipt [08:06:52]cmd_close_receipt [08:06:52]MH_GetDate [08:06:52]Write to MH i2c: F0 00 00 96 30 B5 [08:06:52]Write i2c OK [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: F0 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: F0 09 00 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: F0 09 00 96 30 00 A1 AE 18 67 04 C1 95 66 4C [08:06:52]GetLastDocTimeStamp 1729670520 [08:06:52]current date 1729670817 [08:06:52]FM_GetShiftState [08:06:52]SAM_PROTO_GetShiftState [08:06:52]wFMCommunicate request_size=4 [08:06:52]MH_SAM_APDU [08:06:52]CAPDU: 80 13 01 00 [08:06:52]Write to MH i2c: E2 08 00 97 30 80 13 01 00 00 00 00 00 44 [08:06:52]Write i2c OK [08:06:52]MH_I2C_Read... [08:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:52]Read from MH i2c: E2 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: E2 0E 00 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: E2 0E 00 97 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FE [08:06:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:06:52]wFMCommunicate OK [08:06:52]SAM_PROTO_GetShiftState done [08:06:52]FM_GetShiftState done [08:06:52]opened in 1729643755 [08:06:52]opened+sec_in_day 1729730155 [08:06:52]quantity*price = 30038 [08:06:52]sum+1 = 30039 [08:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 11 23.10.2024 08:06 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31067 ФПД: 161117106324282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31067&fm=161117106324282&tin=02508201610067®Number=0000000000186857&sum=30000 [08:06:53]StoreToDocumentArchive [08:06:53]shift 117 fd 31067 [08:06:53]save to /storage/0117/doc_00031067 [08:06:53]save last doc name /storage/0117/doc_00031067 to /storage/kkm_last_doc_name [08:06:53]save OK [08:06:53]Clear old archive folders... [08:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:53]tlvbuf is 00D60A00 [08:06:53]SAM_PROTO_ClearQueue [08:06:53]wFMCommunicate request_size=4 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 09 00 00 [08:06:53]Write to MH i2c: E2 08 00 A4 30 80 09 00 00 00 00 00 00 46 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 A4 30 00 90 00 48 [08:06:53]RAPDU: 90 00 [08:06:53]wFMCommunicate OK [08:06:53]SAM_PROTO_ClearQueue done [08:06:53]KKMCreateOFDPacket [08:06:53]OFDProtocolAddRootSTLVToBuf [08:06:53]FM_MakeSignedData [08:06:53]FM_MakeSignedData [08:06:53]SAM_PROTO_SignData [08:06:53]wFMCommunicate request_size=4 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 0D 01 02 [08:06:53]Write to MH i2c: E2 08 00 A5 30 80 0D 01 02 00 00 00 00 4E [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 A5 30 00 90 00 49 [08:06:53]RAPDU: 90 00 [08:06:53]wFMCommunicate OK [08:06:53]wFMCommunicate request_size=255 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A1 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 79 00 00 35 04 06 00 92 [08:06:53]Write to MH i2c: E2 02 01 A6 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A1 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 79 00 00 35 04 06 00 92 00 00 87 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]OFD Sender: No OFD packet to send [08:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:54]Read from MH i2c: E2 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 03 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 03 00 A6 30 00 90 00 4A [08:06:54]RAPDU: 90 00 [08:06:54]wFMCommunicate OK [08:06:54]wFMCommunicate request_size=10 [08:06:54]MH_SAM_APDU [08:06:54]CAPDU: 80 0D 02 02 05 88 FF E3 C3 3A [08:06:54]Write to MH i2c: E2 0D 00 A7 30 80 0D 02 02 05 00 88 FF E3 C3 3A 00 00 C2 [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:54]Read from MH i2c: E2 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 03 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 03 00 A7 30 00 90 00 4B [08:06:54]RAPDU: 90 00 [08:06:54]wFMCommunicate OK [08:06:54]wFMCommunicate request_size=4 [08:06:54]MH_SAM_APDU [08:06:54]CAPDU: 80 0D 03 02 [08:06:54]Write to MH i2c: E2 08 00 A8 30 80 0D 03 02 00 00 00 00 53 [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:54]Read from MH i2c: E2 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 0B 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 0B 00 A8 30 00 64 22 3A 35 DC 5E 8B 6F 90 00 7D [08:06:54]RAPDU: 64 22 3A 35 DC 5E 8B 6F 90 00 [08:06:54]wFMCommunicate OK [08:06:54]SAM_PROTO_SignData done [08:06:54]FM_MakeSignedData done [08:06:54]CreateOFDProtocolMessage [08:06:54]wFMCommunicate request_size=4 [08:06:54]MH_SAM_APDU [08:06:54]CAPDU: 80 11 00 00 [08:06:54]Write to MH i2c: E2 08 00 A9 30 80 11 00 00 00 00 00 00 53 [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:54]Read from MH i2c: E2 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 17 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: E2 17 00 A9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [08:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:54]wFMCommunicate OK [08:06:54]CreateOFDProtocolMessage done [08:06:54]OFDSenderStorePacket 31067 [08:06:54]StoreOFDPacket docnum=31067 [08:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 74 07 01 42 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A1 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 79 00 00 35 04 06 00 92 88 FF E3 C3 3A 64 22 3A 35 DC 5E 8B 6F [08:06:54]CheckFolder [08:06:54]dirname=/storage/ofd_packets [08:06:54]CheckFolder done [08:06:54]ProducePacketName [08:06:54]name=ofd_packets/00031067 [08:06:54]NVStorageSaveData ofd_packets/00031067 [08:06:54]File name is /storage/ofd_packets/00031067 [08:06:54]Write 301 bytes [08:06:54]NVStorageSaveData done [08:06:54]OFDSenderStorePacket done [08:06:54]KKMCreateOFDPacket done [08:06:54]NVStorageSaveData kkm_last_timestamp [08:06:54]File name is /storage/kkm_last_timestamp [08:06:54]Write 4 bytes [08:06:54]NVStorageSaveData done [08:06:54]ExternCall_PrintAddStr [08:06:54]wPrintStart [08:06:54]Write to MH i2c: 01 00 00 AA 30 DA [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 07 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 07 00 AA 30 00 00 00 00 00 FF 0F EF [08:06:54]RasterBufferAndPrint [08:06:54]line Счет N : (1)343505 [08:06:54]line ИНН: 02508201610067 [08:06:54]line Контрольно-Кассовый Чек [08:06:54]line ПРОДАЖА [08:06:54]line ТРК (МРК, ГНК) : 53 [08:06:54]line Товар: 2710124130 [08:06:54]line Аи-92-К-2 [08:06:54]line 4.490 * 66.90 [08:06:54]line = 300.38 [08:06:54]line НДС 12% НСП 1% [08:06:54]line > о реализуемом товаре [08:06:54]line ОКРУГЛЕНИЕ: -0.38 [08:06:54]line ИТОГО: 300.00 [08:06:54]line Внесено: 300.00 [08:06:54]line СДАЧА: 0.00 [08:06:54]line НСП 1% : 2.66 [08:06:54]line НДС 12% : 31.90 [08:06:54]line Наличными: 300.00 [08:06:54]line Безнал.: 0.00 [08:06:54]line Место: АЗС № 78 "Партнер Нефть" [08:06:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:06:54]line СНО: Общий режим [08:06:54]line Чек 11 23.10.2024 08:06 [08:06:54]line Смена: 117 ФФД: 1.0 [08:06:54]line ЗНМ: 0300000137 [08:06:54]line РНМ: 0000000000186857 [08:06:54]line Версия ККМ: v1.0 [08:06:54]line ФМ: 0000000002094219 [08:06:54]line ФД: 31067 [08:06:54]line ФПД: 161117106324282 [08:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31067&fm=161117106324282&tin=02508201610067®Number=0000000000186857&sum=30000 [08:06:54]OFD Sender: Processing packet 31067 [packets to send 11, broken 10] [08:06:54]ProducePacketName [08:06:54]name=ofd_packets/00031067 [08:06:54]OFD Sender: To server: pG, [08:06:54]CommunicateWithHost lk.salyk.kg:30040 [08:06:54]ConnectInit lk.salyk.kg [08:06:54]written 0, free lines is 4095 [08:06:54]Connected sock=10 [08:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 74 07 01 42 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A1 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 79 00 00 35 04 06 00 92 88 FF E3 C3 3A 64 22 3A 35 DC 5E 8B 6F [08:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C2 51 47 00 E9 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 79 00 00 F4 03 04 00 1C 59 18 67 B6 04 01 00 00 2B 52 5E 86 03 39 49 CA [08:06:54]CommunicateWithHost err = 0 [08:06:54]CheckOFDResponse [08:06:54]1017 (14) - 77093643461234 [08:06:54]1041 (16) - 0000000002094219 [08:06:54]1040 (4) - 31067 [08:06:54]1012 (4) - 23.10.2024 02:02 [08:06:54]1206 (1) - 0 [08:06:54]OFD Sender: Remove packet 31067 [08:06:54]ProducePacketName [08:06:54]name=ofd_packets/00031067 [08:06:54]NVStorageDeleteData [08:06:55]Write to MH i2c: 01 00 00 D5 30 05 [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: 01 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: 01 07 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 F0 0C 08 [08:06:55]RasterBufferAndPrint [08:06:55]line [08:06:55]line [08:06:55]line [08:06:55]line [08:06:55]line [08:06:55]written 0, free lines is 3321 [08:06:55]MH_Cut [08:06:55]Write to MH i2c: D1 01 00 DC 30 01 DE [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: D1 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: D1 01 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: D1 01 00 DC 30 00 DD [08:06:55]Write to MH i2c: 01 00 00 DD 30 0D [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]OFD Sender: No OFD packet to send [08:06:55]*** Cut start [08:06:55]*** Partial cut [08:06:55]*** CUTSNS_PIN = 1 [08:06:55]*** CUTSNS_PIN = 0 [08:06:55]*** Brake cut motor [08:06:56]Read from MH i2c: 01 [08:06:56]MH_I2C_Read... [08:06:56]*** Stop cut motor [08:06:56]*** Cut end [08:06:56]Read from MH i2c: 01 07 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: 01 07 00 DD 30 00 00 00 00 00 FF 0F 22 [08:06:56]process_action close_receipt done [08:06:56]requested_data is exist [08:06:56]produce_requested_data [08:06:56]requested_item fm.sn is exist - process it [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 11 00 00 [08:06:56]Write to MH i2c: E2 08 00 DE 30 80 11 00 00 00 00 00 00 88 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 17 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 17 00 DE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [08:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:56]wFMCommunicate OK [08:06:56]requested_item fd.num is exist - process it [08:06:56]SAM_PROTO_GetFieldsCounters [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 13 00 00 [08:06:56]Write to MH i2c: E2 08 00 DF 30 80 13 00 00 00 00 00 00 8B [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 62 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 62 00 DF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 79 00 00 0E 04 04 00 75 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 1B [08:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:56]wFMCommunicate OK [08:06:56]SAM_PROTO_GetFieldsCounters done [08:06:56]requested_item shift.num is exist - process it [08:06:56]requested_item shift.opened is exist - process it [08:06:56]req_shift_opened [08:06:56]FM_GetShiftState [08:06:56]SAM_PROTO_GetShiftState [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 13 01 00 [08:06:56]Write to MH i2c: E2 08 00 E0 30 80 13 01 00 00 00 00 00 8D [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 0E 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 0E 00 E0 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 47 [08:06:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:06:56]wFMCommunicate OK [08:06:56]SAM_PROTO_GetShiftState done [08:06:56]FM_GetShiftState done [08:06:56]req_shift_opened done [08:06:56]requested_item shift.open_date is exist - process it [08:06:56]req_shift_open_date [08:06:56]req_shift_open_date done [08:06:56]produce_requested_data done [08:06:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31067,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:06:56]process_action_free close_receipt [08:06:56]json_value_free [08:06:56]json_value_free done [08:06:56]process_json_proto returns [08:06:56]Send response to host [08:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31067,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:06:56]free response buf [08:06:56]execute_script done [08:06:56]execute_script returns [08:06:56]free content buf [08:06:56]Sock 9.Close socket [08:06:56]Sock 9.Thread stoped [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:54]accept exits with 7 [08:07:54]New connection [08:07:54]New thread 3066899812 created [08:07:54]Thread 3067043172 joined [08:07:54]Waiting for new connection... [08:07:54] Sock 7.Parse request [08:07:54]Sock 7.Check first char [08:07:54]Sock 7.First char is OK [08:07:54]request: POST /json_proto HTTP/1.0 [08:07:54]Method: POST [08:07:54]URL: /json_proto [08:07:54]Method is POST - this is cgi request [08:07:54]url: /json_proto [08:07:54]query_string will be loaded in cgi processing [08:07:54]execute_cgi json_proto POST (null) [08:07:54]execute_cgi path=json_proto method=POST [08:07:54]POST find Content-Length [08:07:54]Host: 172.17.51.3:8080 [08:07:54]Content-Length: 677 [08:07:54]Content-Type: application/json [08:07:54] [08:07:54]POST finish read [08:07:54]Found Content-Length = 677 [08:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:54]execute_script... [08:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:54]POST & json_proto [08:07:54]process_json_proto [08:07:54]json parsed OK: [08:07:54]protocol is kg_v1.0 [08:07:54]action value=close_receipt [08:07:54]process_action close_receipt [08:07:54]cmd_close_receipt [08:07:54]MH_GetDate [08:07:54]Write to MH i2c: F0 00 00 E1 30 00 [08:07:54]Write i2c OK [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: F0 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: F0 09 00 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: F0 09 00 E1 30 00 E0 AE 18 67 04 C1 95 66 D6 [08:07:54]GetLastDocTimeStamp 1729670817 [08:07:54]current date 1729670880 [08:07:54]FM_GetShiftState [08:07:54]SAM_PROTO_GetShiftState [08:07:54]wFMCommunicate request_size=4 [08:07:54]MH_SAM_APDU [08:07:54]CAPDU: 80 13 01 00 [08:07:54]Write to MH i2c: E2 08 00 E2 30 80 13 01 00 00 00 00 00 8F [08:07:54]Write i2c OK [08:07:54]MH_I2C_Read... [08:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:54]Read from MH i2c: E2 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: E2 0E 00 [08:07:54]MH_I2C_Read... [08:07:54]Read from MH i2c: E2 0E 00 E2 30 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 49 [08:07:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:07:54]wFMCommunicate OK [08:07:54]SAM_PROTO_GetShiftState done [08:07:54]FM_GetShiftState done [08:07:54]opened in 1729643755 [08:07:54]opened+sec_in_day 1729730155 [08:07:54]quantity*price = 13045 [08:07:54]sum+1 = 13047 [08:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 12 23.10.2024 08:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31068 ФПД: 1924254575347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31068&fm=1924254575347&tin=02508201610067®Number=0000000000186857&sum=13000 [08:07:56]StoreToDocumentArchive [08:07:56]shift 117 fd 31068 [08:07:56]save to /storage/0117/doc_00031068 [08:07:56]save last doc name /storage/0117/doc_00031068 to /storage/kkm_last_doc_name [08:07:56]save OK [08:07:56]Clear old archive folders... [08:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:56]tlvbuf is 00CD66E0 [08:07:56]SAM_PROTO_ClearQueue [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 09 00 00 [08:07:56]Write to MH i2c: E2 08 00 EF 30 80 09 00 00 00 00 00 00 91 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]SAM_PROTO_ClearQueue done [08:07:56]KKMCreateOFDPacket [08:07:56]OFDProtocolAddRootSTLVToBuf [08:07:56]FM_MakeSignedData [08:07:56]FM_MakeSignedData [08:07:56]SAM_PROTO_SignData [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 01 02 [08:07:56]Write to MH i2c: E2 08 00 F0 30 80 0D 01 02 00 00 00 00 99 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=255 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 0C 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 79 00 00 35 04 06 00 01 [08:07:56]Write to MH i2c: E2 02 01 F1 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 0C 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 79 00 00 35 04 06 00 01 00 00 E7 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 F1 30 00 90 00 95 [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=10 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 02 02 05 C0 06 82 AA F3 [08:07:56]Write to MH i2c: E2 0D 00 F2 30 80 0D 02 02 05 00 C0 06 82 AA F3 00 00 8B [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 F2 30 00 90 00 96 [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 03 02 [08:07:56]Write to MH i2c: E2 08 00 F3 30 80 0D 03 02 00 00 00 00 9E [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 0B 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 0B 00 F3 30 00 77 0D 85 F4 5F 03 66 28 90 00 8C [08:07:56]RAPDU: 77 0D 85 F4 5F 03 66 28 90 00 [08:07:56]wFMCommunicate OK [08:07:56]SAM_PROTO_SignData done [08:07:56]FM_MakeSignedData done [08:07:56]CreateOFDProtocolMessage [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 11 00 00 [08:07:56]Write to MH i2c: E2 08 00 F4 30 80 11 00 00 00 00 00 00 9E [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 17 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 17 00 F4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [08:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:07:56]wFMCommunicate OK [08:07:56]CreateOFDProtocolMessage done [08:07:56]OFDSenderStorePacket 31068 [08:07:56]StoreOFDPacket docnum=31068 [08:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 15 07 01 2C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 0C 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 79 00 00 35 04 06 00 01 C0 06 82 AA F3 77 0D 85 F4 5F 03 66 28 [08:07:56]CheckFolder [08:07:56]dirname=/storage/ofd_packets [08:07:56]CheckFolder done [08:07:56]ProducePacketName [08:07:56]name=ofd_packets/00031068 [08:07:56]NVStorageSaveData ofd_packets/00031068 [08:07:56]File name is /storage/ofd_packets/00031068 [08:07:56]Write 301 bytes [08:07:56]NVStorageSaveData done [08:07:56]OFDSenderStorePacket done [08:07:56]KKMCreateOFDPacket done [08:07:56]NVStorageSaveData kkm_last_timestamp [08:07:56]File name is /storage/kkm_last_timestamp [08:07:56]Write 4 bytes [08:07:56]NVStorageSaveData done [08:07:56]ExternCall_PrintAddStr [08:07:56]wPrintStart [08:07:56]Write to MH i2c: 01 00 00 F5 30 25 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 07 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 07 00 F5 30 00 00 00 00 00 FF 0F 3A [08:07:56]RasterBufferAndPrint [08:07:56]line Счет N : (1)343507 [08:07:56]line ИНН: 02508201610067 [08:07:56]line Контрольно-Кассовый Чек [08:07:56]line ПРОДАЖА [08:07:56]line ТРК (МРК, ГНК) : 33 [08:07:56]line Товар: 2710124130 [08:07:56]line Аи-92-К-2 [08:07:56]line 1.950 * 66.90 [08:07:56]line = 130.46 [08:07:56]line НДС 12% НСП 1% [08:07:56]line > о реализуемом товаре [08:07:56]line ОКРУГЛЕНИЕ: -0.46 [08:07:56]line ИТОГО: 130.00 [08:07:56]line Внесено: 130.00 [08:07:56]line СДАЧА: 0.00 [08:07:56]line НСП 1% : 1.15 [08:07:56]line НДС 12% : 13.85 [08:07:56]line Наличными: 130.00 [08:07:56]line Безнал.: 0.00 [08:07:56]line Место: АЗС № 78 "Партнер Нефть" [08:07:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:07:56]line СНО: Общий режим [08:07:56]line Чек 12 23.10.2024 08:08 [08:07:56]line Смена: 117 ФФД: 1.0 [08:07:56]line ЗНМ: 0300000137 [08:07:56]line РНМ: 0000000000186857 [08:07:56]line Версия ККМ: v1.0 [08:07:56]line ФМ: 0000000002094219 [08:07:56]line ФД: 31068 [08:07:56]line ФПД: 1924254575347 [08:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31068&fm=1924254575347&tin=02508201610067®Number=0000000000186857&sum=13000 [08:07:56]OFD Sender: Processing packet 31068 [packets to send 11, broken 10] [08:07:56]ProducePacketName [08:07:56]name=ofd_packets/00031068 [08:07:56]OFD Sender: To server: pG, [08:07:56]CommunicateWithHost lk.salyk.kg:30040 [08:07:56]ConnectInit lk.salyk.kg [08:07:56]written 0, free lines is 4095 [08:07:57]Connected sock=10 [08:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 15 07 01 2C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 0C 00 00 00 F4 03 04 00 E0 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 79 00 00 35 04 06 00 01 C0 06 82 AA F3 77 0D 85 F4 5F 03 66 28 [08:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C2 B3 47 00 D3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 79 00 00 F4 03 04 00 5B 59 18 67 B6 04 01 00 00 77 AD 68 59 E8 47 A8 11 [08:07:57]CommunicateWithHost err = 0 [08:07:57]CheckOFDResponse [08:07:57]1017 (14) - 77093643461234 [08:07:57]1041 (16) - 0000000002094219 [08:07:57]1040 (4) - 31068 [08:07:57]1012 (4) - 23.10.2024 02:03 [08:07:57]1206 (1) - 0 [08:07:57]OFD Sender: Remove packet 31068 [08:07:57]ProducePacketName [08:07:57]name=ofd_packets/00031068 [08:07:57]NVStorageDeleteData [08:07:57]Write to MH i2c: 01 00 00 20 31 51 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 20 31 00 00 00 00 00 EB 0C 4F [08:07:57]RasterBufferAndPrint [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]written 0, free lines is 3317 [08:07:57]MH_Cut [08:07:57]Write to MH i2c: D1 01 00 27 31 01 2A [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 01 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 01 00 27 31 00 29 [08:07:57]Write to MH i2c: 01 00 00 28 31 59 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]OFD Sender: No OFD packet to send [08:07:58]*** Cut start [08:07:58]*** Partial cut [08:07:58]*** CUTSNS_PIN = 1 [08:07:58]*** CUTSNS_PIN = 0 [08:07:58]*** Brake cut motor [08:07:58]Read from MH i2c: 01 [08:07:58]MH_I2C_Read... [08:07:58]*** Stop cut motor [08:07:58]*** Cut end [08:07:58]Read from MH i2c: 01 07 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 28 31 00 00 00 00 00 FF 0F 6E [08:07:58]process_action close_receipt done [08:07:58]requested_data is exist [08:07:58]produce_requested_data [08:07:58]requested_item fm.sn is exist - process it [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 11 00 00 [08:07:58]Write to MH i2c: E2 08 00 29 31 80 11 00 00 00 00 00 00 D4 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 17 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 17 00 29 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [08:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:07:58]wFMCommunicate OK [08:07:58]requested_item fd.num is exist - process it [08:07:58]SAM_PROTO_GetFieldsCounters [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 13 00 00 [08:07:58]Write to MH i2c: E2 08 00 2A 31 80 13 00 00 00 00 00 00 D7 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 62 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 62 00 2A 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 79 00 00 0E 04 04 00 75 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 6B [08:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:58]wFMCommunicate OK [08:07:58]SAM_PROTO_GetFieldsCounters done [08:07:58]requested_item shift.num is exist - process it [08:07:58]requested_item shift.opened is exist - process it [08:07:58]req_shift_opened [08:07:58]FM_GetShiftState [08:07:58]SAM_PROTO_GetShiftState [08:07:58]wFMCommunicate request_size=4 [08:07:58]MH_SAM_APDU [08:07:58]CAPDU: 80 13 01 00 [08:07:58]Write to MH i2c: E2 08 00 2B 31 80 13 01 00 00 00 00 00 D9 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:58]Read from MH i2c: E2 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0E 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: E2 0E 00 2B 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 93 [08:07:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:07:58]wFMCommunicate OK [08:07:58]SAM_PROTO_GetShiftState done [08:07:58]FM_GetShiftState done [08:07:58]req_shift_opened done [08:07:58]requested_item shift.open_date is exist - process it [08:07:58]req_shift_open_date [08:07:58]req_shift_open_date done [08:07:58]produce_requested_data done [08:07:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31068,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:07:58]process_action_free close_receipt [08:07:58]json_value_free [08:07:58]json_value_free done [08:07:58]process_json_proto returns [08:07:58]Send response to host [08:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31068,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:07:58]free response buf [08:07:58]execute_script done [08:07:58]execute_script returns [08:07:58]free content buf [08:07:58]Sock 7.Close socket [08:07:58]Sock 7.Thread stoped [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:18]accept exits with 9 [08:08:18]New connection [08:08:18]New thread 3067043172 created [08:08:18]Thread 3066899812 joined [08:08:18]Waiting for new connection... [08:08:18] Sock 9.Parse request [08:08:18]Sock 9.Check first char [08:08:18]Sock 9.First char is OK [08:08:18]request: POST /json_proto HTTP/1.0 [08:08:18]Method: POST [08:08:18]URL: /json_proto [08:08:18]Method is POST - this is cgi request [08:08:18]url: /json_proto [08:08:18]query_string will be loaded in cgi processing [08:08:18]execute_cgi json_proto POST (null) [08:08:18]execute_cgi path=json_proto method=POST [08:08:18]POST find Content-Length [08:08:18]Host: 172.17.51.3:8080 [08:08:18]Content-Length: 849 [08:08:18]Content-Type: application/json [08:08:18] [08:08:18]POST finish read [08:08:18]Found Content-Length = 849 [08:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.620, "sum" : 2981.46, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2981.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:18]execute_script... [08:08:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.620, "sum" : 2981.46, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2981.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:18]POST & json_proto [08:08:18]process_json_proto [08:08:18]json parsed OK: [08:08:18]protocol is kg_v1.0 [08:08:18]action value=close_receipt [08:08:18]process_action close_receipt [08:08:18]cmd_close_receipt [08:08:18]MH_GetDate [08:08:18]Write to MH i2c: F0 00 00 2C 31 4C [08:08:18]Write i2c OK [08:08:18]MH_I2C_Read... [08:08:18]Read from MH i2c: F0 [08:08:18]MH_I2C_Read... [08:08:18]Read from MH i2c: F0 09 00 [08:08:18]MH_I2C_Read... [08:08:18]Read from MH i2c: F0 09 00 2C 31 00 F7 AE 18 67 04 C1 95 66 39 [08:08:18]GetLastDocTimeStamp 1729670880 [08:08:18]current date 1729670903 [08:08:18]FM_GetShiftState [08:08:18]SAM_PROTO_GetShiftState [08:08:18]wFMCommunicate request_size=4 [08:08:18]MH_SAM_APDU [08:08:18]CAPDU: 80 13 01 00 [08:08:18]Write to MH i2c: E2 08 00 2D 31 80 13 01 00 00 00 00 00 DB [08:08:18]Write i2c OK [08:08:18]MH_I2C_Read... [08:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:18]Read from MH i2c: E2 [08:08:18]MH_I2C_Read... [08:08:18]Read from MH i2c: E2 0E 00 [08:08:18]MH_I2C_Read... [08:08:18]Read from MH i2c: E2 0E 00 2D 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 95 [08:08:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:08:18]wFMCommunicate OK [08:08:18]SAM_PROTO_GetShiftState done [08:08:18]FM_GetShiftState done [08:08:18]opened in 1729643755 [08:08:18]opened+sec_in_day 1729730155 [08:08:18]quantity*price = 298146 [08:08:18]sum+1 = 298147 [08:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2981.46 НСП 1% : 26.38 НДС 12% : 316.61 Наличными: 0.00 Безнал.: 2981.46 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 13 23.10.2024 08:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31069 ФПД: 234662275642484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31069&fm=234662275642484&tin=02508201610067®Number=0000000000186857&sum=298146 [08:08:19]StoreToDocumentArchive [08:08:19]shift 117 fd 31069 [08:08:19]save to /storage/0117/doc_00031069 [08:08:19]save last doc name /storage/0117/doc_00031069 to /storage/kkm_last_doc_name [08:08:19]save OK [08:08:19]Clear old archive folders... [08:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:08:19]tlvbuf is B6EF0790 [08:08:19]SAM_PROTO_ClearQueue [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 09 00 00 [08:08:19]Write to MH i2c: E2 08 00 3A 31 80 09 00 00 00 00 00 00 DD [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 3A 31 00 90 00 DF [08:08:19]RAPDU: 90 00 [08:08:19]wFMCommunicate OK [08:08:19]SAM_PROTO_ClearQueue done [08:08:19]KKMCreateOFDPacket [08:08:19]OFDProtocolAddRootSTLVToBuf [08:08:19]FM_MakeSignedData [08:08:19]FM_MakeSignedData [08:08:19]SAM_PROTO_SignData [08:08:19]wFMCommunicate request_size=4 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 0D 01 02 [08:08:19]Write to MH i2c: E2 08 00 3B 31 80 0D 01 02 00 00 00 00 E5 [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 3B 31 00 90 00 E0 [08:08:19]RAPDU: 90 00 [08:08:19]wFMCommunicate OK [08:08:19]wFMCommunicate request_size=255 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 96 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 8C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 8C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 8C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F7 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 79 00 [08:08:19]Write to MH i2c: E2 02 01 3C 31 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 96 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 8C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 8C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 8C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F7 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 79 00 00 00 A7 [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:19]Read from MH i2c: E2 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 [08:08:19]MH_I2C_Read... [08:08:19]Read from MH i2c: E2 03 00 3C 31 00 90 00 E1 [08:08:19]RAPDU: 90 00 [08:08:19]wFMCommunicate OK [08:08:19]wFMCommunicate request_size=16 [08:08:19]MH_SAM_APDU [08:08:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D5 6C 91 94 F4 74 [08:08:19]Write to MH i2c: E2 13 00 3D 31 80 0D 02 02 0B 00 00 35 04 06 00 D5 6C 91 94 F4 74 00 00 0B [08:08:19]Write i2c OK [08:08:19]MH_I2C_Read... [08:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:20]Read from MH i2c: E2 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 03 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 03 00 3D 31 00 90 00 E2 [08:08:20]RAPDU: 90 00 [08:08:20]wFMCommunicate OK [08:08:20]wFMCommunicate request_size=4 [08:08:20]MH_SAM_APDU [08:08:20]CAPDU: 80 0D 03 02 [08:08:20]Write to MH i2c: E2 08 00 3E 31 80 0D 03 02 00 00 00 00 EA [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:20]Read from MH i2c: E2 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 0B 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 0B 00 3E 31 00 64 BC F0 90 C0 E5 BF 6D 90 00 5C [08:08:20]RAPDU: 64 BC F0 90 C0 E5 BF 6D 90 00 [08:08:20]wFMCommunicate OK [08:08:20]SAM_PROTO_SignData done [08:08:20]FM_MakeSignedData done [08:08:20]CreateOFDProtocolMessage [08:08:20]wFMCommunicate request_size=4 [08:08:20]MH_SAM_APDU [08:08:20]CAPDU: 80 11 00 00 [08:08:20]Write to MH i2c: E2 08 00 3F 31 80 11 00 00 00 00 00 00 EA [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:20]Read from MH i2c: E2 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 17 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: E2 17 00 3F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [08:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:08:20]wFMCommunicate OK [08:08:20]CreateOFDProtocolMessage done [08:08:20]OFDSenderStorePacket 31069 [08:08:20]StoreOFDPacket docnum=31069 [08:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C0 3E 0D 01 C0 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 96 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 8C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 8C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 8C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F7 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 79 00 00 35 04 06 00 D5 6C 91 94 F4 74 64 BC F0 90 C0 E5 BF 6D [08:08:20]CheckFolder [08:08:20]dirname=/storage/ofd_packets [08:08:20]CheckFolder done [08:08:20]ProducePacketName [08:08:20]name=ofd_packets/00031069 [08:08:20]NVStorageSaveData ofd_packets/00031069 [08:08:20]File name is /storage/ofd_packets/00031069 [08:08:20]Write 307 bytes [08:08:20]NVStorageSaveData done [08:08:20]OFDSenderStorePacket done [08:08:20]KKMCreateOFDPacket done [08:08:20]NVStorageSaveData kkm_last_timestamp [08:08:20]File name is /storage/kkm_last_timestamp [08:08:20]Write 4 bytes [08:08:20]NVStorageSaveData done [08:08:20]ExternCall_PrintAddStr [08:08:20]wPrintStart [08:08:20]Write to MH i2c: 01 00 00 40 31 71 [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 07 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 07 00 40 31 00 00 00 00 00 FF 0F 86 [08:08:20]RasterBufferAndPrint [08:08:20]line Счет N : (1)343506 [08:08:20]line ИНН: 02508201610067 [08:08:20]line Контрольно-Кассовый Чек [08:08:20]line ПРОДАЖА [08:08:20]line ТРК (МРК, ГНК) : 61 [08:08:20]line Товар: 2710194210 [08:08:20]line D-ENERGY Дт-К-2 [08:08:20]line 38.620 * 77.20 [08:08:20]line = 2981.46 [08:08:20]line НДС 12% НСП 1% [08:08:20]line > о реализуемом товаре [08:08:20]line ИТОГО: 2981.46 [08:08:20]line НСП 1% : 26.38 [08:08:20]line НДС 12% : 316.61 [08:08:20]line Наличными: 0.00 [08:08:20]line Безнал.: 2981.46 [08:08:20]line Место: АЗС № 78 "Партнер Нефть" [08:08:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:08:20]line СНО: Общий режим [08:08:20]line Чек 13 23.10.2024 08:08 [08:08:20]line Смена: 117 ФФД: 1.0 [08:08:20]line ЗНМ: 0300000137 [08:08:20]line РНМ: 0000000000186857 [08:08:20]line Версия ККМ: v1.0 [08:08:20]line Платежная система: АКБ Кыргызстан [08:08:20]line ФМ: 0000000002094219 [08:08:20]line ФД: 31069 [08:08:20]line ФПД: 234662275642484 [08:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31069&fm=234662275642484&tin=02508201610067®Number=0000000000186857&sum=298146 [08:08:20]OFD Sender: Processing packet 31069 [packets to send 11, broken 10] [08:08:20]ProducePacketName [08:08:20]name=ofd_packets/00031069 [08:08:20]OFD Sender: To server: pG, [08:08:20]CommunicateWithHost lk.salyk.kg:30040 [08:08:20]ConnectInit lk.salyk.kg [08:08:20]written 0, free lines is 4095 [08:08:20]Connected sock=10 [08:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C0 3E 0D 01 C0 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 96 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 8C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 8C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 8C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F7 AE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 79 00 00 35 04 06 00 D5 6C 91 94 F4 74 64 BC F0 90 C0 E5 BF 6D [08:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D2 17 47 00 03 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 79 00 00 F4 03 04 00 72 59 18 67 B6 04 01 00 00 73 A9 B2 14 E3 52 E4 60 [08:08:20]CommunicateWithHost err = 0 [08:08:20]CheckOFDResponse [08:08:20]1017 (14) - 77093643461234 [08:08:20]1041 (16) - 0000000002094219 [08:08:20]1040 (4) - 31069 [08:08:20]1012 (4) - 23.10.2024 02:03 [08:08:20]1206 (1) - 0 [08:08:20]OFD Sender: Remove packet 31069 [08:08:20]ProducePacketName [08:08:20]name=ofd_packets/00031069 [08:08:20]NVStorageDeleteData [08:08:20]Write to MH i2c: 01 00 00 6A 31 9B [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 07 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: 01 07 00 6A 31 00 00 00 00 00 13 0D C2 [08:08:20]RasterBufferAndPrint [08:08:20]line [08:08:20]line [08:08:20]line [08:08:20]line [08:08:20]line [08:08:20]written 0, free lines is 3353 [08:08:20]MH_Cut [08:08:20]Write to MH i2c: D1 01 00 71 31 01 74 [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: D1 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: D1 01 00 [08:08:20]MH_I2C_Read... [08:08:20]Read from MH i2c: D1 01 00 71 31 00 73 [08:08:20]Write to MH i2c: 01 00 00 72 31 A3 [08:08:20]Write i2c OK [08:08:20]MH_I2C_Read... [08:08:21]OFD Sender: No OFD packet to send [08:08:21]*** Cut start [08:08:21]*** Partial cut [08:08:21]*** CUTSNS_PIN = 1 [08:08:21]*** CUTSNS_PIN = 0 [08:08:21]*** Brake cut motor [08:08:22]Read from MH i2c: 01 [08:08:22]MH_I2C_Read... [08:08:22]*** Stop cut motor [08:08:22]*** Cut end [08:08:22]Read from MH i2c: 01 07 00 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: 01 07 00 72 31 00 00 00 00 00 FF 0F B8 [08:08:22]process_action close_receipt done [08:08:22]requested_data is exist [08:08:22]produce_requested_data [08:08:22]requested_item fm.sn is exist - process it [08:08:22]wFMCommunicate request_size=4 [08:08:22]MH_SAM_APDU [08:08:22]CAPDU: 80 11 00 00 [08:08:22]Write to MH i2c: E2 08 00 73 31 80 11 00 00 00 00 00 00 1E [08:08:22]Write i2c OK [08:08:22]MH_I2C_Read... [08:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:22]Read from MH i2c: E2 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 17 00 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 17 00 73 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [08:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:08:22]wFMCommunicate OK [08:08:22]requested_item fd.num is exist - process it [08:08:22]SAM_PROTO_GetFieldsCounters [08:08:22]wFMCommunicate request_size=4 [08:08:22]MH_SAM_APDU [08:08:22]CAPDU: 80 13 00 00 [08:08:22]Write to MH i2c: E2 08 00 74 31 80 13 00 00 00 00 00 00 21 [08:08:22]Write i2c OK [08:08:22]MH_I2C_Read... [08:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:22]Read from MH i2c: E2 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 62 00 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 62 00 74 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 79 00 00 0E 04 04 00 75 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 B9 [08:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 79 00 00 0E 04 04 00 75 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 [08:08:22]wFMCommunicate OK [08:08:22]SAM_PROTO_GetFieldsCounters done [08:08:22]requested_item shift.num is exist - process it [08:08:22]requested_item shift.opened is exist - process it [08:08:22]req_shift_opened [08:08:22]FM_GetShiftState [08:08:22]SAM_PROTO_GetShiftState [08:08:22]wFMCommunicate request_size=4 [08:08:22]MH_SAM_APDU [08:08:22]CAPDU: 80 13 01 00 [08:08:22]Write to MH i2c: E2 08 00 75 31 80 13 01 00 00 00 00 00 23 [08:08:22]Write i2c OK [08:08:22]MH_I2C_Read... [08:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:22]Read from MH i2c: E2 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 0E 00 [08:08:22]MH_I2C_Read... [08:08:22]Read from MH i2c: E2 0E 00 75 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DD [08:08:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:08:22]wFMCommunicate OK [08:08:22]SAM_PROTO_GetShiftState done [08:08:22]FM_GetShiftState done [08:08:22]req_shift_opened done [08:08:22]requested_item shift.open_date is exist - process it [08:08:22]req_shift_open_date [08:08:22]req_shift_open_date done [08:08:22]produce_requested_data done [08:08:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31069,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:08:22]process_action_free close_receipt [08:08:22]json_value_free [08:08:22]json_value_free done [08:08:22]process_json_proto returns [08:08:22]Send response to host [08:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31069,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:08:22]free response buf [08:08:22]execute_script done [08:08:22]execute_script returns [08:08:22]free content buf [08:08:22]Sock 9.Close socket [08:08:22]Sock 9.Thread stoped [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:44]accept exits with 7 [08:13:44]New connection [08:13:44]New thread 3066899812 created [08:13:44]Thread 3067043172 joined [08:13:44]Waiting for new connection... [08:13:44] Sock 7.Parse request [08:13:44]Sock 7.Check first char [08:13:44]Sock 7.First char is OK [08:13:44]request: POST /json_proto HTTP/1.0 [08:13:44]Method: POST [08:13:44]URL: /json_proto [08:13:44]Method is POST - this is cgi request [08:13:44]url: /json_proto [08:13:44]query_string will be loaded in cgi processing [08:13:44]execute_cgi json_proto POST (null) [08:13:44]execute_cgi path=json_proto method=POST [08:13:44]POST find Content-Length [08:13:44]Host: 172.17.51.3:8080 [08:13:44]Content-Length: 677 [08:13:44]Content-Type: application/json [08:13:44] [08:13:44]POST finish read [08:13:44]Found Content-Length = 677 [08:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:44]execute_script... [08:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:44]POST & json_proto [08:13:44]process_json_proto [08:13:44]json parsed OK: [08:13:44]protocol is kg_v1.0 [08:13:44]action value=close_receipt [08:13:44]process_action close_receipt [08:13:44]cmd_close_receipt [08:13:44]MH_GetDate [08:13:44]Write to MH i2c: F0 00 00 76 31 96 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 09 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 09 00 76 31 00 3D B0 18 67 04 C1 95 66 CB [08:13:44]GetLastDocTimeStamp 1729670903 [08:13:44]current date 1729671229 [08:13:44]FM_GetShiftState [08:13:44]SAM_PROTO_GetShiftState [08:13:44]wFMCommunicate request_size=4 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 13 01 00 [08:13:44]Write to MH i2c: E2 08 00 77 31 80 13 01 00 00 00 00 00 25 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:44]Read from MH i2c: E2 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 0E 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 0E 00 77 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DF [08:13:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:13:44]wFMCommunicate OK [08:13:44]SAM_PROTO_GetShiftState done [08:13:44]FM_GetShiftState done [08:13:44]opened in 1729643755 [08:13:44]opened+sec_in_day 1729730155 [08:13:44]quantity*price = 20003 [08:13:44]sum+1 = 20004 [08:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 14 23.10.2024 08:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31070 ФПД: 137048787861746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31070&fm=137048787861746&tin=02508201610067®Number=0000000000186857&sum=20000 [08:13:45]StoreToDocumentArchive [08:13:45]shift 117 fd 31070 [08:13:45]save to /storage/0117/doc_00031070 [08:13:45]save last doc name /storage/0117/doc_00031070 to /storage/kkm_last_doc_name [08:13:45]save OK [08:13:45]Clear old archive folders... [08:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:45]tlvbuf is 00D62FB0 [08:13:45]SAM_PROTO_ClearQueue [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 09 00 00 [08:13:45]Write to MH i2c: E2 08 00 84 31 80 09 00 00 00 00 00 00 27 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_ClearQueue done [08:13:45]KKMCreateOFDPacket [08:13:45]OFDProtocolAddRootSTLVToBuf [08:13:45]FM_MakeSignedData [08:13:45]FM_MakeSignedData [08:13:45]SAM_PROTO_SignData [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 01 02 [08:13:45]Write to MH i2c: E2 08 00 85 31 80 0D 01 02 00 00 00 00 2F [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=255 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D B0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 79 00 00 35 04 06 00 7C [08:13:46]Write to MH i2c: E2 02 01 86 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D B0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 79 00 00 35 04 06 00 7C 00 00 C4 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [08:13:46]RAPDU: 90 00 [08:13:46]wFMCommunicate OK [08:13:46]wFMCommunicate request_size=10 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 0D 02 02 05 A5 28 51 40 F2 [08:13:46]Write to MH i2c: E2 0D 00 87 31 80 0D 02 02 05 00 A5 28 51 40 F2 00 00 8C [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [08:13:46]RAPDU: 90 00 [08:13:46]wFMCommunicate OK [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 0D 03 02 [08:13:46]Write to MH i2c: E2 08 00 88 31 80 0D 03 02 00 00 00 00 34 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0B 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0B 00 88 31 00 44 FB 4B DE 15 CA 94 AB 90 00 BB [08:13:46]RAPDU: 44 FB 4B DE 15 CA 94 AB 90 00 [08:13:46]wFMCommunicate OK [08:13:46]SAM_PROTO_SignData done [08:13:46]FM_MakeSignedData done [08:13:46]CreateOFDProtocolMessage [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 11 00 00 [08:13:46]Write to MH i2c: E2 08 00 89 31 80 11 00 00 00 00 00 00 34 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 17 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 17 00 89 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [08:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:13:46]wFMCommunicate OK [08:13:46]CreateOFDProtocolMessage done [08:13:46]OFDSenderStorePacket 31070 [08:13:46]StoreOFDPacket docnum=31070 [08:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C8 61 07 01 71 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D B0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 79 00 00 35 04 06 00 7C A5 28 51 40 F2 44 FB 4B DE 15 CA 94 AB [08:13:46]CheckFolder [08:13:46]dirname=/storage/ofd_packets [08:13:46]CheckFolder done [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00031070 [08:13:46]NVStorageSaveData ofd_packets/00031070 [08:13:46]File name is /storage/ofd_packets/00031070 [08:13:46]Write 301 bytes [08:13:46]NVStorageSaveData done [08:13:46]OFDSenderStorePacket done [08:13:46]KKMCreateOFDPacket done [08:13:46]NVStorageSaveData kkm_last_timestamp [08:13:46]File name is /storage/kkm_last_timestamp [08:13:46]Write 4 bytes [08:13:46]NVStorageSaveData done [08:13:46]ExternCall_PrintAddStr [08:13:46]wPrintStart [08:13:46]Write to MH i2c: 01 00 00 8A 31 BB [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 8A 31 00 00 00 00 00 FF 0F D0 [08:13:46]RasterBufferAndPrint [08:13:46]line Счет N : (1)343508 [08:13:46]line ИНН: 02508201610067 [08:13:46]line Контрольно-Кассовый Чек [08:13:46]line ПРОДАЖА [08:13:46]line ТРК (МРК, ГНК) : 63 [08:13:46]line Товар: 2710124130 [08:13:46]line Аи-92-К-2 [08:13:46]line 2.990 * 66.90 [08:13:46]line = 200.03 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line ОКРУГЛЕНИЕ: -0.03 [08:13:46]line ИТОГО: 200.00 [08:13:46]line Внесено: 200.00 [08:13:46]line СДАЧА: 0.00 [08:13:46]line НСП 1% : 1.77 [08:13:46]line НДС 12% : 21.24 [08:13:46]line Наличными: 200.00 [08:13:46]line Безнал.: 0.00 [08:13:46]line Место: АЗС № 78 "Партнер Нефть" [08:13:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:13:46]line СНО: Общий режим [08:13:46]line Чек 14 23.10.2024 08:13 [08:13:46]line Смена: 117 ФФД: 1.0 [08:13:46]line ЗНМ: 0300000137 [08:13:46]line РНМ: 0000000000186857 [08:13:46]line Версия ККМ: v1.0 [08:13:46]line ФМ: 0000000002094219 [08:13:46]line ФД: 31070 [08:13:46]line ФПД: 137048787861746 [08:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31070&fm=137048787861746&tin=02508201610067®Number=0000000000186857&sum=20000 [08:13:46]OFD Sender: Processing packet 31070 [packets to send 11, broken 10] [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00031070 [08:13:46]OFD Sender: To server: pG, [08:13:46]CommunicateWithHost lk.salyk.kg:30040 [08:13:46]ConnectInit lk.salyk.kg [08:13:46]written 0, free lines is 4095 [08:13:46]Connected sock=10 [08:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C8 61 07 01 71 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D B0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 79 00 00 35 04 06 00 7C A5 28 51 40 F2 44 FB 4B DE 15 CA 94 AB [08:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F6 C9 47 00 68 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 79 00 00 F4 03 04 00 B8 5A 18 67 B6 04 01 00 00 AA C7 1B 73 BB 7A BC 98 [08:13:47]CommunicateWithHost err = 0 [08:13:47]CheckOFDResponse [08:13:47]1017 (14) - 77093643461234 [08:13:47]1041 (16) - 0000000002094219 [08:13:47]1040 (4) - 31070 [08:13:47]1012 (4) - 23.10.2024 02:08 [08:13:47]1206 (1) - 0 [08:13:47]OFD Sender: Remove packet 31070 [08:13:47]ProducePacketName [08:13:47]name=ofd_packets/00031070 [08:13:47]NVStorageDeleteData [08:13:47]Write to MH i2c: 01 00 00 B5 31 E6 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 B5 31 00 00 00 00 00 F8 0C F1 [08:13:47]RasterBufferAndPrint [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]written 0, free lines is 3326 [08:13:47]MH_Cut [08:13:47]Write to MH i2c: D1 01 00 BC 31 01 BF [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 BC 31 00 BE [08:13:47]Write to MH i2c: 01 00 00 BD 31 EE [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]OFD Sender: No OFD packet to send [08:13:47]*** Cut start [08:13:47]*** Partial cut [08:13:47]*** CUTSNS_PIN = 1 [08:13:47]*** CUTSNS_PIN = 0 [08:13:48]*** Brake cut motor [08:13:48]Read from MH i2c: 01 [08:13:48]MH_I2C_Read... [08:13:48]*** Stop cut motor [08:13:48]*** Cut end [08:13:48]Read from MH i2c: 01 07 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 BD 31 00 00 00 00 00 FF 0F 03 [08:13:48]process_action close_receipt done [08:13:48]requested_data is exist [08:13:48]produce_requested_data [08:13:48]requested_item fm.sn is exist - process it [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 11 00 00 [08:13:48]Write to MH i2c: E2 08 00 BE 31 80 11 00 00 00 00 00 00 69 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 BE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [08:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:13:48]wFMCommunicate OK [08:13:48]requested_item fd.num is exist - process it [08:13:48]SAM_PROTO_GetFieldsCounters [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 00 00 [08:13:48]Write to MH i2c: E2 08 00 BF 31 80 13 00 00 00 00 00 00 6C [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 BF 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 79 00 00 0E 04 04 00 75 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 [08:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 79 00 00 0E 04 04 00 75 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:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetFieldsCounters done [08:13:48]requested_item shift.num is exist - process it [08:13:48]requested_item shift.opened is exist - process it [08:13:48]req_shift_opened [08:13:48]FM_GetShiftState [08:13:48]SAM_PROTO_GetShiftState [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 01 00 [08:13:48]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 28 [08:13:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetShiftState done [08:13:48]FM_GetShiftState done [08:13:48]req_shift_opened done [08:13:48]requested_item shift.open_date is exist - process it [08:13:48]req_shift_open_date [08:13:48]req_shift_open_date done [08:13:48]produce_requested_data done [08:13:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31070,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:13:48]process_action_free close_receipt [08:13:48]json_value_free [08:13:48]json_value_free done [08:13:48]process_json_proto returns [08:13:48]Send response to host [08:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31070,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:13:48]free response buf [08:13:48]execute_script done [08:13:48]execute_script returns [08:13:48]free content buf [08:13:48]Sock 7.Close socket [08:13:48]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:49]accept exits with 9 [08:19:49]New connection [08:19:49]New thread 3067043172 created [08:19:49]Thread 3066899812 joined [08:19:49]Waiting for new connection... [08:19:49] Sock 9.Parse request [08:19:49]Sock 9.Check first char [08:19:49]Sock 9.First char is OK [08:19:49]request: POST /json_proto HTTP/1.0 [08:19:49]Method: POST [08:19:49]URL: /json_proto [08:19:49]Method is POST - this is cgi request [08:19:49]url: /json_proto [08:19:49]query_string will be loaded in cgi processing [08:19:49]execute_cgi json_proto POST (null) [08:19:49]execute_cgi path=json_proto method=POST [08:19:49]POST find Content-Length [08:19:49]Host: 172.17.51.3:8080 [08:19:49]Content-Length: 677 [08:19:49]Content-Type: application/json [08:19:49] [08:19:49]POST finish read [08:19:49]Found Content-Length = 677 [08:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:49]execute_script... [08:19:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:49]POST & json_proto [08:19:49]process_json_proto [08:19:49]json parsed OK: [08:19:49]protocol is kg_v1.0 [08:19:49]action value=close_receipt [08:19:49]process_action close_receipt [08:19:49]cmd_close_receipt [08:19:49]MH_GetDate [08:19:49]Write to MH i2c: F0 00 00 C1 31 E1 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: F0 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: F0 09 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: F0 09 00 C1 31 00 AA B1 18 67 04 C1 95 66 84 [08:19:49]GetLastDocTimeStamp 1729671229 [08:19:49]current date 1729671594 [08:19:49]FM_GetShiftState [08:19:49]SAM_PROTO_GetShiftState [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 13 01 00 [08:19:49]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0E 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2A [08:19:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:19:49]wFMCommunicate OK [08:19:49]SAM_PROTO_GetShiftState done [08:19:49]FM_GetShiftState done [08:19:49]opened in 1729643755 [08:19:49]opened+sec_in_day 1729730155 [08:19:49]quantity*price = 60009 [08:19:49]sum+1 = 60010 [08:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 15 23.10.2024 08:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31071 ФПД: 48515785495190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31071&fm=48515785495190&tin=02508201610067®Number=0000000000186857&sum=60000 [08:19:50]StoreToDocumentArchive [08:19:50]shift 117 fd 31071 [08:19:50]save to /storage/0117/doc_00031071 [08:19:50]save last doc name /storage/0117/doc_00031071 to /storage/kkm_last_doc_name [08:19:50]save OK [08:19:50]Clear old archive folders... [08:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:50]tlvbuf is 00D607F0 [08:19:50]SAM_PROTO_ClearQueue [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 09 00 00 [08:19:50]Write to MH i2c: E2 08 00 CF 31 80 09 00 00 00 00 00 00 72 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 03 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [08:19:50]RAPDU: 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_ClearQueue done [08:19:50]KKMCreateOFDPacket [08:19:50]OFDProtocolAddRootSTLVToBuf [08:19:50]FM_MakeSignedData [08:19:50]FM_MakeSignedData [08:19:50]SAM_PROTO_SignData [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 0D 01 02 [08:19:50]Write to MH i2c: E2 08 00 D0 31 80 0D 01 02 00 00 00 00 7A [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 03 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [08:19:50]RAPDU: 90 00 [08:19:50]wFMCommunicate OK [08:19:50]wFMCommunicate request_size=255 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AA B1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 79 00 00 35 04 06 00 2C [08:19:50]Write to MH i2c: E2 02 01 D1 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AA B1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 79 00 00 35 04 06 00 2C 00 00 4A [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:51]Read from MH i2c: E2 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 03 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [08:19:51]RAPDU: 90 00 [08:19:51]wFMCommunicate OK [08:19:51]wFMCommunicate request_size=10 [08:19:51]MH_SAM_APDU [08:19:51]CAPDU: 80 0D 02 02 05 1F F6 29 12 96 [08:19:51]Write to MH i2c: E2 0D 00 D2 31 80 0D 02 02 05 00 1F F6 29 12 96 00 00 6D [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:51]Read from MH i2c: E2 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 03 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [08:19:51]RAPDU: 90 00 [08:19:51]wFMCommunicate OK [08:19:51]wFMCommunicate request_size=4 [08:19:51]MH_SAM_APDU [08:19:51]CAPDU: 80 0D 03 02 [08:19:51]Write to MH i2c: E2 08 00 D3 31 80 0D 03 02 00 00 00 00 7F [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:51]Read from MH i2c: E2 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 0B 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 0B 00 D3 31 00 92 93 7D C8 BA F9 6E B5 90 00 C0 [08:19:51]RAPDU: 92 93 7D C8 BA F9 6E B5 90 00 [08:19:51]wFMCommunicate OK [08:19:51]SAM_PROTO_SignData done [08:19:51]FM_MakeSignedData done [08:19:51]CreateOFDProtocolMessage [08:19:51]wFMCommunicate request_size=4 [08:19:51]MH_SAM_APDU [08:19:51]CAPDU: 80 11 00 00 [08:19:51]Write to MH i2c: E2 08 00 D4 31 80 11 00 00 00 00 00 00 7F [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:51]Read from MH i2c: E2 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 17 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 17 00 D4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CD [08:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:19:51]wFMCommunicate OK [08:19:51]CreateOFDProtocolMessage done [08:19:51]OFDSenderStorePacket 31071 [08:19:51]StoreOFDPacket docnum=31071 [08:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 28 A9 07 01 14 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AA B1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 79 00 00 35 04 06 00 2C 1F F6 29 12 96 92 93 7D C8 BA F9 6E B5 [08:19:51]CheckFolder [08:19:51]dirname=/storage/ofd_packets [08:19:51]CheckFolder done [08:19:51]ProducePacketName [08:19:51]name=ofd_packets/00031071 [08:19:51]NVStorageSaveData ofd_packets/00031071 [08:19:51]File name is /storage/ofd_packets/00031071 [08:19:51]Write 301 bytes [08:19:51]NVStorageSaveData done [08:19:51]OFDSenderStorePacket done [08:19:51]KKMCreateOFDPacket done [08:19:51]NVStorageSaveData kkm_last_timestamp [08:19:51]File name is /storage/kkm_last_timestamp [08:19:51]Write 4 bytes [08:19:51]NVStorageSaveData done [08:19:51]ExternCall_PrintAddStr [08:19:51]wPrintStart [08:19:51]Write to MH i2c: 01 00 00 D5 31 06 [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: 01 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: 01 07 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [08:19:51]RasterBufferAndPrint [08:19:51]line Счет N : (1)343509 [08:19:51]line ИНН: 02508201610067 [08:19:51]line Контрольно-Кассовый Чек [08:19:51]line ПРОДАЖА [08:19:51]line ТРК (МРК, ГНК) : 63 [08:19:51]line Товар: 2710124130 [08:19:51]line Аи-92-К-2 [08:19:51]line 8.970 * 66.90 [08:19:51]line = 600.09 [08:19:51]line НДС 12% НСП 1% [08:19:51]line > о реализуемом товаре [08:19:51]line ОКРУГЛЕНИЕ: -0.09 [08:19:51]line ИТОГО: 600.00 [08:19:51]line Внесено: 600.00 [08:19:51]line СДАЧА: 0.00 [08:19:51]line НСП 1% : 5.31 [08:19:51]line НДС 12% : 63.73 [08:19:51]line Наличными: 600.00 [08:19:51]line Безнал.: 0.00 [08:19:51]line Место: АЗС № 78 "Партнер Нефть" [08:19:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:19:51]line СНО: Общий режим [08:19:51]line Чек 15 23.10.2024 08:19 [08:19:51]line Смена: 117 ФФД: 1.0 [08:19:51]line ЗНМ: 0300000137 [08:19:51]line РНМ: 0000000000186857 [08:19:51]line Версия ККМ: v1.0 [08:19:51]line ФМ: 0000000002094219 [08:19:51]line ФД: 31071 [08:19:51]line ФПД: 48515785495190 [08:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31071&fm=48515785495190&tin=02508201610067®Number=0000000000186857&sum=60000 [08:19:51]OFD Sender: Processing packet 31071 [packets to send 11, broken 10] [08:19:51]ProducePacketName [08:19:51]name=ofd_packets/00031071 [08:19:51]OFD Sender: To server: pG, [08:19:51]CommunicateWithHost lk.salyk.kg:30040 [08:19:51]ConnectInit lk.salyk.kg [08:19:51]written 0, free lines is 4095 [08:19:51]Connected sock=10 [08:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 28 A9 07 01 14 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AA B1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 79 00 00 35 04 06 00 2C 1F F6 29 12 96 92 93 7D C8 BA F9 6E B5 [08:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 34 6E 47 00 62 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 32 30 39 34 32 31 39 10 04 04 00 5F 79 00 00 F4 03 04 00 25 5C 18 67 B6 04 01 00 00 D9 0F 7E 82 06 47 94 73 [08:19:52]CommunicateWithHost err = 0 [08:19:52]CheckOFDResponse [08:19:52]1017 (14) - 77093643461234 [08:19:52]1041 (16) - 0000000002094219 [08:19:52]1040 (4) - 31071 [08:19:52]1012 (4) - 23.10.2024 02:15 [08:19:52]1206 (1) - 0 [08:19:52]OFD Sender: Remove packet 31071 [08:19:52]ProducePacketName [08:19:52]name=ofd_packets/00031071 [08:19:52]NVStorageDeleteData [08:19:52]Write to MH i2c: 01 00 00 00 32 32 [08:19:52]Write i2c OK [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: 01 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: 01 07 00 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: 01 07 00 00 32 00 00 00 00 00 F3 0C 38 [08:19:52]RasterBufferAndPrint [08:19:52]line [08:19:52]line [08:19:52]line [08:19:52]line [08:19:52]line [08:19:52]written 0, free lines is 3324 [08:19:52]MH_Cut [08:19:52]Write to MH i2c: D1 01 00 07 32 01 0B [08:19:52]Write i2c OK [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: D1 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: D1 01 00 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: D1 01 00 07 32 00 0A [08:19:52]Write to MH i2c: 01 00 00 08 32 3A [08:19:52]Write i2c OK [08:19:52]MH_I2C_Read... [08:19:52]OFD Sender: No OFD packet to send [08:19:52]*** Cut start [08:19:52]*** Partial cut [08:19:52]*** CUTSNS_PIN = 1 [08:19:52]*** CUTSNS_PIN = 0 [08:19:53]*** Brake cut motor [08:19:53]Read from MH i2c: 01 [08:19:53]MH_I2C_Read... [08:19:53]*** Stop cut motor [08:19:53]*** Cut end [08:19:53]Read from MH i2c: 01 07 00 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: 01 07 00 08 32 00 00 00 00 00 FF 0F 4F [08:19:53]process_action close_receipt done [08:19:53]requested_data is exist [08:19:53]produce_requested_data [08:19:53]requested_item fm.sn is exist - process it [08:19:53]wFMCommunicate request_size=4 [08:19:53]MH_SAM_APDU [08:19:53]CAPDU: 80 11 00 00 [08:19:53]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [08:19:53]Write i2c OK [08:19:53]MH_I2C_Read... [08:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:53]Read from MH i2c: E2 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 17 00 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [08:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:19:53]wFMCommunicate OK [08:19:53]requested_item fd.num is exist - process it [08:19:53]SAM_PROTO_GetFieldsCounters [08:19:53]wFMCommunicate request_size=4 [08:19:53]MH_SAM_APDU [08:19:53]CAPDU: 80 13 00 00 [08:19:53]Write to MH i2c: E2 08 00 0A 32 80 13 00 00 00 00 00 00 B8 [08:19:53]Write i2c OK [08:19:53]MH_I2C_Read... [08:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:53]Read from MH i2c: E2 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 62 00 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 62 00 0A 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 79 00 00 0E 04 04 00 75 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 58 [08:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 79 00 00 0E 04 04 00 75 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:19:53]wFMCommunicate OK [08:19:53]SAM_PROTO_GetFieldsCounters done [08:19:53]requested_item shift.num is exist - process it [08:19:53]requested_item shift.opened is exist - process it [08:19:53]req_shift_opened [08:19:53]FM_GetShiftState [08:19:53]SAM_PROTO_GetShiftState [08:19:53]wFMCommunicate request_size=4 [08:19:53]MH_SAM_APDU [08:19:53]CAPDU: 80 13 01 00 [08:19:53]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [08:19:53]Write i2c OK [08:19:53]MH_I2C_Read... [08:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:53]Read from MH i2c: E2 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 0E 00 [08:19:53]MH_I2C_Read... [08:19:53]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 74 [08:19:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:19:53]wFMCommunicate OK [08:19:53]SAM_PROTO_GetShiftState done [08:19:53]FM_GetShiftState done [08:19:53]req_shift_opened done [08:19:53]requested_item shift.open_date is exist - process it [08:19:53]req_shift_open_date [08:19:53]req_shift_open_date done [08:19:53]produce_requested_data done [08:19:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31071,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:19:53]process_action_free close_receipt [08:19:53]json_value_free [08:19:53]json_value_free done [08:19:53]process_json_proto returns [08:19:53]Send response to host [08:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31071,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:19:53]free response buf [08:19:53]execute_script done [08:19:53]execute_script returns [08:19:53]free content buf [08:19:53]Sock 9.Close socket [08:19:53]Sock 9.Thread stoped [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:39]accept exits with 7 [08:22:39]New connection [08:22:39]New thread 3066899812 created [08:22:39]Thread 3067043172 joined [08:22:39]Waiting for new connection... [08:22:39] Sock 7.Parse request [08:22:39]Sock 7.Check first char [08:22:39]Sock 7.First char is OK [08:22:39]request: POST /json_proto HTTP/1.0 [08:22:39]Method: POST [08:22:39]URL: /json_proto [08:22:39]Method is POST - this is cgi request [08:22:39]url: /json_proto [08:22:39]query_string will be loaded in cgi processing [08:22:39]execute_cgi json_proto POST (null) [08:22:39]execute_cgi path=json_proto method=POST [08:22:39]POST find Content-Length [08:22:39]Host: 172.17.51.3:8080 [08:22:39]Content-Length: 677 [08:22:39]Content-Type: application/json [08:22:39] [08:22:39]POST finish read [08:22:39]Found Content-Length = 677 [08:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:39]execute_script... [08:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:39]POST & json_proto [08:22:39]process_json_proto [08:22:39]json parsed OK: [08:22:39]protocol is kg_v1.0 [08:22:39]action value=close_receipt [08:22:39]process_action close_receipt [08:22:39]cmd_close_receipt [08:22:39]MH_GetDate [08:22:39]Write to MH i2c: F0 00 00 0C 32 2D [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: F0 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: F0 09 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: F0 09 00 0C 32 00 54 B2 18 67 04 C1 95 66 7B [08:22:39]GetLastDocTimeStamp 1729671594 [08:22:39]current date 1729671764 [08:22:39]FM_GetShiftState [08:22:39]SAM_PROTO_GetShiftState [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 13 01 00 [08:22:39]Write to MH i2c: E2 08 00 0D 32 80 13 01 00 00 00 00 00 BC [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:39]Read from MH i2c: E2 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 0E 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 0E 00 0D 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 76 [08:22:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:22:39]wFMCommunicate OK [08:22:39]SAM_PROTO_GetShiftState done [08:22:39]FM_GetShiftState done [08:22:39]opened in 1729643755 [08:22:39]opened+sec_in_day 1729730155 [08:22:39]quantity*price = 30038 [08:22:39]sum+1 = 30039 [08:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 16 23.10.2024 08:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31072 ФПД: 164557820597391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082244&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31072&fm=164557820597391&tin=02508201610067®Number=0000000000186857&sum=30000 [08:22:40]StoreToDocumentArchive [08:22:40]shift 117 fd 31072 [08:22:40]save to /storage/0117/doc_00031072 [08:22:40]save last doc name /storage/0117/doc_00031072 to /storage/kkm_last_doc_name [08:22:40]save OK [08:22:40]Clear old archive folders... [08:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:40]tlvbuf is 00D62E90 [08:22:40]SAM_PROTO_ClearQueue [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 09 00 00 [08:22:40]Write to MH i2c: E2 08 00 1A 32 80 09 00 00 00 00 00 00 BE [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [08:22:40]RAPDU: 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_ClearQueue done [08:22:40]KKMCreateOFDPacket [08:22:40]OFDProtocolAddRootSTLVToBuf [08:22:40]FM_MakeSignedData [08:22:40]FM_MakeSignedData [08:22:40]SAM_PROTO_SignData [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 0D 01 02 [08:22:40]Write to MH i2c: E2 08 00 1B 32 80 0D 01 02 00 00 00 00 C6 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [08:22:41]RAPDU: 90 00 [08:22:41]wFMCommunicate OK [08:22:41]wFMCommunicate request_size=255 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 54 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 79 00 00 35 04 06 00 95 [08:22:41]Write to MH i2c: E2 02 01 1C 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 54 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 79 00 00 35 04 06 00 95 00 00 C3 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [08:22:41]RAPDU: 90 00 [08:22:41]wFMCommunicate OK [08:22:41]wFMCommunicate request_size=10 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 0D 02 02 05 AA 1A 71 14 8F [08:22:41]Write to MH i2c: E2 0D 00 1D 32 80 0D 02 02 05 00 AA 1A 71 14 8F 00 00 AB [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [08:22:41]RAPDU: 90 00 [08:22:41]wFMCommunicate OK [08:22:41]wFMCommunicate request_size=4 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 0D 03 02 [08:22:41]Write to MH i2c: E2 08 00 1E 32 80 0D 03 02 00 00 00 00 CB [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 0B 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 0B 00 1E 32 00 B7 3A 1E A0 87 76 F6 21 90 00 8F [08:22:41]RAPDU: B7 3A 1E A0 87 76 F6 21 90 00 [08:22:41]wFMCommunicate OK [08:22:41]SAM_PROTO_SignData done [08:22:41]FM_MakeSignedData done [08:22:41]CreateOFDProtocolMessage [08:22:41]wFMCommunicate request_size=4 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 11 00 00 [08:22:41]Write to MH i2c: E2 08 00 1F 32 80 11 00 00 00 00 00 00 CB [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 17 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 17 00 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [08:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:22:41]wFMCommunicate OK [08:22:41]CreateOFDProtocolMessage done [08:22:41]OFDSenderStorePacket 31072 [08:22:41]StoreOFDPacket docnum=31072 [08:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FF 39 07 01 B9 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 54 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 79 00 00 35 04 06 00 95 AA 1A 71 14 8F B7 3A 1E A0 87 76 F6 21 [08:22:41]CheckFolder [08:22:41]dirname=/storage/ofd_packets [08:22:41]CheckFolder done [08:22:41]ProducePacketName [08:22:41]name=ofd_packets/00031072 [08:22:41]NVStorageSaveData ofd_packets/00031072 [08:22:41]File name is /storage/ofd_packets/00031072 [08:22:41]Write 301 bytes [08:22:41]NVStorageSaveData done [08:22:41]OFDSenderStorePacket done [08:22:41]KKMCreateOFDPacket done [08:22:41]NVStorageSaveData kkm_last_timestamp [08:22:41]File name is /storage/kkm_last_timestamp [08:22:41]Write 4 bytes [08:22:41]NVStorageSaveData done [08:22:41]ExternCall_PrintAddStr [08:22:41]wPrintStart [08:22:41]Write to MH i2c: 01 00 00 20 32 52 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 07 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 07 00 20 32 00 00 00 00 00 FF 0F 67 [08:22:41]RasterBufferAndPrint [08:22:41]line Счет N : (1)343510 [08:22:41]line ИНН: 02508201610067 [08:22:41]line Контрольно-Кассовый Чек [08:22:41]line ПРОДАЖА [08:22:41]line ТРК (МРК, ГНК) : 63 [08:22:41]line Товар: 2710124130 [08:22:41]line Аи-92-К-2 [08:22:41]line 4.490 * 66.90 [08:22:41]line = 300.38 [08:22:41]line НДС 12% НСП 1% [08:22:41]line > о реализуемом товаре [08:22:41]line ОКРУГЛЕНИЕ: -0.38 [08:22:41]line ИТОГО: 300.00 [08:22:41]line Внесено: 300.00 [08:22:41]line СДАЧА: 0.00 [08:22:41]line НСП 1% : 2.66 [08:22:41]line НДС 12% : 31.90 [08:22:41]line Наличными: 300.00 [08:22:41]line Безнал.: 0.00 [08:22:41]line Место: АЗС № 78 "Партнер Нефть" [08:22:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:22:41]line СНО: Общий режим [08:22:41]line Чек 16 23.10.2024 08:22 [08:22:41]line Смена: 117 ФФД: 1.0 [08:22:41]line ЗНМ: 0300000137 [08:22:41]line РНМ: 0000000000186857 [08:22:41]line Версия ККМ: v1.0 [08:22:41]line ФМ: 0000000002094219 [08:22:41]line ФД: 31072 [08:22:41]line ФПД: 164557820597391 [08:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082244&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31072&fm=164557820597391&tin=02508201610067®Number=0000000000186857&sum=30000 [08:22:41]OFD Sender: Processing packet 31072 [packets to send 11, broken 10] [08:22:41]ProducePacketName [08:22:41]name=ofd_packets/00031072 [08:22:41]OFD Sender: To server: pG, [08:22:41]CommunicateWithHost lk.salyk.kg:30040 [08:22:41]ConnectInit lk.salyk.kg [08:22:41]written 0, free lines is 4095 [08:22:41]Connected sock=10 [08:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FF 39 07 01 B9 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 54 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 79 00 00 35 04 06 00 95 AA 1A 71 14 8F B7 3A 1E A0 87 76 F6 21 [08:22:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3A 4E 47 00 3A 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 32 30 39 34 32 31 39 10 04 04 00 60 79 00 00 F4 03 04 00 CF 5C 18 67 B6 04 01 00 00 17 2C 44 BA AE E7 1F 25 [08:22:42]CommunicateWithHost err = 0 [08:22:42]CheckOFDResponse [08:22:42]1017 (14) - 77093643461234 [08:22:42]1041 (16) - 0000000002094219 [08:22:42]1040 (4) - 31072 [08:22:42]1012 (4) - 23.10.2024 02:17 [08:22:42]1206 (1) - 0 [08:22:42]OFD Sender: Remove packet 31072 [08:22:42]ProducePacketName [08:22:42]name=ofd_packets/00031072 [08:22:42]NVStorageDeleteData [08:22:42]Write to MH i2c: 01 00 00 4B 32 7D [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 4B 32 00 00 00 00 00 E8 0C 78 [08:22:42]RasterBufferAndPrint [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]written 0, free lines is 3311 [08:22:42]MH_Cut [08:22:42]Write to MH i2c: D1 01 00 52 32 01 56 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 01 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 01 00 52 32 00 55 [08:22:42]Write to MH i2c: 01 00 00 53 32 85 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]OFD Sender: No OFD packet to send [08:22:42]*** Cut start [08:22:42]*** Partial cut [08:22:42]*** CUTSNS_PIN = 1 [08:22:42]*** CUTSNS_PIN = 0 [08:22:43]*** Brake cut motor [08:22:43]Read from MH i2c: 01 [08:22:43]MH_I2C_Read... [08:22:43]*** Stop cut motor [08:22:43]*** Cut end [08:22:43]Read from MH i2c: 01 07 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: 01 07 00 53 32 00 00 00 00 00 FF 0F 9A [08:22:43]process_action close_receipt done [08:22:43]requested_data is exist [08:22:43]produce_requested_data [08:22:43]requested_item fm.sn is exist - process it [08:22:43]wFMCommunicate request_size=4 [08:22:43]MH_SAM_APDU [08:22:43]CAPDU: 80 11 00 00 [08:22:43]Write to MH i2c: E2 08 00 54 32 80 11 00 00 00 00 00 00 00 [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 [08:22:43]MH_I2C_Read... [08:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:43]Read from MH i2c: E2 17 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 17 00 54 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [08:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:22:43]wFMCommunicate OK [08:22:43]requested_item fd.num is exist - process it [08:22:43]SAM_PROTO_GetFieldsCounters [08:22:43]wFMCommunicate request_size=4 [08:22:43]MH_SAM_APDU [08:22:43]CAPDU: 80 13 00 00 [08:22:43]Write to MH i2c: E2 08 00 55 32 80 13 00 00 00 00 00 00 03 [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:43]Read from MH i2c: E2 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 62 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 62 00 55 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 79 00 00 0E 04 04 00 75 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 A7 [08:22:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 79 00 00 0E 04 04 00 75 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:22:43]wFMCommunicate OK [08:22:43]SAM_PROTO_GetFieldsCounters done [08:22:43]requested_item shift.num is exist - process it [08:22:43]requested_item shift.opened is exist - process it [08:22:43]req_shift_opened [08:22:43]FM_GetShiftState [08:22:43]SAM_PROTO_GetShiftState [08:22:43]wFMCommunicate request_size=4 [08:22:43]MH_SAM_APDU [08:22:43]CAPDU: 80 13 01 00 [08:22:43]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:43]Read from MH i2c: E2 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 0E 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BF [08:22:43]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:22:43]wFMCommunicate OK [08:22:43]SAM_PROTO_GetShiftState done [08:22:43]FM_GetShiftState done [08:22:43]req_shift_opened done [08:22:43]requested_item shift.open_date is exist - process it [08:22:43]req_shift_open_date [08:22:43]req_shift_open_date done [08:22:43]produce_requested_data done [08:22:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31072,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:22:43]process_action_free close_receipt [08:22:43]json_value_free [08:22:43]json_value_free done [08:22:43]process_json_proto returns [08:22:43]Send response to host [08:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31072,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:22:43]free response buf [08:22:43]execute_script done [08:22:43]execute_script returns [08:22:43]free content buf [08:22:43]Sock 7.Close socket [08:22:43]Sock 7.Thread stoped [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:22]accept exits with 9 [08:25:22]New connection [08:25:22]New thread 3067043172 created [08:25:22]Thread 3066899812 joined [08:25:22]Waiting for new connection... [08:25:22] Sock 9.Parse request [08:25:22]Sock 9.Check first char [08:25:22]Sock 9.First char is OK [08:25:22]request: POST /json_proto HTTP/1.0 [08:25:22]Method: POST [08:25:22]URL: /json_proto [08:25:22]Method is POST - this is cgi request [08:25:22]url: /json_proto [08:25:22]query_string will be loaded in cgi processing [08:25:22]execute_cgi json_proto POST (null) [08:25:22]execute_cgi path=json_proto method=POST [08:25:22]POST find Content-Length [08:25:22]Host: 172.17.51.3:8080 [08:25:22]Content-Length: 677 [08:25:22]Content-Type: application/json [08:25:22] [08:25:22]POST finish read [08:25:22]Found Content-Length = 677 [08:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:22]execute_script... [08: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 : (1)343511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:22]POST & json_proto [08:25:22]process_json_proto [08:25:22]json parsed OK: [08:25:22]protocol is kg_v1.0 [08:25:22]action value=close_receipt [08:25:22]process_action close_receipt [08:25:22]cmd_close_receipt [08:25:22]MH_GetDate [08:25:22]Write to MH i2c: F0 00 00 57 32 78 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: F0 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: F0 09 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: F0 09 00 57 32 00 F7 B2 18 67 04 C1 95 66 69 [08:25:22]GetLastDocTimeStamp 1729671764 [08:25:22]current date 1729671927 [08:25:22]FM_GetShiftState [08:25:22]SAM_PROTO_GetShiftState [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 13 01 00 [08:25:22]Write to MH i2c: E2 08 00 58 32 80 13 01 00 00 00 00 00 07 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 58 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C1 [08:25:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:25:22]wFMCommunicate OK [08:25:22]SAM_PROTO_GetShiftState done [08:25:22]FM_GetShiftState done [08:25:22]opened in 1729643755 [08:25:22]opened+sec_in_day 1729730155 [08:25:22]quantity*price = 40006 [08:25:22]sum+1 = 40007 [08:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 17 23.10.2024 08:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31073 ФПД: 226164600944597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31073&fm=226164600944597&tin=02508201610067®Number=0000000000186857&sum=40000 [08:25:23]StoreToDocumentArchive [08:25:23]shift 117 fd 31073 [08:25:23]save to /storage/0117/doc_00031073 [08:25:23]save last doc name /storage/0117/doc_00031073 to /storage/kkm_last_doc_name [08:25:23]save OK [08:25:23]Clear old archive folders... [08:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:23]tlvbuf is 00D609F0 [08:25:23]SAM_PROTO_ClearQueue [08:25:23]wFMCommunicate request_size=4 [08:25:23]MH_SAM_APDU [08:25:23]CAPDU: 80 09 00 00 [08:25:23]Write to MH i2c: E2 08 00 65 32 80 09 00 00 00 00 00 00 09 [08:25:23]Write i2c OK [08:25:23]MH_I2C_Read... [08:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [08:25:24]RAPDU: 90 00 [08:25:24]wFMCommunicate OK [08:25:24]SAM_PROTO_ClearQueue done [08:25:24]KKMCreateOFDPacket [08:25:24]OFDProtocolAddRootSTLVToBuf [08:25:24]FM_MakeSignedData [08:25:24]FM_MakeSignedData [08:25:24]SAM_PROTO_SignData [08:25:24]wFMCommunicate request_size=4 [08:25:24]MH_SAM_APDU [08:25:24]CAPDU: 80 0D 01 02 [08:25:24]Write to MH i2c: E2 08 00 66 32 80 0D 01 02 00 00 00 00 11 [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [08:25:24]RAPDU: 90 00 [08:25:24]wFMCommunicate OK [08:25:24]wFMCommunicate request_size=255 [08:25:24]MH_SAM_APDU [08:25:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F8 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 79 00 00 35 04 06 00 CD [08:25:24]Write to MH i2c: E2 02 01 67 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F8 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 79 00 00 35 04 06 00 CD 00 00 C7 [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 67 32 00 90 00 0D [08:25:24]RAPDU: 90 00 [08:25:24]wFMCommunicate OK [08:25:24]wFMCommunicate request_size=10 [08:25:24]MH_SAM_APDU [08:25:24]CAPDU: 80 0D 02 02 05 B2 0C B3 37 D5 [08:25:24]Write to MH i2c: E2 0D 00 68 32 80 0D 02 02 05 00 B2 0C B3 37 D5 00 00 9B [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 03 00 68 32 00 90 00 0E [08:25:24]RAPDU: 90 00 [08:25:24]wFMCommunicate OK [08:25:24]wFMCommunicate request_size=4 [08:25:24]MH_SAM_APDU [08:25:24]CAPDU: 80 0D 03 02 [08:25:24]Write to MH i2c: E2 08 00 69 32 80 0D 03 02 00 00 00 00 16 [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 0B 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 0B 00 69 32 00 49 50 93 78 F3 E9 D1 9B 90 00 03 [08:25:24]RAPDU: 49 50 93 78 F3 E9 D1 9B 90 00 [08:25:24]wFMCommunicate OK [08:25:24]SAM_PROTO_SignData done [08:25:24]FM_MakeSignedData done [08:25:24]CreateOFDProtocolMessage [08:25:24]wFMCommunicate request_size=4 [08:25:24]MH_SAM_APDU [08:25:24]CAPDU: 80 11 00 00 [08:25:24]Write to MH i2c: E2 08 00 6A 32 80 11 00 00 00 00 00 00 16 [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:24]Read from MH i2c: E2 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 17 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: E2 17 00 6A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [08:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:25:24]wFMCommunicate OK [08:25:24]CreateOFDProtocolMessage done [08:25:24]OFDSenderStorePacket 31073 [08:25:24]StoreOFDPacket docnum=31073 [08:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D AA 07 01 F5 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F8 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 79 00 00 35 04 06 00 CD B2 0C B3 37 D5 49 50 93 78 F3 E9 D1 9B [08:25:24]CheckFolder [08:25:24]dirname=/storage/ofd_packets [08:25:24]CheckFolder done [08:25:24]ProducePacketName [08:25:24]name=ofd_packets/00031073 [08:25:24]NVStorageSaveData ofd_packets/00031073 [08:25:24]File name is /storage/ofd_packets/00031073 [08:25:24]Write 301 bytes [08:25:24]NVStorageSaveData done [08:25:24]OFDSenderStorePacket done [08:25:24]KKMCreateOFDPacket done [08:25:24]NVStorageSaveData kkm_last_timestamp [08:25:24]File name is /storage/kkm_last_timestamp [08:25:24]Write 4 bytes [08:25:24]NVStorageSaveData done [08:25:24]ExternCall_PrintAddStr [08:25:24]wPrintStart [08:25:24]Write to MH i2c: 01 00 00 6B 32 9D [08:25:24]Write i2c OK [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: 01 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: 01 07 00 [08:25:24]MH_I2C_Read... [08:25:24]Read from MH i2c: 01 07 00 6B 32 00 00 00 00 00 FF 0F B2 [08:25:24]RasterBufferAndPrint [08:25:24]line Счет N : (1)343511 [08:25:24]line ИНН: 02508201610067 [08:25:24]line Контрольно-Кассовый Чек [08:25:24]line ПРОДАЖА [08:25:24]line ТРК (МРК, ГНК) : 63 [08:25:24]line Товар: 2710124130 [08:25:24]line Аи-92-К-2 [08:25:24]line 5.980 * 66.90 [08:25:24]line = 400.06 [08:25:24]line НДС 12% НСП 1% [08:25:24]line > о реализуемом товаре [08:25:24]line ОКРУГЛЕНИЕ: -0.06 [08:25:24]line ИТОГО: 400.00 [08:25:24]line Внесено: 400.00 [08:25:24]line СДАЧА: 0.00 [08:25:24]line НСП 1% : 3.54 [08:25:24]line НДС 12% : 42.48 [08:25:24]line Наличными: 400.00 [08:25:24]line Безнал.: 0.00 [08:25:24]line Место: АЗС № 78 "Партнер Нефть" [08:25:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:25:24]line СНО: Общий режим [08:25:24]line Чек 17 23.10.2024 08:25 [08:25:24]line Смена: 117 ФФД: 1.0 [08:25:24]line ЗНМ: 0300000137 [08:25:24]line РНМ: 0000000000186857 [08:25:24]line Версия ККМ: v1.0 [08:25:24]line ФМ: 0000000002094219 [08:25:24]line ФД: 31073 [08:25:24]line ФПД: 226164600944597 [08:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31073&fm=226164600944597&tin=02508201610067®Number=0000000000186857&sum=40000 [08:25:24]OFD Sender: Processing packet 31073 [packets to send 11, broken 10] [08:25:24]ProducePacketName [08:25:24]name=ofd_packets/00031073 [08:25:24]OFD Sender: To server: pG, [08:25:24]CommunicateWithHost lk.salyk.kg:30040 [08:25:24]ConnectInit lk.salyk.kg [08:25:24]written 0, free lines is 4095 [08:25:25]Connected sock=10 [08:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D AA 07 01 F5 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F8 B2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 79 00 00 35 04 06 00 CD B2 0C B3 37 D5 49 50 93 78 F3 E9 D1 9B [08:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 57 10 47 00 5E 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 79 00 00 F4 03 04 00 73 5D 18 67 B6 04 01 00 00 55 35 DD C8 33 D6 B0 2C [08:25:25]CommunicateWithHost err = 0 [08:25:25]CheckOFDResponse [08:25:25]1017 (14) - 77093643461234 [08:25:25]1041 (16) - 0000000002094219 [08:25:25]1040 (4) - 31073 [08:25:25]1012 (4) - 23.10.2024 02:20 [08:25:25]1206 (1) - 0 [08:25:25]OFD Sender: Remove packet 31073 [08:25:25]ProducePacketName [08:25:25]name=ofd_packets/00031073 [08:25:25]NVStorageDeleteData [08:25:25]Write to MH i2c: 01 00 00 96 32 C8 [08:25:25]Write i2c OK [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: 01 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: 01 07 00 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: 01 07 00 96 32 00 00 00 00 00 F3 0C CE [08:25:25]RasterBufferAndPrint [08:25:25]line [08:25:25]line [08:25:25]line [08:25:25]line [08:25:25]line [08:25:25]written 0, free lines is 3321 [08:25:25]MH_Cut [08:25:25]Write to MH i2c: D1 01 00 9D 32 01 A1 [08:25:25]Write i2c OK [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: D1 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: D1 01 00 [08:25:25]MH_I2C_Read... [08:25:25]Read from MH i2c: D1 01 00 9D 32 00 A0 [08:25:25]Write to MH i2c: 01 00 00 9E 32 D0 [08:25:25]Write i2c OK [08:25:25]MH_I2C_Read... [08:25:25]OFD Sender: No OFD packet to send [08:25:25]*** Cut start [08:25:25]*** Partial cut [08:25:25]*** CUTSNS_PIN = 1 [08:25:26]*** CUTSNS_PIN = 0 [08:25:26]*** Brake cut motor [08:25:26]Read from MH i2c: 01 [08:25:26]MH_I2C_Read... [08:25:26]*** Stop cut motor [08:25:26]*** Cut end [08:25:26]Read from MH i2c: 01 07 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: 01 07 00 9E 32 00 00 00 00 00 FF 0F E5 [08:25:26]process_action close_receipt done [08:25:26]requested_data is exist [08:25:26]produce_requested_data [08:25:26]requested_item fm.sn is exist - process it [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 11 00 00 [08:25:26]Write to MH i2c: E2 08 00 9F 32 80 11 00 00 00 00 00 00 4B [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 [08:25:26]MH_I2C_Read... [08:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:26]Read from MH i2c: E2 17 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 17 00 9F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [08:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:25:26]wFMCommunicate OK [08:25:26]requested_item fd.num is exist - process it [08:25:26]SAM_PROTO_GetFieldsCounters [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 13 00 00 [08:25:26]Write to MH i2c: E2 08 00 A0 32 80 13 00 00 00 00 00 00 4E [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:26]Read from MH i2c: E2 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 62 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 62 00 A0 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 79 00 00 0E 04 04 00 75 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 F6 [08:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 79 00 00 0E 04 04 00 75 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 [08:25:26]wFMCommunicate OK [08:25:26]SAM_PROTO_GetFieldsCounters done [08:25:26]requested_item shift.num is exist - process it [08:25:26]requested_item shift.opened is exist - process it [08:25:26]req_shift_opened [08:25:26]FM_GetShiftState [08:25:26]SAM_PROTO_GetShiftState [08:25:26]wFMCommunicate request_size=4 [08:25:26]MH_SAM_APDU [08:25:26]CAPDU: 80 13 01 00 [08:25:26]Write to MH i2c: E2 08 00 A1 32 80 13 01 00 00 00 00 00 50 [08:25:26]Write i2c OK [08:25:26]MH_I2C_Read... [08:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:26]Read from MH i2c: E2 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 0E 00 [08:25:26]MH_I2C_Read... [08:25:26]Read from MH i2c: E2 0E 00 A1 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0A [08:25:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:25:26]wFMCommunicate OK [08:25:26]SAM_PROTO_GetShiftState done [08:25:26]FM_GetShiftState done [08:25:26]req_shift_opened done [08:25:26]requested_item shift.open_date is exist - process it [08:25:26]req_shift_open_date [08:25:26]req_shift_open_date done [08:25:26]produce_requested_data done [08:25:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31073,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:25:26]process_action_free close_receipt [08:25:26]json_value_free [08:25:26]json_value_free done [08:25:26]process_json_proto returns [08:25:26]Send response to host [08:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31073,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:25:26]free response buf [08:25:26]execute_script done [08:25:26]execute_script returns [08:25:26]free content buf [08:25:26]Sock 9.Close socket [08:25:26]Sock 9.Thread stoped [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:23]accept exits with 7 [08:27:23]New connection [08:27:23]New thread 3066899812 created [08:27:23]Thread 3067043172 joined [08:27:23]Waiting for new connection... [08:27:23] Sock 7.Parse request [08:27:23]Sock 7.Check first char [08:27:23]Sock 7.First char is OK [08:27:23]request: POST /json_proto HTTP/1.0 [08:27:23]Method: POST [08:27:23]URL: /json_proto [08:27:23]Method is POST - this is cgi request [08:27:23]url: /json_proto [08:27:23]query_string will be loaded in cgi processing [08:27:23]execute_cgi json_proto POST (null) [08:27:23]execute_cgi path=json_proto method=POST [08:27:23]POST find Content-Length [08:27:23]Host: 172.17.51.3:8080 [08:27:23]Content-Length: 677 [08:27:23]Content-Type: application/json [08:27:23] [08:27:23]POST finish read [08:27:23]Found Content-Length = 677 [08:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:23]execute_script... [08:27:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:23]POST & json_proto [08:27:23]process_json_proto [08:27:23]json parsed OK: [08:27:23]protocol is kg_v1.0 [08:27:23]action value=close_receipt [08:27:23]process_action close_receipt [08:27:23]cmd_close_receipt [08:27:23]MH_GetDate [08:27:23]Write to MH i2c: F0 00 00 A2 32 C3 [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: F0 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: F0 09 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: F0 09 00 A2 32 00 70 B3 18 67 04 C1 95 66 2E [08:27:23]GetLastDocTimeStamp 1729671928 [08:27:23]current date 1729672048 [08:27:23]FM_GetShiftState [08:27:23]SAM_PROTO_GetShiftState [08:27:23]wFMCommunicate request_size=4 [08:27:23]MH_SAM_APDU [08:27:23]CAPDU: 80 13 01 00 [08:27:23]Write to MH i2c: E2 08 00 A3 32 80 13 01 00 00 00 00 00 52 [08:27:23]Write i2c OK [08:27:23]MH_I2C_Read... [08:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:23]Read from MH i2c: E2 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 [08:27:23]MH_I2C_Read... [08:27:23]Read from MH i2c: E2 0E 00 A3 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0C [08:27:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:27:23]wFMCommunicate OK [08:27:23]SAM_PROTO_GetShiftState done [08:27:23]FM_GetShiftState done [08:27:23]opened in 1729643755 [08:27:23]opened+sec_in_day 1729730155 [08:27:23]quantity*price = 50041 [08:27:23]sum+1 = 50042 [08:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 18 23.10.2024 08:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31074 ФПД: 117214621666251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082728&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31074&fm=117214621666251&tin=02508201610067®Number=0000000000186857&sum=50000 [08:27:24]StoreToDocumentArchive [08:27:24]shift 117 fd 31074 [08:27:24]save to /storage/0117/doc_00031074 [08:27:24]save last doc name /storage/0117/doc_00031074 to /storage/kkm_last_doc_name [08:27:24]save OK [08:27:24]Clear old archive folders... [08:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:24]tlvbuf is 00D630E0 [08:27:24]SAM_PROTO_ClearQueue [08:27:24]wFMCommunicate request_size=4 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 09 00 00 [08:27:24]Write to MH i2c: E2 08 00 B0 32 80 09 00 00 00 00 00 00 54 [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:24]Read from MH i2c: E2 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 B0 32 00 90 00 56 [08:27:24]RAPDU: 90 00 [08:27:24]wFMCommunicate OK [08:27:24]SAM_PROTO_ClearQueue done [08:27:24]KKMCreateOFDPacket [08:27:24]OFDProtocolAddRootSTLVToBuf [08:27:24]FM_MakeSignedData [08:27:24]FM_MakeSignedData [08:27:24]SAM_PROTO_SignData [08:27:24]wFMCommunicate request_size=4 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 0D 01 02 [08:27:24]Write to MH i2c: E2 08 00 B1 32 80 0D 01 02 00 00 00 00 5C [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:24]Read from MH i2c: E2 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 B1 32 00 90 00 57 [08:27:24]RAPDU: 90 00 [08:27:24]wFMCommunicate OK [08:27:24]wFMCommunicate request_size=255 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 79 00 00 35 04 06 00 6A [08:27:24]Write to MH i2c: E2 02 01 B2 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 79 00 00 35 04 06 00 6A 00 00 5B [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:24]Read from MH i2c: E2 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 B2 32 00 90 00 58 [08:27:24]RAPDU: 90 00 [08:27:24]wFMCommunicate OK [08:27:24]wFMCommunicate request_size=10 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 0D 02 02 05 9B 27 E3 0B CB [08:27:24]Write to MH i2c: E2 0D 00 B3 32 80 0D 02 02 05 00 9B 27 E3 0B CB 00 00 E4 [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:24]Read from MH i2c: E2 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 03 00 B3 32 00 90 00 59 [08:27:24]RAPDU: 90 00 [08:27:24]wFMCommunicate OK [08:27:24]wFMCommunicate request_size=4 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 0D 03 02 [08:27:24]Write to MH i2c: E2 08 00 B4 32 80 0D 03 02 00 00 00 00 61 [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:24]Read from MH i2c: E2 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 0B 00 [08:27:24]MH_I2C_Read... [08:27:24]Read from MH i2c: E2 0B 00 B4 32 00 73 B9 3E 3D AE 3B 61 0A 90 00 5D [08:27:24]RAPDU: 73 B9 3E 3D AE 3B 61 0A 90 00 [08:27:24]wFMCommunicate OK [08:27:24]SAM_PROTO_SignData done [08:27:24]FM_MakeSignedData done [08:27:24]CreateOFDProtocolMessage [08:27:24]wFMCommunicate request_size=4 [08:27:24]MH_SAM_APDU [08:27:24]CAPDU: 80 11 00 00 [08:27:24]Write to MH i2c: E2 08 00 B5 32 80 11 00 00 00 00 00 00 61 [08:27:24]Write i2c OK [08:27:24]MH_I2C_Read... [08:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:25]Read from MH i2c: E2 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 17 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 17 00 B5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [08:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:27:25]wFMCommunicate OK [08:27:25]CreateOFDProtocolMessage done [08:27:25]OFDSenderStorePacket 31074 [08:27:25]StoreOFDPacket docnum=31074 [08:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E1 53 07 01 94 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 79 00 00 35 04 06 00 6A 9B 27 E3 0B CB 73 B9 3E 3D AE 3B 61 0A [08:27:25]CheckFolder [08:27:25]dirname=/storage/ofd_packets [08:27:25]CheckFolder done [08:27:25]ProducePacketName [08:27:25]name=ofd_packets/00031074 [08:27:25]NVStorageSaveData ofd_packets/00031074 [08:27:25]File name is /storage/ofd_packets/00031074 [08:27:25]Write 301 bytes [08:27:25]NVStorageSaveData done [08:27:25]OFDSenderStorePacket done [08:27:25]KKMCreateOFDPacket done [08:27:25]NVStorageSaveData kkm_last_timestamp [08:27:25]File name is /storage/kkm_last_timestamp [08:27:25]Write 4 bytes [08:27:25]NVStorageSaveData done [08:27:25]ExternCall_PrintAddStr [08:27:25]wPrintStart [08:27:25]Write to MH i2c: 01 00 00 B6 32 E8 [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 07 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 07 00 B6 32 00 00 00 00 00 FF 0F FD [08:27:25]RasterBufferAndPrint [08:27:25]line Счет N : (1)343512 [08:27:25]line ИНН: 02508201610067 [08:27:25]line Контрольно-Кассовый Чек [08:27:25]line ПРОДАЖА [08:27:25]line ТРК (МРК, ГНК) : 63 [08:27:25]line Товар: 2710124130 [08:27:25]line Аи-92-К-2 [08:27:25]line 7.480 * 66.90 [08:27:25]line = 500.41 [08:27:25]line НДС 12% НСП 1% [08:27:25]line > о реализуемом товаре [08:27:25]line ОКРУГЛЕНИЕ: -0.41 [08:27:25]line ИТОГО: 500.00 [08:27:25]line Внесено: 500.00 [08:27:25]line СДАЧА: 0.00 [08:27:25]line НСП 1% : 4.43 [08:27:25]line НДС 12% : 53.14 [08:27:25]line Наличными: 500.00 [08:27:25]line Безнал.: 0.00 [08:27:25]line Место: АЗС № 78 "Партнер Нефть" [08:27:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:27:25]line СНО: Общий режим [08:27:25]line Чек 18 23.10.2024 08:27 [08:27:25]line Смена: 117 ФФД: 1.0 [08:27:25]line ЗНМ: 0300000137 [08:27:25]line РНМ: 0000000000186857 [08:27:25]line Версия ККМ: v1.0 [08:27:25]line ФМ: 0000000002094219 [08:27:25]line ФД: 31074 [08:27:25]line ФПД: 117214621666251 [08:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082728&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31074&fm=117214621666251&tin=02508201610067®Number=0000000000186857&sum=50000 [08:27:25]OFD Sender: Processing packet 31074 [packets to send 11, broken 10] [08:27:25]ProducePacketName [08:27:25]name=ofd_packets/00031074 [08:27:25]OFD Sender: To server: pG, [08:27:25]CommunicateWithHost lk.salyk.kg:30040 [08:27:25]ConnectInit lk.salyk.kg [08:27:25]written 0, free lines is 4095 [08:27:25]Connected sock=10 [08:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E1 53 07 01 94 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 79 00 00 35 04 06 00 6A 9B 27 E3 0B CB 73 B9 3E 3D AE 3B 61 0A [08:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E0 E6 47 00 70 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 32 30 39 34 32 31 39 10 04 04 00 62 79 00 00 F4 03 04 00 EB 5D 18 67 B6 04 01 00 00 FF E5 29 8E 44 AF 49 53 [08:27:25]CommunicateWithHost err = 0 [08:27:25]CheckOFDResponse [08:27:25]1017 (14) - 77093643461234 [08:27:25]1041 (16) - 0000000002094219 [08:27:25]1040 (4) - 31074 [08:27:25]1012 (4) - 23.10.2024 02:22 [08:27:25]1206 (1) - 0 [08:27:25]OFD Sender: Remove packet 31074 [08:27:25]ProducePacketName [08:27:25]name=ofd_packets/00031074 [08:27:25]NVStorageDeleteData [08:27:25]Write to MH i2c: 01 00 00 E1 32 13 [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 07 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: 01 07 00 E1 32 00 00 00 00 00 E8 0C 0E [08:27:25]RasterBufferAndPrint [08:27:25]line [08:27:25]line [08:27:25]line [08:27:25]line [08:27:25]line [08:27:25]written 0, free lines is 3310 [08:27:25]MH_Cut [08:27:25]Write to MH i2c: D1 01 00 E8 32 01 EC [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: D1 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: D1 01 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: D1 01 00 E8 32 00 EB [08:27:25]Write to MH i2c: 01 00 00 E9 32 1B [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:26]OFD Sender: No OFD packet to send [08:27:26]*** Cut start [08:27:26]*** Partial cut [08:27:26]*** CUTSNS_PIN = 1 [08:27:26]*** CUTSNS_PIN = 0 [08:27:26]*** Brake cut motor [08:27:27]Read from MH i2c: 01 [08:27:27]MH_I2C_Read... [08:27:27]*** Stop cut motor [08:27:27]*** Cut end [08:27:27]Read from MH i2c: 01 07 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [08:27:27]process_action close_receipt done [08:27:27]requested_data is exist [08:27:27]produce_requested_data [08:27:27]requested_item fm.sn is exist - process it [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 11 00 00 [08:27:27]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 17 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [08:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:27:27]wFMCommunicate OK [08:27:27]requested_item fd.num is exist - process it [08:27:27]SAM_PROTO_GetFieldsCounters [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 13 00 00 [08:27:27]Write to MH i2c: E2 08 00 EB 32 80 13 00 00 00 00 00 00 99 [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 62 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 62 00 EB 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 79 00 00 0E 04 04 00 75 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 45 [08:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 79 00 00 0E 04 04 00 75 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 [08:27:27]wFMCommunicate OK [08:27:27]SAM_PROTO_GetFieldsCounters done [08:27:27]requested_item shift.num is exist - process it [08:27:27]requested_item shift.opened is exist - process it [08:27:27]req_shift_opened [08:27:27]FM_GetShiftState [08:27:27]SAM_PROTO_GetShiftState [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 13 01 00 [08:27:27]Write to MH i2c: E2 08 00 EC 32 80 13 01 00 00 00 00 00 9B [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 0E 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 0E 00 EC 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 55 [08:27:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:27:27]wFMCommunicate OK [08:27:27]SAM_PROTO_GetShiftState done [08:27:27]FM_GetShiftState done [08:27:27]req_shift_opened done [08:27:27]requested_item shift.open_date is exist - process it [08:27:27]req_shift_open_date [08:27:27]req_shift_open_date done [08:27:27]produce_requested_data done [08:27:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31074,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:27:27]process_action_free close_receipt [08:27:27]json_value_free [08:27:27]json_value_free done [08:27:27]process_json_proto returns [08:27:27]Send response to host [08:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31074,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:27:27]free response buf [08:27:27]execute_script done [08:27:27]execute_script returns [08:27:27]free content buf [08:27:27]Sock 7.Close socket [08:27:27]Sock 7.Thread stoped [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:28]accept exits with 9 [08:29:28]New connection [08:29:28]New thread 3067043172 created [08:29:28]Thread 3066899812 joined [08:29:28]Waiting for new connection... [08:29:28] Sock 9.Parse request [08:29:28]Sock 9.Check first char [08:29:28]Sock 9.First char is OK [08:29:28]request: POST /json_proto HTTP/1.0 [08:29:28]Method: POST [08:29:28]URL: /json_proto [08:29:28]Method is POST - this is cgi request [08:29:28]url: /json_proto [08:29:28]query_string will be loaded in cgi processing [08:29:28]execute_cgi json_proto POST (null) [08:29:28]execute_cgi path=json_proto method=POST [08:29:28]POST find Content-Length [08:29:28]Host: 172.17.51.3:8080 [08:29:28]Content-Length: 754 [08:29:28]Content-Type: application/json [08:29:28] [08:29:28]POST finish read [08:29:28]Found Content-Length = 754 [08:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30011904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:28]execute_script... [08:29:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 22.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30011904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:28]POST & json_proto [08:29:28]process_json_proto [08:29:28]json parsed OK: [08:29:28]protocol is kg_v1.0 [08:29:28]action value=close_receipt [08:29:28]process_action close_receipt [08:29:28]cmd_close_receipt [08:29:28]MH_GetDate [08:29:28]Write to MH i2c: F0 00 00 ED 32 0E [08:29:28]Write i2c OK [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: F0 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: F0 09 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: F0 09 00 ED 32 00 ED B3 18 67 04 C1 95 66 F6 [08:29:28]GetLastDocTimeStamp 1729672048 [08:29:28]current date 1729672173 [08:29:28]FM_GetShiftState [08:29:28]SAM_PROTO_GetShiftState [08:29:28]wFMCommunicate request_size=4 [08:29:28]MH_SAM_APDU [08:29:28]CAPDU: 80 13 01 00 [08:29:28]Write to MH i2c: E2 08 00 EE 32 80 13 01 00 00 00 00 00 9D [08:29:28]Write i2c OK [08:29:28]MH_I2C_Read... [08:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:28]Read from MH i2c: E2 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 0E 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 0E 00 EE 32 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 57 [08:29:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:29:28]wFMCommunicate OK [08:29:28]SAM_PROTO_GetShiftState done [08:29:28]FM_GetShiftState done [08:29:28]opened in 1729643755 [08:29:28]opened+sec_in_day 1729730155 [08:29:28]quantity*price = 0 [08:29:28]sum+1 = 1 [08:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 19 23.10.2024 08:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30011904 ФМ: 0000000002094219 ФД: 31075 ФПД: 173973942208658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082933&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31075&fm=173973942208658&tin=02508201610067®Number=0000000000186857&sum=0 [08:29:29]StoreToDocumentArchive [08:29:29]shift 117 fd 31075 [08:29:29]save to /storage/0117/doc_00031075 [08:29:29]save last doc name /storage/0117/doc_00031075 to /storage/kkm_last_doc_name [08:29:29]save OK [08:29:29]Clear old archive folders... [08:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:29]tlvbuf is 00F5D670 [08:29:29]SAM_PROTO_ClearQueue [08:29:29]wFMCommunicate request_size=4 [08:29:29]MH_SAM_APDU [08:29:29]CAPDU: 80 09 00 00 [08:29:29]Write to MH i2c: E2 08 00 FB 32 80 09 00 00 00 00 00 00 9F [08:29:29]Write i2c OK [08:29:29]MH_I2C_Read... [08:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:29]Read from MH i2c: E2 [08:29:29]MH_I2C_Read... [08:29:29]Read from MH i2c: E2 03 00 [08:29:29]MH_I2C_Read... [08:29:29]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [08:29:29]RAPDU: 90 00 [08:29:29]wFMCommunicate OK [08:29:29]SAM_PROTO_ClearQueue done [08:29:29]KKMCreateOFDPacket [08:29:29]OFDProtocolAddRootSTLVToBuf [08:29:29]FM_MakeSignedData [08:29:29]FM_MakeSignedData [08:29:29]SAM_PROTO_SignData [08:29:29]wFMCommunicate request_size=4 [08:29:29]MH_SAM_APDU [08:29:29]CAPDU: 80 0D 01 02 [08:29:29]Write to MH i2c: E2 08 00 FC 32 80 0D 01 02 00 00 00 00 A7 [08:29:29]Write i2c OK [08:29:29]MH_I2C_Read... [08:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:29]Read from MH i2c: E2 [08:29:29]MH_I2C_Read... [08:29:29]Read from MH i2c: E2 03 00 [08:29:29]MH_I2C_Read... [08:29:29]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [08:29:29]RAPDU: 90 00 [08:29:29]wFMCommunicate OK [08:29:29]wFMCommunicate request_size=255 [08:29:29]MH_SAM_APDU [08:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 ED B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 79 00 00 35 04 06 00 9E [08:29:29]Write to MH i2c: E2 02 01 FD 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 ED B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 79 00 00 35 04 06 00 9E 00 00 19 [08:29:29]Write i2c OK [08:29:29]MH_I2C_Read... [08:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:30]Read from MH i2c: E2 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 03 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 03 00 FD 32 00 90 00 A3 [08:29:30]RAPDU: 90 00 [08:29:30]wFMCommunicate OK [08:29:30]wFMCommunicate request_size=10 [08:29:30]MH_SAM_APDU [08:29:30]CAPDU: 80 0D 02 02 05 3A 77 06 88 92 [08:29:30]Write to MH i2c: E2 0D 00 FE 32 80 0D 02 02 05 00 3A 77 06 88 92 00 00 85 [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:30]Read from MH i2c: E2 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 03 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 03 00 FE 32 00 90 00 A4 [08:29:30]RAPDU: 90 00 [08:29:30]wFMCommunicate OK [08:29:30]wFMCommunicate request_size=4 [08:29:30]MH_SAM_APDU [08:29:30]CAPDU: 80 0D 03 02 [08:29:30]Write to MH i2c: E2 08 00 FF 32 80 0D 03 02 00 00 00 00 AC [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:30]Read from MH i2c: E2 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 0B 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 0B 00 FF 32 00 E0 E0 63 5E CE 9C 4A B8 90 00 9A [08:29:30]RAPDU: E0 E0 63 5E CE 9C 4A B8 90 00 [08:29:30]wFMCommunicate OK [08:29:30]SAM_PROTO_SignData done [08:29:30]FM_MakeSignedData done [08:29:30]CreateOFDProtocolMessage [08:29:30]wFMCommunicate request_size=4 [08:29:30]MH_SAM_APDU [08:29:30]CAPDU: 80 11 00 00 [08:29:30]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:30]Read from MH i2c: E2 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 17 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [08:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:30]wFMCommunicate OK [08:29:30]CreateOFDProtocolMessage done [08:29:30]OFDSenderStorePacket 31075 [08:29:30]StoreOFDPacket docnum=31075 [08:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0E CB 07 01 4E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 ED B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 79 00 00 35 04 06 00 9E 3A 77 06 88 92 E0 E0 63 5E CE 9C 4A B8 [08:29:30]CheckFolder [08:29:30]dirname=/storage/ofd_packets [08:29:30]CheckFolder done [08:29:30]ProducePacketName [08:29:30]name=ofd_packets/00031075 [08:29:30]NVStorageSaveData ofd_packets/00031075 [08:29:30]File name is /storage/ofd_packets/00031075 [08:29:30]Write 301 bytes [08:29:30]NVStorageSaveData done [08:29:30]OFDSenderStorePacket done [08:29:30]KKMCreateOFDPacket done [08:29:30]NVStorageSaveData kkm_last_timestamp [08:29:30]File name is /storage/kkm_last_timestamp [08:29:30]Write 4 bytes [08:29:30]NVStorageSaveData done [08:29:30]ExternCall_PrintAddStr [08:29:30]wPrintStart [08:29:30]Write to MH i2c: 01 00 00 01 33 34 [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 07 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 07 00 01 33 00 00 00 00 00 FF 0F 49 [08:29:30]RasterBufferAndPrint [08:29:30]line Счет N : (1)343513 [08:29:30]line ИНН: 02508201610067 [08:29:30]line Контрольно-Кассовый Чек [08:29:30]line ПРОДАЖА [08:29:30]line ТРК (МРК, ГНК) : 33 [08:29:30]line Товар: 2710124130 [08:29:30]line Аи-92-К-2 [08:29:30]line 22.000 * 0.00 [08:29:30]line = 0.00 [08:29:30]line НДС 12% НСП 1% [08:29:30]line > о реализуемом товаре [08:29:30]line ИТОГО: 0.00 [08:29:30]line НСП 1% : 0.00 [08:29:30]line НДС 12% : 0.00 [08:29:30]line Наличными: 0.00 [08:29:30]line Безнал.: 0.00 [08:29:30]line Место: АЗС № 78 "Партнер Нефть" [08:29:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:29:30]line СНО: Общий режим [08:29:30]line Чек 19 23.10.2024 08:29 [08:29:30]line Смена: 117 ФФД: 1.0 [08:29:30]line ЗНМ: 0300000137 [08:29:30]line РНМ: 0000000000186857 [08:29:30]line Версия ККМ: v1.0 [08:29:30]line Талоны: ТК ГПНА Online [08:29:30]line 30011904 [08:29:30]line ФМ: 0000000002094219 [08:29:30]line ФД: 31075 [08:29:30]line ФПД: 173973942208658 [08:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082933&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31075&fm=173973942208658&tin=02508201610067®Number=0000000000186857&sum=0 [08:29:30]OFD Sender: Processing packet 31075 [packets to send 11, broken 10] [08:29:30]ProducePacketName [08:29:30]name=ofd_packets/00031075 [08:29:30]OFD Sender: To server: pG, [08:29:30]CommunicateWithHost lk.salyk.kg:30040 [08:29:30]ConnectInit lk.salyk.kg [08:29:30]written 0, free lines is 4095 [08:29:30]Connected sock=10 [08:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0E CB 07 01 4E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F0 55 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 ED B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 79 00 00 35 04 06 00 9E 3A 77 06 88 92 E0 E0 63 5E CE 9C 4A B8 [08:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 35 63 47 00 6A 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 79 00 00 F4 03 04 00 68 5E 18 67 B6 04 01 00 00 A9 A7 F5 99 1C 3B 99 8C [08:29:30]CommunicateWithHost err = 0 [08:29:30]CheckOFDResponse [08:29:30]1017 (14) - 77093643461234 [08:29:30]1041 (16) - 0000000002094219 [08:29:30]1040 (4) - 31075 [08:29:30]1012 (4) - 23.10.2024 02:24 [08:29:30]1206 (1) - 0 [08:29:30]OFD Sender: Remove packet 31075 [08:29:30]ProducePacketName [08:29:30]name=ofd_packets/00031075 [08:29:30]NVStorageDeleteData [08:29:30]Write to MH i2c: 01 00 00 2B 33 5E [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 07 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 FD 0C 6E [08:29:30]RasterBufferAndPrint [08:29:30]line [08:29:30]line [08:29:30]line [08:29:30]line [08:29:30]line [08:29:30]written 0, free lines is 3331 [08:29:30]MH_Cut [08:29:30]Write to MH i2c: D1 01 00 32 33 01 37 [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: D1 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: D1 01 00 [08:29:30]MH_I2C_Read... [08:29:30]Read from MH i2c: D1 01 00 32 33 00 36 [08:29:30]Write to MH i2c: 01 00 00 33 33 66 [08:29:30]Write i2c OK [08:29:30]MH_I2C_Read... [08:29:31]OFD Sender: No OFD packet to send [08:29:31]*** Cut start [08:29:31]*** Partial cut [08:29:31]*** CUTSNS_PIN = 1 [08:29:31]*** CUTSNS_PIN = 0 [08:29:31]*** Brake cut motor [08:29:32]Read from MH i2c: 01 [08:29:32]MH_I2C_Read... [08:29:32]*** Stop cut motor [08:29:32]*** Cut end [08:29:32]Read from MH i2c: 01 07 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: 01 07 00 33 33 00 00 00 00 00 FF 0F 7B [08:29:32]process_action close_receipt done [08:29:32]requested_data is exist [08:29:32]produce_requested_data [08:29:32]requested_item fm.sn is exist - process it [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 11 00 00 [08:29:32]Write to MH i2c: E2 08 00 34 33 80 11 00 00 00 00 00 00 E1 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 34 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [08:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:32]wFMCommunicate OK [08:29:32]requested_item fd.num is exist - process it [08:29:32]SAM_PROTO_GetFieldsCounters [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 13 00 00 [08:29:32]Write to MH i2c: E2 08 00 35 33 80 13 00 00 00 00 00 00 E4 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 62 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 62 00 35 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 79 00 00 0E 04 04 00 75 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 94 [08:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 79 00 00 0E 04 04 00 75 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 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_GetFieldsCounters done [08:29:32]requested_item shift.num is exist - process it [08:29:32]requested_item shift.opened is exist - process it [08:29:32]req_shift_opened [08:29:32]FM_GetShiftState [08:29:32]SAM_PROTO_GetShiftState [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 13 01 00 [08:29:32]Write to MH i2c: E2 08 00 36 33 80 13 01 00 00 00 00 00 E6 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 36 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A0 [08:29:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_GetShiftState done [08:29:32]FM_GetShiftState done [08:29:32]req_shift_opened done [08:29:32]requested_item shift.open_date is exist - process it [08:29:32]req_shift_open_date [08:29:32]req_shift_open_date done [08:29:32]produce_requested_data done [08:29:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31075,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:29:32]process_action_free close_receipt [08:29:32]json_value_free [08:29:32]json_value_free done [08:29:32]process_json_proto returns [08:29:32]Send response to host [08:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31075,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:29:32]free response buf [08:29:32]execute_script done [08:29:32]execute_script returns [08:29:32]free content buf [08:29:32]Sock 9.Close socket [08:29:32]Sock 9.Thread stoped [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:45]accept exits with 7 [08:29:45]New connection [08:29:45]New thread 3066899812 created [08:29:45]Thread 3067043172 joined [08:29:45]Waiting for new connection... [08:29:45] Sock 7.Parse request [08:29:45]Sock 7.Check first char [08:29:45]Sock 7.First char is OK [08:29:45]request: POST /json_proto HTTP/1.0 [08:29:45]Method: POST [08:29:45]URL: /json_proto [08:29:45]Method is POST - this is cgi request [08:29:45]url: /json_proto [08:29:45]query_string will be loaded in cgi processing [08:29:45]execute_cgi json_proto POST (null) [08:29:45]execute_cgi path=json_proto method=POST [08:29:45]POST find Content-Length [08:29:45]Host: 172.17.51.3:8080 [08:29:45]Content-Length: 679 [08:29:45]Content-Type: application/json [08:29:45] [08:29:45]POST finish read [08:29:45]Found Content-Length = 679 [08:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:45]execute_script... [08:29:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:45]POST & json_proto [08:29:45]process_json_proto [08:29:45]json parsed OK: [08:29:45]protocol is kg_v1.0 [08:29:45]action value=close_receipt [08:29:45]process_action close_receipt [08:29:45]cmd_close_receipt [08:29:45]MH_GetDate [08:29:45]Write to MH i2c: F0 00 00 37 33 59 [08:29:45]Write i2c OK [08:29:45]MH_I2C_Read... [08:29:45]Read from MH i2c: F0 [08:29:45]MH_I2C_Read... [08:29:45]Read from MH i2c: F0 09 00 [08:29:45]MH_I2C_Read... [08:29:45]Read from MH i2c: F0 09 00 37 33 00 FE B3 18 67 04 C1 95 66 52 [08:29:45]GetLastDocTimeStamp 1729672173 [08:29:45]current date 1729672190 [08:29:45]FM_GetShiftState [08:29:45]SAM_PROTO_GetShiftState [08:29:45]wFMCommunicate request_size=4 [08:29:45]MH_SAM_APDU [08:29:45]CAPDU: 80 13 01 00 [08:29:45]Write to MH i2c: E2 08 00 38 33 80 13 01 00 00 00 00 00 E8 [08:29:45]Write i2c OK [08:29:45]MH_I2C_Read... [08:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:45]Read from MH i2c: E2 [08:29:45]MH_I2C_Read... [08:29:45]Read from MH i2c: E2 0E 00 [08:29:45]MH_I2C_Read... [08:29:45]Read from MH i2c: E2 0E 00 38 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A2 [08:29:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:29:45]wFMCommunicate OK [08:29:45]SAM_PROTO_GetShiftState done [08:29:45]FM_GetShiftState done [08:29:45]opened in 1729643755 [08:29:45]opened+sec_in_day 1729730155 [08:29:45]quantity*price = 100050 [08:29:45]sum+1 = 100052 [08:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 20 23.10.2024 08:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31076 ФПД: 146252282561395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31076&fm=146252282561395&tin=02508201610067®Number=0000000000186857&sum=100000 [08:29:46]StoreToDocumentArchive [08:29:46]shift 117 fd 31076 [08:29:46]save to /storage/0117/doc_00031076 [08:29:46]save last doc name /storage/0117/doc_00031076 to /storage/kkm_last_doc_name [08:29:46]save OK [08:29:46]Clear old archive folders... [08:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:29:46]tlvbuf is 00D27B50 [08:29:46]SAM_PROTO_ClearQueue [08:29:46]wFMCommunicate request_size=4 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 09 00 00 [08:29:46]Write to MH i2c: E2 08 00 45 33 80 09 00 00 00 00 00 00 EA [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:46]Read from MH i2c: E2 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 03 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 03 00 45 33 00 90 00 EC [08:29:46]RAPDU: 90 00 [08:29:46]wFMCommunicate OK [08:29:46]SAM_PROTO_ClearQueue done [08:29:46]KKMCreateOFDPacket [08:29:46]OFDProtocolAddRootSTLVToBuf [08:29:46]FM_MakeSignedData [08:29:46]FM_MakeSignedData [08:29:46]SAM_PROTO_SignData [08:29:46]wFMCommunicate request_size=4 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 0D 01 02 [08:29:46]Write to MH i2c: E2 08 00 46 33 80 0D 01 02 00 00 00 00 F2 [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:46]Read from MH i2c: E2 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 03 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [08:29:46]RAPDU: 90 00 [08:29:46]wFMCommunicate OK [08:29:46]wFMCommunicate request_size=255 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 79 00 00 35 04 06 00 85 04 03 59 [08:29:46]Write to MH i2c: E2 02 01 47 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 79 00 00 35 04 06 00 85 04 03 59 00 00 F4 [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:47]Read from MH i2c: E2 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 03 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [08:29:47]RAPDU: 90 00 [08:29:47]wFMCommunicate OK [08:29:47]wFMCommunicate request_size=7 [08:29:47]MH_SAM_APDU [08:29:47]CAPDU: 80 0D 02 02 02 83 73 [08:29:47]Write to MH i2c: E2 0A 00 48 33 80 0D 02 02 02 00 83 73 00 00 EF [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:47]Read from MH i2c: E2 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 03 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [08:29:47]RAPDU: 90 00 [08:29:47]wFMCommunicate OK [08:29:47]wFMCommunicate request_size=4 [08:29:47]MH_SAM_APDU [08:29:47]CAPDU: 80 0D 03 02 [08:29:47]Write to MH i2c: E2 08 00 49 33 80 0D 03 02 00 00 00 00 F7 [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:47]Read from MH i2c: E2 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 0B 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 0B 00 49 33 00 C4 BF D3 D0 92 8E 34 06 90 00 78 [08:29:47]RAPDU: C4 BF D3 D0 92 8E 34 06 90 00 [08:29:47]wFMCommunicate OK [08:29:47]SAM_PROTO_SignData done [08:29:47]FM_MakeSignedData done [08:29:47]CreateOFDProtocolMessage [08:29:47]wFMCommunicate request_size=4 [08:29:47]MH_SAM_APDU [08:29:47]CAPDU: 80 11 00 00 [08:29:47]Write to MH i2c: E2 08 00 4A 33 80 11 00 00 00 00 00 00 F7 [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:47]Read from MH i2c: E2 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 17 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: E2 17 00 4A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [08:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:47]wFMCommunicate OK [08:29:47]CreateOFDProtocolMessage done [08:29:47]OFDSenderStorePacket 31076 [08:29:47]StoreOFDPacket docnum=31076 [08:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 82 AF 04 01 AA E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 79 00 00 35 04 06 00 85 04 03 59 83 73 C4 BF D3 D0 92 8E 34 06 [08:29:47]CheckFolder [08:29:47]dirname=/storage/ofd_packets [08:29:47]CheckFolder done [08:29:47]ProducePacketName [08:29:47]name=ofd_packets/00031076 [08:29:47]NVStorageSaveData ofd_packets/00031076 [08:29:47]File name is /storage/ofd_packets/00031076 [08:29:47]Write 298 bytes [08:29:47]NVStorageSaveData done [08:29:47]OFDSenderStorePacket done [08:29:47]KKMCreateOFDPacket done [08:29:47]NVStorageSaveData kkm_last_timestamp [08:29:47]File name is /storage/kkm_last_timestamp [08:29:47]Write 4 bytes [08:29:47]NVStorageSaveData done [08:29:47]ExternCall_PrintAddStr [08:29:47]wPrintStart [08:29:47]Write to MH i2c: 01 00 00 4B 33 7E [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 07 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 07 00 4B 33 00 00 00 00 00 FF 0F 93 [08:29:47]RasterBufferAndPrint [08:29:47]line Счет N : (1)343514 [08:29:47]line ИНН: 02508201610067 [08:29:47]line Контрольно-Кассовый Чек [08:29:47]line ПРОДАЖА [08:29:47]line ТРК (МРК, ГНК) : 64 [08:29:47]line Товар: 2710194210 [08:29:47]line ДТ-К-2 [08:29:47]line 13.130 * 76.20 [08:29:47]line = 1000.51 [08:29:47]line НДС 12% НСП 1% [08:29:47]line > о реализуемом товаре [08:29:47]line ОКРУГЛЕНИЕ: -0.51 [08:29:47]line ИТОГО: 1000.00 [08:29:47]line Внесено: 1000.00 [08:29:47]line СДАЧА: 0.00 [08:29:47]line НСП 1% : 8.85 [08:29:47]line НДС 12% : 106.25 [08:29:47]line Наличными: 1000.00 [08:29:47]line Безнал.: 0.00 [08:29:47]line Место: АЗС № 78 "Партнер Нефть" [08:29:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:29:47]line СНО: Общий режим [08:29:47]line Чек 20 23.10.2024 08:29 [08:29:47]line Смена: 117 ФФД: 1.0 [08:29:47]line ЗНМ: 0300000137 [08:29:47]line РНМ: 0000000000186857 [08:29:47]line Версия ККМ: v1.0 [08:29:47]line ФМ: 0000000002094219 [08:29:47]line ФД: 31076 [08:29:47]line ФПД: 146252282561395 [08:29:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31076&fm=146252282561395&tin=02508201610067®Number=0000000000186857&sum=100000 [08:29:47]written 0, free lines is 4095 [08:29:47]OFD Sender: Processing packet 31076 [packets to send 11, broken 10] [08:29:47]ProducePacketName [08:29:47]name=ofd_packets/00031076 [08:29:47]OFD Sender: To server: pG, [08:29:47]CommunicateWithHost lk.salyk.kg:30040 [08:29:47]ConnectInit lk.salyk.kg [08:29:47]Connected sock=9 [08:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 82 AF 04 01 AA E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 FE B3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 79 00 00 35 04 06 00 85 04 03 59 83 73 C4 BF D3 D0 92 8E 34 06 [08:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 1D 47 00 10 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 79 00 00 F4 03 04 00 79 5E 18 67 B6 04 01 00 00 A2 5A F6 70 8A 61 19 0C [08:29:47]CommunicateWithHost err = 0 [08:29:47]CheckOFDResponse [08:29:47]1017 (14) - 77093643461234 [08:29:47]1041 (16) - 0000000002094219 [08:29:47]1040 (4) - 31076 [08:29:47]1012 (4) - 23.10.2024 02:24 [08:29:47]1206 (1) - 0 [08:29:47]OFD Sender: Remove packet 31076 [08:29:47]ProducePacketName [08:29:47]name=ofd_packets/00031076 [08:29:47]NVStorageDeleteData [08:29:47]Write to MH i2c: 01 00 00 76 33 A9 [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 07 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: 01 07 00 76 33 00 00 00 00 00 EA 0C A6 [08:29:47]RasterBufferAndPrint [08:29:47]line [08:29:47]line [08:29:47]line [08:29:47]line [08:29:47]line [08:29:47]written 0, free lines is 3315 [08:29:47]MH_Cut [08:29:47]Write to MH i2c: D1 01 00 7D 33 01 82 [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: D1 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: D1 01 00 [08:29:47]MH_I2C_Read... [08:29:47]Read from MH i2c: D1 01 00 7D 33 00 81 [08:29:47]Write to MH i2c: 01 00 00 7E 33 B1 [08:29:47]Write i2c OK [08:29:47]MH_I2C_Read... [08:29:48]OFD Sender: No OFD packet to send [08:29:48]*** Cut start [08:29:48]*** Partial cut [08:29:48]*** CUTSNS_PIN = 1 [08:29:48]*** CUTSNS_PIN = 0 [08:29:48]*** Brake cut motor [08:29:48]Read from MH i2c: 01 [08:29:48]MH_I2C_Read... [08:29:48]*** Stop cut motor [08:29:48]*** Cut end [08:29:48]Read from MH i2c: 01 07 00 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: 01 07 00 7E 33 00 00 00 00 00 FF 0F C6 [08:29:48]process_action close_receipt done [08:29:48]requested_data is exist [08:29:48]produce_requested_data [08:29:48]requested_item fm.sn is exist - process it [08:29:48]wFMCommunicate request_size=4 [08:29:48]MH_SAM_APDU [08:29:48]CAPDU: 80 11 00 00 [08:29:48]Write to MH i2c: E2 08 00 7F 33 80 11 00 00 00 00 00 00 2C [08:29:48]Write i2c OK [08:29:48]MH_I2C_Read... [08:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:48]Read from MH i2c: E2 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: E2 17 00 [08:29:48]MH_I2C_Read... [08:29:48]Read from MH i2c: E2 17 00 7F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [08:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:48]wFMCommunicate OK [08:29:48]requested_item fd.num is exist - process it [08:29:48]SAM_PROTO_GetFieldsCounters [08:29:48]wFMCommunicate request_size=4 [08:29:48]MH_SAM_APDU [08:29:48]CAPDU: 80 13 00 00 [08:29:48]Write to MH i2c: E2 08 00 80 33 80 13 00 00 00 00 00 00 2F [08:29:48]Write i2c OK [08:29:48]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 62 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 62 00 80 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 79 00 00 0E 04 04 00 75 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 E3 [08:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 79 00 00 0E 04 04 00 75 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 [08:29:49]wFMCommunicate OK [08:29:49]SAM_PROTO_GetFieldsCounters done [08:29:49]requested_item shift.num is exist - process it [08:29:49]requested_item shift.opened is exist - process it [08:29:49]req_shift_opened [08:29:49]FM_GetShiftState [08:29:49]SAM_PROTO_GetShiftState [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 13 01 00 [08:29:49]Write to MH i2c: E2 08 00 81 33 80 13 01 00 00 00 00 00 31 [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0E 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0E 00 81 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EB [08:29:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:29:49]wFMCommunicate OK [08:29:49]SAM_PROTO_GetShiftState done [08:29:49]FM_GetShiftState done [08:29:49]req_shift_opened done [08:29:49]requested_item shift.open_date is exist - process it [08:29:49]req_shift_open_date [08:29:49]req_shift_open_date done [08:29:49]produce_requested_data done [08:29:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31076,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:29:49]process_action_free close_receipt [08:29:49]json_value_free [08:29:49]json_value_free done [08:29:49]process_json_proto returns [08:29:49]Send response to host [08:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31076,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:29:49]free response buf [08:29:49]execute_script done [08:29:49]execute_script returns [08:29:49]free content buf [08:29:49]Sock 7.Close socket [08:29:49]Sock 7.Thread stoped [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:29]accept exits with 10 [08:31:29]New connection [08:31:29]New thread 3067043172 created [08:31:29]Thread 3066899812 joined [08:31:29]Waiting for new connection... [08:31:29] Sock 10.Parse request [08:31:29]Sock 10.Check first char [08:31:29]Sock 10.First char is OK [08:31:29]request: POST /json_proto HTTP/1.0 [08:31:29]Method: POST [08:31:29]URL: /json_proto [08:31:29]Method is POST - this is cgi request [08:31:29]url: /json_proto [08:31:29]query_string will be loaded in cgi processing [08:31:29]execute_cgi json_proto POST (null) [08:31:29]execute_cgi path=json_proto method=POST [08:31:29]POST find Content-Length [08:31:29]Host: 172.17.51.3:8080 [08:31:29]Content-Length: 754 [08:31:29]Content-Type: application/json [08:31:29] [08:31:29]POST finish read [08:31:29]Found Content-Length = 754 [08:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:29]execute_script... [08:31:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30018396", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:29]POST & json_proto [08:31:29]process_json_proto [08:31:29]json parsed OK: [08:31:29]protocol is kg_v1.0 [08:31:29]action value=close_receipt [08:31:29]process_action close_receipt [08:31:29]cmd_close_receipt [08:31:29]MH_GetDate [08:31:29]Write to MH i2c: F0 00 00 82 33 A4 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 09 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: F0 09 00 82 33 00 67 B4 18 67 04 C1 95 66 07 [08:31:29]GetLastDocTimeStamp 1729672190 [08:31:29]current date 1729672295 [08:31:29]FM_GetShiftState [08:31:29]SAM_PROTO_GetShiftState [08:31:29]wFMCommunicate request_size=4 [08:31:29]MH_SAM_APDU [08:31:29]CAPDU: 80 13 01 00 [08:31:29]Write to MH i2c: E2 08 00 83 33 80 13 01 00 00 00 00 00 33 [08:31:29]Write i2c OK [08:31:29]MH_I2C_Read... [08:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:29]Read from MH i2c: E2 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: E2 0E 00 [08:31:29]MH_I2C_Read... [08:31:29]Read from MH i2c: E2 0E 00 83 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 ED [08:31:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:31:29]wFMCommunicate OK [08:31:29]SAM_PROTO_GetShiftState done [08:31:29]FM_GetShiftState done [08:31:29]opened in 1729643755 [08:31:29]opened+sec_in_day 1729730155 [08:31:29]quantity*price = 0 [08:31:29]sum+1 = 1 [08:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 21 23.10.2024 08:31 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30018396 ФМ: 0000000002094219 ФД: 31077 ФПД: 74847296527025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083135&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31077&fm=74847296527025&tin=02508201610067®Number=0000000000186857&sum=0 [08:31:31]StoreToDocumentArchive [08:31:31]shift 117 fd 31077 [08:31:31]save to /storage/0117/doc_00031077 [08:31:31]save last doc name /storage/0117/doc_00031077 to /storage/kkm_last_doc_name [08:31:31]save OK [08:31:31]Clear old archive folders... [08:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:31]tlvbuf is 00D63490 [08:31:31]SAM_PROTO_ClearQueue [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 09 00 00 [08:31:31]Write to MH i2c: E2 08 00 90 33 80 09 00 00 00 00 00 00 35 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 90 33 00 90 00 37 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_ClearQueue done [08:31:31]KKMCreateOFDPacket [08:31:31]OFDProtocolAddRootSTLVToBuf [08:31:31]FM_MakeSignedData [08:31:31]FM_MakeSignedData [08:31:31]SAM_PROTO_SignData [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 01 02 [08:31:31]Write to MH i2c: E2 08 00 91 33 80 0D 01 02 00 00 00 00 3D [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=255 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 79 00 00 35 04 06 00 44 [08:31:31]Write to MH i2c: E2 02 01 92 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 79 00 00 35 04 06 00 44 00 00 34 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 92 33 00 90 00 39 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=10 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 05 12 BE 85 9A B1 [08:31:31]Write to MH i2c: E2 0D 00 93 33 80 0D 02 02 05 00 12 BE 85 9A B1 00 00 EA [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 93 33 00 90 00 3A [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 03 02 [08:31:31]Write to MH i2c: E2 08 00 94 33 80 0D 03 02 00 00 00 00 42 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 94 33 00 17 58 C7 B9 AC 21 97 9A 90 00 30 [08:31:31]RAPDU: 17 58 C7 B9 AC 21 97 9A 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_SignData done [08:31:31]FM_MakeSignedData done [08:31:31]CreateOFDProtocolMessage [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 11 00 00 [08:31:31]Write to MH i2c: E2 08 00 95 33 80 11 00 00 00 00 00 00 42 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 95 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [08:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:31]wFMCommunicate OK [08:31:31]CreateOFDProtocolMessage done [08:31:31]OFDSenderStorePacket 31077 [08:31:31]StoreOFDPacket docnum=31077 [08:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 F4 07 01 29 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 79 00 00 35 04 06 00 44 12 BE 85 9A B1 17 58 C7 B9 AC 21 97 9A [08:31:31]CheckFolder [08:31:31]dirname=/storage/ofd_packets [08:31:31]CheckFolder done [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00031077 [08:31:31]NVStorageSaveData ofd_packets/00031077 [08:31:31]File name is /storage/ofd_packets/00031077 [08:31:31]Write 301 bytes [08:31:31]NVStorageSaveData done [08:31:31]OFDSenderStorePacket done [08:31:31]KKMCreateOFDPacket done [08:31:31]NVStorageSaveData kkm_last_timestamp [08:31:31]File name is /storage/kkm_last_timestamp [08:31:31]Write 4 bytes [08:31:31]NVStorageSaveData done [08:31:31]ExternCall_PrintAddStr [08:31:31]wPrintStart [08:31:31]Write to MH i2c: 01 00 00 96 33 C9 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 96 33 00 00 00 00 00 FF 0F DE [08:31:31]RasterBufferAndPrint [08:31:31]line Счет N : (1)343515 [08:31:31]line ИНН: 02508201610067 [08:31:31]line Контрольно-Кассовый Чек [08:31:31]line ПРОДАЖА [08:31:31]line ТРК (МРК, ГНК) : 43 [08:31:31]line Товар: 2710124130 [08:31:31]line Аи-92-К-2 [08:31:31]line 30.000 * 0.00 [08:31:31]line = 0.00 [08:31:31]line НДС 12% НСП 1% [08:31:31]line > о реализуемом товаре [08:31:31]line ИТОГО: 0.00 [08:31:31]line НСП 1% : 0.00 [08:31:31]line НДС 12% : 0.00 [08:31:31]line Наличными: 0.00 [08:31:31]line Безнал.: 0.00 [08:31:31]line Место: АЗС № 78 "Партнер Нефть" [08:31:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:31:31]line СНО: Общий режим [08:31:31]line Чек 21 23.10.2024 08:31 [08:31:31]line Смена: 117 ФФД: 1.0 [08:31:31]line ЗНМ: 0300000137 [08:31:31]line РНМ: 0000000000186857 [08:31:31]line Версия ККМ: v1.0 [08:31:31]line Талоны: ТК ГПНА Online [08:31:31]line 30018396 [08:31:31]line ФМ: 0000000002094219 [08:31:31]line ФД: 31077 [08:31:31]line ФПД: 74847296527025 [08:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083135&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31077&fm=74847296527025&tin=02508201610067®Number=0000000000186857&sum=0 [08:31:31]written 0, free lines is 4095 [08:31:31]OFD Sender: Processing packet 31077 [packets to send 11, broken 10] [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00031077 [08:31:31]OFD Sender: To server: pG, [08:31:31]CommunicateWithHost lk.salyk.kg:30040 [08:31:31]ConnectInit lk.salyk.kg [08:31:31]Connected sock=9 [08:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 F4 07 01 29 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 67 B4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 79 00 00 35 04 06 00 44 12 BE 85 9A B1 17 58 C7 B9 AC 21 97 9A [08:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A2 2C 47 00 85 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 79 00 00 F4 03 04 00 E1 5E 18 67 B6 04 01 00 00 7B 21 3D 25 D2 8A 1A C6 [08:31:31]CommunicateWithHost err = 0 [08:31:31]CheckOFDResponse [08:31:31]1017 (14) - 77093643461234 [08:31:31]1041 (16) - 0000000002094219 [08:31:31]1040 (4) - 31077 [08:31:31]1012 (4) - 23.10.2024 02:26 [08:31:31]1206 (1) - 0 [08:31:31]OFD Sender: Remove packet 31077 [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00031077 [08:31:31]NVStorageDeleteData [08:31:31]Write to MH i2c: 01 00 00 C0 33 F3 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 C0 33 00 00 00 00 00 FC 0C 02 [08:31:31]RasterBufferAndPrint [08:31:31]line [08:31:31]line [08:31:31]line [08:31:31]line [08:31:31]line [08:31:31]written 0, free lines is 3330 [08:31:32]MH_Cut [08:31:32]Write to MH i2c: D1 01 00 C7 33 01 CC [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 C7 33 00 CB [08:31:32]Write to MH i2c: 01 00 00 C8 33 FB [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]OFD Sender: No OFD packet to send [08:31:32]*** Cut start [08:31:32]*** Partial cut [08:31:32]*** CUTSNS_PIN = 1 [08:31:32]*** CUTSNS_PIN = 0 [08:31:32]*** Brake cut motor [08:31:33]Read from MH i2c: 01 [08:31:33]MH_I2C_Read... [08:31:33]*** Stop cut motor [08:31:33]*** Cut end [08:31:33]Read from MH i2c: 01 07 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 C8 33 00 00 00 00 00 FF 0F 10 [08:31:33]process_action close_receipt done [08:31:33]requested_data is exist [08:31:33]produce_requested_data [08:31:33]requested_item fm.sn is exist - process it [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 11 00 00 [08:31:33]Write to MH i2c: E2 08 00 C9 33 80 11 00 00 00 00 00 00 76 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 C9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [08:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:33]wFMCommunicate OK [08:31:33]requested_item fd.num is exist - process it [08:31:33]SAM_PROTO_GetFieldsCounters [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 13 00 00 [08:31:33]Write to MH i2c: E2 08 00 CA 33 80 13 00 00 00 00 00 00 79 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 62 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 62 00 CA 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 79 00 00 0E 04 04 00 75 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 31 [08:31:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 79 00 00 0E 04 04 00 75 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 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_GetFieldsCounters done [08:31:33]requested_item shift.num is exist - process it [08:31:33]requested_item shift.opened is exist - process it [08:31:33]req_shift_opened [08:31:33]FM_GetShiftState [08:31:33]SAM_PROTO_GetShiftState [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 13 01 00 [08:31:33]Write to MH i2c: E2 08 00 CB 33 80 13 01 00 00 00 00 00 7B [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0E 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0E 00 CB 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 35 [08:31:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_GetShiftState done [08:31:33]FM_GetShiftState done [08:31:33]req_shift_opened done [08:31:33]requested_item shift.open_date is exist - process it [08:31:33]req_shift_open_date [08:31:33]req_shift_open_date done [08:31:33]produce_requested_data done [08:31:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31077,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:31:33]process_action_free close_receipt [08:31:33]json_value_free [08:31:33]json_value_free done [08:31:33]process_json_proto returns [08:31:33]Send response to host [08:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31077,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:31:33]free response buf [08:31:33]execute_script done [08:31:33]execute_script returns [08:31:33]free content buf [08:31:33]Sock 10.Close socket [08:31:33]Sock 10.Thread stoped [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:28]accept exits with 7 [08:36:28]New connection [08:36:28]New thread 3066899812 created [08:36:28]Thread 3067043172 joined [08:36:28]Waiting for new connection... [08:36:28] Sock 7.Parse request [08:36:28]Sock 7.Check first char [08:36:28]Sock 7.First char is OK [08:36:28]request: POST /json_proto HTTP/1.0 [08:36:28]Method: POST [08:36:28]URL: /json_proto [08:36:28]Method is POST - this is cgi request [08:36:28]url: /json_proto [08:36:28]query_string will be loaded in cgi processing [08:36:28]execute_cgi json_proto POST (null) [08:36:28]execute_cgi path=json_proto method=POST [08:36:28]POST find Content-Length [08:36:28]Host: 172.17.51.3:8080 [08:36:28]Content-Length: 674 [08:36:28]Content-Type: application/json [08:36:28] [08:36:28]POST finish read [08:36:28]Found Content-Length = 674 [08:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:28]execute_script... [08:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:28]POST & json_proto [08:36:28]process_json_proto [08:36:28]json parsed OK: [08:36:28]protocol is kg_v1.0 [08:36:28]action value=close_receipt [08:36:28]process_action close_receipt [08:36:28]cmd_close_receipt [08:36:28]MH_GetDate [08:36:28]Write to MH i2c: F0 00 00 CC 33 EE [08:36:28]Write i2c OK [08:36:28]MH_I2C_Read... [08:36:28]Read from MH i2c: F0 [08:36:28]MH_I2C_Read... [08:36:28]Read from MH i2c: F0 09 00 [08:36:28]MH_I2C_Read... [08:36:28]Read from MH i2c: F0 09 00 CC 33 00 91 B5 18 67 04 C1 95 66 7C [08:36:28]GetLastDocTimeStamp 1729672295 [08:36:28]current date 1729672593 [08:36:28]FM_GetShiftState [08:36:28]SAM_PROTO_GetShiftState [08:36:28]wFMCommunicate request_size=4 [08:36:28]MH_SAM_APDU [08:36:28]CAPDU: 80 13 01 00 [08:36:28]Write to MH i2c: E2 08 00 CD 33 80 13 01 00 00 00 00 00 7D [08:36:28]Write i2c OK [08:36:28]MH_I2C_Read... [08:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:28]Read from MH i2c: E2 [08:36:28]MH_I2C_Read... [08:36:28]Read from MH i2c: E2 0E 00 [08:36:28]MH_I2C_Read... [08:36:28]Read from MH i2c: E2 0E 00 CD 33 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 37 [08:36:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:36:28]wFMCommunicate OK [08:36:28]SAM_PROTO_GetShiftState done [08:36:28]FM_GetShiftState done [08:36:28]opened in 1729643755 [08:36:28]opened+sec_in_day 1729730155 [08:36:28]quantity*price = 40005 [08:36:28]sum+1 = 40006 [08:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 22 23.10.2024 08:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31078 ФПД: 150181996567176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31078&fm=150181996567176&tin=02508201610067®Number=0000000000186857&sum=40000 [08:36:29]StoreToDocumentArchive [08:36:29]shift 117 fd 31078 [08:36:29]save to /storage/0117/doc_00031078 [08:36:29]save last doc name /storage/0117/doc_00031078 to /storage/kkm_last_doc_name [08:36:29]save OK [08:36:29]Clear old archive folders... [08:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:36:29]tlvbuf is B6DBE2A0 [08:36:29]SAM_PROTO_ClearQueue [08:36:29]wFMCommunicate request_size=4 [08:36:29]MH_SAM_APDU [08:36:29]CAPDU: 80 09 00 00 [08:36:29]Write to MH i2c: E2 08 00 DA 33 80 09 00 00 00 00 00 00 7F [08:36:29]Write i2c OK [08:36:29]MH_I2C_Read... [08:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:29]Read from MH i2c: E2 [08:36:29]MH_I2C_Read... [08:36:29]Read from MH i2c: E2 03 00 [08:36:29]MH_I2C_Read... [08:36:29]Read from MH i2c: E2 03 00 DA 33 00 90 00 81 [08:36:29]RAPDU: 90 00 [08:36:29]wFMCommunicate OK [08:36:29]SAM_PROTO_ClearQueue done [08:36:29]KKMCreateOFDPacket [08:36:29]OFDProtocolAddRootSTLVToBuf [08:36:29]FM_MakeSignedData [08:36:29]FM_MakeSignedData [08:36:29]SAM_PROTO_SignData [08:36:29]wFMCommunicate request_size=4 [08:36:29]MH_SAM_APDU [08:36:29]CAPDU: 80 0D 01 02 [08:36:29]Write to MH i2c: E2 08 00 DB 33 80 0D 01 02 00 00 00 00 87 [08:36:29]Write i2c OK [08:36:29]MH_I2C_Read... [08:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:29]Read from MH i2c: E2 [08:36:29]MH_I2C_Read... [08:36:29]Read from MH i2c: E2 03 00 [08:36:29]MH_I2C_Read... [08:36:29]Read from MH i2c: E2 03 00 DB 33 00 90 00 82 [08:36:29]RAPDU: 90 00 [08:36:29]wFMCommunicate OK [08:36:29]wFMCommunicate request_size=255 [08:36:29]MH_SAM_APDU [08:36:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 91 B5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 79 00 00 35 04 06 00 88 96 F8 8E [08:36:29]Write to MH i2c: E2 02 01 DC 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 91 B5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 79 00 00 35 04 06 00 88 96 F8 8E 00 00 D4 [08:36:29]Write i2c OK [08:36:29]MH_I2C_Read... [08:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:30]Read from MH i2c: E2 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 03 00 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 03 00 DC 33 00 90 00 83 [08:36:30]RAPDU: 90 00 [08:36:30]wFMCommunicate OK [08:36:30]wFMCommunicate request_size=7 [08:36:30]MH_SAM_APDU [08:36:30]CAPDU: 80 0D 02 02 02 9A 88 [08:36:30]Write to MH i2c: E2 0A 00 DD 33 80 0D 02 02 02 00 9A 88 00 00 B0 [08:36:30]Write i2c OK [08:36:30]MH_I2C_Read... [08:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:30]Read from MH i2c: E2 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 03 00 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 03 00 DD 33 00 90 00 84 [08:36:30]RAPDU: 90 00 [08:36:30]wFMCommunicate OK [08:36:30]wFMCommunicate request_size=4 [08:36:30]MH_SAM_APDU [08:36:30]CAPDU: 80 0D 03 02 [08:36:30]Write to MH i2c: E2 08 00 DE 33 80 0D 03 02 00 00 00 00 8C [08:36:30]Write i2c OK [08:36:30]MH_I2C_Read... [08:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:30]Read from MH i2c: E2 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 0B 00 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 0B 00 DE 33 00 BC 25 3A 9A 07 58 7C 64 90 00 81 [08:36:30]RAPDU: BC 25 3A 9A 07 58 7C 64 90 00 [08:36:30]wFMCommunicate OK [08:36:30]SAM_PROTO_SignData done [08:36:30]FM_MakeSignedData done [08:36:30]CreateOFDProtocolMessage [08:36:30]wFMCommunicate request_size=4 [08:36:30]MH_SAM_APDU [08:36:30]CAPDU: 80 11 00 00 [08:36:30]Write to MH i2c: E2 08 00 DF 33 80 11 00 00 00 00 00 00 8C [08:36:30]Write i2c OK [08:36:30]MH_I2C_Read... [08:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:30]Read from MH i2c: E2 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 17 00 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: E2 17 00 DF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [08:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:36:30]wFMCommunicate OK [08:36:30]CreateOFDProtocolMessage done [08:36:30]OFDSenderStorePacket 31078 [08:36:30]StoreOFDPacket docnum=31078 [08:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 46 04 01 71 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 91 B5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 79 00 00 35 04 06 00 88 96 F8 8E 9A 88 BC 25 3A 9A 07 58 7C 64 [08:36:30]CheckFolder [08:36:30]dirname=/storage/ofd_packets [08:36:30]CheckFolder done [08:36:30]ProducePacketName [08:36:30]name=ofd_packets/00031078 [08:36:30]NVStorageSaveData ofd_packets/00031078 [08:36:30]File name is /storage/ofd_packets/00031078 [08:36:30]Write 298 bytes [08:36:30]NVStorageSaveData done [08:36:30]OFDSenderStorePacket done [08:36:30]KKMCreateOFDPacket done [08:36:30]NVStorageSaveData kkm_last_timestamp [08:36:30]File name is /storage/kkm_last_timestamp [08:36:30]Write 4 bytes [08:36:30]NVStorageSaveData done [08:36:30]ExternCall_PrintAddStr [08:36:30]wPrintStart [08:36:30]Write to MH i2c: 01 00 00 E0 33 13 [08:36:30]Write i2c OK [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: 01 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: 01 07 00 [08:36:30]MH_I2C_Read... [08:36:30]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 FF 0F 28 [08:36:30]RasterBufferAndPrint [08:36:30]line Счет N : (1)343516 [08:36:30]line ИНН: 02508201610067 [08:36:30]line Контрольно-Кассовый Чек [08:36:30]line ПРОДАЖА [08:36:30]line ТРК (МРК, ГНК) : 54 [08:36:30]line Товар: 2710194210 [08:36:30]line ДТ-К-2 [08:36:30]line 5.250 * 76.20 [08:36:30]line = 400.05 [08:36:30]line НДС 12% НСП 1% [08:36:30]line > о реализуемом товаре [08:36:30]line ОКРУГЛЕНИЕ: -0.05 [08:36:30]line ИТОГО: 400.00 [08:36:30]line Внесено: 400.00 [08:36:30]line СДАЧА: 0.00 [08:36:30]line НСП 1% : 3.54 [08:36:30]line НДС 12% : 42.48 [08:36:30]line Наличными: 400.00 [08:36:30]line Безнал.: 0.00 [08:36:30]line Место: АЗС № 78 "Партнер Нефть" [08:36:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:36:30]line СНО: Общий режим [08:36:30]line Чек 22 23.10.2024 08:36 [08:36:30]line Смена: 117 ФФД: 1.0 [08:36:30]line ЗНМ: 0300000137 [08:36:30]line РНМ: 0000000000186857 [08:36:30]line Версия ККМ: v1.0 [08:36:30]line ФМ: 0000000002094219 [08:36:30]line ФД: 31078 [08:36:30]line ФПД: 150181996567176 [08:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31078&fm=150181996567176&tin=02508201610067®Number=0000000000186857&sum=40000 [08:36:30]OFD Sender: Processing packet 31078 [packets to send 11, broken 10] [08:36:30]ProducePacketName [08:36:30]name=ofd_packets/00031078 [08:36:30]OFD Sender: To server: pG, [08:36:30]CommunicateWithHost lk.salyk.kg:30040 [08:36:30]ConnectInit lk.salyk.kg [08:36:30]written 0, free lines is 4095 [08:36:30]Connected sock=10 [08:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 46 04 01 71 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 91 B5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 79 00 00 35 04 06 00 88 96 F8 8E 9A 88 BC 25 3A 9A 07 58 7C 64 [08:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 51 32 47 00 DA 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 32 30 39 34 32 31 39 10 04 04 00 66 79 00 00 F4 03 04 00 0C 60 18 67 B6 04 01 00 00 55 B6 B3 56 6D 97 81 09 [08:36:31]CommunicateWithHost err = 0 [08:36:31]CheckOFDResponse [08:36:31]1017 (14) - 77093643461234 [08:36:31]1041 (16) - 0000000002094219 [08:36:31]1040 (4) - 31078 [08:36:31]1012 (4) - 23.10.2024 02:31 [08:36:31]1206 (1) - 0 [08:36:31]OFD Sender: Remove packet 31078 [08:36:31]ProducePacketName [08:36:31]name=ofd_packets/00031078 [08:36:31]NVStorageDeleteData [08:36:31]Write to MH i2c: 01 00 00 0B 34 3F [08:36:31]Write i2c OK [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: 01 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: 01 07 00 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: 01 07 00 0B 34 00 00 00 00 00 EC 0C 3E [08:36:31]RasterBufferAndPrint [08:36:31]line [08:36:31]line [08:36:31]line [08:36:31]line [08:36:31]line [08:36:31]written 0, free lines is 3314 [08:36:31]MH_Cut [08:36:31]Write to MH i2c: D1 01 00 12 34 01 18 [08:36:31]Write i2c OK [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: D1 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: D1 01 00 [08:36:31]MH_I2C_Read... [08:36:31]Read from MH i2c: D1 01 00 12 34 00 17 [08:36:31]Write to MH i2c: 01 00 00 13 34 47 [08:36:31]Write i2c OK [08:36:31]MH_I2C_Read... [08:36:31]OFD Sender: No OFD packet to send [08:36:31]*** Cut start [08:36:31]*** Partial cut [08:36:31]*** CUTSNS_PIN = 1 [08:36:31]*** CUTSNS_PIN = 0 [08:36:32]*** Brake cut motor [08:36:32]Read from MH i2c: 01 [08:36:32]MH_I2C_Read... [08:36:32]*** Stop cut motor [08:36:32]*** Cut end [08:36:32]Read from MH i2c: 01 07 00 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 FF 0F 5C [08:36:32]process_action close_receipt done [08:36:32]requested_data is exist [08:36:32]produce_requested_data [08:36:32]requested_item fm.sn is exist - process it [08:36:32]wFMCommunicate request_size=4 [08:36:32]MH_SAM_APDU [08:36:32]CAPDU: 80 11 00 00 [08:36:32]Write to MH i2c: E2 08 00 14 34 80 11 00 00 00 00 00 00 C2 [08:36:32]Write i2c OK [08:36:32]MH_I2C_Read... [08:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:32]Read from MH i2c: E2 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 17 00 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 17 00 14 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [08:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:36:32]wFMCommunicate OK [08:36:32]requested_item fd.num is exist - process it [08:36:32]SAM_PROTO_GetFieldsCounters [08:36:32]wFMCommunicate request_size=4 [08:36:32]MH_SAM_APDU [08:36:32]CAPDU: 80 13 00 00 [08:36:32]Write to MH i2c: E2 08 00 15 34 80 13 00 00 00 00 00 00 C5 [08:36:32]Write i2c OK [08:36:32]MH_I2C_Read... [08:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:32]Read from MH i2c: E2 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 62 00 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 62 00 15 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 79 00 00 0E 04 04 00 75 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 81 [08:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 79 00 00 0E 04 04 00 75 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 [08:36:32]wFMCommunicate OK [08:36:32]SAM_PROTO_GetFieldsCounters done [08:36:32]requested_item shift.num is exist - process it [08:36:32]requested_item shift.opened is exist - process it [08:36:32]req_shift_opened [08:36:32]FM_GetShiftState [08:36:32]SAM_PROTO_GetShiftState [08:36:32]wFMCommunicate request_size=4 [08:36:32]MH_SAM_APDU [08:36:32]CAPDU: 80 13 01 00 [08:36:32]Write to MH i2c: E2 08 00 16 34 80 13 01 00 00 00 00 00 C7 [08:36:32]Write i2c OK [08:36:32]MH_I2C_Read... [08:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:32]Read from MH i2c: E2 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 0E 00 [08:36:32]MH_I2C_Read... [08:36:32]Read from MH i2c: E2 0E 00 16 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 81 [08:36:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:36:32]wFMCommunicate OK [08:36:32]SAM_PROTO_GetShiftState done [08:36:32]FM_GetShiftState done [08:36:32]req_shift_opened done [08:36:32]requested_item shift.open_date is exist - process it [08:36:32]req_shift_open_date [08:36:32]req_shift_open_date done [08:36:32]produce_requested_data done [08:36:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31078,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:36:32]process_action_free close_receipt [08:36:32]json_value_free [08:36:32]json_value_free done [08:36:32]process_json_proto returns [08:36:32]Send response to host [08:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31078,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:36:32]free response buf [08:36:32]execute_script done [08:36:32]execute_script returns [08:36:32]free content buf [08:36:32]Sock 7.Close socket [08:36:32]Sock 7.Thread stoped [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46: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:15]accept exits with 9 [08:48:15]New connection [08:48:15]New thread 3067043172 created [08:48:15]Thread 3066899812 joined [08:48:15]Waiting for new connection... [08:48:15] Sock 9.Parse request [08:48:15]Sock 9.Check first char [08:48:15]Sock 9.First char is OK [08:48:15]request: POST /json_proto HTTP/1.0 [08:48:15]Method: POST [08:48:15]URL: /json_proto [08:48:15]Method is POST - this is cgi request [08:48:15]url: /json_proto [08:48:15]query_string will be loaded in cgi processing [08:48:15]execute_cgi json_proto POST (null) [08:48:15]execute_cgi path=json_proto method=POST [08:48:15]POST find Content-Length [08:48:15]Host: 172.17.51.3:8080 [08:48:15]Content-Length: 840 [08:48:15]Content-Type: application/json [08:48:15] [08:48:15]POST finish read [08:48:15]Found Content-Length = 840 [08:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:15]execute_script... [08:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1300.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:15]POST & json_proto [08:48:15]process_json_proto [08:48:15]json parsed OK: [08:48:15]protocol is kg_v1.0 [08:48:15]action value=close_receipt [08:48:15]process_action close_receipt [08:48:15]cmd_close_receipt [08:48:15]MH_GetDate [08:48:15]Write to MH i2c: F0 00 00 17 34 3A [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: F0 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: F0 09 00 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: F0 09 00 17 34 00 55 B8 18 67 04 C1 95 66 8F [08:48:15]GetLastDocTimeStamp 1729672593 [08:48:15]current date 1729673301 [08:48:15]FM_GetShiftState [08:48:15]SAM_PROTO_GetShiftState [08:48:15]wFMCommunicate request_size=4 [08:48:15]MH_SAM_APDU [08:48:15]CAPDU: 80 13 01 00 [08:48:15]Write to MH i2c: E2 08 00 18 34 80 13 01 00 00 00 00 00 C9 [08:48:15]Write i2c OK [08:48:15]MH_I2C_Read... [08:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:15]Read from MH i2c: E2 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 0E 00 [08:48:15]MH_I2C_Read... [08:48:15]Read from MH i2c: E2 0E 00 18 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 83 [08:48:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:48:15]wFMCommunicate OK [08:48:15]SAM_PROTO_GetShiftState done [08:48:15]FM_GetShiftState done [08:48:15]opened in 1729643755 [08:48:15]opened+sec_in_day 1729730155 [08:48:15]quantity*price = 130073 [08:48:15]sum+1 = 130074 [08:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.73 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 0.00 Безнал.: 1300.73 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 23 23.10.2024 08:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31079 ФПД: 257158607097144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31079&fm=257158607097144&tin=02508201610067®Number=0000000000186857&sum=130073 [08:48:17]StoreToDocumentArchive [08:48:17]shift 117 fd 31079 [08:48:17]save to /storage/0117/doc_00031079 [08:48:17]save last doc name /storage/0117/doc_00031079 to /storage/kkm_last_doc_name [08:48:17]save OK [08:48:17]Clear old archive folders... [08:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:17]tlvbuf is 00CC1C50 [08:48:17]SAM_PROTO_ClearQueue [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 09 00 00 [08:48:17]Write to MH i2c: E2 08 00 25 34 80 09 00 00 00 00 00 00 CB [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:17]OFD Sender: No OFD packet to send [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 25 34 00 90 00 CD [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_ClearQueue done [08:48:17]KKMCreateOFDPacket [08:48:17]OFDProtocolAddRootSTLVToBuf [08:48:17]FM_MakeSignedData [08:48:17]FM_MakeSignedData [08:48:17]SAM_PROTO_SignData [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 01 02 [08:48:17]Write to MH i2c: E2 08 00 26 34 80 0D 01 02 00 00 00 00 D3 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 26 34 00 90 00 CE [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=255 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 55 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 79 00 00 35 04 06 00 E9 E2 67 6D [08:48:17]Write to MH i2c: E2 02 01 27 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 55 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 79 00 00 35 04 06 00 E9 E2 67 6D 00 00 89 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 27 34 00 90 00 CF [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=7 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 02 02 02 4D 38 [08:48:17]Write to MH i2c: E2 0A 00 28 34 80 0D 02 02 02 00 4D 38 00 00 5F [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 28 34 00 90 00 D0 [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 03 02 [08:48:17]Write to MH i2c: E2 08 00 29 34 80 0D 03 02 00 00 00 00 D8 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 29 34 00 6F AC FB 22 08 6B 46 DA 90 00 A4 [08:48:17]RAPDU: 6F AC FB 22 08 6B 46 DA 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_SignData done [08:48:17]FM_MakeSignedData done [08:48:17]CreateOFDProtocolMessage [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 11 00 00 [08:48:17]Write to MH i2c: E2 08 00 2A 34 80 11 00 00 00 00 00 00 D8 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 17 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 17 00 2A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [08:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:17]wFMCommunicate OK [08:48:17]CreateOFDProtocolMessage done [08:48:17]OFDSenderStorePacket 31079 [08:48:17]StoreOFDPacket docnum=31079 [08:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 66 EB 04 01 70 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 55 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 79 00 00 35 04 06 00 E9 E2 67 6D 4D 38 6F AC FB 22 08 6B 46 DA [08:48:17]CheckFolder [08:48:17]dirname=/storage/ofd_packets [08:48:17]CheckFolder done [08:48:17]ProducePacketName [08:48:17]name=ofd_packets/00031079 [08:48:17]NVStorageSaveData ofd_packets/00031079 [08:48:17]File name is /storage/ofd_packets/00031079 [08:48:17]Write 298 bytes [08:48:17]NVStorageSaveData done [08:48:17]OFDSenderStorePacket done [08:48:17]KKMCreateOFDPacket done [08:48:17]NVStorageSaveData kkm_last_timestamp [08:48:17]File name is /storage/kkm_last_timestamp [08:48:17]Write 4 bytes [08:48:17]NVStorageSaveData done [08:48:17]ExternCall_PrintAddStr [08:48:17]wPrintStart [08:48:17]Write to MH i2c: 01 00 00 2B 34 5F [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 2B 34 00 00 00 00 00 FF 0F 74 [08:48:17]RasterBufferAndPrint [08:48:17]line Счет N : (1)343518 [08:48:17]line ИНН: 02508201610067 [08:48:17]line Контрольно-Кассовый Чек [08:48:17]line ПРОДАЖА [08:48:17]line ТРК (МРК, ГНК) : 34 [08:48:17]line Товар: 2710194210 [08:48:17]line ДТ-К-2 [08:48:17]line 17.070 * 76.20 [08:48:17]line = 1300.73 [08:48:17]line НДС 12% НСП 1% [08:48:17]line > о реализуемом товаре [08:48:17]line ИТОГО: 1300.73 [08:48:17]line НСП 1% : 11.51 [08:48:17]line НДС 12% : 138.13 [08:48:17]line Наличными: 0.00 [08:48:17]line Безнал.: 1300.73 [08:48:17]line Место: АЗС № 78 "Партнер Нефть" [08:48:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:48:17]line СНО: Общий режим [08:48:17]line Чек 23 23.10.2024 08:48 [08:48:17]line Смена: 117 ФФД: 1.0 [08:48:17]line ЗНМ: 0300000137 [08:48:17]line РНМ: 0000000000186857 [08:48:17]line Версия ККМ: v1.0 [08:48:17]line Платежная система: АКБ Кыргызстан [08:48:17]line ФМ: 0000000002094219 [08:48:17]line ФД: 31079 [08:48:17]line ФПД: 257158607097144 [08:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31079&fm=257158607097144&tin=02508201610067®Number=0000000000186857&sum=130073 [08:48:17]OFD Sender: Processing packet 31079 [packets to send 11, broken 10] [08:48:17]ProducePacketName [08:48:17]name=ofd_packets/00031079 [08:48:17]OFD Sender: To server: pG, [08:48:17]CommunicateWithHost lk.salyk.kg:30040 [08:48:17]ConnectInit lk.salyk.kg [08:48:17]written 0, free lines is 4095 [08:48:17]Connected sock=10 [08:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 66 EB 04 01 70 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 55 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 79 00 00 35 04 06 00 E9 E2 67 6D 4D 38 6F AC FB 22 08 6B 46 DA [08:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 78 BB 47 00 0A 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 32 30 39 34 32 31 39 10 04 04 00 67 79 00 00 F4 03 04 00 D0 62 18 67 B6 04 01 00 00 82 BE DC C1 7C F2 19 A4 [08:48:18]CommunicateWithHost err = 0 [08:48:18]CheckOFDResponse [08:48:18]1017 (14) - 77093643461234 [08:48:18]1041 (16) - 0000000002094219 [08:48:18]1040 (4) - 31079 [08:48:18]1012 (4) - 23.10.2024 02:43 [08:48:18]1206 (1) - 0 [08:48:18]OFD Sender: Remove packet 31079 [08:48:18]ProducePacketName [08:48:18]name=ofd_packets/00031079 [08:48:18]NVStorageDeleteData [08:48:18]Write to MH i2c: 01 00 00 55 34 89 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 55 34 00 00 00 00 00 02 0D 9F [08:48:18]RasterBufferAndPrint [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]written 0, free lines is 3336 [08:48:18]MH_Cut [08:48:18]Write to MH i2c: D1 01 00 5C 34 01 62 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 5C 34 00 61 [08:48:18]Write to MH i2c: 01 00 00 5D 34 91 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]OFD Sender: No OFD packet to send [08:48:19]*** Cut start [08:48:19]*** Partial cut [08:48:19]*** CUTSNS_PIN = 1 [08:48:19]*** CUTSNS_PIN = 0 [08:48:19]*** Brake cut motor [08:48:19]Read from MH i2c: 01 [08:48:19]MH_I2C_Read... [08:48:19]*** Stop cut motor [08:48:19]*** Cut end [08:48:19]Read from MH i2c: 01 07 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 FF 0F A6 [08:48:19]process_action close_receipt done [08:48:19]requested_data is exist [08:48:19]produce_requested_data [08:48:19]requested_item fm.sn is exist - process it [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 11 00 00 [08:48:19]Write to MH i2c: E2 08 00 5E 34 80 11 00 00 00 00 00 00 0C [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 17 00 5E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [08:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:19]wFMCommunicate OK [08:48:19]requested_item fd.num is exist - process it [08:48:19]SAM_PROTO_GetFieldsCounters [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 13 00 00 [08:48:19]Write to MH i2c: E2 08 00 5F 34 80 13 00 00 00 00 00 00 0F [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 62 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 62 00 5F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 79 00 00 0E 04 04 00 75 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 CF [08:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 79 00 00 0E 04 04 00 75 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 [08:48:19]wFMCommunicate OK [08:48:19]SAM_PROTO_GetFieldsCounters done [08:48:19]requested_item shift.num is exist - process it [08:48:19]requested_item shift.opened is exist - process it [08:48:19]req_shift_opened [08:48:19]FM_GetShiftState [08:48:19]SAM_PROTO_GetShiftState [08:48:19]wFMCommunicate request_size=4 [08:48:19]MH_SAM_APDU [08:48:19]CAPDU: 80 13 01 00 [08:48:19]Write to MH i2c: E2 08 00 60 34 80 13 01 00 00 00 00 00 11 [08:48:19]Write i2c OK [08:48:19]MH_I2C_Read... [08:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:19]Read from MH i2c: E2 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 0E 00 [08:48:19]MH_I2C_Read... [08:48:19]Read from MH i2c: E2 0E 00 60 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CB [08:48:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:48:19]wFMCommunicate OK [08:48:19]SAM_PROTO_GetShiftState done [08:48:19]FM_GetShiftState done [08:48:19]req_shift_opened done [08:48:19]requested_item shift.open_date is exist - process it [08:48:19]req_shift_open_date [08:48:19]req_shift_open_date done [08:48:19]produce_requested_data done [08:48:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31079,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:48:19]process_action_free close_receipt [08:48:19]json_value_free [08:48:19]json_value_free done [08:48:19]process_json_proto returns [08:48:19]Send response to host [08:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31079,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:48:19]free response buf [08:48:19]execute_script done [08:48:19]execute_script returns [08:48:19]free content buf [08:48:19]Sock 9.Close socket [08:48:19]Sock 9.Thread stoped [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:31]accept exits with 7 [08:48:31]New connection [08:48:31]New thread 3066899812 created [08:48:31]Thread 3067043172 joined [08:48:31]Waiting for new connection... [08:48:31] Sock 7.Parse request [08:48:31]Sock 7.Check first char [08:48:31]Sock 7.First char is OK [08:48:31]request: POST /json_proto HTTP/1.0 [08:48:31]Method: POST [08:48:31]URL: /json_proto [08:48:31]Method is POST - this is cgi request [08:48:31]url: /json_proto [08:48:31]query_string will be loaded in cgi processing [08:48:31]execute_cgi json_proto POST (null) [08:48:31]execute_cgi path=json_proto method=POST [08:48:31]POST find Content-Length [08:48:31]Host: 172.17.51.3:8080 [08:48:31]Content-Length: 800 [08:48:31]Content-Type: application/json [08:48:31] [08:48:31]POST finish read [08:48:31]Found Content-Length = 800 [08:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:31]execute_script... [08:48:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:31]POST & json_proto [08:48:31]process_json_proto [08:48:31]json parsed OK: [08:48:31]protocol is kg_v1.0 [08:48:31]action value=close_receipt [08:48:31]process_action close_receipt [08:48:31]cmd_close_receipt [08:48:31]MH_GetDate [08:48:31]Write to MH i2c: F0 00 00 61 34 84 [08:48:31]Write i2c OK [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: F0 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: F0 09 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: F0 09 00 61 34 00 64 B8 18 67 04 C1 95 66 E8 [08:48:31]GetLastDocTimeStamp 1729673301 [08:48:31]current date 1729673316 [08:48:31]FM_GetShiftState [08:48:31]SAM_PROTO_GetShiftState [08:48:31]wFMCommunicate request_size=4 [08:48:31]MH_SAM_APDU [08:48:31]CAPDU: 80 13 01 00 [08:48:31]Write to MH i2c: E2 08 00 62 34 80 13 01 00 00 00 00 00 13 [08:48:31]Write i2c OK [08:48:31]MH_I2C_Read... [08:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:31]Read from MH i2c: E2 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 0E 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 0E 00 62 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CD [08:48:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:48:31]wFMCommunicate OK [08:48:31]SAM_PROTO_GetShiftState done [08:48:31]FM_GetShiftState done [08:48:31]opened in 1729643755 [08:48:31]opened+sec_in_day 1729730155 [08:48:31]quantity*price = 0 [08:48:31]sum+1 = 1 [08:48:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 24 23.10.2024 08:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949832 ФМ: 0000000002094219 ФД: 31080 ФПД: 128346805125181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084836&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31080&fm=128346805125181&tin=02508201610067®Number=0000000000186857&sum=0 [08:48:32]StoreToDocumentArchive [08:48:32]shift 117 fd 31080 [08:48:32]save to /storage/0117/doc_00031080 [08:48:32]save last doc name /storage/0117/doc_00031080 to /storage/kkm_last_doc_name [08:48:32]save OK [08:48:32]Clear old archive folders... [08:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:32]tlvbuf is 00DA4250 [08:48:32]SAM_PROTO_ClearQueue [08:48:32]wFMCommunicate request_size=4 [08:48:32]MH_SAM_APDU [08:48:32]CAPDU: 80 09 00 00 [08:48:32]Write to MH i2c: E2 08 00 6F 34 80 09 00 00 00 00 00 00 15 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:32]Read from MH i2c: E2 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 03 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 03 00 6F 34 00 90 00 17 [08:48:32]RAPDU: 90 00 [08:48:32]wFMCommunicate OK [08:48:32]SAM_PROTO_ClearQueue done [08:48:32]KKMCreateOFDPacket [08:48:32]OFDProtocolAddRootSTLVToBuf [08:48:32]FM_MakeSignedData [08:48:32]FM_MakeSignedData [08:48:32]SAM_PROTO_SignData [08:48:32]wFMCommunicate request_size=4 [08:48:32]MH_SAM_APDU [08:48:32]CAPDU: 80 0D 01 02 [08:48:32]Write to MH i2c: E2 08 00 70 34 80 0D 01 02 00 00 00 00 1D [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:32]Read from MH i2c: E2 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 03 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 03 00 70 34 00 90 00 18 [08:48:32]RAPDU: 90 00 [08:48:32]wFMCommunicate OK [08:48:32]wFMCommunicate request_size=255 [08:48:32]MH_SAM_APDU [08:48:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 79 00 00 35 04 06 00 74 [08:48:32]Write to MH i2c: E2 02 01 71 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 79 00 00 35 04 06 00 74 00 00 82 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 71 34 00 90 00 19 [08:48:33]RAPDU: 90 00 [08:48:33]wFMCommunicate OK [08:48:33]wFMCommunicate request_size=10 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 0D 02 02 05 BB 11 BA 40 3D [08:48:33]Write to MH i2c: E2 0D 00 72 34 80 0D 02 02 05 00 BB 11 BA 40 3D 00 00 2D [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 72 34 00 90 00 1A [08:48:33]RAPDU: 90 00 [08:48:33]wFMCommunicate OK [08:48:33]wFMCommunicate request_size=4 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 0D 03 02 [08:48:33]Write to MH i2c: E2 08 00 73 34 80 0D 03 02 00 00 00 00 22 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 0B 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 0B 00 73 34 00 D7 E7 70 13 51 66 DC D7 90 00 CE [08:48:33]RAPDU: D7 E7 70 13 51 66 DC D7 90 00 [08:48:33]wFMCommunicate OK [08:48:33]SAM_PROTO_SignData done [08:48:33]FM_MakeSignedData done [08:48:33]CreateOFDProtocolMessage [08:48:33]wFMCommunicate request_size=4 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 11 00 00 [08:48:33]Write to MH i2c: E2 08 00 74 34 80 11 00 00 00 00 00 00 22 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 17 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 17 00 74 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [08:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:33]wFMCommunicate OK [08:48:33]CreateOFDProtocolMessage done [08:48:33]OFDSenderStorePacket 31080 [08:48:33]StoreOFDPacket docnum=31080 [08:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D 3F 07 01 8D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 79 00 00 35 04 06 00 74 BB 11 BA 40 3D D7 E7 70 13 51 66 DC D7 [08:48:33]CheckFolder [08:48:33]dirname=/storage/ofd_packets [08:48:33]CheckFolder done [08:48:33]ProducePacketName [08:48:33]name=ofd_packets/00031080 [08:48:33]NVStorageSaveData ofd_packets/00031080 [08:48:33]File name is /storage/ofd_packets/00031080 [08:48:33]Write 301 bytes [08:48:33]NVStorageSaveData done [08:48:33]OFDSenderStorePacket done [08:48:33]KKMCreateOFDPacket done [08:48:33]NVStorageSaveData kkm_last_timestamp [08:48:33]File name is /storage/kkm_last_timestamp [08:48:33]Write 4 bytes [08:48:33]NVStorageSaveData done [08:48:33]ExternCall_PrintAddStr [08:48:33]wPrintStart [08:48:33]Write to MH i2c: 01 00 00 75 34 A9 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 07 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 07 00 75 34 00 00 00 00 00 FF 0F BE [08:48:33]RasterBufferAndPrint [08:48:33]line Счет N : (1)343517 [08:48:33]line ИНН: 02508201610067 [08:48:33]line Контрольно-Кассовый Чек [08:48:33]line ПРОДАЖА [08:48:33]line ТРК (МРК, ГНК) : 53 [08:48:33]line Товар: 2710124130 [08:48:33]line Аи-92-К-2 [08:48:33]line 40.000 * 0.00 [08:48:33]line = 0.00 [08:48:33]line НДС 12% НСП 1% [08:48:33]line > о реализуемом товаре [08:48:33]line ИТОГО: 0.00 [08:48:33]line НСП 1% : 0.00 [08:48:33]line НДС 12% : 0.00 [08:48:33]line Наличными: 0.00 [08:48:33]line Безнал.: 0.00 [08:48:33]line Место: АЗС № 78 "Партнер Нефть" [08:48:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:48:33]line СНО: Общий режим [08:48:33]line Чек 24 23.10.2024 08:48 [08:48:33]line Смена: 117 ФФД: 1.0 [08:48:33]line ЗНМ: 0300000137 [08:48:33]line РНМ: 0000000000186857 [08:48:33]line Версия ККМ: v1.0 [08:48:33]line Талоны: Топливные Талоны [08:48:33]line 3949832 [08:48:33]line ФМ: 0000000002094219 [08:48:33]line ФД: 31080 [08:48:33]line ФПД: 128346805125181 [08:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084836&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31080&fm=128346805125181&tin=02508201610067®Number=0000000000186857&sum=0 [08:48:33]OFD Sender: Processing packet 31080 [packets to send 11, broken 10] [08:48:33]ProducePacketName [08:48:33]name=ofd_packets/00031080 [08:48:33]OFD Sender: To server: pG, [08:48:33]CommunicateWithHost lk.salyk.kg:30040 [08:48:33]ConnectInit lk.salyk.kg [08:48:33]written 0, free lines is 4095 [08:48:33]Connected sock=10 [08:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D 3F 07 01 8D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 64 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 79 00 00 35 04 06 00 74 BB 11 BA 40 3D D7 E7 70 13 51 66 DC D7 [08:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B 91 47 00 A4 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 79 00 00 F4 03 04 00 DF 62 18 67 B6 04 01 00 00 B8 13 91 9D 66 35 37 59 [08:48:33]CommunicateWithHost err = 0 [08:48:33]CheckOFDResponse [08:48:33]1017 (14) - 77093643461234 [08:48:33]1041 (16) - 0000000002094219 [08:48:33]1040 (4) - 31080 [08:48:33]1012 (4) - 23.10.2024 02:43 [08:48:33]1206 (1) - 0 [08:48:33]OFD Sender: Remove packet 31080 [08:48:33]ProducePacketName [08:48:33]name=ofd_packets/00031080 [08:48:33]NVStorageDeleteData [08:48:34]Write to MH i2c: 01 00 00 9F 34 D3 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 9F 34 00 00 00 00 00 03 0D EA [08:48:34]RasterBufferAndPrint [08:48:34]line [08:48:34]line [08:48:34]line [08:48:34]line [08:48:34]line [08:48:34]written 0, free lines is 3337 [08:48:34]MH_Cut [08:48:34]Write to MH i2c: D1 01 00 A6 34 01 AC [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: D1 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: D1 01 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: D1 01 00 A6 34 00 AB [08:48:34]Write to MH i2c: 01 00 00 A7 34 DB [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]OFD Sender: No OFD packet to send [08:48:34]*** Cut start [08:48:34]*** Partial cut [08:48:34]*** CUTSNS_PIN = 1 [08:48:34]*** CUTSNS_PIN = 0 [08:48:35]*** Brake cut motor [08:48:35]Read from MH i2c: 01 [08:48:35]MH_I2C_Read... [08:48:35]*** Stop cut motor [08:48:35]*** Cut end [08:48:35]Read from MH i2c: 01 07 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 FF 0F F0 [08:48:35]process_action close_receipt done [08:48:35]requested_data is exist [08:48:35]produce_requested_data [08:48:35]requested_item fm.sn is exist - process it [08:48:35]wFMCommunicate request_size=4 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 11 00 00 [08:48:35]Write to MH i2c: E2 08 00 A8 34 80 11 00 00 00 00 00 00 56 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 17 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 17 00 A8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [08:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:48:35]wFMCommunicate OK [08:48:35]requested_item fd.num is exist - process it [08:48:35]SAM_PROTO_GetFieldsCounters [08:48:35]wFMCommunicate request_size=4 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 13 00 00 [08:48:35]Write to MH i2c: E2 08 00 A9 34 80 13 00 00 00 00 00 00 59 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 62 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 62 00 A9 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 79 00 00 0E 04 04 00 75 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 1D [08:48:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 79 00 00 0E 04 04 00 75 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 [08:48:35]wFMCommunicate OK [08:48:35]SAM_PROTO_GetFieldsCounters done [08:48:35]requested_item shift.num is exist - process it [08:48:35]requested_item shift.opened is exist - process it [08:48:35]req_shift_opened [08:48:35]FM_GetShiftState [08:48:35]SAM_PROTO_GetShiftState [08:48:35]wFMCommunicate request_size=4 [08:48:35]MH_SAM_APDU [08:48:35]CAPDU: 80 13 01 00 [08:48:35]Write to MH i2c: E2 08 00 AA 34 80 13 01 00 00 00 00 00 5B [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:35]Read from MH i2c: E2 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 0E 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: E2 0E 00 AA 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 15 [08:48:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:48:35]wFMCommunicate OK [08:48:35]SAM_PROTO_GetShiftState done [08:48:35]FM_GetShiftState done [08:48:35]req_shift_opened done [08:48:35]requested_item shift.open_date is exist - process it [08:48:35]req_shift_open_date [08:48:35]req_shift_open_date done [08:48:35]produce_requested_data done [08:48:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31080,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:48:35]process_action_free close_receipt [08:48:35]json_value_free [08:48:35]json_value_free done [08:48:35]process_json_proto returns [08:48:35]Send response to host [08:48:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31080,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:48:35]free response buf [08:48:35]execute_script done [08:48:35]execute_script returns [08:48:35]free content buf [08:48:35]Sock 7.Close socket [08:48:35]Sock 7.Thread stoped [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:22]accept exits with 9 [08:49:22]New connection [08:49:22]New thread 3067043172 created [08:49:22]Thread 3066899812 joined [08:49:22]Waiting for new connection... [08:49:22] Sock 9.Parse request [08:49:22]Sock 9.Check first char [08:49:22]Sock 9.First char is OK [08:49:22]request: POST /json_proto HTTP/1.0 [08:49:22]Method: POST [08:49:22]URL: /json_proto [08:49:22]Method is POST - this is cgi request [08:49:22]url: /json_proto [08:49:22]query_string will be loaded in cgi processing [08:49:22]execute_cgi json_proto POST (null) [08:49:22]execute_cgi path=json_proto method=POST [08:49:22]POST find Content-Length [08:49:22]Host: 172.17.51.3:8080 [08:49:22]Content-Length: 677 [08:49:22]Content-Type: application/json [08:49:22] [08:49:22]POST finish read [08:49:22]Found Content-Length = 677 [08:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:22]execute_script... [08:49:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:22]POST & json_proto [08:49:22]process_json_proto [08:49:22]json parsed OK: [08:49:22]protocol is kg_v1.0 [08:49:22]action value=close_receipt [08:49:22]process_action close_receipt [08:49:22]cmd_close_receipt [08:49:22]MH_GetDate [08:49:22]Write to MH i2c: F0 00 00 AB 34 CE [08:49:22]Write i2c OK [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: F0 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: F0 09 00 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: F0 09 00 AB 34 00 97 B8 18 67 04 C1 95 66 65 [08:49:22]GetLastDocTimeStamp 1729673316 [08:49:22]current date 1729673367 [08:49:22]FM_GetShiftState [08:49:22]SAM_PROTO_GetShiftState [08:49:22]wFMCommunicate request_size=4 [08:49:22]MH_SAM_APDU [08:49:22]CAPDU: 80 13 01 00 [08:49:22]Write to MH i2c: E2 08 00 AC 34 80 13 01 00 00 00 00 00 5D [08:49:22]Write i2c OK [08:49:22]MH_I2C_Read... [08:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:22]Read from MH i2c: E2 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: E2 0E 00 [08:49:22]MH_I2C_Read... [08:49:22]Read from MH i2c: E2 0E 00 AC 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 17 [08:49:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:49:22]wFMCommunicate OK [08:49:22]SAM_PROTO_GetShiftState done [08:49:22]FM_GetShiftState done [08:49:22]opened in 1729643755 [08:49:22]opened+sec_in_day 1729730155 [08:49:22]quantity*price = 20003 [08:49:22]sum+1 = 20004 [08:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 25 23.10.2024 08:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31081 ФПД: 62646465441570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084927&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31081&fm=62646465441570&tin=02508201610067®Number=0000000000186857&sum=20000 [08:49:23]StoreToDocumentArchive [08:49:23]shift 117 fd 31081 [08:49:23]save to /storage/0117/doc_00031081 [08:49:23]save last doc name /storage/0117/doc_00031081 to /storage/kkm_last_doc_name [08:49:23]save OK [08:49:23]Clear old archive folders... [08:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:23]tlvbuf is 00D3F370 [08:49:23]SAM_PROTO_ClearQueue [08:49:23]wFMCommunicate request_size=4 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 09 00 00 [08:49:23]Write to MH i2c: E2 08 00 B9 34 80 09 00 00 00 00 00 00 5F [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:23]Read from MH i2c: E2 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 03 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 03 00 B9 34 00 90 00 61 [08:49:23]RAPDU: 90 00 [08:49:23]wFMCommunicate OK [08:49:23]SAM_PROTO_ClearQueue done [08:49:23]KKMCreateOFDPacket [08:49:23]OFDProtocolAddRootSTLVToBuf [08:49:23]FM_MakeSignedData [08:49:23]FM_MakeSignedData [08:49:23]SAM_PROTO_SignData [08:49:23]wFMCommunicate request_size=4 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 0D 01 02 [08:49:23]Write to MH i2c: E2 08 00 BA 34 80 0D 01 02 00 00 00 00 67 [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:23]Read from MH i2c: E2 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 03 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 03 00 BA 34 00 90 00 62 [08:49:23]RAPDU: 90 00 [08:49:23]wFMCommunicate OK [08:49:23]wFMCommunicate request_size=255 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 97 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 79 00 00 35 04 06 00 38 [08:49:23]Write to MH i2c: E2 02 01 BB 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 97 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 79 00 00 35 04 06 00 38 00 00 30 [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 03 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 03 00 BB 34 00 90 00 63 [08:49:24]RAPDU: 90 00 [08:49:24]wFMCommunicate OK [08:49:24]wFMCommunicate request_size=10 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 0D 02 02 05 FA 04 51 AF 22 [08:49:24]Write to MH i2c: E2 0D 00 BC 34 80 0D 02 02 05 00 FA 04 51 AF 22 00 00 94 [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 03 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 03 00 BC 34 00 90 00 64 [08:49:24]RAPDU: 90 00 [08:49:24]wFMCommunicate OK [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 0D 03 02 [08:49:24]Write to MH i2c: E2 08 00 BD 34 80 0D 03 02 00 00 00 00 6C [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0B 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0B 00 BD 34 00 B6 0C 3B 19 BC 9F FF 03 90 00 E0 [08:49:24]RAPDU: B6 0C 3B 19 BC 9F FF 03 90 00 [08:49:24]wFMCommunicate OK [08:49:24]SAM_PROTO_SignData done [08:49:24]FM_MakeSignedData done [08:49:24]CreateOFDProtocolMessage [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 11 00 00 [08:49:24]Write to MH i2c: E2 08 00 BE 34 80 11 00 00 00 00 00 00 6C [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 17 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 17 00 BE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [08:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:49:24]wFMCommunicate OK [08:49:24]CreateOFDProtocolMessage done [08:49:24]OFDSenderStorePacket 31081 [08:49:24]StoreOFDPacket docnum=31081 [08:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 5B 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 97 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 79 00 00 35 04 06 00 38 FA 04 51 AF 22 B6 0C 3B 19 BC 9F FF 03 [08:49:24]CheckFolder [08:49:24]dirname=/storage/ofd_packets [08:49:24]CheckFolder done [08:49:24]ProducePacketName [08:49:24]name=ofd_packets/00031081 [08:49:24]NVStorageSaveData ofd_packets/00031081 [08:49:24]File name is /storage/ofd_packets/00031081 [08:49:24]Write 301 bytes [08:49:24]NVStorageSaveData done [08:49:24]OFDSenderStorePacket done [08:49:24]KKMCreateOFDPacket done [08:49:24]NVStorageSaveData kkm_last_timestamp [08:49:24]File name is /storage/kkm_last_timestamp [08:49:24]Write 4 bytes [08:49:24]NVStorageSaveData done [08:49:24]ExternCall_PrintAddStr [08:49:24]wPrintStart [08:49:24]Write to MH i2c: 01 00 00 BF 34 F3 [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 07 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 07 00 BF 34 00 00 00 00 00 FF 0F 08 [08:49:24]RasterBufferAndPrint [08:49:24]line Счет N : (1)343519 [08:49:24]line ИНН: 02508201610067 [08:49:24]line Контрольно-Кассовый Чек [08:49:24]line ПРОДАЖА [08:49:24]line ТРК (МРК, ГНК) : 63 [08:49:24]line Товар: 2710124130 [08:49:24]line Аи-92-К-2 [08:49:24]line 2.990 * 66.90 [08:49:24]line = 200.03 [08:49:24]line НДС 12% НСП 1% [08:49:24]line > о реализуемом товаре [08:49:24]line ОКРУГЛЕНИЕ: -0.03 [08:49:24]line ИТОГО: 200.00 [08:49:24]line Внесено: 200.00 [08:49:24]line СДАЧА: 0.00 [08:49:24]line НСП 1% : 1.77 [08:49:24]line НДС 12% : 21.24 [08:49:24]line Наличными: 200.00 [08:49:24]line Безнал.: 0.00 [08:49:24]line Место: АЗС № 78 "Партнер Нефть" [08:49:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:49:24]line СНО: Общий режим [08:49:24]line Чек 25 23.10.2024 08:49 [08:49:24]line Смена: 117 ФФД: 1.0 [08:49:24]line ЗНМ: 0300000137 [08:49:24]line РНМ: 0000000000186857 [08:49:24]line Версия ККМ: v1.0 [08:49:24]line ФМ: 0000000002094219 [08:49:24]line ФД: 31081 [08:49:24]line ФПД: 62646465441570 [08:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084927&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31081&fm=62646465441570&tin=02508201610067®Number=0000000000186857&sum=20000 [08:49:24]OFD Sender: Processing packet 31081 [packets to send 11, broken 10] [08:49:24]ProducePacketName [08:49:24]name=ofd_packets/00031081 [08:49:24]OFD Sender: To server: pG, [08:49:24]CommunicateWithHost lk.salyk.kg:30040 [08:49:24]ConnectInit lk.salyk.kg [08:49:24]written 0, free lines is 4095 [08:49:24]Connected sock=10 [08:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 5B 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 97 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 79 00 00 35 04 06 00 38 FA 04 51 AF 22 B6 0C 3B 19 BC 9F FF 03 [08:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7C 16 47 00 86 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 79 00 00 F4 03 04 00 12 63 18 67 B6 04 01 00 00 1B 4B 5B 30 78 6E AD 77 [08:49:24]CommunicateWithHost err = 0 [08:49:24]CheckOFDResponse [08:49:24]1017 (14) - 77093643461234 [08:49:24]1041 (16) - 0000000002094219 [08:49:24]1040 (4) - 31081 [08:49:24]1012 (4) - 23.10.2024 02:44 [08:49:24]1206 (1) - 0 [08:49:24]OFD Sender: Remove packet 31081 [08:49:24]ProducePacketName [08:49:24]name=ofd_packets/00031081 [08:49:24]NVStorageDeleteData [08:49:24]Write to MH i2c: 01 00 00 EA 34 1E [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 07 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: 01 07 00 EA 34 00 00 00 00 00 E4 0C 15 [08:49:24]RasterBufferAndPrint [08:49:24]line [08:49:24]line [08:49:24]line [08:49:24]line [08:49:24]line [08:49:24]written 0, free lines is 3309 [08:49:24]MH_Cut [08:49:24]Write to MH i2c: D1 01 00 F1 34 01 F7 [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: D1 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: D1 01 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: D1 01 00 F1 34 00 F6 [08:49:24]Write to MH i2c: 01 00 00 F2 34 26 [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:25]OFD Sender: No OFD packet to send [08:49:25]*** Cut start [08:49:25]*** Partial cut [08:49:25]*** CUTSNS_PIN = 1 [08:49:25]*** CUTSNS_PIN = 0 [08:49:25]*** Brake cut motor [08:49:26]Read from MH i2c: 01 [08:49:26]MH_I2C_Read... [08:49:26]*** Stop cut motor [08:49:26]*** Cut end [08:49:26]Read from MH i2c: 01 07 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: 01 07 00 F2 34 00 00 00 00 00 FF 0F 3B [08:49:26]process_action close_receipt done [08:49:26]requested_data is exist [08:49:26]produce_requested_data [08:49:26]requested_item fm.sn is exist - process it [08:49:26]wFMCommunicate request_size=4 [08:49:26]MH_SAM_APDU [08:49:26]CAPDU: 80 11 00 00 [08:49:26]Write to MH i2c: E2 08 00 F3 34 80 11 00 00 00 00 00 00 A1 [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:26]Read from MH i2c: E2 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 17 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 17 00 F3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [08:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:49:26]wFMCommunicate OK [08:49:26]requested_item fd.num is exist - process it [08:49:26]SAM_PROTO_GetFieldsCounters [08:49:26]wFMCommunicate request_size=4 [08:49:26]MH_SAM_APDU [08:49:26]CAPDU: 80 13 00 00 [08:49:26]Write to MH i2c: E2 08 00 F4 34 80 13 00 00 00 00 00 00 A4 [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:26]Read from MH i2c: E2 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 62 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 62 00 F4 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 79 00 00 0E 04 04 00 75 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 6C [08:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 79 00 00 0E 04 04 00 75 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 [08:49:26]wFMCommunicate OK [08:49:26]SAM_PROTO_GetFieldsCounters done [08:49:26]requested_item shift.num is exist - process it [08:49:26]requested_item shift.opened is exist - process it [08:49:26]req_shift_opened [08:49:26]FM_GetShiftState [08:49:26]SAM_PROTO_GetShiftState [08:49:26]wFMCommunicate request_size=4 [08:49:26]MH_SAM_APDU [08:49:26]CAPDU: 80 13 01 00 [08:49:26]Write to MH i2c: E2 08 00 F5 34 80 13 01 00 00 00 00 00 A6 [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:26]Read from MH i2c: E2 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 0E 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: E2 0E 00 F5 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 60 [08:49:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:49:26]wFMCommunicate OK [08:49:26]SAM_PROTO_GetShiftState done [08:49:26]FM_GetShiftState done [08:49:26]req_shift_opened done [08:49:26]requested_item shift.open_date is exist - process it [08:49:26]req_shift_open_date [08:49:26]req_shift_open_date done [08:49:26]produce_requested_data done [08:49:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31081,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:49:26]process_action_free close_receipt [08:49:26]json_value_free [08:49:26]json_value_free done [08:49:26]process_json_proto returns [08:49:26]Send response to host [08:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31081,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:49:26]free response buf [08:49:26]execute_script done [08:49:26]execute_script returns [08:49:26]free content buf [08:49:26]Sock 9.Close socket [08:49:26]Sock 9.Thread stoped [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:03]accept exits with 7 [08:50:03]New connection [08:50:03]New thread 3066899812 created [08:50:03]Thread 3067043172 joined [08:50:03]Waiting for new connection... [08:50:03] Sock 7.Parse request [08:50:03]Sock 7.Check first char [08:50:03]Sock 7.First char is OK [08:50:03]request: POST /json_proto HTTP/1.0 [08:50:03]Method: POST [08:50:03]URL: /json_proto [08:50:03]Method is POST - this is cgi request [08:50:03]url: /json_proto [08:50:03]query_string will be loaded in cgi processing [08:50:03]execute_cgi json_proto POST (null) [08:50:03]execute_cgi path=json_proto method=POST [08:50:03]POST find Content-Length [08:50:03]Host: 172.17.51.3:8080 [08:50:03]Content-Length: 682 [08:50:03]Content-Type: application/json [08:50:03] [08:50:03]POST finish read [08:50:03]Found Content-Length = 682 [08:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:03]execute_script... [08:50:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:03]POST & json_proto [08:50:03]process_json_proto [08:50:03]json parsed OK: [08:50:03]protocol is kg_v1.0 [08:50:03]action value=close_receipt [08:50:03]process_action close_receipt [08:50:03]cmd_close_receipt [08:50:03]MH_GetDate [08:50:03]Write to MH i2c: F0 00 00 F6 34 19 [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: F0 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: F0 09 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: F0 09 00 F6 34 00 C1 B8 18 67 04 C1 95 66 DA [08:50:03]GetLastDocTimeStamp 1729673367 [08:50:03]current date 1729673409 [08:50:03]FM_GetShiftState [08:50:03]SAM_PROTO_GetShiftState [08:50:03]wFMCommunicate request_size=4 [08:50:03]MH_SAM_APDU [08:50:03]CAPDU: 80 13 01 00 [08:50:03]Write to MH i2c: E2 08 00 F7 34 80 13 01 00 00 00 00 00 A8 [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:03]Read from MH i2c: E2 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 0E 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 0E 00 F7 34 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 62 [08:50:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:50:03]wFMCommunicate OK [08:50:03]SAM_PROTO_GetShiftState done [08:50:03]FM_GetShiftState done [08:50:03]opened in 1729643755 [08:50:03]opened+sec_in_day 1729730155 [08:50:03]quantity*price = 100021 [08:50:03]sum+1 = 100023 [08:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 26 23.10.2024 08:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31082 ФПД: 199286346530835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085009&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31082&fm=199286346530835&tin=02508201610067®Number=0000000000186857&sum=100000 [08:50:04]StoreToDocumentArchive [08:50:04]shift 117 fd 31082 [08:50:04]save to /storage/0117/doc_00031082 [08:50:04]save last doc name /storage/0117/doc_00031082 to /storage/kkm_last_doc_name [08:50:04]save OK [08:50:04]Clear old archive folders... [08:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:04]tlvbuf is 00CEADB0 [08:50:04]SAM_PROTO_ClearQueue [08:50:04]wFMCommunicate request_size=4 [08:50:04]MH_SAM_APDU [08:50:04]CAPDU: 80 09 00 00 [08:50:04]Write to MH i2c: E2 08 00 04 35 80 09 00 00 00 00 00 00 AB [08:50:04]Write i2c OK [08:50:04]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 04 35 00 90 00 AD [08:50:05]RAPDU: 90 00 [08:50:05]wFMCommunicate OK [08:50:05]SAM_PROTO_ClearQueue done [08:50:05]KKMCreateOFDPacket [08:50:05]OFDProtocolAddRootSTLVToBuf [08:50:05]FM_MakeSignedData [08:50:05]FM_MakeSignedData [08:50:05]SAM_PROTO_SignData [08:50:05]wFMCommunicate request_size=4 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 0D 01 02 [08:50:05]Write to MH i2c: E2 08 00 05 35 80 0D 01 02 00 00 00 00 B3 [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 05 35 00 90 00 AE [08:50:05]RAPDU: 90 00 [08:50:05]wFMCommunicate OK [08:50:05]wFMCommunicate request_size=255 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 79 00 00 35 04 06 00 B5 [08:50:05]Write to MH i2c: E2 02 01 06 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 79 00 00 35 04 06 00 B5 00 00 81 [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 06 35 00 90 00 AF [08:50:05]RAPDU: 90 00 [08:50:05]wFMCommunicate OK [08:50:05]wFMCommunicate request_size=10 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 0D 02 02 05 3F F7 E4 C0 13 [08:50:05]Write to MH i2c: E2 0D 00 07 35 80 0D 02 02 05 00 3F F7 E4 C0 13 00 00 AD [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]OFD Sender: No OFD packet to send [08:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 03 00 07 35 00 90 00 B0 [08:50:05]RAPDU: 90 00 [08:50:05]wFMCommunicate OK [08:50:05]wFMCommunicate request_size=4 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 0D 03 02 [08:50:05]Write to MH i2c: E2 08 00 08 35 80 0D 03 02 00 00 00 00 B8 [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 0B 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 0B 00 08 35 00 70 A6 F7 0C BD 4A 35 93 90 00 A1 [08:50:05]RAPDU: 70 A6 F7 0C BD 4A 35 93 90 00 [08:50:05]wFMCommunicate OK [08:50:05]SAM_PROTO_SignData done [08:50:05]FM_MakeSignedData done [08:50:05]CreateOFDProtocolMessage [08:50:05]wFMCommunicate request_size=4 [08:50:05]MH_SAM_APDU [08:50:05]CAPDU: 80 11 00 00 [08:50:05]Write to MH i2c: E2 08 00 09 35 80 11 00 00 00 00 00 00 B8 [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:05]Read from MH i2c: E2 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 17 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: E2 17 00 09 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [08:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:50:05]wFMCommunicate OK [08:50:05]CreateOFDProtocolMessage done [08:50:05]OFDSenderStorePacket 31082 [08:50:05]StoreOFDPacket docnum=31082 [08:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 45 D5 07 01 BB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 79 00 00 35 04 06 00 B5 3F F7 E4 C0 13 70 A6 F7 0C BD 4A 35 93 [08:50:05]CheckFolder [08:50:05]dirname=/storage/ofd_packets [08:50:05]CheckFolder done [08:50:05]ProducePacketName [08:50:05]name=ofd_packets/00031082 [08:50:05]NVStorageSaveData ofd_packets/00031082 [08:50:05]File name is /storage/ofd_packets/00031082 [08:50:05]Write 301 bytes [08:50:05]NVStorageSaveData done [08:50:05]OFDSenderStorePacket done [08:50:05]KKMCreateOFDPacket done [08:50:05]NVStorageSaveData kkm_last_timestamp [08:50:05]File name is /storage/kkm_last_timestamp [08:50:05]Write 4 bytes [08:50:05]NVStorageSaveData done [08:50:05]ExternCall_PrintAddStr [08:50:05]wPrintStart [08:50:05]Write to MH i2c: 01 00 00 0A 35 3F [08:50:05]Write i2c OK [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: 01 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: 01 07 00 [08:50:05]MH_I2C_Read... [08:50:05]Read from MH i2c: 01 07 00 0A 35 00 00 00 00 00 FF 0F 54 [08:50:05]RasterBufferAndPrint [08:50:05]line Счет N : (1)343520 [08:50:05]line ИНН: 02508201610067 [08:50:05]line Контрольно-Кассовый Чек [08:50:05]line ПРОДАЖА [08:50:05]line ТРК (МРК, ГНК) : 52 [08:50:05]line Товар: 2710124500 [08:50:05]line Аи-95-К-3 [08:50:05]line 13.480 * 74.20 [08:50:05]line = 1000.22 [08:50:05]line НДС 12% НСП 1% [08:50:05]line > о реализуемом товаре [08:50:05]line ОКРУГЛЕНИЕ: -0.22 [08:50:05]line ИТОГО: 1000.00 [08:50:05]line Внесено: 1000.00 [08:50:05]line СДАЧА: 0.00 [08:50:05]line НСП 1% : 8.85 [08:50:05]line НДС 12% : 106.22 [08:50:05]line Наличными: 1000.00 [08:50:05]line Безнал.: 0.00 [08:50:05]line Место: АЗС № 78 "Партнер Нефть" [08:50:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:50:05]line СНО: Общий режим [08:50:05]line Чек 26 23.10.2024 08:50 [08:50:05]line Смена: 117 ФФД: 1.0 [08:50:05]line ЗНМ: 0300000137 [08:50:05]line РНМ: 0000000000186857 [08:50:05]line Версия ККМ: v1.0 [08:50:05]line ФМ: 0000000002094219 [08:50:05]line ФД: 31082 [08:50:05]line ФПД: 199286346530835 [08:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085009&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31082&fm=199286346530835&tin=02508201610067®Number=0000000000186857&sum=100000 [08:50:05]OFD Sender: Processing packet 31082 [packets to send 11, broken 10] [08:50:05]ProducePacketName [08:50:05]name=ofd_packets/00031082 [08:50:05]OFD Sender: To server: pG, [08:50:05]CommunicateWithHost lk.salyk.kg:30040 [08:50:05]ConnectInit lk.salyk.kg [08:50:05]written 0, free lines is 4095 [08:50:06]Connected sock=10 [08:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 45 D5 07 01 BB 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 B8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 79 00 00 35 04 06 00 B5 3F F7 E4 C0 13 70 A6 F7 0C BD 4A 35 93 [08:50:06]Write to MH i2c: 01 00 00 35 35 6A [08:50:06]Write i2c OK [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: 01 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: 01 07 00 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: 01 07 00 35 35 00 00 00 00 00 E7 0C 64 [08:50:06]RasterBufferAndPrint [08:50:06]line [08:50:06]line [08:50:06]line [08:50:06]line [08:50:06]line [08:50:06]written 0, free lines is 3309 [08:50:06]MH_Cut [08:50:06]Write to MH i2c: D1 01 00 3C 35 01 43 [08:50:06]Write i2c OK [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: D1 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: D1 01 00 [08:50:06]MH_I2C_Read... [08:50:06]Read from MH i2c: D1 01 00 3C 35 00 42 [08:50:06]Write to MH i2c: 01 00 00 3D 35 72 [08:50:06]Write i2c OK [08:50:06]MH_I2C_Read... [08:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 15 86 47 00 61 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 79 00 00 F4 03 04 00 3C 63 18 67 B6 04 01 00 00 EE 08 95 05 67 8E C3 D2 [08:50:06]CommunicateWithHost err = 0 [08:50:06]CheckOFDResponse [08:50:06]1017 (14) - 77093643461234 [08:50:06]1041 (16) - 0000000002094219 [08:50:06]1040 (4) - 31082 [08:50:06]1012 (4) - 23.10.2024 02:45 [08:50:06]1206 (1) - 0 [08:50:06]OFD Sender: Remove packet 31082 [08:50:06]ProducePacketName [08:50:06]name=ofd_packets/00031082 [08:50:06]NVStorageDeleteData [08:50:06]OFD Sender: No OFD packet to send [08:50:06]*** Cut start [08:50:07]*** Partial cut [08:50:07]*** CUTSNS_PIN = 1 [08:50:07]*** CUTSNS_PIN = 0 [08:50:07]*** Brake cut motor [08:50:07]Read from MH i2c: 01 [08:50:07]MH_I2C_Read... [08:50:07]*** Stop cut motor [08:50:07]*** Cut end [08:50:07]Read from MH i2c: 01 07 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: 01 07 00 3D 35 00 00 00 00 00 FF 0F 87 [08:50:07]process_action close_receipt done [08:50:07]requested_data is exist [08:50:07]produce_requested_data [08:50:07]requested_item fm.sn is exist - process it [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 11 00 00 [08:50:07]Write to MH i2c: E2 08 00 3E 35 80 11 00 00 00 00 00 00 ED [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 17 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 17 00 3E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [08:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:50:07]wFMCommunicate OK [08:50:07]requested_item fd.num is exist - process it [08:50:07]SAM_PROTO_GetFieldsCounters [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 13 00 00 [08:50:07]Write to MH i2c: E2 08 00 3F 35 80 13 00 00 00 00 00 00 F0 [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 62 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 62 00 3F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 79 00 00 0E 04 04 00 75 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 BC [08:50:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 79 00 00 0E 04 04 00 75 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 [08:50:07]wFMCommunicate OK [08:50:07]SAM_PROTO_GetFieldsCounters done [08:50:07]requested_item shift.num is exist - process it [08:50:07]requested_item shift.opened is exist - process it [08:50:07]req_shift_opened [08:50:07]FM_GetShiftState [08:50:07]SAM_PROTO_GetShiftState [08:50:07]wFMCommunicate request_size=4 [08:50:07]MH_SAM_APDU [08:50:07]CAPDU: 80 13 01 00 [08:50:07]Write to MH i2c: E2 08 00 40 35 80 13 01 00 00 00 00 00 F2 [08:50:07]Write i2c OK [08:50:07]MH_I2C_Read... [08:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:07]Read from MH i2c: E2 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 0E 00 [08:50:07]MH_I2C_Read... [08:50:07]Read from MH i2c: E2 0E 00 40 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AC [08:50:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:50:07]wFMCommunicate OK [08:50:07]SAM_PROTO_GetShiftState done [08:50:07]FM_GetShiftState done [08:50:07]req_shift_opened done [08:50:07]requested_item shift.open_date is exist - process it [08:50:07]req_shift_open_date [08:50:07]req_shift_open_date done [08:50:07]produce_requested_data done [08:50:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31082,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:50:07]process_action_free close_receipt [08:50:07]json_value_free [08:50:07]json_value_free done [08:50:07]process_json_proto returns [08:50:07]Send response to host [08:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31082,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:50:07]free response buf [08:50:07]execute_script done [08:50:07]execute_script returns [08:50:07]free content buf [08:50:07]Sock 7.Close socket [08:50:07]Sock 7.Thread stoped [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:51]accept exits with 9 [08:58:51]New connection [08:58:51]New thread 3067043172 created [08:58:51]Thread 3066899812 joined [08:58:51]Waiting for new connection... [08:58:51] Sock 9.Parse request [08:58:51]Sock 9.Check first char [08:58:51]Sock 9.First char is OK [08:58:51]request: POST /json_proto HTTP/1.0 [08:58:51]Method: POST [08:58:51]URL: /json_proto [08:58:51]Method is POST - this is cgi request [08:58:51]url: /json_proto [08:58:51]query_string will be loaded in cgi processing [08:58:51]execute_cgi json_proto POST (null) [08:58:51]execute_cgi path=json_proto method=POST [08:58:51]POST find Content-Length [08:58:51]Host: 172.17.51.3:8080 [08:58:51]Content-Length: 677 [08:58:51]Content-Type: application/json [08:58:51] [08:58:51]POST finish read [08:58:51]Found Content-Length = 677 [08:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:51]execute_script... [08:58:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:51]POST & json_proto [08:58:51]process_json_proto [08:58:51]json parsed OK: [08:58:51]protocol is kg_v1.0 [08:58:51]action value=close_receipt [08:58:51]process_action close_receipt [08:58:51]cmd_close_receipt [08:58:51]MH_GetDate [08:58:51]Write to MH i2c: F0 00 00 41 35 65 [08:58:51]Write i2c OK [08:58:51]MH_I2C_Read... [08:58:51]Read from MH i2c: F0 [08:58:51]MH_I2C_Read... [08:58:51]Read from MH i2c: F0 09 00 [08:58:51]MH_I2C_Read... [08:58:51]Read from MH i2c: F0 09 00 41 35 00 D1 BA 18 67 04 C1 95 66 38 [08:58:51]GetLastDocTimeStamp 1729673409 [08:58:51]current date 1729673937 [08:58:51]FM_GetShiftState [08:58:51]SAM_PROTO_GetShiftState [08:58:51]wFMCommunicate request_size=4 [08:58:51]MH_SAM_APDU [08:58:51]CAPDU: 80 13 01 00 [08:58:51]Write to MH i2c: E2 08 00 42 35 80 13 01 00 00 00 00 00 F4 [08:58:51]Write i2c OK [08:58:51]MH_I2C_Read... [08:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:51]Read from MH i2c: E2 [08:58:51]MH_I2C_Read... [08:58:51]Read from MH i2c: E2 0E 00 [08:58:51]MH_I2C_Read... [08:58:51]Read from MH i2c: E2 0E 00 42 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AE [08:58:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:58:51]wFMCommunicate OK [08:58:51]SAM_PROTO_GetShiftState done [08:58:51]FM_GetShiftState done [08:58:51]opened in 1729643755 [08:58:51]opened+sec_in_day 1729730155 [08:58:51]quantity*price = 20003 [08:58:51]sum+1 = 20004 [08:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 27 23.10.2024 08:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31083 ФПД: 215564296001480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31083&fm=215564296001480&tin=02508201610067®Number=0000000000186857&sum=20000 [08:58:53]StoreToDocumentArchive [08:58:53]shift 117 fd 31083 [08:58:53]save to /storage/0117/doc_00031083 [08:58:53]save last doc name /storage/0117/doc_00031083 to /storage/kkm_last_doc_name [08:58:53]save OK [08:58:53]Clear old archive folders... [08:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:53]tlvbuf is B6EF0350 [08:58:53]SAM_PROTO_ClearQueue [08:58:53]wFMCommunicate request_size=4 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 09 00 00 [08:58:53]Write to MH i2c: E2 08 00 4F 35 80 09 00 00 00 00 00 00 F6 [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 4F 35 00 90 00 F8 [08:58:53]RAPDU: 90 00 [08:58:53]wFMCommunicate OK [08:58:53]SAM_PROTO_ClearQueue done [08:58:53]KKMCreateOFDPacket [08:58:53]OFDProtocolAddRootSTLVToBuf [08:58:53]FM_MakeSignedData [08:58:53]FM_MakeSignedData [08:58:53]SAM_PROTO_SignData [08:58:53]wFMCommunicate request_size=4 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 0D 01 02 [08:58:53]Write to MH i2c: E2 08 00 50 35 80 0D 01 02 00 00 00 00 FE [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 50 35 00 90 00 F9 [08:58:53]RAPDU: 90 00 [08:58:53]wFMCommunicate OK [08:58:53]wFMCommunicate request_size=255 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D1 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 79 00 00 35 04 06 00 C4 [08:58:53]Write to MH i2c: E2 02 01 51 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D1 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 79 00 00 35 04 06 00 C4 00 00 93 [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 51 35 00 90 00 FA [08:58:53]RAPDU: 90 00 [08:58:53]wFMCommunicate OK [08:58:53]wFMCommunicate request_size=10 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 0D 02 02 05 0D F9 4A 17 C8 [08:58:53]Write to MH i2c: E2 0D 00 52 35 80 0D 02 02 05 00 0D F9 4A 17 C8 00 00 3A [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 03 00 52 35 00 90 00 FB [08:58:53]RAPDU: 90 00 [08:58:53]wFMCommunicate OK [08:58:53]wFMCommunicate request_size=4 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 0D 03 02 [08:58:53]Write to MH i2c: E2 08 00 53 35 80 0D 03 02 00 00 00 00 03 [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 0B 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 0B 00 53 35 00 7E 1C A8 33 46 97 67 04 90 00 C1 [08:58:53]RAPDU: 7E 1C A8 33 46 97 67 04 90 00 [08:58:53]wFMCommunicate OK [08:58:53]SAM_PROTO_SignData done [08:58:53]FM_MakeSignedData done [08:58:53]CreateOFDProtocolMessage [08:58:53]wFMCommunicate request_size=4 [08:58:53]MH_SAM_APDU [08:58:53]CAPDU: 80 11 00 00 [08:58:53]Write to MH i2c: E2 08 00 54 35 80 11 00 00 00 00 00 00 03 [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:53]Read from MH i2c: E2 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 17 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: E2 17 00 54 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [08:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:58:53]wFMCommunicate OK [08:58:53]CreateOFDProtocolMessage done [08:58:53]OFDSenderStorePacket 31083 [08:58:53]StoreOFDPacket docnum=31083 [08:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 FB 07 01 87 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D1 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 79 00 00 35 04 06 00 C4 0D F9 4A 17 C8 7E 1C A8 33 46 97 67 04 [08:58:53]CheckFolder [08:58:53]dirname=/storage/ofd_packets [08:58:53]CheckFolder done [08:58:53]ProducePacketName [08:58:53]name=ofd_packets/00031083 [08:58:53]NVStorageSaveData ofd_packets/00031083 [08:58:53]File name is /storage/ofd_packets/00031083 [08:58:53]Write 301 bytes [08:58:53]NVStorageSaveData done [08:58:53]OFDSenderStorePacket done [08:58:53]KKMCreateOFDPacket done [08:58:53]NVStorageSaveData kkm_last_timestamp [08:58:53]File name is /storage/kkm_last_timestamp [08:58:53]Write 4 bytes [08:58:53]NVStorageSaveData done [08:58:53]ExternCall_PrintAddStr [08:58:53]wPrintStart [08:58:53]Write to MH i2c: 01 00 00 55 35 8A [08:58:53]Write i2c OK [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: 01 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: 01 07 00 [08:58:53]MH_I2C_Read... [08:58:53]Read from MH i2c: 01 07 00 55 35 00 00 00 00 00 FF 0F 9F [08:58:53]RasterBufferAndPrint [08:58:53]line Счет N : (1)343522 [08:58:53]line ИНН: 02508201610067 [08:58:53]line Контрольно-Кассовый Чек [08:58:53]line ПРОДАЖА [08:58:53]line ТРК (МРК, ГНК) : 53 [08:58:53]line Товар: 2710124130 [08:58:53]line Аи-92-К-2 [08:58:53]line 2.990 * 66.90 [08:58:53]line = 200.03 [08:58:53]line НДС 12% НСП 1% [08:58:53]line > о реализуемом товаре [08:58:53]line ОКРУГЛЕНИЕ: -0.03 [08:58:53]line ИТОГО: 200.00 [08:58:53]line Внесено: 200.00 [08:58:53]line СДАЧА: 0.00 [08:58:53]line НСП 1% : 1.77 [08:58:53]line НДС 12% : 21.24 [08:58:53]line Наличными: 200.00 [08:58:53]line Безнал.: 0.00 [08:58:53]line Место: АЗС № 78 "Партнер Нефть" [08:58:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:58:53]line СНО: Общий режим [08:58:53]line Чек 27 23.10.2024 08:58 [08:58:53]line Смена: 117 ФФД: 1.0 [08:58:53]line ЗНМ: 0300000137 [08:58:53]line РНМ: 0000000000186857 [08:58:53]line Версия ККМ: v1.0 [08:58:53]line ФМ: 0000000002094219 [08:58:53]line ФД: 31083 [08:58:53]line ФПД: 215564296001480 [08:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31083&fm=215564296001480&tin=02508201610067®Number=0000000000186857&sum=20000 [08:58:53]OFD Sender: Processing packet 31083 [packets to send 11, broken 10] [08:58:53]ProducePacketName [08:58:53]name=ofd_packets/00031083 [08:58:53]OFD Sender: To server: pG, [08:58:53]CommunicateWithHost lk.salyk.kg:30040 [08:58:53]ConnectInit lk.salyk.kg [08:58:53]written 0, free lines is 4095 [08:58:54]Connected sock=10 [08:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 FB 07 01 87 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D1 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 79 00 00 35 04 06 00 C4 0D F9 4A 17 C8 7E 1C A8 33 46 97 67 04 [08:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E9 D6 47 00 27 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 79 00 00 F4 03 04 00 4C 65 18 67 B6 04 01 00 00 A2 E1 79 A2 59 D4 BD B3 [08:58:54]CommunicateWithHost err = 0 [08:58:54]CheckOFDResponse [08:58:54]1017 (14) - 77093643461234 [08:58:54]1041 (16) - 0000000002094219 [08:58:54]1040 (4) - 31083 [08:58:54]1012 (4) - 23.10.2024 02:54 [08:58:54]1206 (1) - 0 [08:58:54]OFD Sender: Remove packet 31083 [08:58:54]ProducePacketName [08:58:54]name=ofd_packets/00031083 [08:58:54]NVStorageDeleteData [08:58:54]Write to MH i2c: 01 00 00 80 35 B5 [08:58:54]Write i2c OK [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: 01 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: 01 07 00 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: 01 07 00 80 35 00 00 00 00 00 F8 0C C0 [08:58:54]RasterBufferAndPrint [08:58:54]line [08:58:54]line [08:58:54]line [08:58:54]line [08:58:54]line [08:58:54]written 0, free lines is 3326 [08:58:54]MH_Cut [08:58:54]Write to MH i2c: D1 01 00 87 35 01 8E [08:58:54]Write i2c OK [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: D1 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: D1 01 00 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: D1 01 00 87 35 00 8D [08:58:54]Write to MH i2c: 01 00 00 88 35 BD [08:58:54]Write i2c OK [08:58:54]MH_I2C_Read... [08:58:54]OFD Sender: No OFD packet to send [08:58:55]*** Cut start [08:58:55]*** Partial cut [08:58:55]*** CUTSNS_PIN = 1 [08:58:55]*** CUTSNS_PIN = 0 [08:58:55]*** Brake cut motor [08:58:55]Read from MH i2c: 01 [08:58:55]MH_I2C_Read... [08:58:55]*** Stop cut motor [08:58:55]*** Cut end [08:58:55]Read from MH i2c: 01 07 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: 01 07 00 88 35 00 00 00 00 00 FF 0F D2 [08:58:55]process_action close_receipt done [08:58:55]requested_data is exist [08:58:55]produce_requested_data [08:58:55]requested_item fm.sn is exist - process it [08:58:55]wFMCommunicate request_size=4 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 11 00 00 [08:58:55]Write to MH i2c: E2 08 00 89 35 80 11 00 00 00 00 00 00 38 [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:55]Read from MH i2c: E2 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 17 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 17 00 89 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [08:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:58:55]wFMCommunicate OK [08:58:55]requested_item fd.num is exist - process it [08:58:55]SAM_PROTO_GetFieldsCounters [08:58:55]wFMCommunicate request_size=4 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 13 00 00 [08:58:55]Write to MH i2c: E2 08 00 8A 35 80 13 00 00 00 00 00 00 3B [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:55]Read from MH i2c: E2 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 62 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 62 00 8A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 79 00 00 0E 04 04 00 75 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 0B [08:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 79 00 00 0E 04 04 00 75 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 [08:58:55]wFMCommunicate OK [08:58:55]SAM_PROTO_GetFieldsCounters done [08:58:55]requested_item shift.num is exist - process it [08:58:55]requested_item shift.opened is exist - process it [08:58:55]req_shift_opened [08:58:55]FM_GetShiftState [08:58:55]SAM_PROTO_GetShiftState [08:58:55]wFMCommunicate request_size=4 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 13 01 00 [08:58:55]Write to MH i2c: E2 08 00 8B 35 80 13 01 00 00 00 00 00 3D [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:55]Read from MH i2c: E2 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 0E 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 0E 00 8B 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F7 [08:58:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:58:55]wFMCommunicate OK [08:58:55]SAM_PROTO_GetShiftState done [08:58:55]FM_GetShiftState done [08:58:55]req_shift_opened done [08:58:55]requested_item shift.open_date is exist - process it [08:58:55]req_shift_open_date [08:58:55]req_shift_open_date done [08:58:55]produce_requested_data done [08:58:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31083,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:58:55]process_action_free close_receipt [08:58:55]json_value_free [08:58:55]json_value_free done [08:58:55]process_json_proto returns [08:58:55]Send response to host [08:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31083,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:58:55]free response buf [08:58:55]execute_script done [08:58:55]execute_script returns [08:58:56]free content buf [08:58:56]Sock 9.Close socket [08:58:56]Sock 9.Thread stoped [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:07]accept exits with 7 [08:59:07]New connection [08:59:07]New thread 3066899812 created [08:59:07]Thread 3067043172 joined [08:59:07]Waiting for new connection... [08:59:07] Sock 7.Parse request [08:59:07]Sock 7.Check first char [08:59:07]Sock 7.First char is OK [08:59:07]request: POST /json_proto HTTP/1.0 [08:59:07]Method: POST [08:59:07]URL: /json_proto [08:59:07]Method is POST - this is cgi request [08:59:07]url: /json_proto [08:59:07]query_string will be loaded in cgi processing [08:59:07]execute_cgi json_proto POST (null) [08:59:07]execute_cgi path=json_proto method=POST [08:59:07]POST find Content-Length [08:59:07]Host: 172.17.51.3:8080 [08:59:07]Content-Length: 754 [08:59:07]Content-Type: application/json [08:59:07] [08:59:07]POST finish read [08:59:07]Found Content-Length = 754 [08:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118618", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]execute_script... [08:59:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118618", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]POST & json_proto [08:59:07]process_json_proto [08:59:07]json parsed OK: [08:59:07]protocol is kg_v1.0 [08:59:07]action value=close_receipt [08:59:07]process_action close_receipt [08:59:07]cmd_close_receipt [08:59:07]MH_GetDate [08:59:07]Write to MH i2c: F0 00 00 8C 35 B0 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 8C 35 00 E0 BA 18 67 04 C1 95 66 92 [08:59:07]GetLastDocTimeStamp 1729673937 [08:59:07]current date 1729673952 [08:59:07]FM_GetShiftState [08:59:07]SAM_PROTO_GetShiftState [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 01 00 [08:59:07]Write to MH i2c: E2 08 00 8D 35 80 13 01 00 00 00 00 00 3F [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 8D 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F9 [08:59:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetShiftState done [08:59:07]FM_GetShiftState done [08:59:07]opened in 1729643755 [08:59:07]opened+sec_in_day 1729730155 [08:59:07]quantity*price = 0 [08:59:07]sum+1 = 1 [08:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 28 23.10.2024 08:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118618 ФМ: 0000000002094219 ФД: 31084 ФПД: 253263193897861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085912&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31084&fm=253263193897861&tin=02508201610067®Number=0000000000186857&sum=0 [08:59:08]StoreToDocumentArchive [08:59:08]shift 117 fd 31084 [08:59:08]save to /storage/0117/doc_00031084 [08:59:08]save last doc name /storage/0117/doc_00031084 to /storage/kkm_last_doc_name [08:59:08]save OK [08:59:08]Clear old archive folders... [08:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:08]tlvbuf is 00D60F00 [08:59:08]SAM_PROTO_ClearQueue [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 09 00 00 [08:59:08]Write to MH i2c: E2 08 00 9A 35 80 09 00 00 00 00 00 00 41 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 9A 35 00 90 00 43 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_ClearQueue done [08:59:08]KKMCreateOFDPacket [08:59:08]OFDProtocolAddRootSTLVToBuf [08:59:08]FM_MakeSignedData [08:59:08]FM_MakeSignedData [08:59:08]SAM_PROTO_SignData [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 01 02 [08:59:08]Write to MH i2c: E2 08 00 9B 35 80 0D 01 02 00 00 00 00 49 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 9B 35 00 90 00 44 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]wFMCommunicate request_size=255 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E0 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 79 00 00 35 04 06 00 E6 [08:59:08]Write to MH i2c: E2 02 01 9C 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E0 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 79 00 00 35 04 06 00 E6 00 00 6F [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]wFMCommunicate request_size=10 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 02 02 05 57 6E B4 FB 85 [08:59:08]Write to MH i2c: E2 0D 00 9D 35 80 0D 02 02 05 00 57 6E B4 FB 85 00 00 4F [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [08:59:08]RAPDU: 90 00 [08:59:08]wFMCommunicate OK [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 0D 03 02 [08:59:08]Write to MH i2c: E2 08 00 9E 35 80 0D 03 02 00 00 00 00 4E [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0B 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0B 00 9E 35 00 F6 9F 60 3E E3 29 24 56 90 00 08 [08:59:08]RAPDU: F6 9F 60 3E E3 29 24 56 90 00 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_SignData done [08:59:08]FM_MakeSignedData done [08:59:08]CreateOFDProtocolMessage [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 11 00 00 [08:59:08]Write to MH i2c: E2 08 00 9F 35 80 11 00 00 00 00 00 00 4E [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 17 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 17 00 9F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [08:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:59:08]wFMCommunicate OK [08:59:08]CreateOFDProtocolMessage done [08:59:08]OFDSenderStorePacket 31084 [08:59:08]StoreOFDPacket docnum=31084 [08:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0C 24 07 01 DB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E0 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 79 00 00 35 04 06 00 E6 57 6E B4 FB 85 F6 9F 60 3E E3 29 24 56 [08:59:08]CheckFolder [08:59:08]dirname=/storage/ofd_packets [08:59:08]CheckFolder done [08:59:08]ProducePacketName [08:59:08]name=ofd_packets/00031084 [08:59:08]NVStorageSaveData ofd_packets/00031084 [08:59:08]File name is /storage/ofd_packets/00031084 [08:59:08]Write 301 bytes [08:59:08]NVStorageSaveData done [08:59:08]OFDSenderStorePacket done [08:59:08]KKMCreateOFDPacket done [08:59:08]NVStorageSaveData kkm_last_timestamp [08:59:08]File name is /storage/kkm_last_timestamp [08:59:08]Write 4 bytes [08:59:08]OFD Sender: Processing packet 31084 [packets to send 11, broken 10] [08:59:08]ProducePacketName [08:59:08]name=ofd_packets/00031084 [08:59:08]OFD Sender: To server: pG, [08:59:08]CommunicateWithHost lk.salyk.kg:30040 [08:59:08]ConnectInit lk.salyk.kg [08:59:08]NVStorageSaveData done [08:59:08]ExternCall_PrintAddStr [08:59:08]wPrintStart [08:59:08]Write to MH i2c: 01 00 00 A0 35 D5 [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: 01 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: 01 07 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: 01 07 00 A0 35 00 00 00 00 00 FF 0F EA [08:59:08]RasterBufferAndPrint [08:59:08]line Счет N : (1)343521 [08:59:08]line ИНН: 02508201610067 [08:59:08]line Контрольно-Кассовый Чек [08:59:08]line ПРОДАЖА [08:59:08]line ТРК (МРК, ГНК) : 63 [08:59:08]line Товар: 2710124130 [08:59:08]line Аи-92-К-2 [08:59:08]line 30.000 * 0.00 [08:59:08]line = 0.00 [08:59:08]line НДС 12% НСП 1% [08:59:08]line > о реализуемом товаре [08:59:08]line ИТОГО: 0.00 [08:59:08]line НСП 1% : 0.00 [08:59:08]line НДС 12% : 0.00 [08:59:08]line Наличными: 0.00 [08:59:08]line Безнал.: 0.00 [08:59:08]line Место: АЗС № 78 "Партнер Нефть" [08:59:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:59:08]line СНО: Общий режим [08:59:08]line Чек 28 23.10.2024 08:59 [08:59:08]line Смена: 117 ФФД: 1.0 [08:59:08]line ЗНМ: 0300000137 [08:59:08]line РНМ: 0000000000186857 [08:59:08]line Версия ККМ: v1.0 [08:59:08]line Талоны: ТК ГПНА Online [08:59:08]line 30118618 [08:59:08]line ФМ: 0000000002094219 [08:59:08]line ФД: 31084 [08:59:08]line ФПД: 253263193897861 [08:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085912&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31084&fm=253263193897861&tin=02508201610067®Number=0000000000186857&sum=0 [08:59:09]Connected sock=11 [08:59:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0C 24 07 01 DB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E0 BA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 79 00 00 35 04 06 00 E6 57 6E B4 FB 85 F6 9F 60 3E E3 29 24 56 [08:59:09]written 0, free lines is 4095 [08:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6F F5 47 00 D9 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 32 30 39 34 32 31 39 10 04 04 00 6C 79 00 00 F4 03 04 00 5B 65 18 67 B6 04 01 00 00 D6 65 29 8C 92 13 7E E7 [08:59:09]CommunicateWithHost err = 0 [08:59:09]CheckOFDResponse [08:59:09]1017 (14) - 77093643461234 [08:59:09]1041 (16) - 0000000002094219 [08:59:09]1040 (4) - 31084 [08:59:09]1012 (4) - 23.10.2024 02:54 [08:59:09]1206 (1) - 0 [08:59:09]OFD Sender: Remove packet 31084 [08:59:09]ProducePacketName [08:59:09]name=ofd_packets/00031084 [08:59:09]NVStorageDeleteData [08:59:09]Write to MH i2c: 01 00 00 CA 35 FF [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 CA 35 00 00 00 00 00 F6 0C 08 [08:59:09]RasterBufferAndPrint [08:59:09]line [08:59:09]line [08:59:09]line [08:59:09]line [08:59:09]line [08:59:09]written 0, free lines is 3324 [08:59:09]MH_Cut [08:59:09]Write to MH i2c: D1 01 00 D1 35 01 D8 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: D1 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: D1 01 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: D1 01 00 D1 35 00 D7 [08:59:09]Write to MH i2c: 01 00 00 D2 35 07 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]OFD Sender: No OFD packet to send [08:59:10]*** Cut start [08:59:10]*** Partial cut [08:59:10]*** CUTSNS_PIN = 1 [08:59:10]*** CUTSNS_PIN = 0 [08:59:10]*** Brake cut motor [08:59:10]Read from MH i2c: 01 [08:59:10]MH_I2C_Read... [08:59:10]*** Stop cut motor [08:59:10]*** Cut end [08:59:10]Read from MH i2c: 01 07 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 D2 35 00 00 00 00 00 FF 0F 1C [08:59:10]process_action close_receipt done [08:59:10]requested_data is exist [08:59:10]produce_requested_data [08:59:10]requested_item fm.sn is exist - process it [08:59:10]wFMCommunicate request_size=4 [08:59:10]MH_SAM_APDU [08:59:10]CAPDU: 80 11 00 00 [08:59:10]Write to MH i2c: E2 08 00 D3 35 80 11 00 00 00 00 00 00 82 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:10]Read from MH i2c: E2 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: E2 17 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: E2 17 00 D3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [08:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:59:10]wFMCommunicate OK [08:59:10]requested_item fd.num is exist - process it [08:59:10]SAM_PROTO_GetFieldsCounters [08:59:10]wFMCommunicate request_size=4 [08:59:10]MH_SAM_APDU [08:59:10]CAPDU: 80 13 00 00 [08:59:10]Write to MH i2c: E2 08 00 D4 35 80 13 00 00 00 00 00 00 85 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 D4 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 79 00 00 0E 04 04 00 75 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 59 [08:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 79 00 00 0E 04 04 00 75 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 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetFieldsCounters done [08:59:11]requested_item shift.num is exist - process it [08:59:11]requested_item shift.opened is exist - process it [08:59:11]req_shift_opened [08:59:11]FM_GetShiftState [08:59:11]SAM_PROTO_GetShiftState [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 13 01 00 [08:59:11]Write to MH i2c: E2 08 00 D5 35 80 13 01 00 00 00 00 00 87 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 D5 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 41 [08:59:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetShiftState done [08:59:11]FM_GetShiftState done [08:59:11]req_shift_opened done [08:59:11]requested_item shift.open_date is exist - process it [08:59:11]req_shift_open_date [08:59:11]req_shift_open_date done [08:59:11]produce_requested_data done [08:59:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31084,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [08:59:11]process_action_free close_receipt [08:59:11]json_value_free [08:59:11]json_value_free done [08:59:11]process_json_proto returns [08:59:11]Send response to host [08:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31084,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [08:59:11]free response buf [08:59:11]execute_script done [08:59:11]execute_script returns [08:59:11]free content buf [08:59:11]Sock 7.Close socket [08:59:11]Sock 7.Thread stoped [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:57]accept exits with 9 [09:02:57]New connection [09:02:57]New thread 3067043172 created [09:02:57]Thread 3066899812 joined [09:02:57]Waiting for new connection... [09:02:57] Sock 9.Parse request [09:02:57]Sock 9.Check first char [09:02:57]Sock 9.First char is OK [09:02:57]request: POST /json_proto HTTP/1.0 [09:02:57]Method: POST [09:02:57]URL: /json_proto [09:02:57]Method is POST - this is cgi request [09:02:57]url: /json_proto [09:02:57]query_string will be loaded in cgi processing [09:02:57]execute_cgi json_proto POST (null) [09:02:57]execute_cgi path=json_proto method=POST [09:02:57]POST find Content-Length [09:02:57]Host: 172.17.51.3:8080 [09:02:57]Content-Length: 674 [09:02:57]Content-Type: application/json [09:02:57] [09:02:57]POST finish read [09:02:57]Found Content-Length = 674 [09:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:57]execute_script... [09:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:57]POST & json_proto [09:02:57]process_json_proto [09:02:57]json parsed OK: [09:02:57]protocol is kg_v1.0 [09:02:57]action value=close_receipt [09:02:57]process_action close_receipt [09:02:57]cmd_close_receipt [09:02:57]MH_GetDate [09:02:57]Write to MH i2c: F0 00 00 D6 35 FA [09:02:57]Write i2c OK [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 09 00 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 09 00 D6 35 00 C6 BB 18 67 04 C1 95 66 C3 [09:02:57]GetLastDocTimeStamp 1729673952 [09:02:57]current date 1729674182 [09:02:57]FM_GetShiftState [09:02:57]SAM_PROTO_GetShiftState [09:02:57]wFMCommunicate request_size=4 [09:02:57]MH_SAM_APDU [09:02:57]CAPDU: 80 13 01 00 [09:02:57]Write to MH i2c: E2 08 00 D7 35 80 13 01 00 00 00 00 00 89 [09:02:57]Write i2c OK [09:02:57]MH_I2C_Read... [09:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:57]Read from MH i2c: E2 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: E2 0E 00 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: E2 0E 00 D7 35 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 43 [09:02:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:02:57]wFMCommunicate OK [09:02:57]SAM_PROTO_GetShiftState done [09:02:57]FM_GetShiftState done [09:02:57]opened in 1729643755 [09:02:57]opened+sec_in_day 1729730155 [09:02:57]quantity*price = 50063 [09:02:57]sum+1 = 50064 [09:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 29 23.10.2024 09:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31085 ФПД: 269693834836499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31085&fm=269693834836499&tin=02508201610067®Number=0000000000186857&sum=50000 [09:02:58]StoreToDocumentArchive [09:02:58]shift 117 fd 31085 [09:02:58]save to /storage/0117/doc_00031085 [09:02:58]save last doc name /storage/0117/doc_00031085 to /storage/kkm_last_doc_name [09:02:58]save OK [09:02:58]Clear old archive folders... [09:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:02:58]tlvbuf is 00CD67B0 [09:02:58]SAM_PROTO_ClearQueue [09:02:58]wFMCommunicate request_size=4 [09:02:58]MH_SAM_APDU [09:02:58]CAPDU: 80 09 00 00 [09:02:58]Write to MH i2c: E2 08 00 E4 35 80 09 00 00 00 00 00 00 8B [09:02:58]Write i2c OK [09:02:58]MH_I2C_Read... [09:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:58]Read from MH i2c: E2 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 03 00 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 03 00 E4 35 00 90 00 8D [09:02:58]RAPDU: 90 00 [09:02:58]wFMCommunicate OK [09:02:58]SAM_PROTO_ClearQueue done [09:02:58]KKMCreateOFDPacket [09:02:58]OFDProtocolAddRootSTLVToBuf [09:02:58]FM_MakeSignedData [09:02:58]FM_MakeSignedData [09:02:58]SAM_PROTO_SignData [09:02:58]wFMCommunicate request_size=4 [09:02:58]MH_SAM_APDU [09:02:58]CAPDU: 80 0D 01 02 [09:02:58]Write to MH i2c: E2 08 00 E5 35 80 0D 01 02 00 00 00 00 93 [09:02:58]Write i2c OK [09:02:58]MH_I2C_Read... [09:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:58]Read from MH i2c: E2 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 03 00 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 03 00 E5 35 00 90 00 8E [09:02:58]RAPDU: 90 00 [09:02:58]wFMCommunicate OK [09:02:58]wFMCommunicate request_size=255 [09:02:58]MH_SAM_APDU [09:02:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C7 BB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 79 00 00 35 04 06 00 F5 48 FD 39 [09:02:58]Write to MH i2c: E2 02 01 E6 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C7 BB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 79 00 00 35 04 06 00 F5 48 FD 39 00 00 8E [09:02:58]Write i2c OK [09:02:58]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 E6 35 00 90 00 8F [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=7 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 02 02 02 3A 13 [09:02:59]Write to MH i2c: E2 0A 00 E7 35 80 0D 02 02 02 00 3A 13 00 00 E7 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 E7 35 00 90 00 90 [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 03 02 [09:02:59]Write to MH i2c: E2 08 00 E8 35 80 0D 03 02 00 00 00 00 98 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 0B 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 0B 00 E8 35 00 87 D1 BE B5 B4 84 8B 84 90 00 AB [09:02:59]RAPDU: 87 D1 BE B5 B4 84 8B 84 90 00 [09:02:59]wFMCommunicate OK [09:02:59]SAM_PROTO_SignData done [09:02:59]FM_MakeSignedData done [09:02:59]CreateOFDProtocolMessage [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 11 00 00 [09:02:59]Write to MH i2c: E2 08 00 E9 35 80 11 00 00 00 00 00 00 98 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 17 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 17 00 E9 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E6 [09:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:02:59]wFMCommunicate OK [09:02:59]CreateOFDProtocolMessage done [09:02:59]OFDSenderStorePacket 31085 [09:02:59]StoreOFDPacket docnum=31085 [09:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 35 CC 04 01 30 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C7 BB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 79 00 00 35 04 06 00 F5 48 FD 39 3A 13 87 D1 BE B5 B4 84 8B 84 [09:02:59]CheckFolder [09:02:59]dirname=/storage/ofd_packets [09:02:59]CheckFolder done [09:02:59]ProducePacketName [09:02:59]name=ofd_packets/00031085 [09:02:59]NVStorageSaveData ofd_packets/00031085 [09:02:59]File name is /storage/ofd_packets/00031085 [09:02:59]Write 298 bytes [09:02:59]NVStorageSaveData done [09:02:59]OFDSenderStorePacket done [09:02:59]KKMCreateOFDPacket done [09:02:59]NVStorageSaveData kkm_last_timestamp [09:02:59]File name is /storage/kkm_last_timestamp [09:02:59]Write 4 bytes [09:02:59]NVStorageSaveData done [09:02:59]ExternCall_PrintAddStr [09:02:59]wPrintStart [09:02:59]Write to MH i2c: 01 00 00 EA 35 1F [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 07 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 07 00 EA 35 00 00 00 00 00 FF 0F 34 [09:02:59]RasterBufferAndPrint [09:02:59]line Счет N : (1)343523 [09:02:59]line ИНН: 02508201610067 [09:02:59]line Контрольно-Кассовый Чек [09:02:59]line ПРОДАЖА [09:02:59]line ТРК (МРК, ГНК) : 64 [09:02:59]line Товар: 2710194210 [09:02:59]line ДТ-К-2 [09:02:59]line 6.570 * 76.20 [09:02:59]line = 500.63 [09:02:59]line НДС 12% НСП 1% [09:02:59]line > о реализуемом товаре [09:02:59]line ОКРУГЛЕНИЕ: -0.63 [09:02:59]line ИТОГО: 500.00 [09:02:59]line Внесено: 500.00 [09:02:59]line СДАЧА: 0.00 [09:02:59]line НСП 1% : 4.43 [09:02:59]line НДС 12% : 53.16 [09:02:59]line Наличными: 500.00 [09:02:59]line Безнал.: 0.00 [09:02:59]line Место: АЗС № 78 "Партнер Нефть" [09:02:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:02:59]line СНО: Общий режим [09:02:59]line Чек 29 23.10.2024 09:03 [09:02:59]line Смена: 117 ФФД: 1.0 [09:02:59]line ЗНМ: 0300000137 [09:02:59]line РНМ: 0000000000186857 [09:02:59]line Версия ККМ: v1.0 [09:02:59]line ФМ: 0000000002094219 [09:02:59]line ФД: 31085 [09:02:59]line ФПД: 269693834836499 [09:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31085&fm=269693834836499&tin=02508201610067®Number=0000000000186857&sum=50000 [09:02:59]OFD Sender: Processing packet 31085 [packets to send 11, broken 10] [09:02:59]ProducePacketName [09:02:59]name=ofd_packets/00031085 [09:02:59]OFD Sender: To server: pG, [09:02:59]CommunicateWithHost lk.salyk.kg:30040 [09:02:59]ConnectInit lk.salyk.kg [09:02:59]written 0, free lines is 4095 [09:02:59]Connected sock=10 [09:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 35 CC 04 01 30 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C7 BB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 79 00 00 35 04 06 00 F5 48 FD 39 3A 13 87 D1 BE B5 B4 84 8B 84 [09:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B2 9F 47 00 8C 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 32 30 39 34 32 31 39 10 04 04 00 6D 79 00 00 F4 03 04 00 41 66 18 67 B6 04 01 00 00 CF C6 79 BC 30 15 DF 6D [09:02:59]CommunicateWithHost err = 0 [09:02:59]CheckOFDResponse [09:02:59]1017 (14) - 77093643461234 [09:02:59]1041 (16) - 0000000002094219 [09:02:59]1040 (4) - 31085 [09:02:59]1012 (4) - 23.10.2024 02:58 [09:02:59]1206 (1) - 0 [09:02:59]OFD Sender: Remove packet 31085 [09:02:59]ProducePacketName [09:02:59]name=ofd_packets/00031085 [09:02:59]NVStorageDeleteData [09:03:00]Write to MH i2c: 01 00 00 15 36 4B [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 07 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 07 00 15 36 00 00 00 00 00 F0 0C 4E [09:03:00]RasterBufferAndPrint [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]written 0, free lines is 3321 [09:03:00]MH_Cut [09:03:00]Write to MH i2c: D1 01 00 1C 36 01 24 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 01 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 01 00 1C 36 00 23 [09:03:00]Write to MH i2c: 01 00 00 1D 36 53 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]OFD Sender: No OFD packet to send [09:03:00]*** Cut start [09:03:00]*** Partial cut [09:03:00]*** CUTSNS_PIN = 1 [09:03:00]*** CUTSNS_PIN = 0 [09:03:01]*** Brake cut motor [09:03:01]Read from MH i2c: 01 [09:03:01]MH_I2C_Read... [09:03:01]*** Stop cut motor [09:03:01]*** Cut end [09:03:01]Read from MH i2c: 01 07 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: 01 07 00 1D 36 00 00 00 00 00 FF 0F 68 [09:03:01]process_action close_receipt done [09:03:01]requested_data is exist [09:03:01]produce_requested_data [09:03:01]requested_item fm.sn is exist - process it [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 11 00 00 [09:03:01]Write to MH i2c: E2 08 00 1E 36 80 11 00 00 00 00 00 00 CE [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 17 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 17 00 1E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [09:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:03:01]wFMCommunicate OK [09:03:01]requested_item fd.num is exist - process it [09:03:01]SAM_PROTO_GetFieldsCounters [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 13 00 00 [09:03:01]Write to MH i2c: E2 08 00 1F 36 80 13 00 00 00 00 00 00 D1 [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 62 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 62 00 1F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 79 00 00 0E 04 04 00 75 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 A9 [09:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 79 00 00 0E 04 04 00 75 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 [09:03:01]wFMCommunicate OK [09:03:01]SAM_PROTO_GetFieldsCounters done [09:03:01]requested_item shift.num is exist - process it [09:03:01]requested_item shift.opened is exist - process it [09:03:01]req_shift_opened [09:03:01]FM_GetShiftState [09:03:01]SAM_PROTO_GetShiftState [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 13 01 00 [09:03:01]Write to MH i2c: E2 08 00 20 36 80 13 01 00 00 00 00 00 D3 [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 0E 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 0E 00 20 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8D [09:03:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:03:01]wFMCommunicate OK [09:03:01]SAM_PROTO_GetShiftState done [09:03:01]FM_GetShiftState done [09:03:01]req_shift_opened done [09:03:01]requested_item shift.open_date is exist - process it [09:03:01]req_shift_open_date [09:03:01]req_shift_open_date done [09:03:01]produce_requested_data done [09:03:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31085,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:03:01]process_action_free close_receipt [09:03:01]json_value_free [09:03:01]json_value_free done [09:03:01]process_json_proto returns [09:03:01]Send response to host [09:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31085,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:03:01]free response buf [09:03:01]execute_script done [09:03:01]execute_script returns [09:03:01]free content buf [09:03:01]Sock 9.Close socket [09:03:01]Sock 9.Thread stoped [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:47]accept exits with 7 [09:05:47]New connection [09:05:47]New thread 3066899812 created [09:05:47]Thread 3067043172 joined [09:05:47]Waiting for new connection... [09:05:47] Sock 7.Parse request [09:05:47]Sock 7.Check first char [09:05:47]Sock 7.First char is OK [09:05:47]request: POST /json_proto HTTP/1.0 [09:05:47]Method: POST [09:05:47]URL: /json_proto [09:05:47]Method is POST - this is cgi request [09:05:47]url: /json_proto [09:05:47]query_string will be loaded in cgi processing [09:05:47]execute_cgi json_proto POST (null) [09:05:47]execute_cgi path=json_proto method=POST [09:05:47]POST find Content-Length [09:05:47]Host: 172.17.51.3:8080 [09:05:47]Content-Length: 682 [09:05:47]Content-Type: application/json [09:05:47] [09:05:47]POST finish read [09:05:47]Found Content-Length = 682 [09:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:47]execute_script... [09:05:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:47]POST & json_proto [09:05:47]process_json_proto [09:05:47]json parsed OK: [09:05:47]protocol is kg_v1.0 [09:05:47]action value=close_receipt [09:05:47]process_action close_receipt [09:05:47]cmd_close_receipt [09:05:47]MH_GetDate [09:05:47]Write to MH i2c: F0 00 00 21 36 46 [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: F0 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: F0 09 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: F0 09 00 21 36 00 70 BC 18 67 04 C1 95 66 BA [09:05:47]GetLastDocTimeStamp 1729674183 [09:05:47]current date 1729674352 [09:05:47]FM_GetShiftState [09:05:47]SAM_PROTO_GetShiftState [09:05:47]wFMCommunicate request_size=4 [09:05:47]MH_SAM_APDU [09:05:47]CAPDU: 80 13 01 00 [09:05:47]Write to MH i2c: E2 08 00 22 36 80 13 01 00 00 00 00 00 D5 [09:05:47]Write i2c OK [09:05:47]MH_I2C_Read... [09:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:47]Read from MH i2c: E2 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 0E 00 [09:05:47]MH_I2C_Read... [09:05:47]Read from MH i2c: E2 0E 00 22 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8F [09:05:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:05:47]wFMCommunicate OK [09:05:47]SAM_PROTO_GetShiftState done [09:05:47]FM_GetShiftState done [09:05:47]opened in 1729643755 [09:05:47]opened+sec_in_day 1729730155 [09:05:47]quantity*price = 100015 [09:05:47]sum+1 = 100017 [09:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 30 23.10.2024 09:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31086 ФПД: 24866149437784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31086&fm=24866149437784&tin=02508201610067®Number=0000000000186857&sum=100000 [09:05:48]StoreToDocumentArchive [09:05:48]shift 117 fd 31086 [09:05:48]save to /storage/0117/doc_00031086 [09:05:48]save last doc name /storage/0117/doc_00031086 to /storage/kkm_last_doc_name [09:05:48]save OK [09:05:48]Clear old archive folders... [09:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:48]tlvbuf is 00CD6890 [09:05:48]SAM_PROTO_ClearQueue [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 09 00 00 [09:05:48]Write to MH i2c: E2 08 00 2F 36 80 09 00 00 00 00 00 00 D7 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 2F 36 00 90 00 D9 [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]SAM_PROTO_ClearQueue done [09:05:48]KKMCreateOFDPacket [09:05:48]OFDProtocolAddRootSTLVToBuf [09:05:48]FM_MakeSignedData [09:05:48]FM_MakeSignedData [09:05:48]SAM_PROTO_SignData [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 0D 01 02 [09:05:48]Write to MH i2c: E2 08 00 30 36 80 0D 01 02 00 00 00 00 DF [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 30 36 00 90 00 DA [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]wFMCommunicate request_size=255 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 BC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 79 00 00 35 04 06 00 16 [09:05:48]Write to MH i2c: E2 02 01 31 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 BC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 79 00 00 35 04 06 00 16 00 00 A5 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 03 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 03 00 31 36 00 90 00 DB [09:05:49]RAPDU: 90 00 [09:05:49]wFMCommunicate OK [09:05:49]wFMCommunicate request_size=10 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 0D 02 02 05 9D 9A 01 11 58 [09:05:49]Write to MH i2c: E2 0D 00 32 36 80 0D 02 02 05 00 9D 9A 01 11 58 00 00 8D [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 03 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 03 00 32 36 00 90 00 DC [09:05:49]RAPDU: 90 00 [09:05:49]wFMCommunicate OK [09:05:49]wFMCommunicate request_size=4 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 0D 03 02 [09:05:49]Write to MH i2c: E2 08 00 33 36 80 0D 03 02 00 00 00 00 E4 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 0B 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 0B 00 33 36 00 09 4E 29 71 8F 44 1C 7C 90 00 41 [09:05:49]RAPDU: 09 4E 29 71 8F 44 1C 7C 90 00 [09:05:49]wFMCommunicate OK [09:05:49]SAM_PROTO_SignData done [09:05:49]FM_MakeSignedData done [09:05:49]CreateOFDProtocolMessage [09:05:49]wFMCommunicate request_size=4 [09:05:49]MH_SAM_APDU [09:05:49]CAPDU: 80 11 00 00 [09:05:49]Write to MH i2c: E2 08 00 34 36 80 11 00 00 00 00 00 00 E4 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:49]Read from MH i2c: E2 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 17 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: E2 17 00 34 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [09:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:05:49]wFMCommunicate OK [09:05:49]CreateOFDProtocolMessage done [09:05:49]OFDSenderStorePacket 31086 [09:05:49]StoreOFDPacket docnum=31086 [09:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 B2 07 01 BE 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 BC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 79 00 00 35 04 06 00 16 9D 9A 01 11 58 09 4E 29 71 8F 44 1C 7C [09:05:49]CheckFolder [09:05:49]dirname=/storage/ofd_packets [09:05:49]CheckFolder done [09:05:49]ProducePacketName [09:05:49]name=ofd_packets/00031086 [09:05:49]NVStorageSaveData ofd_packets/00031086 [09:05:49]File name is /storage/ofd_packets/00031086 [09:05:49]Write 301 bytes [09:05:49]NVStorageSaveData done [09:05:49]OFDSenderStorePacket done [09:05:49]KKMCreateOFDPacket done [09:05:49]NVStorageSaveData kkm_last_timestamp [09:05:49]File name is /storage/kkm_last_timestamp [09:05:49]Write 4 bytes [09:05:49]NVStorageSaveData done [09:05:49]ExternCall_PrintAddStr [09:05:49]wPrintStart [09:05:49]Write to MH i2c: 01 00 00 35 36 6B [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 35 36 00 00 00 00 00 FF 0F 80 [09:05:49]RasterBufferAndPrint [09:05:49]line Счет N : (1)343524 [09:05:49]line ИНН: 02508201610067 [09:05:49]line Контрольно-Кассовый Чек [09:05:49]line ПРОДАЖА [09:05:49]line ТРК (МРК, ГНК) : 63 [09:05:49]line Товар: 2710124130 [09:05:49]line Аи-92-К-2 [09:05:49]line 14.950 * 66.90 [09:05:49]line = 1000.16 [09:05:49]line НДС 12% НСП 1% [09:05:49]line > о реализуемом товаре [09:05:49]line ОКРУГЛЕНИЕ: -0.16 [09:05:49]line ИТОГО: 1000.00 [09:05:49]line Внесено: 1000.00 [09:05:49]line СДАЧА: 0.00 [09:05:49]line НСП 1% : 8.85 [09:05:49]line НДС 12% : 106.21 [09:05:49]line Наличными: 1000.00 [09:05:49]line Безнал.: 0.00 [09:05:49]line Место: АЗС № 78 "Партнер Нефть" [09:05:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:05:49]line СНО: Общий режим [09:05:49]line Чек 30 23.10.2024 09:05 [09:05:49]line Смена: 117 ФФД: 1.0 [09:05:49]line ЗНМ: 0300000137 [09:05:49]line РНМ: 0000000000186857 [09:05:49]line Версия ККМ: v1.0 [09:05:49]line ФМ: 0000000002094219 [09:05:49]line ФД: 31086 [09:05:49]line ФПД: 24866149437784 [09:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31086&fm=24866149437784&tin=02508201610067®Number=0000000000186857&sum=100000 [09:05:49]OFD Sender: Processing packet 31086 [packets to send 11, broken 10] [09:05:49]ProducePacketName [09:05:49]name=ofd_packets/00031086 [09:05:49]OFD Sender: To server: pG, [09:05:49]CommunicateWithHost lk.salyk.kg:30040 [09:05:49]ConnectInit lk.salyk.kg [09:05:49]written 0, free lines is 4095 [09:05:49]Connected sock=10 [09:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 B2 07 01 BE 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 70 BC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 79 00 00 35 04 06 00 16 9D 9A 01 11 58 09 4E 29 71 8F 44 1C 7C [09:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DB A6 47 00 42 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 79 00 00 F4 03 04 00 EB 66 18 67 B6 04 01 00 00 FA 31 2D 94 3F 50 52 EC [09:05:49]CommunicateWithHost err = 0 [09:05:49]CheckOFDResponse [09:05:49]1017 (14) - 77093643461234 [09:05:49]1041 (16) - 0000000002094219 [09:05:49]1040 (4) - 31086 [09:05:49]1012 (4) - 23.10.2024 03:00 [09:05:49]1206 (1) - 0 [09:05:49]OFD Sender: Remove packet 31086 [09:05:49]ProducePacketName [09:05:49]name=ofd_packets/00031086 [09:05:49]NVStorageDeleteData [09:05:50]Write to MH i2c: 01 00 00 60 36 96 [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 F0 0C 99 [09:05:50]RasterBufferAndPrint [09:05:50]line [09:05:50]line [09:05:50]line [09:05:50]line [09:05:50]line [09:05:50]written 0, free lines is 3321 [09:05:50]MH_Cut [09:05:50]Write to MH i2c: D1 01 00 67 36 01 6F [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: D1 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: D1 01 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: D1 01 00 67 36 00 6E [09:05:50]Write to MH i2c: 01 00 00 68 36 9E [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]OFD Sender: No OFD packet to send [09:05:50]*** Cut start [09:05:50]*** Partial cut [09:05:50]*** CUTSNS_PIN = 1 [09:05:50]*** CUTSNS_PIN = 0 [09:05:50]*** Brake cut motor [09:05:51]Read from MH i2c: 01 [09:05:51]MH_I2C_Read... [09:05:51]*** Stop cut motor [09:05:51]*** Cut end [09:05:51]Read from MH i2c: 01 07 00 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: 01 07 00 68 36 00 00 00 00 00 FF 0F B3 [09:05:51]process_action close_receipt done [09:05:51]requested_data is exist [09:05:51]produce_requested_data [09:05:51]requested_item fm.sn is exist - process it [09:05:51]wFMCommunicate request_size=4 [09:05:51]MH_SAM_APDU [09:05:51]CAPDU: 80 11 00 00 [09:05:51]Write to MH i2c: E2 08 00 69 36 80 11 00 00 00 00 00 00 19 [09:05:51]Write i2c OK [09:05:51]MH_I2C_Read... [09:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:51]Read from MH i2c: E2 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 17 00 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 17 00 69 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [09:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:05:51]wFMCommunicate OK [09:05:51]requested_item fd.num is exist - process it [09:05:51]SAM_PROTO_GetFieldsCounters [09:05:51]wFMCommunicate request_size=4 [09:05:51]MH_SAM_APDU [09:05:51]CAPDU: 80 13 00 00 [09:05:51]Write to MH i2c: E2 08 00 6A 36 80 13 00 00 00 00 00 00 1C [09:05:51]Write i2c OK [09:05:51]MH_I2C_Read... [09:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:51]Read from MH i2c: E2 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 62 00 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 62 00 6A 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 79 00 00 0E 04 04 00 75 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 F8 [09:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 79 00 00 0E 04 04 00 75 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 [09:05:51]wFMCommunicate OK [09:05:51]SAM_PROTO_GetFieldsCounters done [09:05:51]requested_item shift.num is exist - process it [09:05:51]requested_item shift.opened is exist - process it [09:05:51]req_shift_opened [09:05:51]FM_GetShiftState [09:05:51]SAM_PROTO_GetShiftState [09:05:51]wFMCommunicate request_size=4 [09:05:51]MH_SAM_APDU [09:05:51]CAPDU: 80 13 01 00 [09:05:51]Write to MH i2c: E2 08 00 6B 36 80 13 01 00 00 00 00 00 1E [09:05:51]Write i2c OK [09:05:51]MH_I2C_Read... [09:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:51]Read from MH i2c: E2 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 0E 00 [09:05:51]MH_I2C_Read... [09:05:51]Read from MH i2c: E2 0E 00 6B 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D8 [09:05:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:05:51]wFMCommunicate OK [09:05:51]SAM_PROTO_GetShiftState done [09:05:51]FM_GetShiftState done [09:05:51]req_shift_opened done [09:05:51]requested_item shift.open_date is exist - process it [09:05:51]req_shift_open_date [09:05:51]req_shift_open_date done [09:05:51]produce_requested_data done [09:05:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31086,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:05:51]process_action_free close_receipt [09:05:51]json_value_free [09:05:51]json_value_free done [09:05:51]process_json_proto returns [09:05:51]Send response to host [09:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31086,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:05:51]free response buf [09:05:51]execute_script done [09:05:51]execute_script returns [09:05:51]free content buf [09:05:51]Sock 7.Close socket [09:05:51]Sock 7.Thread stoped [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:24]accept exits with 9 [09:11:24]New connection [09:11:24]New thread 3067043172 created [09:11:24]Thread 3066899812 joined [09:11:24]Waiting for new connection... [09:11:24] Sock 9.Parse request [09:11:24]Sock 9.Check first char [09:11:24]Sock 9.First char is OK [09:11:24]request: POST /json_proto HTTP/1.0 [09:11:24]Method: POST [09:11:24]URL: /json_proto [09:11:24]Method is POST - this is cgi request [09:11:24]url: /json_proto [09:11:24]query_string will be loaded in cgi processing [09:11:24]execute_cgi json_proto POST (null) [09:11:24]execute_cgi path=json_proto method=POST [09:11:24]POST find Content-Length [09:11:24]Host: 172.17.51.3:8080 [09:11:24]Content-Length: 677 [09:11:24]Content-Type: application/json [09:11:24] [09:11:24]POST finish read [09:11:24]Found Content-Length = 677 [09:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:24]execute_script... [09:11:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:24]POST & json_proto [09:11:24]process_json_proto [09:11:24]json parsed OK: [09:11:24]protocol is kg_v1.0 [09:11:24]action value=close_receipt [09:11:24]process_action close_receipt [09:11:24]cmd_close_receipt [09:11:24]MH_GetDate [09:11:24]Write to MH i2c: F0 00 00 6C 36 91 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: F0 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: F0 09 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: F0 09 00 6C 36 00 C2 BD 18 67 04 C1 95 66 58 [09:11:24]GetLastDocTimeStamp 1729674352 [09:11:24]current date 1729674690 [09:11:24]FM_GetShiftState [09:11:24]SAM_PROTO_GetShiftState [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 13 01 00 [09:11:24]Write to MH i2c: E2 08 00 6D 36 80 13 01 00 00 00 00 00 20 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 6D 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DA [09:11:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetShiftState done [09:11:25]FM_GetShiftState done [09:11:25]opened in 1729643755 [09:11:25]opened+sec_in_day 1729730155 [09:11:25]quantity*price = 30038 [09:11:25]sum+1 = 30039 [09:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 31 23.10.2024 09:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31087 ФПД: 28083365844536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31087&fm=28083365844536&tin=02508201610067®Number=0000000000186857&sum=30000 [09:11:26]StoreToDocumentArchive [09:11:26]shift 117 fd 31087 [09:11:26]save to /storage/0117/doc_00031087 [09:11:26]save last doc name /storage/0117/doc_00031087 to /storage/kkm_last_doc_name [09:11:26]save OK [09:11:26]Clear old archive folders... [09:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:26]tlvbuf is 00D62F30 [09:11:26]SAM_PROTO_ClearQueue [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 09 00 00 [09:11:26]Write to MH i2c: E2 08 00 7A 36 80 09 00 00 00 00 00 00 22 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 7A 36 00 90 00 24 [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_ClearQueue done [09:11:26]KKMCreateOFDPacket [09:11:26]OFDProtocolAddRootSTLVToBuf [09:11:26]FM_MakeSignedData [09:11:26]FM_MakeSignedData [09:11:26]SAM_PROTO_SignData [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 01 02 [09:11:26]Write to MH i2c: E2 08 00 7B 36 80 0D 01 02 00 00 00 00 2A [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 7B 36 00 90 00 25 [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]wFMCommunicate request_size=255 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C2 BD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 79 00 00 35 04 06 00 19 [09:11:26]Write to MH i2c: E2 02 01 7C 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C2 BD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 79 00 00 35 04 06 00 19 00 00 42 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 7C 36 00 90 00 26 [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]wFMCommunicate request_size=10 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 02 02 05 8A AB 0B 96 38 [09:11:26]Write to MH i2c: E2 0D 00 7D 36 80 0D 02 02 05 00 8A AB 0B 96 38 00 00 45 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 7D 36 00 90 00 27 [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 03 02 [09:11:26]Write to MH i2c: E2 08 00 7E 36 80 0D 03 02 00 00 00 00 2F [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0B 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0B 00 7E 36 00 0D F6 6A 00 1A 76 78 50 90 00 F5 [09:11:26]RAPDU: 0D F6 6A 00 1A 76 78 50 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_SignData done [09:11:26]FM_MakeSignedData done [09:11:26]CreateOFDProtocolMessage [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 11 00 00 [09:11:26]Write to MH i2c: E2 08 00 7F 36 80 11 00 00 00 00 00 00 2F [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 7F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [09:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:11:26]wFMCommunicate OK [09:11:26]CreateOFDProtocolMessage done [09:11:26]OFDSenderStorePacket 31087 [09:11:26]StoreOFDPacket docnum=31087 [09:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 BE 07 01 CE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C2 BD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 79 00 00 35 04 06 00 19 8A AB 0B 96 38 0D F6 6A 00 1A 76 78 50 [09:11:26]CheckFolder [09:11:26]dirname=/storage/ofd_packets [09:11:26]CheckFolder done [09:11:26]ProducePacketName [09:11:26]name=ofd_packets/00031087 [09:11:26]NVStorageSaveData ofd_packets/00031087 [09:11:26]File name is /storage/ofd_packets/00031087 [09:11:26]Write 301 bytes [09:11:26]NVStorageSaveData done [09:11:26]OFDSenderStorePacket done [09:11:26]KKMCreateOFDPacket done [09:11:26]NVStorageSaveData kkm_last_timestamp [09:11:26]File name is /storage/kkm_last_timestamp [09:11:26]Write 4 bytes [09:11:26]NVStorageSaveData done [09:11:26]ExternCall_PrintAddStr [09:11:26]wPrintStart [09:11:26]Write to MH i2c: 01 00 00 80 36 B6 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: 01 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: 01 07 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: 01 07 00 80 36 00 00 00 00 00 FF 0F CB [09:11:26]RasterBufferAndPrint [09:11:26]line Счет N : (1)343525 [09:11:26]line ИНН: 02508201610067 [09:11:26]line Контрольно-Кассовый Чек [09:11:26]line ПРОДАЖА [09:11:26]line ТРК (МРК, ГНК) : 33 [09:11:26]line Товар: 2710124130 [09:11:26]line Аи-92-К-2 [09:11:26]line 4.490 * 66.90 [09:11:26]line = 300.38 [09:11:26]line НДС 12% НСП 1% [09:11:26]line > о реализуемом товаре [09:11:26]line ОКРУГЛЕНИЕ: -0.38 [09:11:26]line ИТОГО: 300.00 [09:11:26]line Внесено: 300.00 [09:11:26]line СДАЧА: 0.00 [09:11:26]line НСП 1% : 2.66 [09:11:26]line НДС 12% : 31.90 [09:11:26]line Наличными: 300.00 [09:11:26]line Безнал.: 0.00 [09:11:26]line Место: АЗС № 78 "Партнер Нефть" [09:11:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:11:26]line СНО: Общий режим [09:11:26]line Чек 31 23.10.2024 09:11 [09:11:26]line Смена: 117 ФФД: 1.0 [09:11:26]line ЗНМ: 0300000137 [09:11:26]line РНМ: 0000000000186857 [09:11:26]line Версия ККМ: v1.0 [09:11:26]line ФМ: 0000000002094219 [09:11:26]line ФД: 31087 [09:11:26]line ФПД: 28083365844536 [09:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31087&fm=28083365844536&tin=02508201610067®Number=0000000000186857&sum=30000 [09:11:26]OFD Sender: Processing packet 31087 [packets to send 11, broken 10] [09:11:26]ProducePacketName [09:11:26]name=ofd_packets/00031087 [09:11:26]OFD Sender: To server: pG, [09:11:26]CommunicateWithHost lk.salyk.kg:30040 [09:11:26]ConnectInit lk.salyk.kg [09:11:26]written 0, free lines is 4095 [09:11:27]Connected sock=7 [09:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 BE 07 01 CE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C2 BD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 79 00 00 35 04 06 00 19 8A AB 0B 96 38 0D F6 6A 00 1A 76 78 50 [09:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EC 5D 47 00 4B 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 79 00 00 F4 03 04 00 3D 68 18 67 B6 04 01 00 00 BA BF 15 AE 73 49 F2 C1 [09:11:27]CommunicateWithHost err = 0 [09:11:27]CheckOFDResponse [09:11:27]1017 (14) - 77093643461234 [09:11:27]1041 (16) - 0000000002094219 [09:11:27]1040 (4) - 31087 [09:11:27]1012 (4) - 23.10.2024 03:06 [09:11:27]1206 (1) - 0 [09:11:27]OFD Sender: Remove packet 31087 [09:11:27]ProducePacketName [09:11:27]name=ofd_packets/00031087 [09:11:27]NVStorageDeleteData [09:11:27]Write to MH i2c: 01 00 00 AB 36 E1 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 07 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 07 00 AB 36 00 00 00 00 00 E4 0C D8 [09:11:27]RasterBufferAndPrint [09:11:27]line [09:11:27]line [09:11:27]line [09:11:27]line [09:11:27]line [09:11:27]written 0, free lines is 3306 [09:11:27]MH_Cut [09:11:27]Write to MH i2c: D1 01 00 B2 36 01 BA [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: D1 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: D1 01 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: D1 01 00 B2 36 00 B9 [09:11:27]Write to MH i2c: 01 00 00 B3 36 E9 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]OFD Sender: No OFD packet to send [09:11:28]*** Cut start [09:11:28]*** Partial cut [09:11:28]*** CUTSNS_PIN = 1 [09:11:28]*** CUTSNS_PIN = 0 [09:11:28]*** Brake cut motor [09:11:28]Read from MH i2c: 01 [09:11:28]MH_I2C_Read... [09:11:28]*** Stop cut motor [09:11:28]*** Cut end [09:11:28]Read from MH i2c: 01 07 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 B3 36 00 00 00 00 00 FF 0F FE [09:11:28]process_action close_receipt done [09:11:28]requested_data is exist [09:11:28]produce_requested_data [09:11:28]requested_item fm.sn is exist - process it [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 11 00 00 [09:11:28]Write to MH i2c: E2 08 00 B4 36 80 11 00 00 00 00 00 00 64 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 B4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [09:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:11:28]wFMCommunicate OK [09:11:28]requested_item fd.num is exist - process it [09:11:28]SAM_PROTO_GetFieldsCounters [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 00 00 [09:11:28]Write to MH i2c: E2 08 00 B5 36 80 13 00 00 00 00 00 00 67 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 62 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 62 00 B5 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 79 00 00 0E 04 04 00 75 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 47 [09:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 79 00 00 0E 04 04 00 75 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 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetFieldsCounters done [09:11:28]requested_item shift.num is exist - process it [09:11:28]requested_item shift.opened is exist - process it [09:11:28]req_shift_opened [09:11:28]FM_GetShiftState [09:11:28]SAM_PROTO_GetShiftState [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 01 00 [09:11:28]Write to MH i2c: E2 08 00 B6 36 80 13 01 00 00 00 00 00 69 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 B6 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 23 [09:11:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetShiftState done [09:11:28]FM_GetShiftState done [09:11:28]req_shift_opened done [09:11:28]requested_item shift.open_date is exist - process it [09:11:28]req_shift_open_date [09:11:28]req_shift_open_date done [09:11:28]produce_requested_data done [09:11:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31087,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:11:28]process_action_free close_receipt [09:11:28]json_value_free [09:11:28]json_value_free done [09:11:28]process_json_proto returns [09:11:28]Send response to host [09:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31087,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:11:28]free response buf [09:11:28]execute_script done [09:11:28]execute_script returns [09:11:28]free content buf [09:11:28]Sock 9.Close socket [09:11:28]Sock 9.Thread stoped [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]accept exits with 10 [09:13:37]New connection [09:13:37]New thread 3066899812 created [09:13:37]Thread 3067043172 joined [09:13:37]Waiting for new connection... [09:13:37] Sock 10.Parse request [09:13:37]Sock 10.Check first char [09:13:37]Sock 10.First char is OK [09:13:37]request: POST /json_proto HTTP/1.0 [09:13:37]Method: POST [09:13:37]URL: /json_proto [09:13:37]Method is POST - this is cgi request [09:13:37]url: /json_proto [09:13:37]query_string will be loaded in cgi processing [09:13:37]execute_cgi json_proto POST (null) [09:13:37]execute_cgi path=json_proto method=POST [09:13:37]POST find Content-Length [09:13:37]Host: 172.17.51.3:8080 [09:13:37]Content-Length: 688 [09:13:37]Content-Type: application/json [09:13:37] [09:13:37]POST finish read [09:13:37]Found Content-Length = 688 [09:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:37]execute_script... [09:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:37]POST & json_proto [09:13:37]process_json_proto [09:13:37]json parsed OK: [09:13:37]protocol is kg_v1.0 [09:13:37]action value=close_receipt [09:13:37]process_action close_receipt [09:13:37]cmd_close_receipt [09:13:37]MH_GetDate [09:13:37]Write to MH i2c: F0 00 00 B7 36 DC [09:13:37]Write i2c OK [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 09 00 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 09 00 B7 36 00 47 BE 18 67 04 C1 95 66 29 [09:13:37]GetLastDocTimeStamp 1729674690 [09:13:37]current date 1729674823 [09:13:37]FM_GetShiftState [09:13:37]SAM_PROTO_GetShiftState [09:13:37]wFMCommunicate request_size=4 [09:13:37]MH_SAM_APDU [09:13:37]CAPDU: 80 13 01 00 [09:13:37]Write to MH i2c: E2 08 00 B8 36 80 13 01 00 00 00 00 00 6B [09:13:37]Write i2c OK [09:13:37]MH_I2C_Read... [09:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:37]Read from MH i2c: E2 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: E2 0E 00 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: E2 0E 00 B8 36 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 25 [09:13:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:13:37]wFMCommunicate OK [09:13:37]SAM_PROTO_GetShiftState done [09:13:37]FM_GetShiftState done [09:13:37]opened in 1729643755 [09:13:37]opened+sec_in_day 1729730155 [09:13:37]quantity*price = 100051 [09:13:37]sum+1 = 100052 [09:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 32 23.10.2024 09:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31088 ФПД: 220230292258110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31088&fm=220230292258110&tin=02508201610067®Number=0000000000186857&sum=100000 [09:13:38]StoreToDocumentArchive [09:13:38]shift 117 fd 31088 [09:13:38]save to /storage/0117/doc_00031088 [09:13:38]save last doc name /storage/0117/doc_00031088 to /storage/kkm_last_doc_name [09:13:38]save OK [09:13:38]Clear old archive folders... [09:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:13:38]tlvbuf is 00D62DB0 [09:13:38]SAM_PROTO_ClearQueue [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 09 00 00 [09:13:38]Write to MH i2c: E2 08 00 C5 36 80 09 00 00 00 00 00 00 6D [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 C5 36 00 90 00 6F [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]SAM_PROTO_ClearQueue done [09:13:38]KKMCreateOFDPacket [09:13:38]OFDProtocolAddRootSTLVToBuf [09:13:38]FM_MakeSignedData [09:13:38]FM_MakeSignedData [09:13:38]SAM_PROTO_SignData [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 0D 01 02 [09:13:38]Write to MH i2c: E2 08 00 C6 36 80 0D 01 02 00 00 00 00 75 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 C6 36 00 90 00 70 [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]wFMCommunicate request_size=255 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 47 BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 79 00 [09:13:38]Write to MH i2c: E2 02 01 C7 36 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 47 BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 79 00 00 00 D1 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 C7 36 00 90 00 71 [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]wFMCommunicate request_size=16 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C8 4C 5C 56 BD 3E [09:13:39]Write to MH i2c: E2 13 00 C8 36 80 0D 02 02 0B 00 00 35 04 06 00 C8 4C 5C 56 BD 3E 00 00 8E [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 03 02 [09:13:39]Write to MH i2c: E2 08 00 C9 36 80 0D 03 02 00 00 00 00 7A [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 0B 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 0B 00 C9 36 00 0A 80 0D C0 FF 0A 4F 34 90 00 5E [09:13:39]RAPDU: 0A 80 0D C0 FF 0A 4F 34 90 00 [09:13:39]wFMCommunicate OK [09:13:39]SAM_PROTO_SignData done [09:13:39]FM_MakeSignedData done [09:13:39]CreateOFDProtocolMessage [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 11 00 00 [09:13:39]Write to MH i2c: E2 08 00 CA 36 80 11 00 00 00 00 00 00 7A [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 CA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [09:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:13:39]wFMCommunicate OK [09:13:39]CreateOFDProtocolMessage done [09:13:39]OFDSenderStorePacket 31088 [09:13:39]StoreOFDPacket docnum=31088 [09:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 E9 5F 0D 01 29 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 47 BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 79 00 00 35 04 06 00 C8 4C 5C 56 BD 3E 0A 80 0D C0 FF 0A 4F 34 [09:13:39]CheckFolder [09:13:39]dirname=/storage/ofd_packets [09:13:39]CheckFolder done [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00031088 [09:13:39]NVStorageSaveData ofd_packets/00031088 [09:13:39]File name is /storage/ofd_packets/00031088 [09:13:39]Write 307 bytes [09:13:39]NVStorageSaveData done [09:13:39]OFDSenderStorePacket done [09:13:39]KKMCreateOFDPacket done [09:13:39]NVStorageSaveData kkm_last_timestamp [09:13:39]File name is /storage/kkm_last_timestamp [09:13:39]Write 4 bytes [09:13:39]NVStorageSaveData done [09:13:39]ExternCall_PrintAddStr [09:13:39]wPrintStart [09:13:39]Write to MH i2c: 01 00 00 CB 36 01 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 CB 36 00 00 00 00 00 FF 0F 16 [09:13:39]RasterBufferAndPrint [09:13:39]line Счет N : (1)343526 [09:13:39]line ИНН: 02508201610067 [09:13:39]line Контрольно-Кассовый Чек [09:13:39]line ПРОДАЖА [09:13:39]line ТРК (МРК, ГНК) : 51 [09:13:39]line Товар: 2710194210 [09:13:39]line D-ENERGY Дт-К-2 [09:13:39]line 12.960 * 77.20 [09:13:39]line = 1000.51 [09:13:39]line НДС 12% НСП 1% [09:13:39]line > о реализуемом товаре [09:13:39]line ОКРУГЛЕНИЕ: -0.51 [09:13:39]line ИТОГО: 1000.00 [09:13:39]line Внесено: 1000.00 [09:13:39]line СДАЧА: 0.00 [09:13:39]line НСП 1% : 8.85 [09:13:39]line НДС 12% : 106.25 [09:13:39]line Наличными: 1000.00 [09:13:39]line Безнал.: 0.00 [09:13:39]line Место: АЗС № 78 "Партнер Нефть" [09:13:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:13:39]line СНО: Общий режим [09:13:39]line Чек 32 23.10.2024 09:13 [09:13:39]line Смена: 117 ФФД: 1.0 [09:13:39]line ЗНМ: 0300000137 [09:13:39]line РНМ: 0000000000186857 [09:13:39]line Версия ККМ: v1.0 [09:13:39]line ФМ: 0000000002094219 [09:13:39]line ФД: 31088 [09:13:39]line ФПД: 220230292258110 [09:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31088&fm=220230292258110&tin=02508201610067®Number=0000000000186857&sum=100000 [09:13:39]OFD Sender: Processing packet 31088 [packets to send 11, broken 10] [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00031088 [09:13:39]OFD Sender: To server: pG, [09:13:39]CommunicateWithHost lk.salyk.kg:30040 [09:13:39]ConnectInit lk.salyk.kg [09:13:39]written 0, free lines is 4095 [09:13:39]Connected sock=9 [09:13:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 E9 5F 0D 01 29 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 47 BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 79 00 00 35 04 06 00 C8 4C 5C 56 BD 3E 0A 80 0D C0 FF 0A 4F 34 [09:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 70 58 47 00 18 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 79 00 00 F4 03 04 00 C1 68 18 67 B6 04 01 00 00 D7 EC DB D0 FC 1F 10 79 [09:13:40]CommunicateWithHost err = 0 [09:13:40]CheckOFDResponse [09:13:40]1017 (14) - 77093643461234 [09:13:40]1041 (16) - 0000000002094219 [09:13:40]1040 (4) - 31088 [09:13:40]1012 (4) - 23.10.2024 03:08 [09:13:40]1206 (1) - 0 [09:13:40]OFD Sender: Remove packet 31088 [09:13:40]ProducePacketName [09:13:40]name=ofd_packets/00031088 [09:13:40]NVStorageDeleteData [09:13:40]Write to MH i2c: 01 00 00 F6 36 2C [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 07 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 07 00 F6 36 00 00 00 00 00 ED 0C 2C [09:13:40]RasterBufferAndPrint [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]written 0, free lines is 3318 [09:13:40]MH_Cut [09:13:40]Write to MH i2c: D1 01 00 FD 36 01 05 [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 01 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 01 00 FD 36 00 04 [09:13:40]Write to MH i2c: 01 00 00 FE 36 34 [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]OFD Sender: No OFD packet to send [09:13:40]*** Cut start [09:13:40]*** Partial cut [09:13:40]*** CUTSNS_PIN = 1 [09:13:40]*** CUTSNS_PIN = 0 [09:13:41]*** Brake cut motor [09:13:41]Read from MH i2c: 01 [09:13:41]MH_I2C_Read... [09:13:41]*** Stop cut motor [09:13:41]*** Cut end [09:13:41]Read from MH i2c: 01 07 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: 01 07 00 FE 36 00 00 00 00 00 FF 0F 49 [09:13:41]process_action close_receipt done [09:13:41]requested_data is exist [09:13:41]produce_requested_data [09:13:41]requested_item fm.sn is exist - process it [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 11 00 00 [09:13:41]Write to MH i2c: E2 08 00 FF 36 80 11 00 00 00 00 00 00 AF [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 FF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [09:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:13:41]wFMCommunicate OK [09:13:41]requested_item fd.num is exist - process it [09:13:41]SAM_PROTO_GetFieldsCounters [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 00 00 [09:13:41]Write to MH i2c: E2 08 00 00 37 80 13 00 00 00 00 00 00 B3 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 00 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 79 00 00 0E 04 04 00 75 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 97 [09:13:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 79 00 00 0E 04 04 00 75 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 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetFieldsCounters done [09:13:41]requested_item shift.num is exist - process it [09:13:41]requested_item shift.opened is exist - process it [09:13:41]req_shift_opened [09:13:41]FM_GetShiftState [09:13:41]SAM_PROTO_GetShiftState [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 01 00 [09:13:41]Write to MH i2c: E2 08 00 01 37 80 13 01 00 00 00 00 00 B5 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 01 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6F [09:13:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetShiftState done [09:13:41]FM_GetShiftState done [09:13:41]req_shift_opened done [09:13:41]requested_item shift.open_date is exist - process it [09:13:41]req_shift_open_date [09:13:41]req_shift_open_date done [09:13:41]produce_requested_data done [09:13:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31088,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:13:41]process_action_free close_receipt [09:13:41]json_value_free [09:13:41]json_value_free done [09:13:41]process_json_proto returns [09:13:41]Send response to host [09:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31088,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:13:41]free response buf [09:13:41]execute_script done [09:13:41]execute_script returns [09:13:41]free content buf [09:13:41]Sock 10.Close socket [09:13:41]Sock 10.Thread stoped [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:04]accept exits with 7 [09:15:04]New connection [09:15:04]New thread 3067043172 created [09:15:04]Thread 3066899812 joined [09:15:04]Waiting for new connection... [09:15:04] Sock 7.Parse request [09:15:04]Sock 7.Check first char [09:15:04]Sock 7.First char is OK [09:15:04]request: POST /json_proto HTTP/1.0 [09:15:04]Method: POST [09:15:04]URL: /json_proto [09:15:04]Method is POST - this is cgi request [09:15:04]url: /json_proto [09:15:04]query_string will be loaded in cgi processing [09:15:04]execute_cgi json_proto POST (null) [09:15:04]execute_cgi path=json_proto method=POST [09:15:04]POST find Content-Length [09:15:04]Host: 172.17.51.3:8080 [09:15:04]Content-Length: 674 [09:15:04]Content-Type: application/json [09:15:04] [09:15:04]POST finish read [09:15:04]Found Content-Length = 674 [09:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:04]execute_script... [09:15:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:04]POST & json_proto [09:15:04]process_json_proto [09:15:04]json parsed OK: [09:15:04]protocol is kg_v1.0 [09:15:04]action value=close_receipt [09:15:04]process_action close_receipt [09:15:04]cmd_close_receipt [09:15:04]MH_GetDate [09:15:04]Write to MH i2c: F0 00 00 02 37 28 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 09 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 09 00 02 37 00 9D BE 18 67 04 C1 95 66 CB [09:15:04]GetLastDocTimeStamp 1729674823 [09:15:04]current date 1729674909 [09:15:04]FM_GetShiftState [09:15:04]SAM_PROTO_GetShiftState [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 13 01 00 [09:15:04]Write to MH i2c: E2 08 00 03 37 80 13 01 00 00 00 00 00 B7 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 03 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 71 [09:15:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:15:04]wFMCommunicate OK [09:15:04]SAM_PROTO_GetShiftState done [09:15:04]FM_GetShiftState done [09:15:04]opened in 1729643755 [09:15:04]opened+sec_in_day 1729730155 [09:15:04]quantity*price = 50063 [09:15:04]sum+1 = 50064 [09:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 33 23.10.2024 09:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31089 ФПД: 178553775496618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091509&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31089&fm=178553775496618&tin=02508201610067®Number=0000000000186857&sum=50000 [09:15:05]StoreToDocumentArchive [09:15:05]shift 117 fd 31089 [09:15:05]save to /storage/0117/doc_00031089 [09:15:05]save last doc name /storage/0117/doc_00031089 to /storage/kkm_last_doc_name [09:15:05]save OK [09:15:05]Clear old archive folders... [09:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:05]tlvbuf is 00D547E0 [09:15:05]SAM_PROTO_ClearQueue [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 09 00 00 [09:15:05]Write to MH i2c: E2 08 00 10 37 80 09 00 00 00 00 00 00 B9 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 10 37 00 90 00 BB [09:15:05]RAPDU: 90 00 [09:15:05]wFMCommunicate OK [09:15:05]SAM_PROTO_ClearQueue done [09:15:05]KKMCreateOFDPacket [09:15:05]OFDProtocolAddRootSTLVToBuf [09:15:05]FM_MakeSignedData [09:15:05]FM_MakeSignedData [09:15:05]SAM_PROTO_SignData [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 0D 01 02 [09:15:05]Write to MH i2c: E2 08 00 11 37 80 0D 01 02 00 00 00 00 C1 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 11 37 00 90 00 BC [09:15:05]RAPDU: 90 00 [09:15:05]wFMCommunicate OK [09:15:05]wFMCommunicate request_size=255 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 9D BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 79 00 00 35 04 06 00 A2 64 CA 5C [09:15:05]Write to MH i2c: E2 02 01 12 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 9D BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 79 00 00 35 04 06 00 A2 64 CA 5C 00 00 56 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]OFD Sender: No OFD packet to send [09:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 12 37 00 90 00 BD [09:15:05]RAPDU: 90 00 [09:15:05]wFMCommunicate OK [09:15:05]wFMCommunicate request_size=7 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 0D 02 02 02 9D AA [09:15:05]Write to MH i2c: E2 0A 00 13 37 80 0D 02 02 02 00 9D AA 00 00 0F [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 03 00 13 37 00 90 00 BE [09:15:05]RAPDU: 90 00 [09:15:05]wFMCommunicate OK [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 0D 03 02 [09:15:05]Write to MH i2c: E2 08 00 14 37 80 0D 03 02 00 00 00 00 C6 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 0B 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 0B 00 14 37 00 7C 15 FA CA D4 C0 E1 F4 90 00 85 [09:15:05]RAPDU: 7C 15 FA CA D4 C0 E1 F4 90 00 [09:15:05]wFMCommunicate OK [09:15:05]SAM_PROTO_SignData done [09:15:05]FM_MakeSignedData done [09:15:05]CreateOFDProtocolMessage [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 11 00 00 [09:15:05]Write to MH i2c: E2 08 00 15 37 80 11 00 00 00 00 00 00 C6 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 17 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 17 00 15 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [09:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:15:05]wFMCommunicate OK [09:15:05]CreateOFDProtocolMessage done [09:15:05]OFDSenderStorePacket 31089 [09:15:05]StoreOFDPacket docnum=31089 [09:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 30 2B 04 01 6A 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 9D BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 79 00 00 35 04 06 00 A2 64 CA 5C 9D AA 7C 15 FA CA D4 C0 E1 F4 [09:15:05]CheckFolder [09:15:05]dirname=/storage/ofd_packets [09:15:05]CheckFolder done [09:15:05]ProducePacketName [09:15:05]name=ofd_packets/00031089 [09:15:05]NVStorageSaveData ofd_packets/00031089 [09:15:05]File name is /storage/ofd_packets/00031089 [09:15:05]Write 298 bytes [09:15:05]NVStorageSaveData done [09:15:05]OFDSenderStorePacket done [09:15:05]KKMCreateOFDPacket done [09:15:05]NVStorageSaveData kkm_last_timestamp [09:15:05]File name is /storage/kkm_last_timestamp [09:15:05]Write 4 bytes [09:15:05]NVStorageSaveData done [09:15:05]ExternCall_PrintAddStr [09:15:05]wPrintStart [09:15:05]Write to MH i2c: 01 00 00 16 37 4D [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: 01 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: 01 07 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: 01 07 00 16 37 00 00 00 00 00 FF 0F 62 [09:15:05]RasterBufferAndPrint [09:15:05]line Счет N : (1)343527 [09:15:05]line ИНН: 02508201610067 [09:15:05]line Контрольно-Кассовый Чек [09:15:05]line ПРОДАЖА [09:15:05]line ТРК (МРК, ГНК) : 64 [09:15:05]line Товар: 2710194210 [09:15:05]line ДТ-К-2 [09:15:05]line 6.570 * 76.20 [09:15:05]line = 500.63 [09:15:05]line НДС 12% НСП 1% [09:15:05]line > о реализуемом товаре [09:15:05]line ОКРУГЛЕНИЕ: -0.63 [09:15:05]line ИТОГО: 500.00 [09:15:05]line Внесено: 500.00 [09:15:05]line СДАЧА: 0.00 [09:15:05]line НСП 1% : 4.43 [09:15:05]line НДС 12% : 53.16 [09:15:05]line Наличными: 500.00 [09:15:05]line Безнал.: 0.00 [09:15:05]line Место: АЗС № 78 "Партнер Нефть" [09:15:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:15:05]line СНО: Общий режим [09:15:05]line Чек 33 23.10.2024 09:15 [09:15:05]line Смена: 117 ФФД: 1.0 [09:15:05]line ЗНМ: 0300000137 [09:15:05]line РНМ: 0000000000186857 [09:15:05]line Версия ККМ: v1.0 [09:15:05]line ФМ: 0000000002094219 [09:15:05]line ФД: 31089 [09:15:05]line ФПД: 178553775496618 [09:15:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091509&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31089&fm=178553775496618&tin=02508201610067®Number=0000000000186857&sum=50000 [09:15:06]OFD Sender: Processing packet 31089 [packets to send 11, broken 10] [09:15:06]ProducePacketName [09:15:06]name=ofd_packets/00031089 [09:15:06]OFD Sender: To server: pG, [09:15:06]CommunicateWithHost lk.salyk.kg:30040 [09:15:06]ConnectInit lk.salyk.kg [09:15:06]written 0, free lines is 4095 [09:15:06]Connected sock=10 [09:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 30 2B 04 01 6A 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 9D BE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 79 00 00 35 04 06 00 A2 64 CA 5C 9D AA 7C 15 FA CA D4 C0 E1 F4 [09:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C6 12 47 00 44 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 79 00 00 F4 03 04 00 18 69 18 67 B6 04 01 00 00 2C F4 7E 57 14 1A FA 73 [09:15:06]CommunicateWithHost err = 0 [09:15:06]CheckOFDResponse [09:15:06]1017 (14) - 77093643461234 [09:15:06]1041 (16) - 0000000002094219 [09:15:06]1040 (4) - 31089 [09:15:06]1012 (4) - 23.10.2024 03:10 [09:15:06]1206 (1) - 0 [09:15:06]OFD Sender: Remove packet 31089 [09:15:06]ProducePacketName [09:15:06]name=ofd_packets/00031089 [09:15:06]NVStorageDeleteData [09:15:06]Write to MH i2c: 01 00 00 41 37 78 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 07 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 07 00 41 37 00 00 00 00 00 F4 0C 7F [09:15:06]RasterBufferAndPrint [09:15:06]line [09:15:06]line [09:15:06]line [09:15:06]line [09:15:06]line [09:15:06]written 0, free lines is 3325 [09:15:06]MH_Cut [09:15:06]Write to MH i2c: D1 01 00 48 37 01 51 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: D1 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: D1 01 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: D1 01 00 48 37 00 50 [09:15:06]Write to MH i2c: 01 00 00 49 37 80 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:07]OFD Sender: No OFD packet to send [09:15:07]*** Cut start [09:15:07]*** Partial cut [09:15:07]*** CUTSNS_PIN = 1 [09:15:07]*** CUTSNS_PIN = 0 [09:15:07]*** Brake cut motor [09:15:07]Read from MH i2c: 01 [09:15:07]MH_I2C_Read... [09:15:07]*** Stop cut motor [09:15:07]*** Cut end [09:15:07]Read from MH i2c: 01 07 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: 01 07 00 49 37 00 00 00 00 00 FF 0F 95 [09:15:07]process_action close_receipt done [09:15:07]requested_data is exist [09:15:07]produce_requested_data [09:15:07]requested_item fm.sn is exist - process it [09:15:07]wFMCommunicate request_size=4 [09:15:07]MH_SAM_APDU [09:15:07]CAPDU: 80 11 00 00 [09:15:07]Write to MH i2c: E2 08 00 4A 37 80 11 00 00 00 00 00 00 FB [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:07]Read from MH i2c: E2 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: E2 17 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: E2 17 00 4A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [09:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:15:07]wFMCommunicate OK [09:15:07]requested_item fd.num is exist - process it [09:15:07]SAM_PROTO_GetFieldsCounters [09:15:07]wFMCommunicate request_size=4 [09:15:07]MH_SAM_APDU [09:15:07]CAPDU: 80 13 00 00 [09:15:07]Write to MH i2c: E2 08 00 4B 37 80 13 00 00 00 00 00 00 FE [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 62 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 62 00 4B 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 79 00 00 0E 04 04 00 75 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 E6 [09:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 79 00 00 0E 04 04 00 75 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 [09:15:08]wFMCommunicate OK [09:15:08]SAM_PROTO_GetFieldsCounters done [09:15:08]requested_item shift.num is exist - process it [09:15:08]requested_item shift.opened is exist - process it [09:15:08]req_shift_opened [09:15:08]FM_GetShiftState [09:15:08]SAM_PROTO_GetShiftState [09:15:08]wFMCommunicate request_size=4 [09:15:08]MH_SAM_APDU [09:15:08]CAPDU: 80 13 01 00 [09:15:08]Write to MH i2c: E2 08 00 4C 37 80 13 01 00 00 00 00 00 00 [09:15:08]Write i2c OK [09:15:08]MH_I2C_Read... [09:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:08]Read from MH i2c: E2 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 0E 00 [09:15:08]MH_I2C_Read... [09:15:08]Read from MH i2c: E2 0E 00 4C 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BA [09:15:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:15:08]wFMCommunicate OK [09:15:08]SAM_PROTO_GetShiftState done [09:15:08]FM_GetShiftState done [09:15:08]req_shift_opened done [09:15:08]requested_item shift.open_date is exist - process it [09:15:08]req_shift_open_date [09:15:08]req_shift_open_date done [09:15:08]produce_requested_data done [09:15:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31089,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:15:08]process_action_free close_receipt [09:15:08]json_value_free [09:15:08]json_value_free done [09:15:08]process_json_proto returns [09:15:08]Send response to host [09:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31089,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:15:08]free response buf [09:15:08]execute_script done [09:15:08]execute_script returns [09:15:08]free content buf [09:15:08]Sock 7.Close socket [09:15:08]Sock 7.Thread stoped [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:31]accept exits with 9 [09:17:31]New connection [09:17:31]New thread 3066899812 created [09:17:31]Thread 3067043172 joined [09:17:31]Waiting for new connection... [09:17:31] Sock 9.Parse request [09:17:31]Sock 9.Check first char [09:17:31]Sock 9.First char is OK [09:17:31]request: POST /json_proto HTTP/1.0 [09:17:31]Method: POST [09:17:31]URL: /json_proto [09:17:31]Method is POST - this is cgi request [09:17:31]url: /json_proto [09:17:31]query_string will be loaded in cgi processing [09:17:31]execute_cgi json_proto POST (null) [09:17:31]execute_cgi path=json_proto method=POST [09:17:31]POST find Content-Length [09:17:31]Host: 172.17.51.3:8080 [09:17:31]Content-Length: 688 [09:17:31]Content-Type: application/json [09:17:31] [09:17:31]POST finish read [09:17:31]Found Content-Length = 688 [09:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:31]execute_script... [09:17:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 41.460, "sum" : 3200.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:31]POST & json_proto [09:17:31]process_json_proto [09:17:31]json parsed OK: [09:17:31]protocol is kg_v1.0 [09:17:31]action value=close_receipt [09:17:31]process_action close_receipt [09:17:31]cmd_close_receipt [09:17:31]MH_GetDate [09:17:31]Write to MH i2c: F0 00 00 4D 37 73 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: F0 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: F0 09 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: F0 09 00 4D 37 00 31 BF 18 67 04 C1 95 66 AB [09:17:31]GetLastDocTimeStamp 1729674909 [09:17:31]current date 1729675057 [09:17:31]FM_GetShiftState [09:17:31]SAM_PROTO_GetShiftState [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 13 01 00 [09:17:31]Write to MH i2c: E2 08 00 4E 37 80 13 01 00 00 00 00 00 02 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 0E 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 0E 00 4E 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BC [09:17:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:17:31]wFMCommunicate OK [09:17:31]SAM_PROTO_GetShiftState done [09:17:31]FM_GetShiftState done [09:17:31]opened in 1729643755 [09:17:31]opened+sec_in_day 1729730155 [09:17:31]quantity*price = 320071 [09:17:31]sum+1 = 320072 [09:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.90 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 34 23.10.2024 09:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31090 ФПД: 81653936631755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31090&fm=81653936631755&tin=02508201610067®Number=0000000000186857&sum=320000 [09:17:32]StoreToDocumentArchive [09:17:32]shift 117 fd 31090 [09:17:32]save to /storage/0117/doc_00031090 [09:17:32]save last doc name /storage/0117/doc_00031090 to /storage/kkm_last_doc_name [09:17:32]save OK [09:17:32]Clear old archive folders... [09:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:17:32]tlvbuf is 00E85A40 [09:17:32]SAM_PROTO_ClearQueue [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 09 00 00 [09:17:32]Write to MH i2c: E2 08 00 5B 37 80 09 00 00 00 00 00 00 04 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 5B 37 00 90 00 06 [09:17:33]RAPDU: 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_ClearQueue done [09:17:33]KKMCreateOFDPacket [09:17:33]OFDProtocolAddRootSTLVToBuf [09:17:33]FM_MakeSignedData [09:17:33]FM_MakeSignedData [09:17:33]SAM_PROTO_SignData [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 0D 01 02 [09:17:33]Write to MH i2c: E2 08 00 5C 37 80 0D 01 02 00 00 00 00 0C [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 5C 37 00 90 00 07 [09:17:33]RAPDU: 90 00 [09:17:33]wFMCommunicate OK [09:17:33]wFMCommunicate request_size=255 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 31 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 79 00 [09:17:33]Write to MH i2c: E2 02 01 5D 37 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 31 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 79 00 00 00 AE [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 5D 37 00 90 00 08 [09:17:33]RAPDU: 90 00 [09:17:33]wFMCommunicate OK [09:17:33]wFMCommunicate request_size=16 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4A 43 89 E3 2F CB [09:17:33]Write to MH i2c: E2 13 00 5E 37 80 0D 02 02 0B 00 00 35 04 06 00 4A 43 89 E3 2F CB 00 00 57 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 03 00 5E 37 00 90 00 09 [09:17:33]RAPDU: 90 00 [09:17:33]wFMCommunicate OK [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 0D 03 02 [09:17:33]Write to MH i2c: E2 08 00 5F 37 80 0D 03 02 00 00 00 00 11 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0B 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0B 00 5F 37 00 4B 5C 5E EC 94 2B 39 57 90 00 52 [09:17:33]RAPDU: 4B 5C 5E EC 94 2B 39 57 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_SignData done [09:17:33]FM_MakeSignedData done [09:17:33]CreateOFDProtocolMessage [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 11 00 00 [09:17:33]Write to MH i2c: E2 08 00 60 37 80 11 00 00 00 00 00 00 11 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 17 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 17 00 60 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [09:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:17:33]wFMCommunicate OK [09:17:33]CreateOFDProtocolMessage done [09:17:33]OFDSenderStorePacket 31090 [09:17:33]StoreOFDPacket docnum=31090 [09:17:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B8 25 0D 01 78 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 31 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 79 00 00 35 04 06 00 4A 43 89 E3 2F CB 4B 5C 5E EC 94 2B 39 57 [09:17:33]CheckFolder [09:17:33]dirname=/storage/ofd_packets [09:17:33]CheckFolder done [09:17:33]ProducePacketName [09:17:33]name=ofd_packets/00031090 [09:17:33]NVStorageSaveData ofd_packets/00031090 [09:17:33]File name is /storage/ofd_packets/00031090 [09:17:33]Write 307 bytes [09:17:33]NVStorageSaveData done [09:17:33]OFDSenderStorePacket done [09:17:33]KKMCreateOFDPacket done [09:17:33]NVStorageSaveData kkm_last_timestamp [09:17:33]File name is /storage/kkm_last_timestamp [09:17:33]Write 4 bytes [09:17:33]NVStorageSaveData done [09:17:33]ExternCall_PrintAddStr [09:17:33]wPrintStart [09:17:33]Write to MH i2c: 01 00 00 61 37 98 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: 01 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: 01 07 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 FF 0F AD [09:17:33]RasterBufferAndPrint [09:17:33]line Счет N : (1)343528 [09:17:33]line ИНН: 02508201610067 [09:17:33]line Контрольно-Кассовый Чек [09:17:33]line ПРОДАЖА [09:17:33]line ТРК (МРК, ГНК) : 51 [09:17:33]line Товар: 2710194210 [09:17:33]line D-ENERGY Дт-К-2 [09:17:33]line 41.460 * 77.20 [09:17:33]line = 3200.71 [09:17:33]line НДС 12% НСП 1% [09:17:33]line > о реализуемом товаре [09:17:33]line ОКРУГЛЕНИЕ: -0.71 [09:17:33]line ИТОГО: 3200.00 [09:17:33]line Внесено: 3200.00 [09:17:33]line СДАЧА: 0.00 [09:17:33]line НСП 1% : 28.32 [09:17:33]line НДС 12% : 339.90 [09:17:33]line Наличными: 3200.00 [09:17:33]line Безнал.: 0.00 [09:17:33]line Место: АЗС № 78 "Партнер Нефть" [09:17:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:17:33]line СНО: Общий режим [09:17:33]line Чек 34 23.10.2024 09:17 [09:17:33]line Смена: 117 ФФД: 1.0 [09:17:33]line ЗНМ: 0300000137 [09:17:33]line РНМ: 0000000000186857 [09:17:33]line Версия ККМ: v1.0 [09:17:33]line ФМ: 0000000002094219 [09:17:33]line ФД: 31090 [09:17:33]line ФПД: 81653936631755 [09:17:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31090&fm=81653936631755&tin=02508201610067®Number=0000000000186857&sum=320000 [09:17:33]OFD Sender: Processing packet 31090 [packets to send 11, broken 10] [09:17:33]ProducePacketName [09:17:33]name=ofd_packets/00031090 [09:17:33]OFD Sender: To server: pG, [09:17:33]CommunicateWithHost lk.salyk.kg:30040 [09:17:33]ConnectInit lk.salyk.kg [09:17:33]written 0, free lines is 4095 [09:17:33]Connected sock=10 [09:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B8 25 0D 01 78 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F4 A1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 47 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 84 00 00 00 00 07 04 06 00 00 E2 04 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 31 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 79 00 00 35 04 06 00 4A 43 89 E3 2F CB 4B 5C 5E EC 94 2B 39 57 [09:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E1 E8 47 00 E9 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 32 30 39 34 32 31 39 10 04 04 00 72 79 00 00 F4 03 04 00 AC 69 18 67 B6 04 01 00 00 18 D2 30 B3 E0 7D B0 3E [09:17:34]CommunicateWithHost err = 0 [09:17:34]CheckOFDResponse [09:17:34]1017 (14) - 77093643461234 [09:17:34]1041 (16) - 0000000002094219 [09:17:34]1040 (4) - 31090 [09:17:34]1012 (4) - 23.10.2024 03:12 [09:17:34]1206 (1) - 0 [09:17:34]OFD Sender: Remove packet 31090 [09:17:34]ProducePacketName [09:17:34]name=ofd_packets/00031090 [09:17:34]NVStorageDeleteData [09:17:34]Write to MH i2c: 01 00 00 8C 37 C3 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 07 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 07 00 8C 37 00 00 00 00 00 FA 0C D0 [09:17:34]RasterBufferAndPrint [09:17:34]line [09:17:34]line [09:17:34]line [09:17:34]line [09:17:34]line [09:17:34]written 0, free lines is 3331 [09:17:34]MH_Cut [09:17:34]Write to MH i2c: D1 01 00 93 37 01 9C [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: D1 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: D1 01 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: D1 01 00 93 37 00 9B [09:17:34]Write to MH i2c: 01 00 00 94 37 CB [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]OFD Sender: No OFD packet to send [09:17:34]*** Cut start [09:17:34]*** Partial cut [09:17:34]*** CUTSNS_PIN = 1 [09:17:35]*** CUTSNS_PIN = 0 [09:17:35]*** Brake cut motor [09:17:35]Read from MH i2c: 01 [09:17:35]MH_I2C_Read... [09:17:35]*** Stop cut motor [09:17:35]*** Cut end [09:17:35]Read from MH i2c: 01 07 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 94 37 00 00 00 00 00 FF 0F E0 [09:17:35]process_action close_receipt done [09:17:35]requested_data is exist [09:17:35]produce_requested_data [09:17:35]requested_item fm.sn is exist - process it [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 11 00 00 [09:17:35]Write to MH i2c: E2 08 00 95 37 80 11 00 00 00 00 00 00 46 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 17 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 17 00 95 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [09:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:17:35]wFMCommunicate OK [09:17:35]requested_item fd.num is exist - process it [09:17:35]SAM_PROTO_GetFieldsCounters [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 13 00 00 [09:17:35]Write to MH i2c: E2 08 00 96 37 80 13 00 00 00 00 00 00 49 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 62 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 62 00 96 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 79 00 00 0E 04 04 00 75 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 35 [09:17:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 79 00 00 0E 04 04 00 75 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 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_GetFieldsCounters done [09:17:35]requested_item shift.num is exist - process it [09:17:35]requested_item shift.opened is exist - process it [09:17:35]req_shift_opened [09:17:35]FM_GetShiftState [09:17:35]SAM_PROTO_GetShiftState [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 13 01 00 [09:17:35]Write to MH i2c: E2 08 00 97 37 80 13 01 00 00 00 00 00 4B [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0E 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0E 00 97 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 05 [09:17:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_GetShiftState done [09:17:35]FM_GetShiftState done [09:17:35]req_shift_opened done [09:17:35]requested_item shift.open_date is exist - process it [09:17:35]req_shift_open_date [09:17:35]req_shift_open_date done [09:17:35]produce_requested_data done [09:17:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31090,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:17:35]process_action_free close_receipt [09:17:35]json_value_free [09:17:35]json_value_free done [09:17:35]process_json_proto returns [09:17:35]Send response to host [09:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31090,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:17:35]free response buf [09:17:35]execute_script done [09:17:35]execute_script returns [09:17:35]free content buf [09:17:35]Sock 9.Close socket [09:17:35]Sock 9.Thread stoped [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:55]accept exits with 7 [09:18:55]New connection [09:18:55]New thread 3067043172 created [09:18:55]Thread 3066899812 joined [09:18:55]Waiting for new connection... [09:18:55] Sock 7.Parse request [09:18:55]Sock 7.Check first char [09:18:55]Sock 7.First char is OK [09:18:55]request: POST /json_proto HTTP/1.0 [09:18:55]Method: POST [09:18:55]URL: /json_proto [09:18:55]Method is POST - this is cgi request [09:18:55]url: /json_proto [09:18:55]query_string will be loaded in cgi processing [09:18:55]execute_cgi json_proto POST (null) [09:18:55]execute_cgi path=json_proto method=POST [09:18:55]POST find Content-Length [09:18:55]Host: 172.17.51.3:8080 [09:18:55]Content-Length: 843 [09:18:55]Content-Type: application/json [09:18:55] [09:18:55]POST finish read [09:18:55]Found Content-Length = 843 [09:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:55]execute_script... [09:18:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:55]POST & json_proto [09:18:55]process_json_proto [09:18:55]json parsed OK: [09:18:55]protocol is kg_v1.0 [09:18:55]action value=close_receipt [09:18:55]process_action close_receipt [09:18:55]cmd_close_receipt [09:18:55]MH_GetDate [09:18:55]Write to MH i2c: F0 00 00 98 37 BE [09:18:55]Write i2c OK [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: F0 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: F0 09 00 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: F0 09 00 98 37 00 84 BF 18 67 04 C1 95 66 49 [09:18:55]GetLastDocTimeStamp 1729675057 [09:18:55]current date 1729675140 [09:18:55]FM_GetShiftState [09:18:55]SAM_PROTO_GetShiftState [09:18:55]wFMCommunicate request_size=4 [09:18:55]MH_SAM_APDU [09:18:55]CAPDU: 80 13 01 00 [09:18:55]Write to MH i2c: E2 08 00 99 37 80 13 01 00 00 00 00 00 4D [09:18:55]Write i2c OK [09:18:55]MH_I2C_Read... [09:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:55]Read from MH i2c: E2 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: E2 0E 00 [09:18:55]MH_I2C_Read... [09:18:55]Read from MH i2c: E2 0E 00 99 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 07 [09:18:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:18:55]wFMCommunicate OK [09:18:55]SAM_PROTO_GetShiftState done [09:18:55]FM_GetShiftState done [09:18:55]opened in 1729643755 [09:18:55]opened+sec_in_day 1729730155 [09:18:55]quantity*price = 100021 [09:18:55]sum+1 = 100023 [09:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 35 23.10.2024 09:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31091 ФПД: 116406492551954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091900&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31091&fm=116406492551954&tin=02508201610067®Number=0000000000186857&sum=100022 [09:18:56]StoreToDocumentArchive [09:18:56]shift 117 fd 31091 [09:18:56]save to /storage/0117/doc_00031091 [09:18:56]save last doc name /storage/0117/doc_00031091 to /storage/kkm_last_doc_name [09:18:56]save OK [09:18:56]Clear old archive folders... [09:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:56]tlvbuf is 00D9C600 [09:18:56]SAM_PROTO_ClearQueue [09:18:56]wFMCommunicate request_size=4 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 09 00 00 [09:18:56]Write to MH i2c: E2 08 00 A6 37 80 09 00 00 00 00 00 00 4F [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 A6 37 00 90 00 51 [09:18:56]RAPDU: 90 00 [09:18:56]wFMCommunicate OK [09:18:56]SAM_PROTO_ClearQueue done [09:18:56]KKMCreateOFDPacket [09:18:56]OFDProtocolAddRootSTLVToBuf [09:18:56]FM_MakeSignedData [09:18:56]FM_MakeSignedData [09:18:56]SAM_PROTO_SignData [09:18:56]wFMCommunicate request_size=4 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 0D 01 02 [09:18:56]Write to MH i2c: E2 08 00 A7 37 80 0D 01 02 00 00 00 00 57 [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 A7 37 00 90 00 52 [09:18:56]RAPDU: 90 00 [09:18:56]wFMCommunicate OK [09:18:56]wFMCommunicate request_size=255 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 79 00 00 35 04 06 00 69 [09:18:56]Write to MH i2c: E2 02 01 A8 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 79 00 00 35 04 06 00 69 00 00 E1 [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [09:18:56]RAPDU: 90 00 [09:18:56]wFMCommunicate OK [09:18:56]wFMCommunicate request_size=10 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 0D 02 02 05 DE FF A3 5B 12 [09:18:56]Write to MH i2c: E2 0D 00 A9 37 80 0D 02 02 05 00 DE FF A3 5B 12 00 00 51 [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:56]Read from MH i2c: E2 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 [09:18:56]MH_I2C_Read... [09:18:56]Read from MH i2c: E2 03 00 A9 37 00 90 00 54 [09:18:56]RAPDU: 90 00 [09:18:56]wFMCommunicate OK [09:18:56]wFMCommunicate request_size=4 [09:18:56]MH_SAM_APDU [09:18:56]CAPDU: 80 0D 03 02 [09:18:56]Write to MH i2c: E2 08 00 AA 37 80 0D 03 02 00 00 00 00 5C [09:18:56]Write i2c OK [09:18:56]MH_I2C_Read... [09:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:57]Read from MH i2c: E2 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: E2 0B 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: E2 0B 00 AA 37 00 EE AD 36 12 92 1F E0 95 90 00 66 [09:18:57]RAPDU: EE AD 36 12 92 1F E0 95 90 00 [09:18:57]wFMCommunicate OK [09:18:57]SAM_PROTO_SignData done [09:18:57]FM_MakeSignedData done [09:18:57]CreateOFDProtocolMessage [09:18:57]wFMCommunicate request_size=4 [09:18:57]MH_SAM_APDU [09:18:57]CAPDU: 80 11 00 00 [09:18:57]Write to MH i2c: E2 08 00 AB 37 80 11 00 00 00 00 00 00 5C [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:57]Read from MH i2c: E2 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: E2 17 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: E2 17 00 AB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [09:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:18:57]wFMCommunicate OK [09:18:57]CreateOFDProtocolMessage done [09:18:57]OFDSenderStorePacket 31091 [09:18:57]StoreOFDPacket docnum=31091 [09:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 37 07 01 CB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 79 00 00 35 04 06 00 69 DE FF A3 5B 12 EE AD 36 12 92 1F E0 95 [09:18:57]CheckFolder [09:18:57]dirname=/storage/ofd_packets [09:18:57]CheckFolder done [09:18:57]ProducePacketName [09:18:57]name=ofd_packets/00031091 [09:18:57]NVStorageSaveData ofd_packets/00031091 [09:18:57]File name is /storage/ofd_packets/00031091 [09:18:57]Write 301 bytes [09:18:57]NVStorageSaveData done [09:18:57]OFDSenderStorePacket done [09:18:57]KKMCreateOFDPacket done [09:18:57]NVStorageSaveData kkm_last_timestamp [09:18:57]File name is /storage/kkm_last_timestamp [09:18:57]Write 4 bytes [09:18:57]NVStorageSaveData done [09:18:57]ExternCall_PrintAddStr [09:18:57]wPrintStart [09:18:57]Write to MH i2c: 01 00 00 AC 37 E3 [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 AC 37 00 00 00 00 00 FF 0F F8 [09:18:57]RasterBufferAndPrint [09:18:57]line Счет N : (1)343529 [09:18:57]line ИНН: 02508201610067 [09:18:57]line Контрольно-Кассовый Чек [09:18:57]line ПРОДАЖА [09:18:57]line ТРК (МРК, ГНК) : 32 [09:18:57]line Товар: 2710124500 [09:18:57]line Аи-95-К-3 [09:18:57]line 13.480 * 74.20 [09:18:57]line = 1000.22 [09:18:57]line НДС 12% НСП 1% [09:18:57]line > о реализуемом товаре [09:18:57]line ИТОГО: 1000.22 [09:18:57]line НСП 1% : 8.85 [09:18:57]line НДС 12% : 106.22 [09:18:57]line Наличными: 0.00 [09:18:57]line Безнал.: 1000.22 [09:18:57]line Место: АЗС № 78 "Партнер Нефть" [09:18:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:18:57]line СНО: Общий режим [09:18:57]line Чек 35 23.10.2024 09:19 [09:18:57]line Смена: 117 ФФД: 1.0 [09:18:57]line ЗНМ: 0300000137 [09:18:57]line РНМ: 0000000000186857 [09:18:57]line Версия ККМ: v1.0 [09:18:57]line Платежная система: АКБ Кыргызстан [09:18:57]line ФМ: 0000000002094219 [09:18:57]line ФД: 31091 [09:18:57]line ФПД: 116406492551954 [09:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091900&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31091&fm=116406492551954&tin=02508201610067®Number=0000000000186857&sum=100022 [09:18:57]OFD Sender: Processing packet 31091 [packets to send 11, broken 10] [09:18:57]ProducePacketName [09:18:57]name=ofd_packets/00031091 [09:18:57]OFD Sender: To server: pG, [09:18:57]CommunicateWithHost lk.salyk.kg:30040 [09:18:57]ConnectInit lk.salyk.kg [09:18:57]written 0, free lines is 4095 [09:18:57]Connected sock=10 [09:18:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 37 07 01 CB 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 BF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 79 00 00 35 04 06 00 69 DE FF A3 5B 12 EE AD 36 12 92 1F E0 95 [09:18:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 17 D8 47 00 E8 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 79 00 00 F4 03 04 00 FF 69 18 67 B6 04 01 00 00 E2 8A 76 59 E6 69 EE 3A [09:18:57]CommunicateWithHost err = 0 [09:18:57]CheckOFDResponse [09:18:57]1017 (14) - 77093643461234 [09:18:57]1041 (16) - 0000000002094219 [09:18:57]1040 (4) - 31091 [09:18:57]1012 (4) - 23.10.2024 03:14 [09:18:57]1206 (1) - 0 [09:18:57]OFD Sender: Remove packet 31091 [09:18:57]ProducePacketName [09:18:57]name=ofd_packets/00031091 [09:18:57]NVStorageDeleteData [09:18:57]Write to MH i2c: 01 00 00 D6 37 0D [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: 01 07 00 D6 37 00 00 00 00 00 02 0D 23 [09:18:57]RasterBufferAndPrint [09:18:57]line [09:18:57]line [09:18:57]line [09:18:57]line [09:18:57]line [09:18:57]written 0, free lines is 3336 [09:18:57]MH_Cut [09:18:57]Write to MH i2c: D1 01 00 DD 37 01 E6 [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D1 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D1 01 00 [09:18:57]MH_I2C_Read... [09:18:57]Read from MH i2c: D1 01 00 DD 37 00 E5 [09:18:57]Write to MH i2c: 01 00 00 DE 37 15 [09:18:57]Write i2c OK [09:18:57]MH_I2C_Read... [09:18:58]OFD Sender: No OFD packet to send [09:18:58]*** Cut start [09:18:58]*** Partial cut [09:18:58]*** CUTSNS_PIN = 1 [09:18:58]*** CUTSNS_PIN = 0 [09:18:58]*** Brake cut motor [09:18:59]Read from MH i2c: 01 [09:18:59]MH_I2C_Read... [09:18:59]*** Stop cut motor [09:18:59]*** Cut end [09:18:59]Read from MH i2c: 01 07 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: 01 07 00 DE 37 00 00 00 00 00 FF 0F 2A [09:18:59]process_action close_receipt done [09:18:59]requested_data is exist [09:18:59]produce_requested_data [09:18:59]requested_item fm.sn is exist - process it [09:18:59]wFMCommunicate request_size=4 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 11 00 00 [09:18:59]Write to MH i2c: E2 08 00 DF 37 80 11 00 00 00 00 00 00 90 [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:59]Read from MH i2c: E2 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 17 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 17 00 DF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [09:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:18:59]wFMCommunicate OK [09:18:59]requested_item fd.num is exist - process it [09:18:59]SAM_PROTO_GetFieldsCounters [09:18:59]wFMCommunicate request_size=4 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 13 00 00 [09:18:59]Write to MH i2c: E2 08 00 E0 37 80 13 00 00 00 00 00 00 93 [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:59]Read from MH i2c: E2 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 62 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 62 00 E0 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 79 00 00 0E 04 04 00 75 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 83 [09:18:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 79 00 00 0E 04 04 00 75 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 [09:18:59]wFMCommunicate OK [09:18:59]SAM_PROTO_GetFieldsCounters done [09:18:59]requested_item shift.num is exist - process it [09:18:59]requested_item shift.opened is exist - process it [09:18:59]req_shift_opened [09:18:59]FM_GetShiftState [09:18:59]SAM_PROTO_GetShiftState [09:18:59]wFMCommunicate request_size=4 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 13 01 00 [09:18:59]Write to MH i2c: E2 08 00 E1 37 80 13 01 00 00 00 00 00 95 [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:59]Read from MH i2c: E2 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 0E 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 0E 00 E1 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4F [09:18:59]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:18:59]wFMCommunicate OK [09:18:59]SAM_PROTO_GetShiftState done [09:18:59]FM_GetShiftState done [09:18:59]req_shift_opened done [09:18:59]requested_item shift.open_date is exist - process it [09:18:59]req_shift_open_date [09:18:59]req_shift_open_date done [09:18:59]produce_requested_data done [09:18:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31091,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:18:59]process_action_free close_receipt [09:18:59]json_value_free [09:18:59]json_value_free done [09:18:59]process_json_proto returns [09:18:59]Send response to host [09:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31091,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:18:59]free response buf [09:18:59]execute_script done [09:18:59]execute_script returns [09:18:59]free content buf [09:18:59]Sock 7.Close socket [09:18:59]Sock 7.Thread stoped [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:54]accept exits with 9 [09:23:54]New connection [09:23:54]New thread 3066899812 created [09:23:54]Thread 3067043172 joined [09:23:54]Waiting for new connection... [09:23:54] Sock 9.Parse request [09:23:54]Sock 9.Check first char [09:23:54]Sock 9.First char is OK [09:23:54]request: POST /json_proto HTTP/1.0 [09:23:54]Method: POST [09:23:54]URL: /json_proto [09:23:54]Method is POST - this is cgi request [09:23:54]url: /json_proto [09:23:54]query_string will be loaded in cgi processing [09:23:54]execute_cgi json_proto POST (null) [09:23:54]execute_cgi path=json_proto method=POST [09:23:54]POST find Content-Length [09:23:54]Host: 172.17.51.3:8080 [09:23:54]Content-Length: 677 [09:23:54]Content-Type: application/json [09:23:54] [09:23:54]POST finish read [09:23:54]Found Content-Length = 677 [09:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:54]execute_script... [09:23:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:54]POST & json_proto [09:23:54]process_json_proto [09:23:54]json parsed OK: [09:23:54]protocol is kg_v1.0 [09:23:54]action value=close_receipt [09:23:54]process_action close_receipt [09:23:54]cmd_close_receipt [09:23:54]MH_GetDate [09:23:54]Write to MH i2c: F0 00 00 E2 37 08 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 09 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 09 00 E2 37 00 B0 C0 18 67 04 C1 95 66 C0 [09:23:54]GetLastDocTimeStamp 1729675140 [09:23:54]current date 1729675440 [09:23:54]FM_GetShiftState [09:23:54]SAM_PROTO_GetShiftState [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 13 01 00 [09:23:54]Write to MH i2c: E2 08 00 E3 37 80 13 01 00 00 00 00 00 97 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 E3 37 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 51 [09:23:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetShiftState done [09:23:54]FM_GetShiftState done [09:23:54]opened in 1729643755 [09:23:54]opened+sec_in_day 1729730155 [09:23:54]quantity*price = 70044 [09:23:54]sum+1 = 70046 [09:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 36 23.10.2024 09:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31092 ФПД: 251460064775123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092400&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31092&fm=251460064775123&tin=02508201610067®Number=0000000000186857&sum=70000 [09:23:55]StoreToDocumentArchive [09:23:55]shift 117 fd 31092 [09:23:55]save to /storage/0117/doc_00031092 [09:23:55]save last doc name /storage/0117/doc_00031092 to /storage/kkm_last_doc_name [09:23:55]save OK [09:23:55]Clear old archive folders... [09:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:55]tlvbuf is 00E85940 [09:23:55]SAM_PROTO_ClearQueue [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 09 00 00 [09:23:55]Write to MH i2c: E2 08 00 F0 37 80 09 00 00 00 00 00 00 99 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 F0 37 00 90 00 9B [09:23:56]RAPDU: 90 00 [09:23:56]wFMCommunicate OK [09:23:56]SAM_PROTO_ClearQueue done [09:23:56]KKMCreateOFDPacket [09:23:56]OFDProtocolAddRootSTLVToBuf [09:23:56]FM_MakeSignedData [09:23:56]FM_MakeSignedData [09:23:56]SAM_PROTO_SignData [09:23:56]wFMCommunicate request_size=4 [09:23:56]MH_SAM_APDU [09:23:56]CAPDU: 80 0D 01 02 [09:23:56]Write to MH i2c: E2 08 00 F1 37 80 0D 01 02 00 00 00 00 A1 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 F1 37 00 90 00 9C [09:23:56]RAPDU: 90 00 [09:23:56]wFMCommunicate OK [09:23:56]wFMCommunicate request_size=255 [09:23:56]MH_SAM_APDU [09:23:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B0 C0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 79 00 00 35 04 06 00 E4 [09:23:56]Write to MH i2c: E2 02 01 F2 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B0 C0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 79 00 00 35 04 06 00 E4 00 00 73 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 F2 37 00 90 00 9D [09:23:56]RAPDU: 90 00 [09:23:56]wFMCommunicate OK [09:23:56]wFMCommunicate request_size=10 [09:23:56]MH_SAM_APDU [09:23:56]CAPDU: 80 0D 02 02 05 B3 9B D6 0B D3 [09:23:56]Write to MH i2c: E2 0D 00 F3 37 80 0D 02 02 05 00 B3 9B D6 0B D3 00 00 B0 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 03 00 F3 37 00 90 00 9E [09:23:56]RAPDU: 90 00 [09:23:56]wFMCommunicate OK [09:23:56]wFMCommunicate request_size=4 [09:23:56]MH_SAM_APDU [09:23:56]CAPDU: 80 0D 03 02 [09:23:56]Write to MH i2c: E2 08 00 F4 37 80 0D 03 02 00 00 00 00 A6 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 0B 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 0B 00 F4 37 00 35 3F 74 3A FD B0 93 FC 90 00 05 [09:23:56]RAPDU: 35 3F 74 3A FD B0 93 FC 90 00 [09:23:56]wFMCommunicate OK [09:23:56]SAM_PROTO_SignData done [09:23:56]FM_MakeSignedData done [09:23:56]CreateOFDProtocolMessage [09:23:56]wFMCommunicate request_size=4 [09:23:56]MH_SAM_APDU [09:23:56]CAPDU: 80 11 00 00 [09:23:56]Write to MH i2c: E2 08 00 F5 37 80 11 00 00 00 00 00 00 A6 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:56]Read from MH i2c: E2 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 17 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: E2 17 00 F5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [09:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:23:56]wFMCommunicate OK [09:23:56]CreateOFDProtocolMessage done [09:23:56]OFDSenderStorePacket 31092 [09:23:56]StoreOFDPacket docnum=31092 [09:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 63 07 01 2F 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B0 C0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 79 00 00 35 04 06 00 E4 B3 9B D6 0B D3 35 3F 74 3A FD B0 93 FC [09:23:56]CheckFolder [09:23:56]dirname=/storage/ofd_packets [09:23:56]CheckFolder done [09:23:56]ProducePacketName [09:23:56]name=ofd_packets/00031092 [09:23:56]NVStorageSaveData ofd_packets/00031092 [09:23:56]File name is /storage/ofd_packets/00031092 [09:23:56]Write 301 bytes [09:23:56]NVStorageSaveData done [09:23:56]OFDSenderStorePacket done [09:23:56]KKMCreateOFDPacket done [09:23:56]NVStorageSaveData kkm_last_timestamp [09:23:56]File name is /storage/kkm_last_timestamp [09:23:56]Write 4 bytes [09:23:56]NVStorageSaveData done [09:23:56]ExternCall_PrintAddStr [09:23:56]wPrintStart [09:23:56]Write to MH i2c: 01 00 00 F6 37 2D [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 07 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 07 00 F6 37 00 00 00 00 00 FF 0F 42 [09:23:56]RasterBufferAndPrint [09:23:56]line Счет N : (1)343530 [09:23:56]line ИНН: 02508201610067 [09:23:56]line Контрольно-Кассовый Чек [09:23:56]line ПРОДАЖА [09:23:56]line ТРК (МРК, ГНК) : 52 [09:23:56]line Товар: 2710124500 [09:23:56]line Аи-95-К-3 [09:23:56]line 9.440 * 74.20 [09:23:56]line = 700.45 [09:23:56]line НДС 12% НСП 1% [09:23:56]line > о реализуемом товаре [09:23:56]line ОКРУГЛЕНИЕ: -0.45 [09:23:56]line ИТОГО: 700.00 [09:23:56]line Внесено: 700.00 [09:23:56]line СДАЧА: 0.00 [09:23:56]line НСП 1% : 6.20 [09:23:56]line НДС 12% : 74.38 [09:23:56]line Наличными: 700.00 [09:23:56]line Безнал.: 0.00 [09:23:56]line Место: АЗС № 78 "Партнер Нефть" [09:23:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:23:56]line СНО: Общий режим [09:23:56]line Чек 36 23.10.2024 09:24 [09:23:56]line Смена: 117 ФФД: 1.0 [09:23:56]line ЗНМ: 0300000137 [09:23:56]line РНМ: 0000000000186857 [09:23:56]line Версия ККМ: v1.0 [09:23:56]line ФМ: 0000000002094219 [09:23:56]line ФД: 31092 [09:23:56]line ФПД: 251460064775123 [09:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092400&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31092&fm=251460064775123&tin=02508201610067®Number=0000000000186857&sum=70000 [09:23:56]OFD Sender: Processing packet 31092 [packets to send 11, broken 10] [09:23:56]ProducePacketName [09:23:56]name=ofd_packets/00031092 [09:23:56]OFD Sender: To server: pG, [09:23:56]CommunicateWithHost lk.salyk.kg:30040 [09:23:56]ConnectInit lk.salyk.kg [09:23:56]written 0, free lines is 4095 [09:23:56]Connected sock=10 [09:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 63 07 01 2F 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B0 C0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 79 00 00 35 04 06 00 E4 B3 9B D6 0B D3 35 3F 74 3A FD B0 93 FC [09:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FA FC 47 00 EC 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 79 00 00 F4 03 04 00 2B 6B 18 67 B6 04 01 00 00 3F 8E 8C 79 0B E3 01 A0 [09:23:57]CommunicateWithHost err = 0 [09:23:57]CheckOFDResponse [09:23:57]1017 (14) - 77093643461234 [09:23:57]1041 (16) - 0000000002094219 [09:23:57]1040 (4) - 31092 [09:23:57]1012 (4) - 23.10.2024 03:19 [09:23:57]1206 (1) - 0 [09:23:57]OFD Sender: Remove packet 31092 [09:23:57]ProducePacketName [09:23:57]name=ofd_packets/00031092 [09:23:57]NVStorageDeleteData [09:23:57]Write to MH i2c: 01 00 00 21 38 59 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: 01 07 00 21 38 00 00 00 00 00 EC 0C 58 [09:23:57]RasterBufferAndPrint [09:23:57]line [09:23:57]line [09:23:57]line [09:23:57]line [09:23:57]line [09:23:57]written 0, free lines is 3314 [09:23:57]MH_Cut [09:23:57]Write to MH i2c: D1 01 00 28 38 01 32 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D1 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D1 01 00 [09:23:57]MH_I2C_Read... [09:23:57]Read from MH i2c: D1 01 00 28 38 00 31 [09:23:57]Write to MH i2c: 01 00 00 29 38 61 [09:23:57]Write i2c OK [09:23:57]MH_I2C_Read... [09:23:57]OFD Sender: No OFD packet to send [09:23:57]*** Cut start [09:23:57]*** Partial cut [09:23:57]*** CUTSNS_PIN = 1 [09:23:58]*** CUTSNS_PIN = 0 [09:23:58]*** Brake cut motor [09:23:58]Read from MH i2c: 01 [09:23:58]MH_I2C_Read... [09:23:58]*** Stop cut motor [09:23:58]*** Cut end [09:23:58]Read from MH i2c: 01 07 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: 01 07 00 29 38 00 00 00 00 00 FF 0F 76 [09:23:58]process_action close_receipt done [09:23:58]requested_data is exist [09:23:58]produce_requested_data [09:23:58]requested_item fm.sn is exist - process it [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 11 00 00 [09:23:58]Write to MH i2c: E2 08 00 2A 38 80 11 00 00 00 00 00 00 DC [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 2A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [09:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:23:58]wFMCommunicate OK [09:23:58]requested_item fd.num is exist - process it [09:23:58]SAM_PROTO_GetFieldsCounters [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 13 00 00 [09:23:58]Write to MH i2c: E2 08 00 2B 38 80 13 00 00 00 00 00 00 DF [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 62 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 62 00 2B 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 79 00 00 0E 04 04 00 75 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 D3 [09:23:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 79 00 00 0E 04 04 00 75 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 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_GetFieldsCounters done [09:23:58]requested_item shift.num is exist - process it [09:23:58]requested_item shift.opened is exist - process it [09:23:58]req_shift_opened [09:23:58]FM_GetShiftState [09:23:58]SAM_PROTO_GetShiftState [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 13 01 00 [09:23:58]Write to MH i2c: E2 08 00 2C 38 80 13 01 00 00 00 00 00 E1 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 2C 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9B [09:23:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_GetShiftState done [09:23:58]FM_GetShiftState done [09:23:58]req_shift_opened done [09:23:58]requested_item shift.open_date is exist - process it [09:23:58]req_shift_open_date [09:23:58]req_shift_open_date done [09:23:58]produce_requested_data done [09:23:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31092,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:23:58]process_action_free close_receipt [09:23:58]json_value_free [09:23:58]json_value_free done [09:23:58]process_json_proto returns [09:23:58]Send response to host [09:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31092,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:23:58]free response buf [09:23:58]execute_script done [09:23:58]execute_script returns [09:23:58]free content buf [09:23:58]Sock 9.Close socket [09:23:58]Sock 9.Thread stoped [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30: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:29]accept exits with 7 [09:33:29]New connection [09:33:29]New thread 3067043172 created [09:33:29]Thread 3066899812 joined [09:33:29]Waiting for new connection... [09:33:29] Sock 7.Parse request [09:33:29]Sock 7.Check first char [09:33:29]Sock 7.First char is OK [09:33:29]request: POST /json_proto HTTP/1.0 [09:33:29]Method: POST [09:33:29]URL: /json_proto [09:33:29]Method is POST - this is cgi request [09:33:29]url: /json_proto [09:33:29]query_string will be loaded in cgi processing [09:33:29]execute_cgi json_proto POST (null) [09:33:29]execute_cgi path=json_proto method=POST [09:33:29]POST find Content-Length [09:33:29]Host: 172.17.51.3:8080 [09:33:29]Content-Length: 754 [09:33:29]Content-Type: application/json [09:33:29] [09:33:29]POST finish read [09:33:29]Found Content-Length = 754 [09:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005989", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:29]execute_script... [09:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005989", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:29]POST & json_proto [09:33:29]process_json_proto [09:33:29]json parsed OK: [09:33:29]protocol is kg_v1.0 [09:33:29]action value=close_receipt [09:33:29]process_action close_receipt [09:33:29]cmd_close_receipt [09:33:29]MH_GetDate [09:33:29]Write to MH i2c: F0 00 00 2D 38 54 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 09 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 09 00 2D 38 00 EF C2 18 67 04 C1 95 66 4D [09:33:29]GetLastDocTimeStamp 1729675440 [09:33:29]current date 1729676015 [09:33:29]FM_GetShiftState [09:33:29]SAM_PROTO_GetShiftState [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 13 01 00 [09:33:29]Write to MH i2c: E2 08 00 2E 38 80 13 01 00 00 00 00 00 E3 [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0E 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0E 00 2E 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9D [09:33:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:33:29]wFMCommunicate OK [09:33:29]SAM_PROTO_GetShiftState done [09:33:29]FM_GetShiftState done [09:33:29]opened in 1729643755 [09:33:29]opened+sec_in_day 1729730155 [09:33:29]quantity*price = 0 [09:33:29]sum+1 = 1 [09:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 37 23.10.2024 09:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30005989 ФМ: 0000000002094219 ФД: 31093 ФПД: 173672564054570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093335&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31093&fm=173672564054570&tin=02508201610067®Number=0000000000186857&sum=0 [09:33:30]StoreToDocumentArchive [09:33:30]shift 117 fd 31093 [09:33:30]save to /storage/0117/doc_00031093 [09:33:30]save last doc name /storage/0117/doc_00031093 to /storage/kkm_last_doc_name [09:33:30]save OK [09:33:30]Clear old archive folders... [09:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:30]tlvbuf is 00D65350 [09:33:30]SAM_PROTO_ClearQueue [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 09 00 00 [09:33:30]Write to MH i2c: E2 08 00 3B 38 80 09 00 00 00 00 00 00 E5 [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 3B 38 00 90 00 E7 [09:33:30]RAPDU: 90 00 [09:33:30]wFMCommunicate OK [09:33:30]SAM_PROTO_ClearQueue done [09:33:30]KKMCreateOFDPacket [09:33:30]OFDProtocolAddRootSTLVToBuf [09:33:30]FM_MakeSignedData [09:33:30]FM_MakeSignedData [09:33:30]SAM_PROTO_SignData [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 0D 01 02 [09:33:30]Write to MH i2c: E2 08 00 3C 38 80 0D 01 02 00 00 00 00 ED [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 3C 38 00 90 00 E8 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=255 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EF C2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 79 00 00 35 04 06 00 9D [09:33:31]Write to MH i2c: E2 02 01 3D 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EF C2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 79 00 00 35 04 06 00 9D 00 00 F3 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 3D 38 00 90 00 E9 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=10 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 02 02 05 F4 4B 7C DA 2A [09:33:31]Write to MH i2c: E2 0D 00 3E 38 80 0D 02 02 05 00 F4 4B 7C DA 2A 00 00 B9 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 3E 38 00 90 00 EA [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 03 02 [09:33:31]Write to MH i2c: E2 08 00 3F 38 80 0D 03 02 00 00 00 00 F2 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0B 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0B 00 3F 38 00 26 16 C2 C7 E3 59 CD C3 90 00 84 [09:33:31]RAPDU: 26 16 C2 C7 E3 59 CD C3 90 00 [09:33:31]wFMCommunicate OK [09:33:31]SAM_PROTO_SignData done [09:33:31]FM_MakeSignedData done [09:33:31]CreateOFDProtocolMessage [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 11 00 00 [09:33:31]Write to MH i2c: E2 08 00 40 38 80 11 00 00 00 00 00 00 F2 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 17 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 17 00 40 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [09:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:31]wFMCommunicate OK [09:33:31]CreateOFDProtocolMessage done [09:33:31]OFDSenderStorePacket 31093 [09:33:31]StoreOFDPacket docnum=31093 [09:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 0E 07 01 5B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EF C2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 79 00 00 35 04 06 00 9D F4 4B 7C DA 2A 26 16 C2 C7 E3 59 CD C3 [09:33:31]CheckFolder [09:33:31]dirname=/storage/ofd_packets [09:33:31]CheckFolder done [09:33:31]ProducePacketName [09:33:31]name=ofd_packets/00031093 [09:33:31]NVStorageSaveData ofd_packets/00031093 [09:33:31]File name is /storage/ofd_packets/00031093 [09:33:31]Write 301 bytes [09:33:31]NVStorageSaveData done [09:33:31]OFDSenderStorePacket done [09:33:31]KKMCreateOFDPacket done [09:33:31]NVStorageSaveData kkm_last_timestamp [09:33:31]File name is /storage/kkm_last_timestamp [09:33:31]Write 4 bytes [09:33:31]NVStorageSaveData done [09:33:31]ExternCall_PrintAddStr [09:33:31]wPrintStart [09:33:31]Write to MH i2c: 01 00 00 41 38 79 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 07 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 FF 0F 8E [09:33:31]RasterBufferAndPrint [09:33:31]line Счет N : (1)343531 [09:33:31]line ИНН: 02508201610067 [09:33:31]line Контрольно-Кассовый Чек [09:33:31]line ПРОДАЖА [09:33:31]line ТРК (МРК, ГНК) : 63 [09:33:31]line Товар: 2710124130 [09:33:31]line Аи-92-К-2 [09:33:31]line 30.000 * 0.00 [09:33:31]line = 0.00 [09:33:31]line НДС 12% НСП 1% [09:33:31]line > о реализуемом товаре [09:33:31]line ИТОГО: 0.00 [09:33:31]line НСП 1% : 0.00 [09:33:31]line НДС 12% : 0.00 [09:33:31]line Наличными: 0.00 [09:33:31]line Безнал.: 0.00 [09:33:31]line Место: АЗС № 78 "Партнер Нефть" [09:33:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:33:31]line СНО: Общий режим [09:33:31]line Чек 37 23.10.2024 09:33 [09:33:31]line Смена: 117 ФФД: 1.0 [09:33:31]line ЗНМ: 0300000137 [09:33:31]line РНМ: 0000000000186857 [09:33:31]line Версия ККМ: v1.0 [09:33:31]line Талоны: ТК ГПНА Online [09:33:31]line 30005989 [09:33:31]line ФМ: 0000000002094219 [09:33:31]line ФД: 31093 [09:33:31]line ФПД: 173672564054570 [09:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093335&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31093&fm=173672564054570&tin=02508201610067®Number=0000000000186857&sum=0 [09:33:31]OFD Sender: Processing packet 31093 [packets to send 11, broken 10] [09:33:31]ProducePacketName [09:33:31]name=ofd_packets/00031093 [09:33:31]OFD Sender: To server: pG, [09:33:31]CommunicateWithHost lk.salyk.kg:30040 [09:33:31]ConnectInit lk.salyk.kg [09:33:31]written 0, free lines is 4095 [09:33:31]Connected sock=10 [09:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 0E 07 01 5B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EF C2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 79 00 00 35 04 06 00 9D F4 4B 7C DA 2A 26 16 C2 C7 E3 59 CD C3 [09:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 F5 47 00 DB 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 79 00 00 F4 03 04 00 69 6D 18 67 B6 04 01 00 00 A6 3E 32 A3 81 49 0E C5 [09:33:32]CommunicateWithHost err = 0 [09:33:32]CheckOFDResponse [09:33:32]1017 (14) - 77093643461234 [09:33:32]1041 (16) - 0000000002094219 [09:33:32]1040 (4) - 31093 [09:33:32]1012 (4) - 23.10.2024 03:28 [09:33:32]1206 (1) - 0 [09:33:32]OFD Sender: Remove packet 31093 [09:33:32]ProducePacketName [09:33:32]name=ofd_packets/00031093 [09:33:32]NVStorageDeleteData [09:33:32]Write to MH i2c: 01 00 00 6B 38 A3 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 6B 38 00 00 00 00 00 F6 0C AC [09:33:32]RasterBufferAndPrint [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]written 0, free lines is 3324 [09:33:32]MH_Cut [09:33:32]Write to MH i2c: D1 01 00 72 38 01 7C [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 01 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 01 00 72 38 00 7B [09:33:32]Write to MH i2c: 01 00 00 73 38 AB [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]OFD Sender: No OFD packet to send [09:33:32]*** Cut start [09:33:32]*** Partial cut [09:33:32]*** CUTSNS_PIN = 1 [09:33:32]*** CUTSNS_PIN = 0 [09:33:33]*** Brake cut motor [09:33:33]Read from MH i2c: 01 [09:33:33]MH_I2C_Read... [09:33:33]*** Stop cut motor [09:33:33]*** Cut end [09:33:33]Read from MH i2c: 01 07 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 73 38 00 00 00 00 00 FF 0F C0 [09:33:33]process_action close_receipt done [09:33:33]requested_data is exist [09:33:33]produce_requested_data [09:33:33]requested_item fm.sn is exist - process it [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 11 00 00 [09:33:33]Write to MH i2c: E2 08 00 74 38 80 11 00 00 00 00 00 00 26 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 74 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [09:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:33]wFMCommunicate OK [09:33:33]requested_item fd.num is exist - process it [09:33:33]SAM_PROTO_GetFieldsCounters [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 13 00 00 [09:33:33]Write to MH i2c: E2 08 00 75 38 80 13 00 00 00 00 00 00 29 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 62 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 62 00 75 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 79 00 00 0E 04 04 00 75 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 21 [09:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 79 00 00 0E 04 04 00 75 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 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_GetFieldsCounters done [09:33:33]requested_item shift.num is exist - process it [09:33:33]requested_item shift.opened is exist - process it [09:33:33]req_shift_opened [09:33:33]FM_GetShiftState [09:33:33]SAM_PROTO_GetShiftState [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 13 01 00 [09:33:33]Write to MH i2c: E2 08 00 76 38 80 13 01 00 00 00 00 00 2B [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 76 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E5 [09:33:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_GetShiftState done [09:33:33]FM_GetShiftState done [09:33:33]req_shift_opened done [09:33:33]requested_item shift.open_date is exist - process it [09:33:33]req_shift_open_date [09:33:33]req_shift_open_date done [09:33:33]produce_requested_data done [09:33:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31093,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:33:33]process_action_free close_receipt [09:33:33]json_value_free [09:33:33]json_value_free done [09:33:33]process_json_proto returns [09:33:33]Send response to host [09:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31093,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:33:33]free response buf [09:33:33]execute_script done [09:33:33]execute_script returns [09:33:33]free content buf [09:33:33]Sock 7.Close socket [09:33:33]Sock 7.Thread stoped [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:30]accept exits with 9 [09:38:30]New connection [09:38:30]New thread 3066899812 created [09:38:30]Thread 3067043172 joined [09:38:30]Waiting for new connection... [09:38:30] Sock 9.Parse request [09:38:30]Sock 9.Check first char [09:38:30]Sock 9.First char is OK [09:38:30]request: POST /json_proto HTTP/1.0 [09:38:30]Method: POST [09:38:30]URL: /json_proto [09:38:30]Method is POST - this is cgi request [09:38:30]url: /json_proto [09:38:30]query_string will be loaded in cgi processing [09:38:30]execute_cgi json_proto POST (null) [09:38:30]execute_cgi path=json_proto method=POST [09:38:30]POST find Content-Length [09:38:30]Host: 172.17.51.3:8080 [09:38:30]Content-Length: 677 [09:38:30]Content-Type: application/json [09:38:30] [09:38:30]POST finish read [09:38:30]Found Content-Length = 677 [09:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:30]execute_script... [09:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:30]POST & json_proto [09:38:30]process_json_proto [09:38:30]json parsed OK: [09:38:30]protocol is kg_v1.0 [09:38:30]action value=close_receipt [09:38:30]process_action close_receipt [09:38:30]cmd_close_receipt [09:38:30]MH_GetDate [09:38:30]Write to MH i2c: F0 00 00 77 38 9E [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: F0 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: F0 09 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: F0 09 00 77 38 00 1B C4 18 67 04 C1 95 66 C5 [09:38:30]GetLastDocTimeStamp 1729676015 [09:38:30]current date 1729676315 [09:38:30]FM_GetShiftState [09:38:30]SAM_PROTO_GetShiftState [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 13 01 00 [09:38:30]Write to MH i2c: E2 08 00 78 38 80 13 01 00 00 00 00 00 2D [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0E 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0E 00 78 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E7 [09:38:30]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:38:30]wFMCommunicate OK [09:38:30]SAM_PROTO_GetShiftState done [09:38:30]FM_GetShiftState done [09:38:30]opened in 1729643755 [09:38:30]opened+sec_in_day 1729730155 [09:38:30]quantity*price = 50041 [09:38:30]sum+1 = 50042 [09:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 38 23.10.2024 09:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31094 ФПД: 154400872584023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093835&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31094&fm=154400872584023&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:31]StoreToDocumentArchive [09:38:31]shift 117 fd 31094 [09:38:31]save to /storage/0117/doc_00031094 [09:38:31]save last doc name /storage/0117/doc_00031094 to /storage/kkm_last_doc_name [09:38:31]save OK [09:38:31]Clear old archive folders... [09:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:31]tlvbuf is B6DBE150 [09:38:31]SAM_PROTO_ClearQueue [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 09 00 00 [09:38:31]Write to MH i2c: E2 08 00 85 38 80 09 00 00 00 00 00 00 2F [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 85 38 00 90 00 31 [09:38:31]RAPDU: 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_ClearQueue done [09:38:31]KKMCreateOFDPacket [09:38:31]OFDProtocolAddRootSTLVToBuf [09:38:31]FM_MakeSignedData [09:38:31]FM_MakeSignedData [09:38:31]SAM_PROTO_SignData [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 0D 01 02 [09:38:31]Write to MH i2c: E2 08 00 86 38 80 0D 01 02 00 00 00 00 37 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 86 38 00 90 00 32 [09:38:31]RAPDU: 90 00 [09:38:31]wFMCommunicate OK [09:38:31]wFMCommunicate request_size=255 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1B C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 79 00 00 35 04 06 00 8C [09:38:31]Write to MH i2c: E2 02 01 87 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1B C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 79 00 00 35 04 06 00 8C 00 00 3C [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 87 38 00 90 00 33 [09:38:31]RAPDU: 90 00 [09:38:31]wFMCommunicate OK [09:38:31]wFMCommunicate request_size=10 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 0D 02 02 05 6D 41 29 D3 57 [09:38:31]Write to MH i2c: E2 0D 00 88 38 80 0D 02 02 05 00 6D 41 29 D3 57 00 00 45 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 03 00 88 38 00 90 00 34 [09:38:31]RAPDU: 90 00 [09:38:31]wFMCommunicate OK [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 0D 03 02 [09:38:31]Write to MH i2c: E2 08 00 89 38 80 0D 03 02 00 00 00 00 3C [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0B 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0B 00 89 38 00 90 02 3A 0F DF 14 1F 2B 90 00 55 [09:38:31]RAPDU: 90 02 3A 0F DF 14 1F 2B 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_SignData done [09:38:31]FM_MakeSignedData done [09:38:31]CreateOFDProtocolMessage [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 11 00 00 [09:38:31]Write to MH i2c: E2 08 00 8A 38 80 11 00 00 00 00 00 00 3C [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 17 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 17 00 8A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [09:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:38:31]wFMCommunicate OK [09:38:31]CreateOFDProtocolMessage done [09:38:31]OFDSenderStorePacket 31094 [09:38:31]StoreOFDPacket docnum=31094 [09:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 B5 07 01 57 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1B C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 79 00 00 35 04 06 00 8C 6D 41 29 D3 57 90 02 3A 0F DF 14 1F 2B [09:38:31]CheckFolder [09:38:31]dirname=/storage/ofd_packets [09:38:31]CheckFolder done [09:38:31]ProducePacketName [09:38:31]name=ofd_packets/00031094 [09:38:31]NVStorageSaveData ofd_packets/00031094 [09:38:31]File name is /storage/ofd_packets/00031094 [09:38:31]Write 301 bytes [09:38:31]NVStorageSaveData done [09:38:31]OFDSenderStorePacket done [09:38:31]KKMCreateOFDPacket done [09:38:31]NVStorageSaveData kkm_last_timestamp [09:38:31]File name is /storage/kkm_last_timestamp [09:38:31]Write 4 bytes [09:38:31]NVStorageSaveData done [09:38:31]ExternCall_PrintAddStr [09:38:31]wPrintStart [09:38:31]Write to MH i2c: 01 00 00 8B 38 C3 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: 01 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: 01 07 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: 01 07 00 8B 38 00 00 00 00 00 FF 0F D8 [09:38:31]RasterBufferAndPrint [09:38:31]line Счет N : (1)343532 [09:38:31]line ИНН: 02508201610067 [09:38:31]line Контрольно-Кассовый Чек [09:38:31]line ПРОДАЖА [09:38:31]line ТРК (МРК, ГНК) : 53 [09:38:31]line Товар: 2710124130 [09:38:31]line Аи-92-К-2 [09:38:31]line 7.480 * 66.90 [09:38:31]line = 500.41 [09:38:31]line НДС 12% НСП 1% [09:38:31]line > о реализуемом товаре [09:38:31]line ОКРУГЛЕНИЕ: -0.41 [09:38:31]line ИТОГО: 500.00 [09:38:31]line Внесено: 500.00 [09:38:31]line СДАЧА: 0.00 [09:38:31]line НСП 1% : 4.43 [09:38:31]line НДС 12% : 53.14 [09:38:31]line Наличными: 500.00 [09:38:31]line Безнал.: 0.00 [09:38:31]line Место: АЗС № 78 "Партнер Нефть" [09:38:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:38:31]line СНО: Общий режим [09:38:31]line Чек 38 23.10.2024 09:38 [09:38:31]line Смена: 117 ФФД: 1.0 [09:38:31]line ЗНМ: 0300000137 [09:38:31]line РНМ: 0000000000186857 [09:38:31]line Версия ККМ: v1.0 [09:38:31]line ФМ: 0000000002094219 [09:38:31]line ФД: 31094 [09:38:31]line ФПД: 154400872584023 [09:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093835&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31094&fm=154400872584023&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:32]OFD Sender: Processing packet 31094 [packets to send 11, broken 10] [09:38:32]ProducePacketName [09:38:32]name=ofd_packets/00031094 [09:38:32]OFD Sender: To server: pG, [09:38:32]CommunicateWithHost lk.salyk.kg:30040 [09:38:32]ConnectInit lk.salyk.kg [09:38:32]written 0, free lines is 4095 [09:38:32]Connected sock=10 [09:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 98 B5 07 01 57 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 1B C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 79 00 00 35 04 06 00 8C 6D 41 29 D3 57 90 02 3A 0F DF 14 1F 2B [09:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 86 64 47 00 02 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 79 00 00 F4 03 04 00 96 6E 18 67 B6 04 01 00 00 FE 3B 06 46 17 59 FA F0 [09:38:32]CommunicateWithHost err = 0 [09:38:32]CheckOFDResponse [09:38:32]1017 (14) - 77093643461234 [09:38:32]1041 (16) - 0000000002094219 [09:38:32]1040 (4) - 31094 [09:38:32]1012 (4) - 23.10.2024 03:33 [09:38:32]1206 (1) - 0 [09:38:32]OFD Sender: Remove packet 31094 [09:38:32]ProducePacketName [09:38:32]name=ofd_packets/00031094 [09:38:32]NVStorageDeleteData [09:38:32]Write to MH i2c: 01 00 00 B6 38 EE [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: 01 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: 01 07 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: 01 07 00 B6 38 00 00 00 00 00 E3 0C E4 [09:38:32]RasterBufferAndPrint [09:38:32]line [09:38:32]line [09:38:32]line [09:38:32]line [09:38:32]line [09:38:32]written 0, free lines is 3308 [09:38:32]MH_Cut [09:38:32]Write to MH i2c: D1 01 00 BD 38 01 C7 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: D1 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: D1 01 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: D1 01 00 BD 38 00 C6 [09:38:32]Write to MH i2c: 01 00 00 BE 38 F6 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]OFD Sender: No OFD packet to send [09:38:33]*** Cut start [09:38:33]*** Partial cut [09:38:33]*** CUTSNS_PIN = 1 [09:38:33]*** CUTSNS_PIN = 0 [09:38:33]*** Brake cut motor [09:38:33]Read from MH i2c: 01 [09:38:33]MH_I2C_Read... [09:38:33]*** Stop cut motor [09:38:33]*** Cut end [09:38:33]Read from MH i2c: 01 07 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 BE 38 00 00 00 00 00 FF 0F 0B [09:38:33]process_action close_receipt done [09:38:33]requested_data is exist [09:38:33]produce_requested_data [09:38:33]requested_item fm.sn is exist - process it [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 11 00 00 [09:38:33]Write to MH i2c: E2 08 00 BF 38 80 11 00 00 00 00 00 00 71 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 BF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [09:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:38:33]wFMCommunicate OK [09:38:33]requested_item fd.num is exist - process it [09:38:33]SAM_PROTO_GetFieldsCounters [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 13 00 00 [09:38:33]Write to MH i2c: E2 08 00 C0 38 80 13 00 00 00 00 00 00 74 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 62 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 62 00 C0 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 79 00 00 0E 04 04 00 75 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 70 [09:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 79 00 00 0E 04 04 00 75 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 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_GetFieldsCounters done [09:38:33]requested_item shift.num is exist - process it [09:38:33]requested_item shift.opened is exist - process it [09:38:33]req_shift_opened [09:38:33]FM_GetShiftState [09:38:33]SAM_PROTO_GetShiftState [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 13 01 00 [09:38:33]Write to MH i2c: E2 08 00 C1 38 80 13 01 00 00 00 00 00 76 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:34]Read from MH i2c: E2 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 0E 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: E2 0E 00 C1 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 30 [09:38:34]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:38:34]wFMCommunicate OK [09:38:34]SAM_PROTO_GetShiftState done [09:38:34]FM_GetShiftState done [09:38:34]req_shift_opened done [09:38:34]requested_item shift.open_date is exist - process it [09:38:34]req_shift_open_date [09:38:34]req_shift_open_date done [09:38:34]produce_requested_data done [09:38:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31094,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:38:34]process_action_free close_receipt [09:38:34]json_value_free [09:38:34]json_value_free done [09:38:34]process_json_proto returns [09:38:34]Send response to host [09:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31094,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:38:34]free response buf [09:38:34]execute_script done [09:38:34]execute_script returns [09:38:34]free content buf [09:38:34]Sock 9.Close socket [09:38:34]Sock 9.Thread stoped [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:36]accept exits with 7 [09:39:36]New connection [09:39:36]New thread 3067043172 created [09:39:36]Thread 3066899812 joined [09:39:36]Waiting for new connection... [09:39:36] Sock 7.Parse request [09:39:36]Sock 7.Check first char [09:39:36]Sock 7.First char is OK [09:39:36]request: POST /json_proto HTTP/1.0 [09:39:36]Method: POST [09:39:36]URL: /json_proto [09:39:36]Method is POST - this is cgi request [09:39:36]url: /json_proto [09:39:36]query_string will be loaded in cgi processing [09:39:36]execute_cgi json_proto POST (null) [09:39:36]execute_cgi path=json_proto method=POST [09:39:36]POST find Content-Length [09:39:36]Host: 172.17.51.3:8080 [09:39:36]Content-Length: 843 [09:39:36]Content-Type: application/json [09:39:36] [09:39:36]POST finish read [09:39:36]Found Content-Length = 843 [09:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]execute_script... [09:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:36]POST & json_proto [09:39:36]process_json_proto [09:39:36]json parsed OK: [09:39:36]protocol is kg_v1.0 [09:39:36]action value=close_receipt [09:39:36]process_action close_receipt [09:39:36]cmd_close_receipt [09:39:36]MH_GetDate [09:39:36]Write to MH i2c: F0 00 00 C2 38 E9 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: F0 09 00 C2 38 00 5E C4 18 67 04 C1 95 66 53 [09:39:36]GetLastDocTimeStamp 1729676315 [09:39:36]current date 1729676382 [09:39:36]FM_GetShiftState [09:39:36]SAM_PROTO_GetShiftState [09:39:36]wFMCommunicate request_size=4 [09:39:36]MH_SAM_APDU [09:39:36]CAPDU: 80 13 01 00 [09:39:36]Write to MH i2c: E2 08 00 C3 38 80 13 01 00 00 00 00 00 78 [09:39:36]Write i2c OK [09:39:36]MH_I2C_Read... [09:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:36]Read from MH i2c: E2 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 [09:39:36]MH_I2C_Read... [09:39:36]Read from MH i2c: E2 0E 00 C3 38 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 32 [09:39:36]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:39:36]wFMCommunicate OK [09:39:36]SAM_PROTO_GetShiftState done [09:39:36]FM_GetShiftState done [09:39:36]opened in 1729643755 [09:39:36]opened+sec_in_day 1729730155 [09:39:36]quantity*price = 200031 [09:39:36]sum+1 = 200032 [09:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 39 23.10.2024 09:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31095 ФПД: 104784477370700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31095&fm=104784477370700&tin=02508201610067®Number=0000000000186857&sum=200031 [09:39:37]StoreToDocumentArchive [09:39:37]shift 117 fd 31095 [09:39:37]save to /storage/0117/doc_00031095 [09:39:37]save last doc name /storage/0117/doc_00031095 to /storage/kkm_last_doc_name [09:39:37]save OK [09:39:37]Clear old archive folders... [09:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:37]tlvbuf is 00D62C70 [09:39:37]SAM_PROTO_ClearQueue [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 09 00 00 [09:39:37]Write to MH i2c: E2 08 00 D0 38 80 09 00 00 00 00 00 00 7A [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D0 38 00 90 00 7C [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_ClearQueue done [09:39:37]KKMCreateOFDPacket [09:39:37]OFDProtocolAddRootSTLVToBuf [09:39:37]FM_MakeSignedData [09:39:37]FM_MakeSignedData [09:39:37]SAM_PROTO_SignData [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 01 02 [09:39:37]Write to MH i2c: E2 08 00 D1 38 80 0D 01 02 00 00 00 00 82 [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 03 00 D1 38 00 90 00 7D [09:39:37]RAPDU: 90 00 [09:39:37]wFMCommunicate OK [09:39:37]wFMCommunicate request_size=255 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5E C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 79 00 00 35 04 06 00 5F [09:39:37]Write to MH i2c: E2 02 01 D2 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5E C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 79 00 00 35 04 06 00 5F 00 00 1F [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]OFD Sender: No OFD packet to send [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 D2 38 00 90 00 7E [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=10 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 05 4D 09 8D 39 4C [09:39:38]Write to MH i2c: E2 0D 00 D3 38 80 0D 02 02 05 00 4D 09 8D 39 4C 00 00 F7 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 D3 38 00 90 00 7F [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 03 02 [09:39:38]Write to MH i2c: E2 08 00 D4 38 80 0D 03 02 00 00 00 00 87 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 D4 38 00 F8 37 D7 5E 68 B7 17 D3 90 00 F5 [09:39:38]RAPDU: F8 37 D7 5E 68 B7 17 D3 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_SignData done [09:39:38]FM_MakeSignedData done [09:39:38]CreateOFDProtocolMessage [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 11 00 00 [09:39:38]Write to MH i2c: E2 08 00 D5 38 80 11 00 00 00 00 00 00 87 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 D5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [09:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:39:38]wFMCommunicate OK [09:39:38]CreateOFDProtocolMessage done [09:39:38]OFDSenderStorePacket 31095 [09:39:38]StoreOFDPacket docnum=31095 [09:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 0E 07 01 93 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5E C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 79 00 00 35 04 06 00 5F 4D 09 8D 39 4C F8 37 D7 5E 68 B7 17 D3 [09:39:38]CheckFolder [09:39:38]dirname=/storage/ofd_packets [09:39:38]CheckFolder done [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00031095 [09:39:38]NVStorageSaveData ofd_packets/00031095 [09:39:38]File name is /storage/ofd_packets/00031095 [09:39:38]Write 301 bytes [09:39:38]NVStorageSaveData done [09:39:38]OFDSenderStorePacket done [09:39:38]KKMCreateOFDPacket done [09:39:38]NVStorageSaveData kkm_last_timestamp [09:39:38]File name is /storage/kkm_last_timestamp [09:39:38]Write 4 bytes [09:39:38]NVStorageSaveData done [09:39:38]ExternCall_PrintAddStr [09:39:38]wPrintStart [09:39:38]Write to MH i2c: 01 00 00 D6 38 0E [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 D6 38 00 00 00 00 00 FF 0F 23 [09:39:38]RasterBufferAndPrint [09:39:38]line Счет N : (1)343533 [09:39:38]line ИНН: 02508201610067 [09:39:38]line Контрольно-Кассовый Чек [09:39:38]line ПРОДАЖА [09:39:38]line ТРК (МРК, ГНК) : 43 [09:39:38]line Товар: 2710124130 [09:39:38]line Аи-92-К-2 [09:39:38]line 29.900 * 66.90 [09:39:38]line = 2000.31 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line ИТОГО: 2000.31 [09:39:38]line НСП 1% : 17.70 [09:39:38]line НДС 12% : 212.42 [09:39:38]line Наличными: 0.00 [09:39:38]line Безнал.: 2000.31 [09:39:38]line Место: АЗС № 78 "Партнер Нефть" [09:39:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:39:38]line СНО: Общий режим [09:39:38]line Чек 39 23.10.2024 09:39 [09:39:38]line Смена: 117 ФФД: 1.0 [09:39:38]line ЗНМ: 0300000137 [09:39:38]line РНМ: 0000000000186857 [09:39:38]line Версия ККМ: v1.0 [09:39:38]line Платежная система: АКБ Кыргызстан [09:39:38]line ФМ: 0000000002094219 [09:39:38]line ФД: 31095 [09:39:38]line ФПД: 104784477370700 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31095&fm=104784477370700&tin=02508201610067®Number=0000000000186857&sum=200031 [09:39:38]OFD Sender: Processing packet 31095 [packets to send 11, broken 10] [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00031095 [09:39:38]OFD Sender: To server: pG, [09:39:38]CommunicateWithHost lk.salyk.kg:30040 [09:39:38]ConnectInit lk.salyk.kg [09:39:38]written 0, free lines is 4095 [09:39:38]Connected sock=10 [09:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2A 0E 07 01 93 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5E C4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 79 00 00 35 04 06 00 5F 4D 09 8D 39 4C F8 37 D7 5E 68 B7 17 D3 [09:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DC DA 47 00 AD F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 79 00 00 F4 03 04 00 D8 6E 18 67 B6 04 01 00 00 31 AA 81 EF C5 CA 4F 4B [09:39:38]CommunicateWithHost err = 0 [09:39:38]CheckOFDResponse [09:39:38]1017 (14) - 77093643461234 [09:39:38]1041 (16) - 0000000002094219 [09:39:38]1040 (4) - 31095 [09:39:38]1012 (4) - 23.10.2024 03:34 [09:39:38]1206 (1) - 0 [09:39:38]OFD Sender: Remove packet 31095 [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00031095 [09:39:38]NVStorageDeleteData [09:39:39]Write to MH i2c: 01 00 00 00 39 39 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 00 39 00 00 00 00 00 0D 0D 5A [09:39:39]RasterBufferAndPrint [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]written 0, free lines is 3348 [09:39:39]MH_Cut [09:39:39]Write to MH i2c: D1 01 00 07 39 01 12 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 07 39 00 11 [09:39:39]Write to MH i2c: 01 00 00 08 39 41 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]OFD Sender: No OFD packet to send [09:39:39]*** Cut start [09:39:39]*** Partial cut [09:39:39]*** CUTSNS_PIN = 1 [09:39:39]*** CUTSNS_PIN = 0 [09:39:40]*** Brake cut motor [09:39:40]Read from MH i2c: 01 [09:39:40]MH_I2C_Read... [09:39:40]*** Stop cut motor [09:39:40]*** Cut end [09:39:40]Read from MH i2c: 01 07 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: 01 07 00 08 39 00 00 00 00 00 FF 0F 56 [09:39:40]process_action close_receipt done [09:39:40]requested_data is exist [09:39:40]produce_requested_data [09:39:40]requested_item fm.sn is exist - process it [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 11 00 00 [09:39:40]Write to MH i2c: E2 08 00 09 39 80 11 00 00 00 00 00 00 BC [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:40]Read from MH i2c: E2 17 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 17 00 09 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [09:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:39:40]wFMCommunicate OK [09:39:40]requested_item fd.num is exist - process it [09:39:40]SAM_PROTO_GetFieldsCounters [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 00 00 [09:39:40]Write to MH i2c: E2 08 00 0A 39 80 13 00 00 00 00 00 00 BF [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 62 00 0A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 79 00 00 0E 04 04 00 75 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 BF [09:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 79 00 00 0E 04 04 00 75 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 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetFieldsCounters done [09:39:40]requested_item shift.num is exist - process it [09:39:40]requested_item shift.opened is exist - process it [09:39:40]req_shift_opened [09:39:40]FM_GetShiftState [09:39:40]SAM_PROTO_GetShiftState [09:39:40]wFMCommunicate request_size=4 [09:39:40]MH_SAM_APDU [09:39:40]CAPDU: 80 13 01 00 [09:39:40]Write to MH i2c: E2 08 00 0B 39 80 13 01 00 00 00 00 00 C1 [09:39:40]Write i2c OK [09:39:40]MH_I2C_Read... [09:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:40]Read from MH i2c: E2 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 [09:39:40]MH_I2C_Read... [09:39:40]Read from MH i2c: E2 0E 00 0B 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7B [09:39:40]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:39:40]wFMCommunicate OK [09:39:40]SAM_PROTO_GetShiftState done [09:39:40]FM_GetShiftState done [09:39:40]req_shift_opened done [09:39:40]requested_item shift.open_date is exist - process it [09:39:40]req_shift_open_date [09:39:40]req_shift_open_date done [09:39:40]produce_requested_data done [09:39:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31095,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:39:40]process_action_free close_receipt [09:39:40]json_value_free [09:39:40]json_value_free done [09:39:40]process_json_proto returns [09:39:40]Send response to host [09:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31095,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:39:40]free response buf [09:39:40]execute_script done [09:39:40]execute_script returns [09:39:40]free content buf [09:39:40]Sock 7.Close socket [09:39:40]Sock 7.Thread stoped [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]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:03]accept exits with 9 [09:44:03]New connection [09:44:03]New thread 3066899812 created [09:44:03]Thread 3067043172 joined [09:44:03]Waiting for new connection... [09:44:03] Sock 9.Parse request [09:44:03]Sock 9.Check first char [09:44:03]Sock 9.First char is OK [09:44:03]request: POST /json_proto HTTP/1.0 [09:44:03]Method: POST [09:44:03]URL: /json_proto [09:44:03]Method is POST - this is cgi request [09:44:03]url: /json_proto [09:44:03]query_string will be loaded in cgi processing [09:44:03]execute_cgi json_proto POST (null) [09:44:03]execute_cgi path=json_proto method=POST [09:44:03]POST find Content-Length [09:44:03]Host: 172.17.51.3:8080 [09:44:03]Content-Length: 682 [09:44:03]Content-Type: application/json [09:44:03] [09:44:03]POST finish read [09:44:03]Found Content-Length = 682 [09:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:03]execute_script... [09:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:03]POST & json_proto [09:44:03]process_json_proto [09:44:03]json parsed OK: [09:44:03]protocol is kg_v1.0 [09:44:03]action value=close_receipt [09:44:03]process_action close_receipt [09:44:03]cmd_close_receipt [09:44:03]MH_GetDate [09:44:03]Write to MH i2c: F0 00 00 0C 39 34 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 09 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 09 00 0C 39 00 68 C5 18 67 04 C1 95 66 A9 [09:44:03]GetLastDocTimeStamp 1729676382 [09:44:03]current date 1729676648 [09:44:03]FM_GetShiftState [09:44:03]SAM_PROTO_GetShiftState [09:44:03]wFMCommunicate request_size=4 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 13 01 00 [09:44:03]Write to MH i2c: E2 08 00 0D 39 80 13 01 00 00 00 00 00 C3 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0E 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0E 00 0D 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7D [09:44:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:44:03]wFMCommunicate OK [09:44:03]SAM_PROTO_GetShiftState done [09:44:03]FM_GetShiftState done [09:44:03]opened in 1729643755 [09:44:03]opened+sec_in_day 1729730155 [09:44:03]quantity*price = 100021 [09:44:03]sum+1 = 100023 [09:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 40 23.10.2024 09:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31096 ФПД: 64240847673812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094408&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31096&fm=64240847673812&tin=02508201610067®Number=0000000000186857&sum=100000 [09:44:04]StoreToDocumentArchive [09:44:04]shift 117 fd 31096 [09:44:04]save to /storage/0117/doc_00031096 [09:44:04]save last doc name /storage/0117/doc_00031096 to /storage/kkm_last_doc_name [09:44:04]save OK [09:44:04]Clear old archive folders... [09:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:04]tlvbuf is B6EF0B70 [09:44:04]SAM_PROTO_ClearQueue [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 09 00 00 [09:44:04]Write to MH i2c: E2 08 00 1A 39 80 09 00 00 00 00 00 00 C5 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 1A 39 00 90 00 C7 [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]SAM_PROTO_ClearQueue done [09:44:04]KKMCreateOFDPacket [09:44:04]OFDProtocolAddRootSTLVToBuf [09:44:04]FM_MakeSignedData [09:44:04]FM_MakeSignedData [09:44:04]SAM_PROTO_SignData [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 0D 01 02 [09:44:04]Write to MH i2c: E2 08 00 1B 39 80 0D 01 02 00 00 00 00 CD [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 1B 39 00 90 00 C8 [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]wFMCommunicate request_size=255 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 68 C5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 79 00 00 35 04 06 00 3A [09:44:04]Write to MH i2c: E2 02 01 1C 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 68 C5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 79 00 00 35 04 06 00 3A 00 00 F0 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 1C 39 00 90 00 C9 [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]wFMCommunicate request_size=10 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 0D 02 02 05 6D 3C E7 D9 D4 [09:44:04]Write to MH i2c: E2 0D 00 1D 39 80 0D 02 02 05 00 6D 3C E7 D9 D4 00 00 17 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 1D 39 00 90 00 CA [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 0D 03 02 [09:44:04]Write to MH i2c: E2 08 00 1E 39 80 0D 03 02 00 00 00 00 D2 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:04]OFD Sender: No OFD packet to send [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 0B 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 0B 00 1E 39 00 BB B7 91 A7 73 AC DD 92 90 00 0B [09:44:04]RAPDU: BB B7 91 A7 73 AC DD 92 90 00 [09:44:04]wFMCommunicate OK [09:44:04]SAM_PROTO_SignData done [09:44:04]FM_MakeSignedData done [09:44:04]CreateOFDProtocolMessage [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 11 00 00 [09:44:04]Write to MH i2c: E2 08 00 1F 39 80 11 00 00 00 00 00 00 D2 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 17 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 17 00 1F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [09:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:04]wFMCommunicate OK [09:44:04]CreateOFDProtocolMessage done [09:44:04]OFDSenderStorePacket 31096 [09:44:04]StoreOFDPacket docnum=31096 [09:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 FB 07 01 B5 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 68 C5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 79 00 00 35 04 06 00 3A 6D 3C E7 D9 D4 BB B7 91 A7 73 AC DD 92 [09:44:04]CheckFolder [09:44:04]dirname=/storage/ofd_packets [09:44:04]CheckFolder done [09:44:04]ProducePacketName [09:44:04]name=ofd_packets/00031096 [09:44:04]NVStorageSaveData ofd_packets/00031096 [09:44:04]File name is /storage/ofd_packets/00031096 [09:44:04]Write 301 bytes [09:44:04]NVStorageSaveData done [09:44:04]OFDSenderStorePacket done [09:44:04]KKMCreateOFDPacket done [09:44:04]NVStorageSaveData kkm_last_timestamp [09:44:04]File name is /storage/kkm_last_timestamp [09:44:04]Write 4 bytes [09:44:04]NVStorageSaveData done [09:44:04]ExternCall_PrintAddStr [09:44:04]wPrintStart [09:44:04]Write to MH i2c: 01 00 00 20 39 59 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 07 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 07 00 20 39 00 00 00 00 00 FF 0F 6E [09:44:04]RasterBufferAndPrint [09:44:04]line Счет N : (1)343534 [09:44:04]line ИНН: 02508201610067 [09:44:04]line Контрольно-Кассовый Чек [09:44:04]line ПРОДАЖА [09:44:04]line ТРК (МРК, ГНК) : 52 [09:44:04]line Товар: 2710124500 [09:44:04]line Аи-95-К-3 [09:44:04]line 13.480 * 74.20 [09:44:04]line = 1000.22 [09:44:04]line НДС 12% НСП 1% [09:44:04]line > о реализуемом товаре [09:44:04]line ОКРУГЛЕНИЕ: -0.22 [09:44:04]line ИТОГО: 1000.00 [09:44:04]line Внесено: 1000.00 [09:44:04]line СДАЧА: 0.00 [09:44:04]line НСП 1% : 8.85 [09:44:04]line НДС 12% : 106.22 [09:44:04]line Наличными: 1000.00 [09:44:04]line Безнал.: 0.00 [09:44:04]line Место: АЗС № 78 "Партнер Нефть" [09:44:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:44:04]line СНО: Общий режим [09:44:04]line Чек 40 23.10.2024 09:44 [09:44:04]line Смена: 117 ФФД: 1.0 [09:44:04]line ЗНМ: 0300000137 [09:44:04]line РНМ: 0000000000186857 [09:44:04]line Версия ККМ: v1.0 [09:44:04]line ФМ: 0000000002094219 [09:44:04]line ФД: 31096 [09:44:04]line ФПД: 64240847673812 [09:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094408&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31096&fm=64240847673812&tin=02508201610067®Number=0000000000186857&sum=100000 [09:44:05]OFD Sender: Processing packet 31096 [packets to send 11, broken 10] [09:44:05]ProducePacketName [09:44:05]name=ofd_packets/00031096 [09:44:05]OFD Sender: To server: pG, [09:44:05]CommunicateWithHost lk.salyk.kg:30040 [09:44:05]ConnectInit lk.salyk.kg [09:44:05]written 0, free lines is 4095 [09:44:05]Connected sock=10 [09:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 FB 07 01 B5 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 68 C5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 79 00 00 35 04 06 00 3A 6D 3C E7 D9 D4 BB B7 91 A7 73 AC DD 92 [09:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7F DC 47 00 04 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 79 00 00 F4 03 04 00 E3 6F 18 67 B6 04 01 00 00 9F 00 C0 03 C2 B2 A4 7D [09:44:05]CommunicateWithHost err = 0 [09:44:05]CheckOFDResponse [09:44:05]1017 (14) - 77093643461234 [09:44:05]1041 (16) - 0000000002094219 [09:44:05]1040 (4) - 31096 [09:44:05]1012 (4) - 23.10.2024 03:39 [09:44:05]1206 (1) - 0 [09:44:05]OFD Sender: Remove packet 31096 [09:44:05]ProducePacketName [09:44:05]name=ofd_packets/00031096 [09:44:05]NVStorageDeleteData [09:44:05]Write to MH i2c: 01 00 00 4B 39 84 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 4B 39 00 00 00 00 00 E6 0C 7D [09:44:05]RasterBufferAndPrint [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]written 0, free lines is 3312 [09:44:05]MH_Cut [09:44:05]Write to MH i2c: D1 01 00 52 39 01 5D [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 52 39 00 5C [09:44:05]Write to MH i2c: 01 00 00 53 39 8C [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]OFD Sender: No OFD packet to send [09:44:06]*** Cut start [09:44:06]*** Partial cut [09:44:06]*** CUTSNS_PIN = 1 [09:44:06]*** CUTSNS_PIN = 0 [09:44:06]*** Brake cut motor [09:44:06]Read from MH i2c: 01 [09:44:06]MH_I2C_Read... [09:44:06]*** Stop cut motor [09:44:06]*** Cut end [09:44:06]Read from MH i2c: 01 07 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: 01 07 00 53 39 00 00 00 00 00 FF 0F A1 [09:44:06]process_action close_receipt done [09:44:06]requested_data is exist [09:44:06]produce_requested_data [09:44:06]requested_item fm.sn is exist - process it [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 11 00 00 [09:44:06]Write to MH i2c: E2 08 00 54 39 80 11 00 00 00 00 00 00 07 [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:06]Read from MH i2c: E2 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 17 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 17 00 54 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [09:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:06]wFMCommunicate OK [09:44:06]requested_item fd.num is exist - process it [09:44:06]SAM_PROTO_GetFieldsCounters [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 13 00 00 [09:44:06]Write to MH i2c: E2 08 00 55 39 80 13 00 00 00 00 00 00 0A [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 62 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 62 00 55 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 79 00 00 0E 04 04 00 75 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 0E [09:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 79 00 00 0E 04 04 00 75 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 [09:44:07]wFMCommunicate OK [09:44:07]SAM_PROTO_GetFieldsCounters done [09:44:07]requested_item shift.num is exist - process it [09:44:07]requested_item shift.opened is exist - process it [09:44:07]req_shift_opened [09:44:07]FM_GetShiftState [09:44:07]SAM_PROTO_GetShiftState [09:44:07]wFMCommunicate request_size=4 [09:44:07]MH_SAM_APDU [09:44:07]CAPDU: 80 13 01 00 [09:44:07]Write to MH i2c: E2 08 00 56 39 80 13 01 00 00 00 00 00 0C [09:44:07]Write i2c OK [09:44:07]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 56 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C6 [09:44:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:44:07]wFMCommunicate OK [09:44:07]SAM_PROTO_GetShiftState done [09:44:07]FM_GetShiftState done [09:44:07]req_shift_opened done [09:44:07]requested_item shift.open_date is exist - process it [09:44:07]req_shift_open_date [09:44:07]req_shift_open_date done [09:44:07]produce_requested_data done [09:44:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31096,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:44:07]process_action_free close_receipt [09:44:07]json_value_free [09:44:07]json_value_free done [09:44:07]process_json_proto returns [09:44:07]Send response to host [09:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31096,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:44:07]free response buf [09:44:07]execute_script done [09:44:07]execute_script returns [09:44:07]free content buf [09:44:07]Sock 9.Close socket [09:44:07]Sock 9.Thread stoped [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:47]accept exits with 7 [09:46:47]New connection [09:46:47]New thread 3067043172 created [09:46:47]Thread 3066899812 joined [09:46:47]Waiting for new connection... [09:46:47] Sock 7.Parse request [09:46:47]Sock 7.Check first char [09:46:47]Sock 7.First char is OK [09:46:47]request: POST /json_proto HTTP/1.0 [09:46:47]Method: POST [09:46:47]URL: /json_proto [09:46:47]Method is POST - this is cgi request [09:46:47]url: /json_proto [09:46:47]query_string will be loaded in cgi processing [09:46:47]execute_cgi json_proto POST (null) [09:46:47]execute_cgi path=json_proto method=POST [09:46:47]POST find Content-Length [09:46:47]Host: 172.17.51.3:8080 [09:46:47]Content-Length: 677 [09:46:47]Content-Type: application/json [09:46:47] [09:46:47]POST finish read [09:46:47]Found Content-Length = 677 [09:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:47]execute_script... [09:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:47]POST & json_proto [09:46:47]process_json_proto [09:46:47]json parsed OK: [09:46:47]protocol is kg_v1.0 [09:46:47]action value=close_receipt [09:46:47]process_action close_receipt [09:46:47]cmd_close_receipt [09:46:47]MH_GetDate [09:46:47]Write to MH i2c: F0 00 00 57 39 7F [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: F0 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: F0 09 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: F0 09 00 57 39 00 0C C6 18 67 04 C1 95 66 99 [09:46:47]GetLastDocTimeStamp 1729676648 [09:46:47]current date 1729676812 [09:46:47]FM_GetShiftState [09:46:47]SAM_PROTO_GetShiftState [09:46:47]wFMCommunicate request_size=4 [09:46:47]MH_SAM_APDU [09:46:47]CAPDU: 80 13 01 00 [09:46:47]Write to MH i2c: E2 08 00 58 39 80 13 01 00 00 00 00 00 0E [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:47]Read from MH i2c: E2 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 0E 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: E2 0E 00 58 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C8 [09:46:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:46:47]wFMCommunicate OK [09:46:47]SAM_PROTO_GetShiftState done [09:46:47]FM_GetShiftState done [09:46:47]opened in 1729643755 [09:46:47]opened+sec_in_day 1729730155 [09:46:47]quantity*price = 50041 [09:46:47]sum+1 = 50042 [09:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 41 23.10.2024 09:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31097 ФПД: 197593752724406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094652&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31097&fm=197593752724406&tin=02508201610067®Number=0000000000186857&sum=50000 [09:46:48]StoreToDocumentArchive [09:46:48]shift 117 fd 31097 [09:46:48]save to /storage/0117/doc_00031097 [09:46:48]save last doc name /storage/0117/doc_00031097 to /storage/kkm_last_doc_name [09:46:48]save OK [09:46:48]Clear old archive folders... [09:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:48]tlvbuf is 00CDACA0 [09:46:48]SAM_PROTO_ClearQueue [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 09 00 00 [09:46:48]Write to MH i2c: E2 08 00 65 39 80 09 00 00 00 00 00 00 10 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 65 39 00 90 00 12 [09:46:48]RAPDU: 90 00 [09:46:48]wFMCommunicate OK [09:46:48]SAM_PROTO_ClearQueue done [09:46:48]KKMCreateOFDPacket [09:46:48]OFDProtocolAddRootSTLVToBuf [09:46:48]FM_MakeSignedData [09:46:48]FM_MakeSignedData [09:46:48]SAM_PROTO_SignData [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 0D 01 02 [09:46:48]Write to MH i2c: E2 08 00 66 39 80 0D 01 02 00 00 00 00 18 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 66 39 00 90 00 13 [09:46:48]RAPDU: 90 00 [09:46:48]wFMCommunicate OK [09:46:48]wFMCommunicate request_size=255 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0C C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 79 00 00 35 04 06 00 B3 [09:46:48]Write to MH i2c: E2 02 01 67 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0C C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 79 00 00 35 04 06 00 B3 00 00 3D [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 67 39 00 90 00 14 [09:46:48]RAPDU: 90 00 [09:46:48]wFMCommunicate OK [09:46:48]wFMCommunicate request_size=10 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 0D 02 02 05 B5 E1 70 E3 B6 [09:46:48]Write to MH i2c: E2 0D 00 68 39 80 0D 02 02 05 00 B5 E1 70 E3 B6 00 00 C4 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 03 00 68 39 00 90 00 15 [09:46:48]RAPDU: 90 00 [09:46:48]wFMCommunicate OK [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 0D 03 02 [09:46:48]Write to MH i2c: E2 08 00 69 39 80 0D 03 02 00 00 00 00 1D [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0B 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0B 00 69 39 00 E0 A0 24 DF A2 57 B5 F8 90 00 47 [09:46:48]RAPDU: E0 A0 24 DF A2 57 B5 F8 90 00 [09:46:48]wFMCommunicate OK [09:46:48]SAM_PROTO_SignData done [09:46:48]FM_MakeSignedData done [09:46:48]CreateOFDProtocolMessage [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 11 00 00 [09:46:48]Write to MH i2c: E2 08 00 6A 39 80 11 00 00 00 00 00 00 1D [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 6A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [09:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:46:48]wFMCommunicate OK [09:46:48]CreateOFDProtocolMessage done [09:46:48]OFDSenderStorePacket 31097 [09:46:48]StoreOFDPacket docnum=31097 [09:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AF D7 07 01 85 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0C C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 79 00 00 35 04 06 00 B3 B5 E1 70 E3 B6 E0 A0 24 DF A2 57 B5 F8 [09:46:48]CheckFolder [09:46:48]dirname=/storage/ofd_packets [09:46:48]CheckFolder done [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00031097 [09:46:48]NVStorageSaveData ofd_packets/00031097 [09:46:48]File name is /storage/ofd_packets/00031097 [09:46:48]Write 301 bytes [09:46:48]NVStorageSaveData done [09:46:48]OFDSenderStorePacket done [09:46:48]KKMCreateOFDPacket done [09:46:48]NVStorageSaveData kkm_last_timestamp [09:46:48]File name is /storage/kkm_last_timestamp [09:46:48]Write 4 bytes [09:46:48]NVStorageSaveData done [09:46:48]ExternCall_PrintAddStr [09:46:48]wPrintStart [09:46:48]Write to MH i2c: 01 00 00 6B 39 A4 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 6B 39 00 00 00 00 00 FF 0F B9 [09:46:48]RasterBufferAndPrint [09:46:48]line Счет N : (1)343535 [09:46:48]line ИНН: 02508201610067 [09:46:48]line Контрольно-Кассовый Чек [09:46:48]line ПРОДАЖА [09:46:48]line ТРК (МРК, ГНК) : 63 [09:46:48]line Товар: 2710124130 [09:46:48]line Аи-92-К-2 [09:46:48]line 7.480 * 66.90 [09:46:48]line = 500.41 [09:46:48]line НДС 12% НСП 1% [09:46:48]line > о реализуемом товаре [09:46:48]line ОКРУГЛЕНИЕ: -0.41 [09:46:48]line ИТОГО: 500.00 [09:46:48]line Внесено: 500.00 [09:46:48]line СДАЧА: 0.00 [09:46:48]line НСП 1% : 4.43 [09:46:48]line НДС 12% : 53.14 [09:46:48]line Наличными: 500.00 [09:46:48]line Безнал.: 0.00 [09:46:48]line Место: АЗС № 78 "Партнер Нефть" [09:46:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:46:48]line СНО: Общий режим [09:46:48]line Чек 41 23.10.2024 09:46 [09:46:48]line Смена: 117 ФФД: 1.0 [09:46:48]line ЗНМ: 0300000137 [09:46:48]line РНМ: 0000000000186857 [09:46:48]line Версия ККМ: v1.0 [09:46:48]line ФМ: 0000000002094219 [09:46:48]line ФД: 31097 [09:46:48]line ФПД: 197593752724406 [09:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094652&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31097&fm=197593752724406&tin=02508201610067®Number=0000000000186857&sum=50000 [09:46:49]OFD Sender: Processing packet 31097 [packets to send 11, broken 10] [09:46:49]ProducePacketName [09:46:49]name=ofd_packets/00031097 [09:46:49]OFD Sender: To server: pG, [09:46:49]CommunicateWithHost lk.salyk.kg:30040 [09:46:49]ConnectInit lk.salyk.kg [09:46:49]written 0, free lines is 4095 [09:46:49]Connected sock=10 [09:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AF D7 07 01 85 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0C C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 79 00 00 35 04 06 00 B3 B5 E1 70 E3 B6 E0 A0 24 DF A2 57 B5 F8 [09:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9B BF 47 00 75 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 79 00 00 F4 03 04 00 87 70 18 67 B6 04 01 00 00 F5 E8 24 3C 79 0F FA 14 [09:46:49]CommunicateWithHost err = 0 [09:46:49]CheckOFDResponse [09:46:49]1017 (14) - 77093643461234 [09:46:49]1041 (16) - 0000000002094219 [09:46:49]1040 (4) - 31097 [09:46:49]1012 (4) - 23.10.2024 03:41 [09:46:49]1206 (1) - 0 [09:46:49]OFD Sender: Remove packet 31097 [09:46:49]ProducePacketName [09:46:49]name=ofd_packets/00031097 [09:46:49]NVStorageDeleteData [09:46:49]Write to MH i2c: 01 00 00 96 39 CF [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: 01 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: 01 07 00 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: 01 07 00 96 39 00 00 00 00 00 ED 0C CF [09:46:49]RasterBufferAndPrint [09:46:49]line [09:46:49]line [09:46:49]line [09:46:49]line [09:46:49]line [09:46:49]written 0, free lines is 3318 [09:46:49]MH_Cut [09:46:49]Write to MH i2c: D1 01 00 9D 39 01 A8 [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: D1 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: D1 01 00 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: D1 01 00 9D 39 00 A7 [09:46:49]Write to MH i2c: 01 00 00 9E 39 D7 [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:49]OFD Sender: No OFD packet to send [09:46:50]*** Cut start [09:46:50]*** Partial cut [09:46:50]*** CUTSNS_PIN = 1 [09:46:50]*** CUTSNS_PIN = 0 [09:46:50]*** Brake cut motor [09:46:50]Read from MH i2c: 01 [09:46:50]MH_I2C_Read... [09:46:50]*** Stop cut motor [09:46:50]*** Cut end [09:46:50]Read from MH i2c: 01 07 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: 01 07 00 9E 39 00 00 00 00 00 FF 0F EC [09:46:50]process_action close_receipt done [09:46:50]requested_data is exist [09:46:50]produce_requested_data [09:46:50]requested_item fm.sn is exist - process it [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 11 00 00 [09:46:50]Write to MH i2c: E2 08 00 9F 39 80 11 00 00 00 00 00 00 52 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 9F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [09:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:46:50]wFMCommunicate OK [09:46:50]requested_item fd.num is exist - process it [09:46:50]SAM_PROTO_GetFieldsCounters [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 13 00 00 [09:46:50]Write to MH i2c: E2 08 00 A0 39 80 13 00 00 00 00 00 00 55 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 62 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 62 00 A0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 79 00 00 0E 04 04 00 75 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 5D [09:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 79 00 00 0E 04 04 00 75 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 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_GetFieldsCounters done [09:46:50]requested_item shift.num is exist - process it [09:46:50]requested_item shift.opened is exist - process it [09:46:50]req_shift_opened [09:46:50]FM_GetShiftState [09:46:50]SAM_PROTO_GetShiftState [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 13 01 00 [09:46:50]Write to MH i2c: E2 08 00 A1 39 80 13 01 00 00 00 00 00 57 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 A1 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 11 [09:46:50]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:46:51]wFMCommunicate OK [09:46:51]SAM_PROTO_GetShiftState done [09:46:51]FM_GetShiftState done [09:46:51]req_shift_opened done [09:46:51]requested_item shift.open_date is exist - process it [09:46:51]req_shift_open_date [09:46:51]req_shift_open_date done [09:46:51]produce_requested_data done [09:46:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31097,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:46:51]process_action_free close_receipt [09:46:51]json_value_free [09:46:51]json_value_free done [09:46:51]process_json_proto returns [09:46:51]Send response to host [09:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31097,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:46:51]free response buf [09:46:51]execute_script done [09:46:51]execute_script returns [09:46:51]free content buf [09:46:51]Sock 7.Close socket [09:46:51]Sock 7.Thread stoped [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:57]accept exits with 9 [09:47:57]New connection [09:47:57]New thread 3066899812 created [09:47:57]Thread 3067043172 joined [09:47:57]Waiting for new connection... [09:47:57] Sock 9.Parse request [09:47:57]Sock 9.Check first char [09:47:57]Sock 9.First char is OK [09:47:57]request: POST /json_proto HTTP/1.0 [09:47:57]Method: POST [09:47:57]URL: /json_proto [09:47:57]Method is POST - this is cgi request [09:47:57]url: /json_proto [09:47:57]query_string will be loaded in cgi processing [09:47:57]execute_cgi json_proto POST (null) [09:47:57]execute_cgi path=json_proto method=POST [09:47:57]POST find Content-Length [09:47:57]Host: 172.17.51.3:8080 [09:47:57]Content-Length: 682 [09:47:57]Content-Type: application/json [09:47:57] [09:47:57]POST finish read [09:47:57]Found Content-Length = 682 [09:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:57]execute_script... [09:47:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:57]POST & json_proto [09:47:57]process_json_proto [09:47:57]json parsed OK: [09:47:57]protocol is kg_v1.0 [09:47:57]action value=close_receipt [09:47:57]process_action close_receipt [09:47:57]cmd_close_receipt [09:47:57]MH_GetDate [09:47:57]Write to MH i2c: F0 00 00 A2 39 CA [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 09 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: F0 09 00 A2 39 00 52 C6 18 67 04 C1 95 66 2A [09:47:57]GetLastDocTimeStamp 1729676812 [09:47:57]current date 1729676882 [09:47:57]FM_GetShiftState [09:47:57]SAM_PROTO_GetShiftState [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 01 00 [09:47:57]Write to MH i2c: E2 08 00 A3 39 80 13 01 00 00 00 00 00 59 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 A3 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 13 [09:47:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetShiftState done [09:47:57]FM_GetShiftState done [09:47:57]opened in 1729643755 [09:47:57]opened+sec_in_day 1729730155 [09:47:57]quantity*price = 100015 [09:47:57]sum+1 = 100017 [09:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 42 23.10.2024 09:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31098 ФПД: 279504783139802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31098&fm=279504783139802&tin=02508201610067®Number=0000000000186857&sum=100000 [09:47:58]StoreToDocumentArchive [09:47:58]shift 117 fd 31098 [09:47:58]save to /storage/0117/doc_00031098 [09:47:58]save last doc name /storage/0117/doc_00031098 to /storage/kkm_last_doc_name [09:47:58]save OK [09:47:58]Clear old archive folders... [09:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:58]tlvbuf is B6F6EBE0 [09:47:58]SAM_PROTO_ClearQueue [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 09 00 00 [09:47:58]Write to MH i2c: E2 08 00 B0 39 80 09 00 00 00 00 00 00 5B [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 B0 39 00 90 00 5D [09:47:58]RAPDU: 90 00 [09:47:58]wFMCommunicate OK [09:47:58]SAM_PROTO_ClearQueue done [09:47:58]KKMCreateOFDPacket [09:47:58]OFDProtocolAddRootSTLVToBuf [09:47:58]FM_MakeSignedData [09:47:58]FM_MakeSignedData [09:47:58]SAM_PROTO_SignData [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 0D 01 02 [09:47:58]Write to MH i2c: E2 08 00 B1 39 80 0D 01 02 00 00 00 00 63 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 B1 39 00 90 00 5E [09:47:58]RAPDU: 90 00 [09:47:58]wFMCommunicate OK [09:47:58]wFMCommunicate request_size=255 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 79 00 00 35 04 06 00 FE [09:47:58]Write to MH i2c: E2 02 01 B2 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 79 00 00 35 04 06 00 FE 00 00 15 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 03 00 B2 39 00 90 00 5F [09:47:58]RAPDU: 90 00 [09:47:58]wFMCommunicate OK [09:47:58]wFMCommunicate request_size=10 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 0D 02 02 05 35 47 4F E3 DA [09:47:58]Write to MH i2c: E2 0D 00 B3 39 80 0D 02 02 05 00 35 47 4F E3 DA 00 00 F8 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 03 00 B3 39 00 90 00 60 [09:47:59]RAPDU: 90 00 [09:47:59]wFMCommunicate OK [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 0D 03 02 [09:47:59]Write to MH i2c: E2 08 00 B4 39 80 0D 03 02 00 00 00 00 68 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0B 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0B 00 B4 39 00 91 11 71 1A 52 3F ED 05 90 00 19 [09:47:59]RAPDU: 91 11 71 1A 52 3F ED 05 90 00 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_SignData done [09:47:59]FM_MakeSignedData done [09:47:59]CreateOFDProtocolMessage [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 11 00 00 [09:47:59]Write to MH i2c: E2 08 00 B5 39 80 11 00 00 00 00 00 00 68 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 17 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 17 00 B5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [09:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:47:59]wFMCommunicate OK [09:47:59]CreateOFDProtocolMessage done [09:47:59]OFDSenderStorePacket 31098 [09:47:59]StoreOFDPacket docnum=31098 [09:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 01 07 01 E4 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 79 00 00 35 04 06 00 FE 35 47 4F E3 DA 91 11 71 1A 52 3F ED 05 [09:47:59]CheckFolder [09:47:59]dirname=/storage/ofd_packets [09:47:59]CheckFolder done [09:47:59]ProducePacketName [09:47:59]name=ofd_packets/00031098 [09:47:59]NVStorageSaveData ofd_packets/00031098 [09:47:59]File name is /storage/ofd_packets/00031098 [09:47:59]Write 301 bytes [09:47:59]NVStorageSaveData done [09:47:59]OFDSenderStorePacket done [09:47:59]KKMCreateOFDPacket done [09:47:59]NVStorageSaveData kkm_last_timestamp [09:47:59]File name is /storage/kkm_last_timestamp [09:47:59]Write 4 bytes [09:47:59]NVStorageSaveData done [09:47:59]ExternCall_PrintAddStr [09:47:59]wPrintStart [09:47:59]Write to MH i2c: 01 00 00 B6 39 EF [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 FF 0F 04 [09:47:59]RasterBufferAndPrint [09:47:59]line Счет N : (1)343536 [09:47:59]line ИНН: 02508201610067 [09:47:59]line Контрольно-Кассовый Чек [09:47:59]line ПРОДАЖА [09:47:59]line ТРК (МРК, ГНК) : 53 [09:47:59]line Товар: 2710124130 [09:47:59]line Аи-92-К-2 [09:47:59]line 14.950 * 66.90 [09:47:59]line = 1000.16 [09:47:59]line НДС 12% НСП 1% [09:47:59]line > о реализуемом товаре [09:47:59]line ОКРУГЛЕНИЕ: -0.16 [09:47:59]line ИТОГО: 1000.00 [09:47:59]line Внесено: 1000.00 [09:47:59]line СДАЧА: 0.00 [09:47:59]line НСП 1% : 8.85 [09:47:59]line НДС 12% : 106.21 [09:47:59]line Наличными: 1000.00 [09:47:59]line Безнал.: 0.00 [09:47:59]line Место: АЗС № 78 "Партнер Нефть" [09:47:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:47:59]line СНО: Общий режим [09:47:59]line Чек 42 23.10.2024 09:48 [09:47:59]line Смена: 117 ФФД: 1.0 [09:47:59]line ЗНМ: 0300000137 [09:47:59]line РНМ: 0000000000186857 [09:47:59]line Версия ККМ: v1.0 [09:47:59]line ФМ: 0000000002094219 [09:47:59]line ФД: 31098 [09:47:59]line ФПД: 279504783139802 [09:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31098&fm=279504783139802&tin=02508201610067®Number=0000000000186857&sum=100000 [09:47:59]OFD Sender: Processing packet 31098 [packets to send 11, broken 10] [09:47:59]ProducePacketName [09:47:59]name=ofd_packets/00031098 [09:47:59]OFD Sender: To server: pG, [09:47:59]CommunicateWithHost lk.salyk.kg:30040 [09:47:59]ConnectInit lk.salyk.kg [09:47:59]written 0, free lines is 4095 [09:47:59]Connected sock=10 [09:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 01 07 01 E4 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 C6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 79 00 00 35 04 06 00 FE 35 47 4F E3 DA 91 11 71 1A 52 3F ED 05 [09:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1E DB 47 00 42 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 32 30 39 34 32 31 39 10 04 04 00 7A 79 00 00 F4 03 04 00 CD 70 18 67 B6 04 01 00 00 89 89 F7 C7 21 DE 85 80 [09:47:59]CommunicateWithHost err = 0 [09:47:59]CheckOFDResponse [09:47:59]1017 (14) - 77093643461234 [09:47:59]1041 (16) - 0000000002094219 [09:47:59]1040 (4) - 31098 [09:47:59]1012 (4) - 23.10.2024 03:43 [09:47:59]1206 (1) - 0 [09:47:59]OFD Sender: Remove packet 31098 [09:47:59]ProducePacketName [09:47:59]name=ofd_packets/00031098 [09:47:59]NVStorageDeleteData [09:47:59]Write to MH i2c: 01 00 00 E1 39 1A [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: 01 07 00 E1 39 00 00 00 00 00 EA 0C 17 [09:47:59]RasterBufferAndPrint [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]line [09:47:59]written 0, free lines is 3315 [09:47:59]MH_Cut [09:47:59]Write to MH i2c: D1 01 00 E8 39 01 F3 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 01 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: D1 01 00 E8 39 00 F2 [09:47:59]Write to MH i2c: 01 00 00 E9 39 22 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:48:00]OFD Sender: No OFD packet to send [09:48:00]*** Cut start [09:48:00]*** Partial cut [09:48:00]*** CUTSNS_PIN = 1 [09:48:00]*** CUTSNS_PIN = 0 [09:48:00]*** Brake cut motor [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]*** Stop cut motor [09:48:01]*** Cut end [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 E9 39 00 00 00 00 00 FF 0F 37 [09:48:01]process_action close_receipt done [09:48:01]requested_data is exist [09:48:01]produce_requested_data [09:48:01]requested_item fm.sn is exist - process it [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 11 00 00 [09:48:01]Write to MH i2c: E2 08 00 EA 39 80 11 00 00 00 00 00 00 9D [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 17 00 EA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EB [09:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:48:01]wFMCommunicate OK [09:48:01]requested_item fd.num is exist - process it [09:48:01]SAM_PROTO_GetFieldsCounters [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 13 00 00 [09:48:01]Write to MH i2c: E2 08 00 EB 39 80 13 00 00 00 00 00 00 A0 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 62 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 62 00 EB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 79 00 00 0E 04 04 00 75 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 AC [09:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 79 00 00 0E 04 04 00 75 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 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_GetFieldsCounters done [09:48:01]requested_item shift.num is exist - process it [09:48:01]requested_item shift.opened is exist - process it [09:48:01]req_shift_opened [09:48:01]FM_GetShiftState [09:48:01]SAM_PROTO_GetShiftState [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 13 01 00 [09:48:01]Write to MH i2c: E2 08 00 EC 39 80 13 01 00 00 00 00 00 A2 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0E 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 0E 00 EC 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5C [09:48:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_GetShiftState done [09:48:01]FM_GetShiftState done [09:48:01]req_shift_opened done [09:48:01]requested_item shift.open_date is exist - process it [09:48:01]req_shift_open_date [09:48:01]req_shift_open_date done [09:48:01]produce_requested_data done [09:48:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31098,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:48:01]process_action_free close_receipt [09:48:01]json_value_free [09:48:01]json_value_free done [09:48:01]process_json_proto returns [09:48:01]Send response to host [09:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31098,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:48:01]free response buf [09:48:01]execute_script done [09:48:01]execute_script returns [09:48:01]free content buf [09:48:01]Sock 9.Close socket [09:48:01]Sock 9.Thread stoped [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:41]accept exits with 7 [09:53:41]New connection [09:53:41]New thread 3067043172 created [09:53:41]Thread 3066899812 joined [09:53:41]Waiting for new connection... [09:53:41] Sock 7.Parse request [09:53:41]Sock 7.Check first char [09:53:41]Sock 7.First char is OK [09:53:41]request: POST /json_proto HTTP/1.0 [09:53:41]Method: POST [09:53:41]URL: /json_proto [09:53:41]Method is POST - this is cgi request [09:53:41]url: /json_proto [09:53:41]query_string will be loaded in cgi processing [09:53:41]execute_cgi json_proto POST (null) [09:53:41]execute_cgi path=json_proto method=POST [09:53:41]POST find Content-Length [09:53:41]Host: 172.17.51.3:8080 [09:53:41]Content-Length: 678 [09:53:41]Content-Type: application/json [09:53:41] [09:53:41]POST finish read [09:53:41]Found Content-Length = 678 [09:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:41]execute_script... [09:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:41]POST & json_proto [09:53:41]process_json_proto [09:53:41]json parsed OK: [09:53:41]protocol is kg_v1.0 [09:53:41]action value=close_receipt [09:53:41]process_action close_receipt [09:53:41]cmd_close_receipt [09:53:41]MH_GetDate [09:53:41]Write to MH i2c: F0 00 00 ED 39 15 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 09 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 09 00 ED 39 00 AA C7 18 67 04 C1 95 66 CE [09:53:41]GetLastDocTimeStamp 1729676882 [09:53:41]current date 1729677226 [09:53:41]FM_GetShiftState [09:53:41]SAM_PROTO_GetShiftState [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 13 01 00 [09:53:41]Write to MH i2c: E2 08 00 EE 39 80 13 01 00 00 00 00 00 A4 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 EE 39 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5E [09:53:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_GetShiftState done [09:53:41]FM_GetShiftState done [09:53:41]opened in 1729643755 [09:53:41]opened+sec_in_day 1729730155 [09:53:41]quantity*price = 70044 [09:53:41]sum+1 = 70045 [09:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 43 23.10.2024 09:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31099 ФПД: 245857797861523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31099&fm=245857797861523&tin=02508201610067®Number=0000000000186857&sum=70000 [09:53:42]StoreToDocumentArchive [09:53:42]shift 117 fd 31099 [09:53:42]save to /storage/0117/doc_00031099 [09:53:42]save last doc name /storage/0117/doc_00031099 to /storage/kkm_last_doc_name [09:53:42]save OK [09:53:42]Clear old archive folders... [09:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:42]tlvbuf is 00D65CF0 [09:53:42]SAM_PROTO_ClearQueue [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 09 00 00 [09:53:42]Write to MH i2c: E2 08 00 FB 39 80 09 00 00 00 00 00 00 A6 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 FB 39 00 90 00 A8 [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]SAM_PROTO_ClearQueue done [09:53:42]KKMCreateOFDPacket [09:53:42]OFDProtocolAddRootSTLVToBuf [09:53:42]FM_MakeSignedData [09:53:42]FM_MakeSignedData [09:53:42]SAM_PROTO_SignData [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 01 02 [09:53:42]Write to MH i2c: E2 08 00 FC 39 80 0D 01 02 00 00 00 00 AE [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 FC 39 00 90 00 A9 [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]wFMCommunicate request_size=255 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 AA C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 79 00 00 35 04 06 00 DF [09:53:42]Write to MH i2c: E2 02 01 FD 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 AA C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 79 00 00 35 04 06 00 DF 00 00 B2 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 FD 39 00 90 00 AA [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]wFMCommunicate request_size=10 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 02 02 05 9B 3A B4 F0 93 [09:53:42]Write to MH i2c: E2 0D 00 FE 39 80 0D 02 02 05 00 9B 3A B4 F0 93 00 00 C7 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 FE 39 00 90 00 AB [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 03 02 [09:53:42]Write to MH i2c: E2 08 00 FF 39 80 0D 03 02 00 00 00 00 B3 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 FF 39 00 26 23 D2 67 E6 B9 1C 26 90 00 17 [09:53:43]RAPDU: 26 23 D2 67 E6 B9 1C 26 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_SignData done [09:53:43]FM_MakeSignedData done [09:53:43]CreateOFDProtocolMessage [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 00 3A 80 11 00 00 00 00 00 00 B4 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 00 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:53:43]wFMCommunicate OK [09:53:43]CreateOFDProtocolMessage done [09:53:43]OFDSenderStorePacket 31099 [09:53:43]StoreOFDPacket docnum=31099 [09:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 37 07 01 AA 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 AA C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 79 00 00 35 04 06 00 DF 9B 3A B4 F0 93 26 23 D2 67 E6 B9 1C 26 [09:53:43]CheckFolder [09:53:43]dirname=/storage/ofd_packets [09:53:43]CheckFolder done [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00031099 [09:53:43]NVStorageSaveData ofd_packets/00031099 [09:53:43]File name is /storage/ofd_packets/00031099 [09:53:43]Write 301 bytes [09:53:43]NVStorageSaveData done [09:53:43]OFDSenderStorePacket done [09:53:43]KKMCreateOFDPacket done [09:53:43]NVStorageSaveData kkm_last_timestamp [09:53:43]File name is /storage/kkm_last_timestamp [09:53:43]Write 4 bytes [09:53:43]NVStorageSaveData done [09:53:43]ExternCall_PrintAddStr [09:53:43]wPrintStart [09:53:43]Write to MH i2c: 01 00 00 01 3A 3B [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 01 3A 00 00 00 00 00 FF 0F 50 [09:53:43]RasterBufferAndPrint [09:53:43]line Счет N : (1)343538 [09:53:43]line ИНН: 02508201610067 [09:53:43]line Контрольно-Кассовый Чек [09:53:43]line ПРОДАЖА [09:53:43]line ТРК (МРК, ГНК) : 53 [09:53:43]line Товар: 2710124130 [09:53:43]line Аи-92-К-2 [09:53:43]line 10.470 * 66.90 [09:53:43]line = 700.44 [09:53:43]line НДС 12% НСП 1% [09:53:43]line > о реализуемом товаре [09:53:43]line ОКРУГЛЕНИЕ: -0.44 [09:53:43]line ИТОГО: 700.00 [09:53:43]line Внесено: 700.00 [09:53:43]line СДАЧА: 0.00 [09:53:43]line НСП 1% : 6.20 [09:53:43]line НДС 12% : 74.38 [09:53:43]line Наличными: 700.00 [09:53:43]line Безнал.: 0.00 [09:53:43]line Место: АЗС № 78 "Партнер Нефть" [09:53:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:53:43]line СНО: Общий режим [09:53:43]line Чек 43 23.10.2024 09:53 [09:53:43]line Смена: 117 ФФД: 1.0 [09:53:43]line ЗНМ: 0300000137 [09:53:43]line РНМ: 0000000000186857 [09:53:43]line Версия ККМ: v1.0 [09:53:43]line ФМ: 0000000002094219 [09:53:43]line ФД: 31099 [09:53:43]line ФПД: 245857797861523 [09:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31099&fm=245857797861523&tin=02508201610067®Number=0000000000186857&sum=70000 [09:53:43]OFD Sender: Processing packet 31099 [packets to send 11, broken 10] [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00031099 [09:53:43]OFD Sender: To server: pG, [09:53:43]CommunicateWithHost lk.salyk.kg:30040 [09:53:43]ConnectInit lk.salyk.kg [09:53:43]written 0, free lines is 4095 [09:53:43]Connected sock=10 [09:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 37 07 01 AA 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 AA C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 79 00 00 35 04 06 00 DF 9B 3A B4 F0 93 26 23 D2 67 E6 B9 1C 26 [09:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 26 49 47 00 E7 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 79 00 00 F4 03 04 00 25 72 18 67 B6 04 01 00 00 1D 04 0F 16 F0 88 2B AA [09:53:43]CommunicateWithHost err = 0 [09:53:43]CheckOFDResponse [09:53:43]1017 (14) - 77093643461234 [09:53:43]1041 (16) - 0000000002094219 [09:53:43]1040 (4) - 31099 [09:53:43]1012 (4) - 23.10.2024 03:48 [09:53:43]1206 (1) - 0 [09:53:43]OFD Sender: Remove packet 31099 [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00031099 [09:53:43]NVStorageDeleteData [09:53:43]Write to MH i2c: 01 00 00 2C 3A 66 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 2C 3A 00 00 00 00 00 DD 0C 56 [09:53:43]RasterBufferAndPrint [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]written 0, free lines is 3302 [09:53:43]MH_Cut [09:53:43]Write to MH i2c: D1 01 00 33 3A 01 3F [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 01 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 01 00 33 3A 00 3E [09:53:43]Write to MH i2c: 01 00 00 34 3A 6E [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:44]OFD Sender: No OFD packet to send [09:53:44]*** Cut start [09:53:44]*** Partial cut [09:53:44]*** CUTSNS_PIN = 1 [09:53:44]*** CUTSNS_PIN = 0 [09:53:44]*** Brake cut motor [09:53:45]Read from MH i2c: 01 [09:53:45]MH_I2C_Read... [09:53:45]*** Stop cut motor [09:53:45]*** Cut end [09:53:45]Read from MH i2c: 01 07 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 34 3A 00 00 00 00 00 FF 0F 83 [09:53:45]process_action close_receipt done [09:53:45]requested_data is exist [09:53:45]produce_requested_data [09:53:45]requested_item fm.sn is exist - process it [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 11 00 00 [09:53:45]Write to MH i2c: E2 08 00 35 3A 80 11 00 00 00 00 00 00 E9 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 35 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [09:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:53:45]wFMCommunicate OK [09:53:45]requested_item fd.num is exist - process it [09:53:45]SAM_PROTO_GetFieldsCounters [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 13 00 00 [09:53:45]Write to MH i2c: E2 08 00 36 3A 80 13 00 00 00 00 00 00 EC [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 62 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 62 00 36 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 79 00 00 0E 04 04 00 75 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 FC [09:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 79 00 00 0E 04 04 00 75 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 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_GetFieldsCounters done [09:53:45]requested_item shift.num is exist - process it [09:53:45]requested_item shift.opened is exist - process it [09:53:45]req_shift_opened [09:53:45]FM_GetShiftState [09:53:45]SAM_PROTO_GetShiftState [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 13 01 00 [09:53:45]Write to MH i2c: E2 08 00 37 3A 80 13 01 00 00 00 00 00 EE [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 37 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A8 [09:53:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_GetShiftState done [09:53:45]FM_GetShiftState done [09:53:45]req_shift_opened done [09:53:45]requested_item shift.open_date is exist - process it [09:53:45]req_shift_open_date [09:53:45]req_shift_open_date done [09:53:45]produce_requested_data done [09:53:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31099,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:53:45]process_action_free close_receipt [09:53:45]json_value_free [09:53:45]json_value_free done [09:53:45]process_json_proto returns [09:53:45]Send response to host [09:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31099,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:53:45]free response buf [09:53:45]execute_script done [09:53:45]execute_script returns [09:53:45]free content buf [09:53:45]Sock 7.Close socket [09:53:45]Sock 7.Thread stoped [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:11]accept exits with 9 [09:54:11]New connection [09:54:11]New thread 3066899812 created [09:54:11]Thread 3067043172 joined [09:54:11]Waiting for new connection... [09:54:11] Sock 9.Parse request [09:54:11]Sock 9.Check first char [09:54:11]Sock 9.First char is OK [09:54:11]request: POST /json_proto HTTP/1.0 [09:54:11]Method: POST [09:54:11]URL: /json_proto [09:54:11]Method is POST - this is cgi request [09:54:11]url: /json_proto [09:54:11]query_string will be loaded in cgi processing [09:54:11]execute_cgi json_proto POST (null) [09:54:11]execute_cgi path=json_proto method=POST [09:54:11]POST find Content-Length [09:54:11]Host: 172.17.51.3:8080 [09:54:11]Content-Length: 682 [09:54:11]Content-Type: application/json [09:54:11] [09:54:11]POST finish read [09:54:11]Found Content-Length = 682 [09:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:11]execute_script... [09:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:11]POST & json_proto [09:54:11]process_json_proto [09:54:11]json parsed OK: [09:54:11]protocol is kg_v1.0 [09:54:11]action value=close_receipt [09:54:11]process_action close_receipt [09:54:11]cmd_close_receipt [09:54:11]MH_GetDate [09:54:11]Write to MH i2c: F0 00 00 38 3A 61 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: F0 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: F0 09 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: F0 09 00 38 3A 00 C9 C7 18 67 04 C1 95 66 39 [09:54:11]GetLastDocTimeStamp 1729677226 [09:54:11]current date 1729677257 [09:54:11]FM_GetShiftState [09:54:11]SAM_PROTO_GetShiftState [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 13 01 00 [09:54:11]Write to MH i2c: E2 08 00 39 3A 80 13 01 00 00 00 00 00 F0 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 0E 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 0E 00 39 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AA [09:54:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:54:11]wFMCommunicate OK [09:54:11]SAM_PROTO_GetShiftState done [09:54:11]FM_GetShiftState done [09:54:11]opened in 1729643755 [09:54:11]opened+sec_in_day 1729730155 [09:54:11]quantity*price = 100015 [09:54:11]sum+1 = 100017 [09:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 44 23.10.2024 09:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31100 ФПД: 69619196556778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095417&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31100&fm=69619196556778&tin=02508201610067®Number=0000000000186857&sum=100000 [09:54:12]StoreToDocumentArchive [09:54:12]shift 117 fd 31100 [09:54:12]save to /storage/0117/doc_00031100 [09:54:12]save last doc name /storage/0117/doc_00031100 to /storage/kkm_last_doc_name [09:54:12]save OK [09:54:12]Clear old archive folders... [09:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:12]tlvbuf is 00D31140 [09:54:12]SAM_PROTO_ClearQueue [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 09 00 00 [09:54:12]Write to MH i2c: E2 08 00 46 3A 80 09 00 00 00 00 00 00 F2 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 46 3A 00 90 00 F4 [09:54:12]RAPDU: 90 00 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_ClearQueue done [09:54:12]KKMCreateOFDPacket [09:54:12]OFDProtocolAddRootSTLVToBuf [09:54:12]FM_MakeSignedData [09:54:12]FM_MakeSignedData [09:54:12]SAM_PROTO_SignData [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 0D 01 02 [09:54:12]Write to MH i2c: E2 08 00 47 3A 80 0D 01 02 00 00 00 00 FA [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 47 3A 00 90 00 F5 [09:54:12]RAPDU: 90 00 [09:54:12]wFMCommunicate OK [09:54:12]wFMCommunicate request_size=255 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C9 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 79 00 00 35 04 06 00 3F [09:54:12]Write to MH i2c: E2 02 01 48 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C9 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 79 00 00 35 04 06 00 3F 00 00 69 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:13]Read from MH i2c: E2 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 03 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 03 00 48 3A 00 90 00 F6 [09:54:13]RAPDU: 90 00 [09:54:13]wFMCommunicate OK [09:54:13]wFMCommunicate request_size=10 [09:54:13]MH_SAM_APDU [09:54:13]CAPDU: 80 0D 02 02 05 51 7B 7A F5 EA [09:54:13]Write to MH i2c: E2 0D 00 49 3A 80 0D 02 02 05 00 51 7B 7A F5 EA 00 00 2C [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:13]Read from MH i2c: E2 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 03 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 03 00 49 3A 00 90 00 F7 [09:54:13]RAPDU: 90 00 [09:54:13]wFMCommunicate OK [09:54:13]wFMCommunicate request_size=4 [09:54:13]MH_SAM_APDU [09:54:13]CAPDU: 80 0D 03 02 [09:54:13]Write to MH i2c: E2 08 00 4A 3A 80 0D 03 02 00 00 00 00 FF [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:13]Read from MH i2c: E2 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 0B 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 0B 00 4A 3A 00 44 C6 F6 F1 78 44 0A DA 90 00 91 [09:54:13]RAPDU: 44 C6 F6 F1 78 44 0A DA 90 00 [09:54:13]wFMCommunicate OK [09:54:13]SAM_PROTO_SignData done [09:54:13]FM_MakeSignedData done [09:54:13]CreateOFDProtocolMessage [09:54:13]wFMCommunicate request_size=4 [09:54:13]MH_SAM_APDU [09:54:13]CAPDU: 80 11 00 00 [09:54:13]Write to MH i2c: E2 08 00 4B 3A 80 11 00 00 00 00 00 00 FF [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:13]Read from MH i2c: E2 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 17 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 17 00 4B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [09:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:13]wFMCommunicate OK [09:54:13]CreateOFDProtocolMessage done [09:54:13]OFDSenderStorePacket 31100 [09:54:13]StoreOFDPacket docnum=31100 [09:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 69 07 01 68 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C9 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 79 00 00 35 04 06 00 3F 51 7B 7A F5 EA 44 C6 F6 F1 78 44 0A DA [09:54:13]CheckFolder [09:54:13]dirname=/storage/ofd_packets [09:54:13]CheckFolder done [09:54:13]ProducePacketName [09:54:13]name=ofd_packets/00031100 [09:54:13]NVStorageSaveData ofd_packets/00031100 [09:54:13]File name is /storage/ofd_packets/00031100 [09:54:13]Write 301 bytes [09:54:13]NVStorageSaveData done [09:54:13]OFDSenderStorePacket done [09:54:13]KKMCreateOFDPacket done [09:54:13]NVStorageSaveData kkm_last_timestamp [09:54:13]File name is /storage/kkm_last_timestamp [09:54:13]Write 4 bytes [09:54:13]NVStorageSaveData done [09:54:13]ExternCall_PrintAddStr [09:54:13]wPrintStart [09:54:13]Write to MH i2c: 01 00 00 4C 3A 86 [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 07 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 07 00 4C 3A 00 00 00 00 00 FF 0F 9B [09:54:13]RasterBufferAndPrint [09:54:13]line Счет N : (1)343539 [09:54:13]line ИНН: 02508201610067 [09:54:13]line Контрольно-Кассовый Чек [09:54:13]line ПРОДАЖА [09:54:13]line ТРК (МРК, ГНК) : 33 [09:54:13]line Товар: 2710124130 [09:54:13]line Аи-92-К-2 [09:54:13]line 14.950 * 66.90 [09:54:13]line = 1000.16 [09:54:13]line НДС 12% НСП 1% [09:54:13]line > о реализуемом товаре [09:54:13]line ОКРУГЛЕНИЕ: -0.16 [09:54:13]line ИТОГО: 1000.00 [09:54:13]line Внесено: 1000.00 [09:54:13]line СДАЧА: 0.00 [09:54:13]line НСП 1% : 8.85 [09:54:13]line НДС 12% : 106.21 [09:54:13]line Наличными: 1000.00 [09:54:13]line Безнал.: 0.00 [09:54:13]line Место: АЗС № 78 "Партнер Нефть" [09:54:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:54:13]line СНО: Общий режим [09:54:13]line Чек 44 23.10.2024 09:54 [09:54:13]line Смена: 117 ФФД: 1.0 [09:54:13]line ЗНМ: 0300000137 [09:54:13]line РНМ: 0000000000186857 [09:54:13]line Версия ККМ: v1.0 [09:54:13]line ФМ: 0000000002094219 [09:54:13]line ФД: 31100 [09:54:13]line ФПД: 69619196556778 [09:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095417&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31100&fm=69619196556778&tin=02508201610067®Number=0000000000186857&sum=100000 [09:54:13]OFD Sender: Processing packet 31100 [packets to send 11, broken 10] [09:54:13]ProducePacketName [09:54:13]name=ofd_packets/00031100 [09:54:13]OFD Sender: To server: pG, [09:54:13]CommunicateWithHost lk.salyk.kg:30040 [09:54:13]ConnectInit lk.salyk.kg [09:54:13]written 0, free lines is 4095 [09:54:13]Connected sock=10 [09:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 69 07 01 68 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C9 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 79 00 00 35 04 06 00 3F 51 7B 7A F5 EA 44 C6 F6 F1 78 44 0A DA [09:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 64 75 47 00 05 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 79 00 00 F4 03 04 00 43 72 18 67 B6 04 01 00 00 8B C6 DB 5B 81 F9 E4 90 [09:54:13]CommunicateWithHost err = 0 [09:54:13]CheckOFDResponse [09:54:13]1017 (14) - 77093643461234 [09:54:13]1041 (16) - 0000000002094219 [09:54:13]1040 (4) - 31100 [09:54:13]1012 (4) - 23.10.2024 03:49 [09:54:13]1206 (1) - 0 [09:54:13]OFD Sender: Remove packet 31100 [09:54:13]ProducePacketName [09:54:13]name=ofd_packets/00031100 [09:54:13]NVStorageDeleteData [09:54:14]Write to MH i2c: 01 00 00 77 3A B1 [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: 01 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: 01 07 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: 01 07 00 77 3A 00 00 00 00 00 E7 0C AB [09:54:14]RasterBufferAndPrint [09:54:14]line [09:54:14]line [09:54:14]line [09:54:14]line [09:54:14]line [09:54:14]written 0, free lines is 3309 [09:54:14]MH_Cut [09:54:14]Write to MH i2c: D1 01 00 7E 3A 01 8A [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: D1 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: D1 01 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: D1 01 00 7E 3A 00 89 [09:54:14]Write to MH i2c: 01 00 00 7F 3A B9 [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]OFD Sender: No OFD packet to send [09:54:14]*** Cut start [09:54:14]*** Partial cut [09:54:14]*** CUTSNS_PIN = 1 [09:54:14]*** CUTSNS_PIN = 0 [09:54:15]*** Brake cut motor [09:54:15]Read from MH i2c: 01 [09:54:15]MH_I2C_Read... [09:54:15]*** Stop cut motor [09:54:15]*** Cut end [09:54:15]Read from MH i2c: 01 07 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: 01 07 00 7F 3A 00 00 00 00 00 FF 0F CE [09:54:15]process_action close_receipt done [09:54:15]requested_data is exist [09:54:15]produce_requested_data [09:54:15]requested_item fm.sn is exist - process it [09:54:15]wFMCommunicate request_size=4 [09:54:15]MH_SAM_APDU [09:54:15]CAPDU: 80 11 00 00 [09:54:15]Write to MH i2c: E2 08 00 80 3A 80 11 00 00 00 00 00 00 34 [09:54:15]Write i2c OK [09:54:15]MH_I2C_Read... [09:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:15]Read from MH i2c: E2 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 17 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 17 00 80 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [09:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:15]wFMCommunicate OK [09:54:15]requested_item fd.num is exist - process it [09:54:15]SAM_PROTO_GetFieldsCounters [09:54:15]wFMCommunicate request_size=4 [09:54:15]MH_SAM_APDU [09:54:15]CAPDU: 80 13 00 00 [09:54:15]Write to MH i2c: E2 08 00 81 3A 80 13 00 00 00 00 00 00 37 [09:54:15]Write i2c OK [09:54:15]MH_I2C_Read... [09:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:15]Read from MH i2c: E2 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 62 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 62 00 81 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 79 00 00 0E 04 04 00 75 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 4B [09:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 79 00 00 0E 04 04 00 75 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 [09:54:15]wFMCommunicate OK [09:54:15]SAM_PROTO_GetFieldsCounters done [09:54:15]requested_item shift.num is exist - process it [09:54:15]requested_item shift.opened is exist - process it [09:54:15]req_shift_opened [09:54:15]FM_GetShiftState [09:54:15]SAM_PROTO_GetShiftState [09:54:15]wFMCommunicate request_size=4 [09:54:15]MH_SAM_APDU [09:54:15]CAPDU: 80 13 01 00 [09:54:15]Write to MH i2c: E2 08 00 82 3A 80 13 01 00 00 00 00 00 39 [09:54:15]Write i2c OK [09:54:15]MH_I2C_Read... [09:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:15]Read from MH i2c: E2 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 0E 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 0E 00 82 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F3 [09:54:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:54:15]wFMCommunicate OK [09:54:15]SAM_PROTO_GetShiftState done [09:54:15]FM_GetShiftState done [09:54:15]req_shift_opened done [09:54:15]requested_item shift.open_date is exist - process it [09:54:15]req_shift_open_date [09:54:15]req_shift_open_date done [09:54:15]produce_requested_data done [09:54:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31100,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:54:15]process_action_free close_receipt [09:54:15]json_value_free [09:54:15]json_value_free done [09:54:15]process_json_proto returns [09:54:15]Send response to host [09:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31100,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:54:15]free response buf [09:54:15]execute_script done [09:54:15]execute_script returns [09:54:15]free content buf [09:54:15]Sock 9.Close socket [09:54:15]Sock 9.Thread stoped [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:41]accept exits with 7 [09:54:41]New connection [09:54:41]New thread 3067043172 created [09:54:41]Thread 3066899812 joined [09:54:41]Waiting for new connection... [09:54:41] Sock 7.Parse request [09:54:41]Sock 7.Check first char [09:54:41]Sock 7.First char is OK [09:54:41]request: POST /json_proto HTTP/1.0 [09:54:41]Method: POST [09:54:41]URL: /json_proto [09:54:41]Method is POST - this is cgi request [09:54:41]url: /json_proto [09:54:41]query_string will be loaded in cgi processing [09:54:41]execute_cgi json_proto POST (null) [09:54:41]execute_cgi path=json_proto method=POST [09:54:41]POST find Content-Length [09:54:41]Host: 172.17.51.3:8080 [09:54:41]Content-Length: 977 [09:54:41]Content-Type: application/json [09:54:41] [09:54:41]POST finish read [09:54:41]Found Content-Length = 977 [09:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:41]execute_script... [09:54:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:41]POST & json_proto [09:54:41]process_json_proto [09:54:41]json parsed OK: [09:54:41]protocol is kg_v1.0 [09:54:41]action value=close_receipt [09:54:41]process_action close_receipt [09:54:41]cmd_close_receipt [09:54:41]MH_GetDate [09:54:41]Write to MH i2c: F0 00 00 83 3A AC [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 09 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 09 00 83 3A 00 E6 C7 18 67 04 C1 95 66 A1 [09:54:41]GetLastDocTimeStamp 1729677257 [09:54:41]current date 1729677286 [09:54:41]FM_GetShiftState [09:54:41]SAM_PROTO_GetShiftState [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 01 00 [09:54:41]Write to MH i2c: E2 08 00 84 3A 80 13 01 00 00 00 00 00 3B [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 84 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F5 [09:54:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetShiftState done [09:54:41]FM_GetShiftState done [09:54:41]opened in 1729643755 [09:54:41]opened+sec_in_day 1729730155 [09:54:41]quantity*price = 500004 [09:54:41]sum+1 = 500006 [09:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 45 23.10.2024 09:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 66.49 сом ФМ: 0000000002094219 ФД: 31101 ФПД: 128683857108928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095446&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31101&fm=128683857108928&tin=02508201610067®Number=0000000000186857&sum=500000 [09:54:42]StoreToDocumentArchive [09:54:42]shift 117 fd 31101 [09:54:42]save to /storage/0117/doc_00031101 [09:54:42]save last doc name /storage/0117/doc_00031101 to /storage/kkm_last_doc_name [09:54:42]save OK [09:54:42]Clear old archive folders... [09:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:42]tlvbuf is 00DA22C0 [09:54:42]SAM_PROTO_ClearQueue [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 09 00 00 [09:54:42]Write to MH i2c: E2 08 00 91 3A 80 09 00 00 00 00 00 00 3D [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 91 3A 00 90 00 3F [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_ClearQueue done [09:54:42]KKMCreateOFDPacket [09:54:42]OFDProtocolAddRootSTLVToBuf [09:54:42]FM_MakeSignedData [09:54:42]FM_MakeSignedData [09:54:42]SAM_PROTO_SignData [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 01 02 [09:54:42]Write to MH i2c: E2 08 00 92 3A 80 0D 01 02 00 00 00 00 45 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 92 3A 00 90 00 40 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=255 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 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 E6 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 79 00 00 35 04 06 00 75 09 8B 97 [09:54:42]Write to MH i2c: E2 02 01 93 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 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 E6 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 79 00 00 35 04 06 00 75 09 8B 97 00 00 33 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 93 3A 00 90 00 41 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=7 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 02 5F C0 [09:54:42]Write to MH i2c: E2 0A 00 94 3A 80 0D 02 02 02 00 5F C0 00 00 6B [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 94 3A 00 90 00 42 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 03 02 [09:54:42]Write to MH i2c: E2 08 00 95 3A 80 0D 03 02 00 00 00 00 4A [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 95 3A 00 02 0B D5 E6 72 18 05 36 90 00 D8 [09:54:42]RAPDU: 02 0B D5 E6 72 18 05 36 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_SignData done [09:54:42]FM_MakeSignedData done [09:54:42]CreateOFDProtocolMessage [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 11 00 00 [09:54:42]Write to MH i2c: E2 08 00 96 3A 80 11 00 00 00 00 00 00 4A [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 96 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:42]wFMCommunicate OK [09:54:42]CreateOFDProtocolMessage done [09:54:42]OFDSenderStorePacket 31101 [09:54:42]StoreOFDPacket docnum=31101 [09:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7B 95 04 01 E4 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 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 E6 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 79 00 00 35 04 06 00 75 09 8B 97 5F C0 02 0B D5 E6 72 18 05 36 [09:54:42]CheckFolder [09:54:42]dirname=/storage/ofd_packets [09:54:42]CheckFolder done [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00031101 [09:54:42]NVStorageSaveData ofd_packets/00031101 [09:54:42]File name is /storage/ofd_packets/00031101 [09:54:42]Write 298 bytes [09:54:42]NVStorageSaveData done [09:54:42]OFDSenderStorePacket done [09:54:42]KKMCreateOFDPacket done [09:54:42]NVStorageSaveData kkm_last_timestamp [09:54:42]File name is /storage/kkm_last_timestamp [09:54:42]Write 4 bytes [09:54:42]NVStorageSaveData done [09:54:42]ExternCall_PrintAddStr [09:54:42]wPrintStart [09:54:42]Write to MH i2c: 01 00 00 97 3A D1 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 97 3A 00 00 00 00 00 FF 0F E6 [09:54:42]RasterBufferAndPrint [09:54:42]line Счет N : (1)343537 [09:54:42]line ИНН: 02508201610067 [09:54:42]line Контрольно-Кассовый Чек [09:54:42]line ПРОДАЖА [09:54:42]line ТРК (МРК, ГНК) : 44 [09:54:42]line Товар: 2710194210 [09:54:42]line ДТ-К-2 [09:54:42]line 66.490 * 75.20 [09:54:42]line = 5000.05 [09:54:42]line НДС 12% НСП 1% [09:54:42]line > о реализуемом товаре [09:54:42]line ОКРУГЛЕНИЕ: -0.05 [09:54:42]line ИТОГО: 5000.00 [09:54:42]line Внесено: 5000.00 [09:54:42]line СДАЧА: 0.00 [09:54:42]line НСП 1% : 44.25 [09:54:42]line НДС 12% : 530.98 [09:54:42]line Наличными: 5000.00 [09:54:42]line Безнал.: 0.00 [09:54:42]line Место: АЗС № 78 "Партнер Нефть" [09:54:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:54:42]line СНО: Общий режим [09:54:42]line Чек 45 23.10.2024 09:54 [09:54:42]line Смена: 117 ФФД: 1.0 [09:54:42]line ЗНМ: 0300000137 [09:54:42]line РНМ: 0000000000186857 [09:54:42]line Версия ККМ: v1.0 [09:54:42]line [09:54:42]line Дисконтная программа [09:54:42]line ДТ [09:54:42]line номер 78 [09:54:42]line сэкономлено 66.49 сом [09:54:42]line ФМ: 0000000002094219 [09:54:42]line ФД: 31101 [09:54:43]line ФПД: 128683857108928 [09:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095446&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31101&fm=128683857108928&tin=02508201610067®Number=0000000000186857&sum=500000 [09:54:43]OFD Sender: Processing packet 31101 [packets to send 11, broken 10] [09:54:43]ProducePacketName [09:54:43]name=ofd_packets/00031101 [09:54:43]OFD Sender: To server: pG, [09:54:43]CommunicateWithHost lk.salyk.kg:30040 [09:54:43]ConnectInit lk.salyk.kg [09:54:43]written 0, free lines is 4095 [09:54:43]Connected sock=10 [09:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 7B 95 04 01 E4 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 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 E6 C7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 79 00 00 35 04 06 00 75 09 8B 97 5F C0 02 0B D5 E6 72 18 05 36 [09:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 49 C8 47 00 1C 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 79 00 00 F4 03 04 00 61 72 18 67 B6 04 01 00 00 4F 18 0B 9E 47 C6 3E DB [09:54:43]CommunicateWithHost err = 0 [09:54:43]CheckOFDResponse [09:54:43]1017 (14) - 77093643461234 [09:54:43]1041 (16) - 0000000002094219 [09:54:43]1040 (4) - 31101 [09:54:43]1012 (4) - 23.10.2024 03:49 [09:54:43]1206 (1) - 0 [09:54:43]OFD Sender: Remove packet 31101 [09:54:43]ProducePacketName [09:54:43]name=ofd_packets/00031101 [09:54:43]NVStorageDeleteData [09:54:43]Write to MH i2c: 01 00 00 C7 3A 01 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 C7 3A 00 00 00 00 00 A1 0C B5 [09:54:43]RasterBufferAndPrint [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]written 0, free lines is 3239 [09:54:43]MH_Cut [09:54:43]Write to MH i2c: D1 01 00 CE 3A 01 DA [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 CE 3A 00 D9 [09:54:43]Write to MH i2c: 01 00 00 CF 3A 09 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:44]OFD Sender: No OFD packet to send [09:54:44]*** Cut start [09:54:44]*** Partial cut [09:54:44]*** CUTSNS_PIN = 1 [09:54:44]*** CUTSNS_PIN = 0 [09:54:44]*** Brake cut motor [09:54:45]Read from MH i2c: 01 [09:54:45]MH_I2C_Read... [09:54:45]*** Stop cut motor [09:54:45]*** Cut end [09:54:45]Read from MH i2c: 01 07 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: 01 07 00 CF 3A 00 00 00 00 00 FF 0F 1E [09:54:45]process_action close_receipt done [09:54:45]requested_data is exist [09:54:45]produce_requested_data [09:54:45]requested_item fm.sn is exist - process it [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 11 00 00 [09:54:45]Write to MH i2c: E2 08 00 D0 3A 80 11 00 00 00 00 00 00 84 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 17 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 17 00 D0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [09:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:45]wFMCommunicate OK [09:54:45]requested_item fd.num is exist - process it [09:54:45]SAM_PROTO_GetFieldsCounters [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 13 00 00 [09:54:45]Write to MH i2c: E2 08 00 D1 3A 80 13 00 00 00 00 00 00 87 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 62 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 62 00 D1 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 79 00 00 0E 04 04 00 75 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 9F [09:54:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 79 00 00 0E 04 04 00 75 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 [09:54:45]wFMCommunicate OK [09:54:45]SAM_PROTO_GetFieldsCounters done [09:54:45]requested_item shift.num is exist - process it [09:54:45]requested_item shift.opened is exist - process it [09:54:45]req_shift_opened [09:54:45]FM_GetShiftState [09:54:45]SAM_PROTO_GetShiftState [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 13 01 00 [09:54:45]Write to MH i2c: E2 08 00 D2 3A 80 13 01 00 00 00 00 00 89 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 D2 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 43 [09:54:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:54:45]wFMCommunicate OK [09:54:45]SAM_PROTO_GetShiftState done [09:54:45]FM_GetShiftState done [09:54:45]req_shift_opened done [09:54:45]requested_item shift.open_date is exist - process it [09:54:45]req_shift_open_date [09:54:45]req_shift_open_date done [09:54:45]produce_requested_data done [09:54:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31101,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:54:45]process_action_free close_receipt [09:54:45]json_value_free [09:54:45]json_value_free done [09:54:45]process_json_proto returns [09:54:45]Send response to host [09:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31101,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:54:45]free response buf [09:54:45]execute_script done [09:54:45]execute_script returns [09:54:45]free content buf [09:54:45]Sock 7.Close socket [09:54:45]Sock 7.Thread stoped [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:18]accept exits with 9 [09:58:18]New connection [09:58:18]New thread 3066899812 created [09:58:18]Thread 3067043172 joined [09:58:18]Waiting for new connection... [09:58:18] Sock 9.Parse request [09:58:18]Sock 9.Check first char [09:58:18]Sock 9.First char is OK [09:58:18]request: POST /json_proto HTTP/1.0 [09:58:18]Method: POST [09:58:18]URL: /json_proto [09:58:18]Method is POST - this is cgi request [09:58:18]url: /json_proto [09:58:18]query_string will be loaded in cgi processing [09:58:18]execute_cgi json_proto POST (null) [09:58:18]execute_cgi path=json_proto method=POST [09:58:18]POST find Content-Length [09:58:18]Host: 172.17.51.3:8080 [09:58:18]Content-Length: 682 [09:58:18]Content-Type: application/json [09:58:18] [09:58:18]POST finish read [09:58:18]Found Content-Length = 682 [09:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:18]execute_script... [09:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:18]POST & json_proto [09:58:18]process_json_proto [09:58:18]json parsed OK: [09:58:18]protocol is kg_v1.0 [09:58:18]action value=close_receipt [09:58:18]process_action close_receipt [09:58:18]cmd_close_receipt [09:58:18]MH_GetDate [09:58:18]Write to MH i2c: F0 00 00 D3 3A FC [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: F0 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: F0 09 00 [09:58:18]MH_I2C_Read... [09:58:18]Read from MH i2c: F0 09 00 D3 3A 00 C0 C8 18 67 04 C1 95 66 CC [09:58:18]GetLastDocTimeStamp 1729677286 [09:58:18]current date 1729677504 [09:58:18]FM_GetShiftState [09:58:18]SAM_PROTO_GetShiftState [09:58:18]wFMCommunicate request_size=4 [09:58:18]MH_SAM_APDU [09:58:18]CAPDU: 80 13 01 00 [09:58:18]Write to MH i2c: E2 08 00 D4 3A 80 13 01 00 00 00 00 00 8B [09:58:18]Write i2c OK [09:58:18]MH_I2C_Read... [09:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:19]Read from MH i2c: E2 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 D4 3A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 45 [09:58:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:58:19]wFMCommunicate OK [09:58:19]SAM_PROTO_GetShiftState done [09:58:19]FM_GetShiftState done [09:58:19]opened in 1729643755 [09:58:19]opened+sec_in_day 1729730155 [09:58:19]quantity*price = 100015 [09:58:19]sum+1 = 100017 [09:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 46 23.10.2024 09:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31102 ФПД: 94641729869996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095824&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31102&fm=94641729869996&tin=02508201610067®Number=0000000000186857&sum=100000 [09:58:20]StoreToDocumentArchive [09:58:20]shift 117 fd 31102 [09:58:20]save to /storage/0117/doc_00031102 [09:58:20]save last doc name /storage/0117/doc_00031102 to /storage/kkm_last_doc_name [09:58:20]save OK [09:58:20]Clear old archive folders... [09:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:20]tlvbuf is 00D4D290 [09:58:20]SAM_PROTO_ClearQueue [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 09 00 00 [09:58:20]Write to MH i2c: E2 08 00 E1 3A 80 09 00 00 00 00 00 00 8D [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 E1 3A 00 90 00 8F [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]SAM_PROTO_ClearQueue done [09:58:20]KKMCreateOFDPacket [09:58:20]OFDProtocolAddRootSTLVToBuf [09:58:20]FM_MakeSignedData [09:58:20]FM_MakeSignedData [09:58:20]SAM_PROTO_SignData [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 0D 01 02 [09:58:20]Write to MH i2c: E2 08 00 E2 3A 80 0D 01 02 00 00 00 00 95 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 E2 3A 00 90 00 90 [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]wFMCommunicate request_size=255 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 C8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 79 00 00 35 04 06 00 56 [09:58:20]Write to MH i2c: E2 02 01 E3 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 C8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 79 00 00 35 04 06 00 56 00 00 17 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 E3 3A 00 90 00 91 [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]wFMCommunicate request_size=10 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 0D 02 02 05 13 7E B0 98 AC [09:58:20]Write to MH i2c: E2 0D 00 E4 3A 80 0D 02 02 05 00 13 7E B0 98 AC 00 00 27 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 0D 03 02 [09:58:20]Write to MH i2c: E2 08 00 E5 3A 80 0D 03 02 00 00 00 00 9A [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 0B 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 0B 00 E5 3A 00 E8 EA 5E 60 C5 73 CE 35 90 00 66 [09:58:20]RAPDU: E8 EA 5E 60 C5 73 CE 35 90 00 [09:58:20]wFMCommunicate OK [09:58:20]SAM_PROTO_SignData done [09:58:20]FM_MakeSignedData done [09:58:20]CreateOFDProtocolMessage [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 11 00 00 [09:58:20]Write to MH i2c: E2 08 00 E6 3A 80 11 00 00 00 00 00 00 9A [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 17 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 17 00 E6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [09:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:58:20]wFMCommunicate OK [09:58:20]CreateOFDProtocolMessage done [09:58:20]OFDSenderStorePacket 31102 [09:58:20]StoreOFDPacket docnum=31102 [09:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 41 CC 07 01 AD 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 C8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 79 00 00 35 04 06 00 56 13 7E B0 98 AC E8 EA 5E 60 C5 73 CE 35 [09:58:20]CheckFolder [09:58:20]dirname=/storage/ofd_packets [09:58:20]CheckFolder done [09:58:20]ProducePacketName [09:58:20]name=ofd_packets/00031102 [09:58:20]NVStorageSaveData ofd_packets/00031102 [09:58:20]File name is /storage/ofd_packets/00031102 [09:58:20]Write 301 bytes [09:58:20]NVStorageSaveData done [09:58:20]OFDSenderStorePacket done [09:58:20]KKMCreateOFDPacket done [09:58:20]NVStorageSaveData kkm_last_timestamp [09:58:20]File name is /storage/kkm_last_timestamp [09:58:20]Write 4 bytes [09:58:20]NVStorageSaveData done [09:58:20]ExternCall_PrintAddStr [09:58:20]wPrintStart [09:58:20]Write to MH i2c: 01 00 00 E7 3A 21 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: 01 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: 01 07 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: 01 07 00 E7 3A 00 00 00 00 00 FF 0F 36 [09:58:20]RasterBufferAndPrint [09:58:20]line Счет N : (1)343540 [09:58:20]line ИНН: 02508201610067 [09:58:20]line Контрольно-Кассовый Чек [09:58:20]line ПРОДАЖА [09:58:20]line ТРК (МРК, ГНК) : 63 [09:58:20]line Товар: 2710124130 [09:58:20]line Аи-92-К-2 [09:58:20]line 14.950 * 66.90 [09:58:20]line = 1000.16 [09:58:20]line НДС 12% НСП 1% [09:58:20]line > о реализуемом товаре [09:58:20]line ОКРУГЛЕНИЕ: -0.16 [09:58:20]line ИТОГО: 1000.00 [09:58:20]line Внесено: 1000.00 [09:58:20]line СДАЧА: 0.00 [09:58:20]line НСП 1% : 8.85 [09:58:20]line НДС 12% : 106.21 [09:58:20]line Наличными: 1000.00 [09:58:20]line Безнал.: 0.00 [09:58:20]line Место: АЗС № 78 "Партнер Нефть" [09:58:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:58:20]line СНО: Общий режим [09:58:20]line Чек 46 23.10.2024 09:58 [09:58:20]line Смена: 117 ФФД: 1.0 [09:58:20]line ЗНМ: 0300000137 [09:58:20]line РНМ: 0000000000186857 [09:58:20]line Версия ККМ: v1.0 [09:58:20]line ФМ: 0000000002094219 [09:58:20]line ФД: 31102 [09:58:20]line ФПД: 94641729869996 [09:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095824&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31102&fm=94641729869996&tin=02508201610067®Number=0000000000186857&sum=100000 [09:58:21]OFD Sender: Processing packet 31102 [packets to send 11, broken 10] [09:58:21]ProducePacketName [09:58:21]name=ofd_packets/00031102 [09:58:21]OFD Sender: To server: pG, [09:58:21]CommunicateWithHost lk.salyk.kg:30040 [09:58:21]ConnectInit lk.salyk.kg [09:58:21]written 0, free lines is 4095 [09:58:21]Connected sock=10 [09:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 41 CC 07 01 AD 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 C8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 79 00 00 35 04 06 00 56 13 7E B0 98 AC E8 EA 5E 60 C5 73 CE 35 [09:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1E F0 47 00 CF 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 79 00 00 F4 03 04 00 3B 73 18 67 B6 04 01 00 00 D4 EF 49 7D 11 D5 AD A7 [09:58:21]CommunicateWithHost err = 0 [09:58:21]CheckOFDResponse [09:58:21]1017 (14) - 77093643461234 [09:58:21]1041 (16) - 0000000002094219 [09:58:21]1040 (4) - 31102 [09:58:21]1012 (4) - 23.10.2024 03:53 [09:58:21]1206 (1) - 0 [09:58:21]OFD Sender: Remove packet 31102 [09:58:21]ProducePacketName [09:58:21]name=ofd_packets/00031102 [09:58:21]NVStorageDeleteData [09:58:21]Write to MH i2c: 01 00 00 12 3B 4D [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 07 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 07 00 12 3B 00 00 00 00 00 E4 0C 44 [09:58:21]RasterBufferAndPrint [09:58:21]line [09:58:21]line [09:58:21]line [09:58:21]line [09:58:21]line [09:58:21]written 0, free lines is 3306 [09:58:21]MH_Cut [09:58:21]Write to MH i2c: D1 01 00 19 3B 01 26 [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: D1 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: D1 01 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: D1 01 00 19 3B 00 25 [09:58:21]Write to MH i2c: 01 00 00 1A 3B 55 [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]OFD Sender: No OFD packet to send [09:58:22]*** Cut start [09:58:22]*** Partial cut [09:58:22]*** CUTSNS_PIN = 1 [09:58:22]*** CUTSNS_PIN = 0 [09:58:22]*** Brake cut motor [09:58:22]Read from MH i2c: 01 [09:58:22]MH_I2C_Read... [09:58:22]*** Stop cut motor [09:58:22]*** Cut end [09:58:22]Read from MH i2c: 01 07 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 1A 3B 00 00 00 00 00 FF 0F 6A [09:58:22]process_action close_receipt done [09:58:22]requested_data is exist [09:58:22]produce_requested_data [09:58:22]requested_item fm.sn is exist - process it [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 11 00 00 [09:58:22]Write to MH i2c: E2 08 00 1B 3B 80 11 00 00 00 00 00 00 D0 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 1B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [09:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:58:22]wFMCommunicate OK [09:58:22]requested_item fd.num is exist - process it [09:58:22]SAM_PROTO_GetFieldsCounters [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 13 00 00 [09:58:22]Write to MH i2c: E2 08 00 1C 3B 80 13 00 00 00 00 00 00 D3 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 62 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 62 00 1C 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 79 00 00 0E 04 04 00 75 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 EF [09:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 79 00 00 0E 04 04 00 75 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 [09:58:22]wFMCommunicate OK [09:58:22]SAM_PROTO_GetFieldsCounters done [09:58:22]requested_item shift.num is exist - process it [09:58:22]requested_item shift.opened is exist - process it [09:58:22]req_shift_opened [09:58:22]FM_GetShiftState [09:58:22]SAM_PROTO_GetShiftState [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 13 01 00 [09:58:22]Write to MH i2c: E2 08 00 1D 3B 80 13 01 00 00 00 00 00 D5 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:23]Read from MH i2c: E2 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 0E 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 0E 00 1D 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8F [09:58:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [09:58:23]wFMCommunicate OK [09:58:23]SAM_PROTO_GetShiftState done [09:58:23]FM_GetShiftState done [09:58:23]req_shift_opened done [09:58:23]requested_item shift.open_date is exist - process it [09:58:23]req_shift_open_date [09:58:23]req_shift_open_date done [09:58:23]produce_requested_data done [09:58:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31102,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [09:58:23]process_action_free close_receipt [09:58:23]json_value_free [09:58:23]json_value_free done [09:58:23]process_json_proto returns [09:58:23]Send response to host [09:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31102,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [09:58:23]free response buf [09:58:23]execute_script done [09:58:23]execute_script returns [09:58:23]free content buf [09:58:23]Sock 9.Close socket [09:58:23]Sock 9.Thread stoped [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [10:11:03]New connection [10:11:03]New thread 3067043172 created [10:11:03]Thread 3066899812 joined [10:11:03]Waiting for new connection... [10:11:03] Sock 7.Parse request [10:11:03]Sock 7.Check first char [10:11:03]Sock 7.First char is OK [10:11:03]request: POST /json_proto HTTP/1.0 [10:11:03]Method: POST [10:11:03]URL: /json_proto [10:11:03]Method is POST - this is cgi request [10:11:03]url: /json_proto [10:11:03]query_string will be loaded in cgi processing [10:11:03]execute_cgi json_proto POST (null) [10:11:03]execute_cgi path=json_proto method=POST [10:11:03]POST find Content-Length [10:11:03]Host: 172.17.51.3:8080 [10:11:03]Content-Length: 677 [10:11:03]Content-Type: application/json [10:11:03] [10:11:03]POST finish read [10:11:03]Found Content-Length = 677 [10:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]execute_script... [10:11:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]POST & json_proto [10:11:03]process_json_proto [10:11:03]json parsed OK: [10:11:03]protocol is kg_v1.0 [10:11:03]action value=close_receipt [10:11:03]process_action close_receipt [10:11:03]cmd_close_receipt [10:11:03]MH_GetDate [10:11:03]Write to MH i2c: F0 00 00 1E 3B 48 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 1E 3B 00 BD CB 18 67 04 C1 95 66 18 [10:11:03]GetLastDocTimeStamp 1729677504 [10:11:03]current date 1729678269 [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 1F 3B 80 13 01 00 00 00 00 00 D7 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 1F 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 91 [10:11:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]opened in 1729643755 [10:11:03]opened+sec_in_day 1729730155 [10:11:03]quantity*price = 50041 [10:11:03]sum+1 = 50042 [10:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 47 23.10.2024 10:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31103 ФПД: 156022446904168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101109&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31103&fm=156022446904168&tin=02508201610067®Number=0000000000186857&sum=50000 [10:11:04]StoreToDocumentArchive [10:11:04]shift 117 fd 31103 [10:11:04]save to /storage/0117/doc_00031103 [10:11:04]save last doc name /storage/0117/doc_00031103 to /storage/kkm_last_doc_name [10:11:04]save OK [10:11:04]Clear old archive folders... [10:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:04]tlvbuf is B6F6E580 [10:11:04]SAM_PROTO_ClearQueue [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 09 00 00 [10:11:04]Write to MH i2c: E2 08 00 2C 3B 80 09 00 00 00 00 00 00 D9 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 2C 3B 00 90 00 DB [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_ClearQueue done [10:11:04]KKMCreateOFDPacket [10:11:04]OFDProtocolAddRootSTLVToBuf [10:11:04]FM_MakeSignedData [10:11:04]FM_MakeSignedData [10:11:04]SAM_PROTO_SignData [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 01 02 [10:11:04]Write to MH i2c: E2 08 00 2D 3B 80 0D 01 02 00 00 00 00 E1 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 2D 3B 00 90 00 DC [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=255 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BD CB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 79 00 00 35 04 06 00 8D [10:11:05]Write to MH i2c: E2 02 01 2E 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BD CB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 79 00 00 35 04 06 00 8D 00 00 A2 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 2E 3B 00 90 00 DD [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=10 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 02 02 05 E6 CE 86 53 68 [10:11:05]Write to MH i2c: E2 0D 00 2F 3B 80 0D 02 02 05 00 E6 CE 86 53 68 00 00 E3 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 2F 3B 00 90 00 DE [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 03 02 [10:11:05]Write to MH i2c: E2 08 00 30 3B 80 0D 03 02 00 00 00 00 E6 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 30 3B 00 50 3D C9 C5 8D 1B ED 79 90 00 10 [10:11:05]RAPDU: 50 3D C9 C5 8D 1B ED 79 90 00 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_SignData done [10:11:05]FM_MakeSignedData done [10:11:05]CreateOFDProtocolMessage [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 11 00 00 [10:11:05]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [10:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:11:05]wFMCommunicate OK [10:11:05]CreateOFDProtocolMessage done [10:11:05]OFDSenderStorePacket 31103 [10:11:05]StoreOFDPacket docnum=31103 [10:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 84 07 01 53 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BD CB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 79 00 00 35 04 06 00 8D E6 CE 86 53 68 50 3D C9 C5 8D 1B ED 79 [10:11:05]CheckFolder [10:11:05]dirname=/storage/ofd_packets [10:11:05]CheckFolder done [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00031103 [10:11:05]NVStorageSaveData ofd_packets/00031103 [10:11:05]File name is /storage/ofd_packets/00031103 [10:11:05]Write 301 bytes [10:11:05]NVStorageSaveData done [10:11:05]OFDSenderStorePacket done [10:11:05]KKMCreateOFDPacket done [10:11:05]NVStorageSaveData kkm_last_timestamp [10:11:05]File name is /storage/kkm_last_timestamp [10:11:05]Write 4 bytes [10:11:05]NVStorageSaveData done [10:11:05]ExternCall_PrintAddStr [10:11:05]wPrintStart [10:11:05]Write to MH i2c: 01 00 00 32 3B 6D [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 32 3B 00 00 00 00 00 FF 0F 82 [10:11:05]RasterBufferAndPrint [10:11:05]line Счет N : (1)343541 [10:11:05]line ИНН: 02508201610067 [10:11:05]line Контрольно-Кассовый Чек [10:11:05]line ПРОДАЖА [10:11:05]line ТРК (МРК, ГНК) : 63 [10:11:05]line Товар: 2710124130 [10:11:05]line Аи-92-К-2 [10:11:05]line 7.480 * 66.90 [10:11:05]line = 500.41 [10:11:05]line НДС 12% НСП 1% [10:11:05]line > о реализуемом товаре [10:11:05]line ОКРУГЛЕНИЕ: -0.41 [10:11:05]line ИТОГО: 500.00 [10:11:05]line Внесено: 500.00 [10:11:05]line СДАЧА: 0.00 [10:11:05]line НСП 1% : 4.43 [10:11:05]line НДС 12% : 53.14 [10:11:05]line Наличными: 500.00 [10:11:05]line Безнал.: 0.00 [10:11:05]line Место: АЗС № 78 "Партнер Нефть" [10:11:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:11:05]line СНО: Общий режим [10:11:05]line Чек 47 23.10.2024 10:11 [10:11:05]line Смена: 117 ФФД: 1.0 [10:11:05]line ЗНМ: 0300000137 [10:11:05]line РНМ: 0000000000186857 [10:11:05]line Версия ККМ: v1.0 [10:11:05]line ФМ: 0000000002094219 [10:11:05]line ФД: 31103 [10:11:05]line ФПД: 156022446904168 [10:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101109&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31103&fm=156022446904168&tin=02508201610067®Number=0000000000186857&sum=50000 [10:11:05]OFD Sender: Processing packet 31103 [packets to send 11, broken 10] [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00031103 [10:11:05]OFD Sender: To server: pG, [10:11:05]CommunicateWithHost lk.salyk.kg:30040 [10:11:05]ConnectInit lk.salyk.kg [10:11:05]written 0, free lines is 4095 [10:11:05]Connected sock=10 [10:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 84 07 01 53 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BD CB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 79 00 00 35 04 06 00 8D E6 CE 86 53 68 50 3D C9 C5 8D 1B ED 79 [10:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 95 56 47 00 DC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 79 00 00 F4 03 04 00 38 76 18 67 B6 04 01 00 00 85 35 7C BF 13 5B E8 76 [10:11:06]CommunicateWithHost err = 0 [10:11:06]CheckOFDResponse [10:11:06]1017 (14) - 77093643461234 [10:11:06]1041 (16) - 0000000002094219 [10:11:06]1040 (4) - 31103 [10:11:06]1012 (4) - 23.10.2024 04:06 [10:11:06]1206 (1) - 0 [10:11:06]OFD Sender: Remove packet 31103 [10:11:06]ProducePacketName [10:11:06]name=ofd_packets/00031103 [10:11:06]NVStorageDeleteData [10:11:06]Write to MH i2c: 01 00 00 5D 3B 98 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 5D 3B 00 00 00 00 00 E0 0C 8B [10:11:06]RasterBufferAndPrint [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]written 0, free lines is 3305 [10:11:06]MH_Cut [10:11:06]Write to MH i2c: D1 01 00 64 3B 01 71 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 01 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 01 00 64 3B 00 70 [10:11:06]Write to MH i2c: 01 00 00 65 3B A0 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]OFD Sender: No OFD packet to send [10:11:06]*** Cut start [10:11:06]*** Partial cut [10:11:06]*** CUTSNS_PIN = 1 [10:11:06]*** CUTSNS_PIN = 0 [10:11:07]*** Brake cut motor [10:11:07]Read from MH i2c: 01 [10:11:07]MH_I2C_Read... [10:11:07]*** Stop cut motor [10:11:07]*** Cut end [10:11:07]Read from MH i2c: 01 07 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: 01 07 00 65 3B 00 00 00 00 00 FF 0F B5 [10:11:07]process_action close_receipt done [10:11:07]requested_data is exist [10:11:07]produce_requested_data [10:11:07]requested_item fm.sn is exist - process it [10:11:07]wFMCommunicate request_size=4 [10:11:07]MH_SAM_APDU [10:11:07]CAPDU: 80 11 00 00 [10:11:07]Write to MH i2c: E2 08 00 66 3B 80 11 00 00 00 00 00 00 1B [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:07]Read from MH i2c: E2 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 17 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 17 00 66 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [10:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:11:07]wFMCommunicate OK [10:11:07]requested_item fd.num is exist - process it [10:11:07]SAM_PROTO_GetFieldsCounters [10:11:07]wFMCommunicate request_size=4 [10:11:07]MH_SAM_APDU [10:11:07]CAPDU: 80 13 00 00 [10:11:07]Write to MH i2c: E2 08 00 67 3B 80 13 00 00 00 00 00 00 1E [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:07]Read from MH i2c: E2 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 62 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 62 00 67 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 79 00 00 0E 04 04 00 75 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 3E [10:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 79 00 00 0E 04 04 00 75 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 [10:11:07]wFMCommunicate OK [10:11:07]SAM_PROTO_GetFieldsCounters done [10:11:07]requested_item shift.num is exist - process it [10:11:07]requested_item shift.opened is exist - process it [10:11:07]req_shift_opened [10:11:07]FM_GetShiftState [10:11:07]SAM_PROTO_GetShiftState [10:11:07]wFMCommunicate request_size=4 [10:11:07]MH_SAM_APDU [10:11:07]CAPDU: 80 13 01 00 [10:11:07]Write to MH i2c: E2 08 00 68 3B 80 13 01 00 00 00 00 00 20 [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:07]Read from MH i2c: E2 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 0E 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 0E 00 68 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DA [10:11:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:11:07]wFMCommunicate OK [10:11:07]SAM_PROTO_GetShiftState done [10:11:07]FM_GetShiftState done [10:11:07]req_shift_opened done [10:11:07]requested_item shift.open_date is exist - process it [10:11:07]req_shift_open_date [10:11:07]req_shift_open_date done [10:11:07]produce_requested_data done [10:11:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31103,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:11:07]process_action_free close_receipt [10:11:07]json_value_free [10:11:07]json_value_free done [10:11:07]process_json_proto returns [10:11:07]Send response to host [10:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31103,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:11:07]free response buf [10:11:07]execute_script done [10:11:07]execute_script returns [10:11:07]free content buf [10:11:07]Sock 7.Close socket [10:11:07]Sock 7.Thread stoped [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]accept exits with 9 [10:12:21]New connection [10:12:21]New thread 3066899812 created [10:12:21]Thread 3067043172 joined [10:12:21]Waiting for new connection... [10:12:21] Sock 9.Parse request [10:12:21]Sock 9.Check first char [10:12:21]Sock 9.First char is OK [10:12:21]request: POST /json_proto HTTP/1.0 [10:12:21]Method: POST [10:12:21]URL: /json_proto [10:12:21]Method is POST - this is cgi request [10:12:21]url: /json_proto [10:12:21]query_string will be loaded in cgi processing [10:12:21]execute_cgi json_proto POST (null) [10:12:21]execute_cgi path=json_proto method=POST [10:12:21]POST find Content-Length [10:12:21]Host: 172.17.51.3:8080 [10:12:21]Content-Length: 677 [10:12:21]Content-Type: application/json [10:12:21] [10:12:21]POST finish read [10:12:21]Found Content-Length = 677 [10:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:21]execute_script... [10:12:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:21]POST & json_proto [10:12:21]process_json_proto [10:12:21]json parsed OK: [10:12:21]protocol is kg_v1.0 [10:12:21]action value=close_receipt [10:12:21]process_action close_receipt [10:12:21]cmd_close_receipt [10:12:21]MH_GetDate [10:12:21]Write to MH i2c: F0 00 00 69 3B 93 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 09 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: F0 09 00 69 3B 00 0A CC 18 67 04 C1 95 66 B1 [10:12:21]GetLastDocTimeStamp 1729678269 [10:12:21]current date 1729678346 [10:12:21]FM_GetShiftState [10:12:21]SAM_PROTO_GetShiftState [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 13 01 00 [10:12:21]Write to MH i2c: E2 08 00 6A 3B 80 13 01 00 00 00 00 00 22 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 6A 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DC [10:12:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:12:21]wFMCommunicate OK [10:12:21]SAM_PROTO_GetShiftState done [10:12:21]FM_GetShiftState done [10:12:21]opened in 1729643755 [10:12:21]opened+sec_in_day 1729730155 [10:12:21]quantity*price = 50041 [10:12:21]sum+1 = 50042 [10:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 48 23.10.2024 10:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31104 ФПД: 264274922985264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101226&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31104&fm=264274922985264&tin=02508201610067®Number=0000000000186857&sum=50000 [10:12:22]StoreToDocumentArchive [10:12:22]shift 117 fd 31104 [10:12:22]save to /storage/0117/doc_00031104 [10:12:22]save last doc name /storage/0117/doc_00031104 to /storage/kkm_last_doc_name [10:12:22]save OK [10:12:22]Clear old archive folders... [10:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:22]tlvbuf is 00E4AFA0 [10:12:22]SAM_PROTO_ClearQueue [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 09 00 00 [10:12:22]Write to MH i2c: E2 08 00 77 3B 80 09 00 00 00 00 00 00 24 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 77 3B 00 90 00 26 [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_ClearQueue done [10:12:22]KKMCreateOFDPacket [10:12:22]OFDProtocolAddRootSTLVToBuf [10:12:22]FM_MakeSignedData [10:12:22]FM_MakeSignedData [10:12:22]SAM_PROTO_SignData [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 01 02 [10:12:22]Write to MH i2c: E2 08 00 78 3B 80 0D 01 02 00 00 00 00 2C [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 78 3B 00 90 00 27 [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]wFMCommunicate request_size=255 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0A CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 79 00 00 35 04 06 00 F0 [10:12:22]Write to MH i2c: E2 02 01 79 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0A CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 79 00 00 35 04 06 00 F0 00 00 A0 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 79 3B 00 90 00 28 [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]wFMCommunicate request_size=10 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 02 02 05 5B 4C E8 57 30 [10:12:22]Write to MH i2c: E2 0D 00 7A 3B 80 0D 02 02 05 00 5B 4C E8 57 30 00 00 4F [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 03 00 7A 3B 00 90 00 29 [10:12:22]RAPDU: 90 00 [10:12:22]wFMCommunicate OK [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 0D 03 02 [10:12:22]Write to MH i2c: E2 08 00 7B 3B 80 0D 03 02 00 00 00 00 31 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0B 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0B 00 7B 3B 00 0F A8 E7 C9 D0 23 7D 5B 90 00 64 [10:12:22]RAPDU: 0F A8 E7 C9 D0 23 7D 5B 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_SignData done [10:12:22]FM_MakeSignedData done [10:12:22]CreateOFDProtocolMessage [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 11 00 00 [10:12:22]Write to MH i2c: E2 08 00 7C 3B 80 11 00 00 00 00 00 00 31 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 17 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 17 00 7C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [10:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:12:22]wFMCommunicate OK [10:12:22]CreateOFDProtocolMessage done [10:12:22]OFDSenderStorePacket 31104 [10:12:22]StoreOFDPacket docnum=31104 [10:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 09 48 07 01 C3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0A CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 79 00 00 35 04 06 00 F0 5B 4C E8 57 30 0F A8 E7 C9 D0 23 7D 5B [10:12:22]CheckFolder [10:12:22]dirname=/storage/ofd_packets [10:12:22]CheckFolder done [10:12:22]ProducePacketName [10:12:22]name=ofd_packets/00031104 [10:12:22]NVStorageSaveData ofd_packets/00031104 [10:12:22]File name is /storage/ofd_packets/00031104 [10:12:22]Write 301 bytes [10:12:22]NVStorageSaveData done [10:12:22]OFDSenderStorePacket done [10:12:22]KKMCreateOFDPacket done [10:12:22]NVStorageSaveData kkm_last_timestamp [10:12:22]File name is /storage/kkm_last_timestamp [10:12:22]Write 4 bytes [10:12:22]NVStorageSaveData done [10:12:22]ExternCall_PrintAddStr [10:12:22]wPrintStart [10:12:22]Write to MH i2c: 01 00 00 7D 3B B8 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 7D 3B 00 00 00 00 00 FF 0F CD [10:12:22]RasterBufferAndPrint [10:12:22]line Счет N : (1)343542 [10:12:22]line ИНН: 02508201610067 [10:12:22]line Контрольно-Кассовый Чек [10:12:22]line ПРОДАЖА [10:12:22]line ТРК (МРК, ГНК) : 53 [10:12:22]line Товар: 2710124130 [10:12:22]line Аи-92-К-2 [10:12:22]line 7.480 * 66.90 [10:12:22]line = 500.41 [10:12:22]line НДС 12% НСП 1% [10:12:22]line > о реализуемом товаре [10:12:22]line ОКРУГЛЕНИЕ: -0.41 [10:12:22]line ИТОГО: 500.00 [10:12:22]line Внесено: 500.00 [10:12:22]line СДАЧА: 0.00 [10:12:22]line НСП 1% : 4.43 [10:12:22]line НДС 12% : 53.14 [10:12:22]line Наличными: 500.00 [10:12:22]line Безнал.: 0.00 [10:12:22]line Место: АЗС № 78 "Партнер Нефть" [10:12:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:12:22]line СНО: Общий режим [10:12:22]line Чек 48 23.10.2024 10:12 [10:12:22]line Смена: 117 ФФД: 1.0 [10:12:22]line ЗНМ: 0300000137 [10:12:22]line РНМ: 0000000000186857 [10:12:22]line Версия ККМ: v1.0 [10:12:22]line ФМ: 0000000002094219 [10:12:22]line ФД: 31104 [10:12:22]line ФПД: 264274922985264 [10:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101226&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31104&fm=264274922985264&tin=02508201610067®Number=0000000000186857&sum=50000 [10:12:23]OFD Sender: Processing packet 31104 [packets to send 11, broken 10] [10:12:23]ProducePacketName [10:12:23]name=ofd_packets/00031104 [10:12:23]OFD Sender: To server: pG, [10:12:23]CommunicateWithHost lk.salyk.kg:30040 [10:12:23]ConnectInit lk.salyk.kg [10:12:23]written 0, free lines is 4095 [10:12:23]Connected sock=11 [10:12:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 09 48 07 01 C3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0A CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 79 00 00 35 04 06 00 F0 5B 4C E8 57 30 0F A8 E7 C9 D0 23 7D 5B [10:12:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 41 24 47 00 A7 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 79 00 00 F4 03 04 00 85 76 18 67 B6 04 01 00 00 E9 F9 71 AF FD 63 4F 7A [10:12:23]CommunicateWithHost err = 0 [10:12:23]CheckOFDResponse [10:12:23]1017 (14) - 77093643461234 [10:12:23]1041 (16) - 0000000002094219 [10:12:23]1040 (4) - 31104 [10:12:23]1012 (4) - 23.10.2024 04:07 [10:12:23]1206 (1) - 0 [10:12:23]OFD Sender: Remove packet 31104 [10:12:23]ProducePacketName [10:12:23]name=ofd_packets/00031104 [10:12:23]NVStorageDeleteData [10:12:23]Write to MH i2c: 01 00 00 A8 3B E3 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 A8 3B 00 00 00 00 00 EE 0C E4 [10:12:23]RasterBufferAndPrint [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]line [10:12:23]written 0, free lines is 3316 [10:12:23]MH_Cut [10:12:23]Write to MH i2c: D1 01 00 AF 3B 01 BC [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 01 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: D1 01 00 AF 3B 00 BB [10:12:23]Write to MH i2c: 01 00 00 B0 3B EB [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]OFD Sender: No OFD packet to send [10:12:24]*** Cut start [10:12:24]*** Partial cut [10:12:24]*** CUTSNS_PIN = 1 [10:12:24]*** CUTSNS_PIN = 0 [10:12:24]*** Brake cut motor [10:12:24]Read from MH i2c: 01 [10:12:24]MH_I2C_Read... [10:12:24]*** Stop cut motor [10:12:24]*** Cut end [10:12:24]Read from MH i2c: 01 07 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 B0 3B 00 00 00 00 00 FF 0F 00 [10:12:24]process_action close_receipt done [10:12:24]requested_data is exist [10:12:24]produce_requested_data [10:12:24]requested_item fm.sn is exist - process it [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 11 00 00 [10:12:24]Write to MH i2c: E2 08 00 B1 3B 80 11 00 00 00 00 00 00 66 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 B1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [10:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:12:24]wFMCommunicate OK [10:12:24]requested_item fd.num is exist - process it [10:12:24]SAM_PROTO_GetFieldsCounters [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 13 00 00 [10:12:24]Write to MH i2c: E2 08 00 B2 3B 80 13 00 00 00 00 00 00 69 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 62 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 62 00 B2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 79 00 00 0E 04 04 00 75 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 8D [10:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 79 00 00 0E 04 04 00 75 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 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_GetFieldsCounters done [10:12:24]requested_item shift.num is exist - process it [10:12:24]requested_item shift.opened is exist - process it [10:12:24]req_shift_opened [10:12:24]FM_GetShiftState [10:12:24]SAM_PROTO_GetShiftState [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 13 01 00 [10:12:24]Write to MH i2c: E2 08 00 B3 3B 80 13 01 00 00 00 00 00 6B [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 0E 00 B3 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 25 [10:12:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:12:25]wFMCommunicate OK [10:12:25]SAM_PROTO_GetShiftState done [10:12:25]FM_GetShiftState done [10:12:25]req_shift_opened done [10:12:25]requested_item shift.open_date is exist - process it [10:12:25]req_shift_open_date [10:12:25]req_shift_open_date done [10:12:25]produce_requested_data done [10:12:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31104,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:12:25]process_action_free close_receipt [10:12:25]json_value_free [10:12:25]json_value_free done [10:12:25]process_json_proto returns [10:12:25]Send response to host [10:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31104,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:12:25]free response buf [10:12:25]execute_script done [10:12:25]execute_script returns [10:12:25]free content buf [10:12:25]Sock 9.Close socket [10:12:25]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:46]accept exits with 7 [10:14:46]New connection [10:14:46]New thread 3067043172 created [10:14:46]Thread 3066899812 joined [10:14:46]Waiting for new connection... [10:14:46] Sock 7.Parse request [10:14:46]Sock 7.Check first char [10:14:46]Sock 7.First char is OK [10:14:46]request: POST /json_proto HTTP/1.0 [10:14:46]Method: POST [10:14:46]URL: /json_proto [10:14:46]Method is POST - this is cgi request [10:14:46]url: /json_proto [10:14:46]query_string will be loaded in cgi processing [10:14:46]execute_cgi json_proto POST (null) [10:14:46]execute_cgi path=json_proto method=POST [10:14:46]POST find Content-Length [10:14:46]Host: 172.17.51.3:8080 [10:14:46]Content-Length: 682 [10:14:46]Content-Type: application/json [10:14:46] [10:14:46]POST finish read [10:14:46]Found Content-Length = 682 [10:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:46]execute_script... [10:14:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:46]POST & json_proto [10:14:46]process_json_proto [10:14:46]json parsed OK: [10:14:46]protocol is kg_v1.0 [10:14:46]action value=close_receipt [10:14:46]process_action close_receipt [10:14:46]cmd_close_receipt [10:14:46]MH_GetDate [10:14:46]Write to MH i2c: F0 00 00 B4 3B DE [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: F0 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: F0 09 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: F0 09 00 B4 3B 00 9B CC 18 67 04 C1 95 66 8D [10:14:46]GetLastDocTimeStamp 1729678346 [10:14:46]current date 1729678491 [10:14:46]FM_GetShiftState [10:14:46]SAM_PROTO_GetShiftState [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 13 01 00 [10:14:46]Write to MH i2c: E2 08 00 B5 3B 80 13 01 00 00 00 00 00 6D [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 B5 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 27 [10:14:46]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:14:46]wFMCommunicate OK [10:14:46]SAM_PROTO_GetShiftState done [10:14:46]FM_GetShiftState done [10:14:46]opened in 1729643755 [10:14:46]opened+sec_in_day 1729730155 [10:14:46]quantity*price = 100015 [10:14:46]sum+1 = 100017 [10:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 49 23.10.2024 10:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31105 ФПД: 210722059611329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31105&fm=210722059611329&tin=02508201610067®Number=0000000000186857&sum=100000 [10:14:47]StoreToDocumentArchive [10:14:47]shift 117 fd 31105 [10:14:47]save to /storage/0117/doc_00031105 [10:14:47]save last doc name /storage/0117/doc_00031105 to /storage/kkm_last_doc_name [10:14:47]save OK [10:14:47]Clear old archive folders... [10:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:47]tlvbuf is 00CC94F0 [10:14:47]SAM_PROTO_ClearQueue [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 09 00 00 [10:14:47]Write to MH i2c: E2 08 00 C2 3B 80 09 00 00 00 00 00 00 6F [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 C2 3B 00 90 00 71 [10:14:47]RAPDU: 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_ClearQueue done [10:14:47]KKMCreateOFDPacket [10:14:47]OFDProtocolAddRootSTLVToBuf [10:14:47]FM_MakeSignedData [10:14:47]FM_MakeSignedData [10:14:47]SAM_PROTO_SignData [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 0D 01 02 [10:14:47]Write to MH i2c: E2 08 00 C3 3B 80 0D 01 02 00 00 00 00 77 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 C3 3B 00 90 00 72 [10:14:47]RAPDU: 90 00 [10:14:47]wFMCommunicate OK [10:14:47]wFMCommunicate request_size=255 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9C CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 79 00 00 35 04 06 00 BF [10:14:47]Write to MH i2c: E2 02 01 C4 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9C CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 79 00 00 35 04 06 00 BF 00 00 48 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 C4 3B 00 90 00 73 [10:14:47]RAPDU: 90 00 [10:14:47]wFMCommunicate OK [10:14:47]wFMCommunicate request_size=10 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 0D 02 02 05 A6 8D 82 6C C1 [10:14:47]Write to MH i2c: E2 0D 00 C5 3B 80 0D 02 02 05 00 A6 8D 82 6C C1 00 00 66 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 03 00 C5 3B 00 90 00 74 [10:14:47]RAPDU: 90 00 [10:14:47]wFMCommunicate OK [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 0D 03 02 [10:14:47]Write to MH i2c: E2 08 00 C6 3B 80 0D 03 02 00 00 00 00 7C [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0B 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0B 00 C6 3B 00 24 DD EF FB BC 7E F4 78 90 00 0E [10:14:47]RAPDU: 24 DD EF FB BC 7E F4 78 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_SignData done [10:14:47]FM_MakeSignedData done [10:14:47]CreateOFDProtocolMessage [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 11 00 00 [10:14:47]Write to MH i2c: E2 08 00 C7 3B 80 11 00 00 00 00 00 00 7C [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 17 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 17 00 C7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [10:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:14:48]wFMCommunicate OK [10:14:48]CreateOFDProtocolMessage done [10:14:48]OFDSenderStorePacket 31105 [10:14:48]StoreOFDPacket docnum=31105 [10:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B 11 07 01 55 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9C CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 79 00 00 35 04 06 00 BF A6 8D 82 6C C1 24 DD EF FB BC 7E F4 78 [10:14:48]CheckFolder [10:14:48]dirname=/storage/ofd_packets [10:14:48]CheckFolder done [10:14:48]ProducePacketName [10:14:48]name=ofd_packets/00031105 [10:14:48]NVStorageSaveData ofd_packets/00031105 [10:14:48]File name is /storage/ofd_packets/00031105 [10:14:48]Write 301 bytes [10:14:48]NVStorageSaveData done [10:14:48]OFDSenderStorePacket done [10:14:48]KKMCreateOFDPacket done [10:14:48]NVStorageSaveData kkm_last_timestamp [10:14:48]File name is /storage/kkm_last_timestamp [10:14:48]Write 4 bytes [10:14:48]NVStorageSaveData done [10:14:48]ExternCall_PrintAddStr [10:14:48]wPrintStart [10:14:48]Write to MH i2c: 01 00 00 C8 3B 03 [10:14:48]OFD Sender: Processing packet 31105 [packets to send 11, broken 10] [10:14:48]ProducePacketName [10:14:48]name=ofd_packets/00031105 [10:14:48]OFD Sender: To server: pG, [10:14:48]CommunicateWithHost lk.salyk.kg:30040 [10:14:48]ConnectInit lk.salyk.kg [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 07 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 07 00 C8 3B 00 00 00 00 00 FF 0F 18 [10:14:48]RasterBufferAndPrint [10:14:48]line Счет N : (1)343543 [10:14:48]line ИНН: 02508201610067 [10:14:48]line Контрольно-Кассовый Чек [10:14:48]line ПРОДАЖА [10:14:48]line ТРК (МРК, ГНК) : 53 [10:14:48]line Товар: 2710124130 [10:14:48]line Аи-92-К-2 [10:14:48]line 14.950 * 66.90 [10:14:48]line = 1000.16 [10:14:48]line НДС 12% НСП 1% [10:14:48]line > о реализуемом товаре [10:14:48]line ОКРУГЛЕНИЕ: -0.16 [10:14:48]line ИТОГО: 1000.00 [10:14:48]line Внесено: 1000.00 [10:14:48]line СДАЧА: 0.00 [10:14:48]line НСП 1% : 8.85 [10:14:48]line НДС 12% : 106.21 [10:14:48]line Наличными: 1000.00 [10:14:48]line Безнал.: 0.00 [10:14:48]line Место: АЗС № 78 "Партнер Нефть" [10:14:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:14:48]line СНО: Общий режим [10:14:48]line Чек 49 23.10.2024 10:14 [10:14:48]line Смена: 117 ФФД: 1.0 [10:14:48]line ЗНМ: 0300000137 [10:14:48]line РНМ: 0000000000186857 [10:14:48]line Версия ККМ: v1.0 [10:14:48]line ФМ: 0000000002094219 [10:14:48]line ФД: 31105 [10:14:48]line ФПД: 210722059611329 [10:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31105&fm=210722059611329&tin=02508201610067®Number=0000000000186857&sum=100000 [10:14:48]written 0, free lines is 4095 [10:14:48]Connected sock=9 [10:14:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7B 11 07 01 55 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9C CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 79 00 00 35 04 06 00 BF A6 8D 82 6C C1 24 DD EF FB BC 7E F4 78 [10:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8B 96 47 00 A8 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 79 00 00 F4 03 04 00 16 77 18 67 B6 04 01 00 00 3E 3D 49 DA 0C 8C 69 41 [10:14:48]CommunicateWithHost err = 0 [10:14:48]CheckOFDResponse [10:14:48]1017 (14) - 77093643461234 [10:14:48]1041 (16) - 0000000002094219 [10:14:48]1040 (4) - 31105 [10:14:48]1012 (4) - 23.10.2024 04:09 [10:14:48]1206 (1) - 0 [10:14:48]OFD Sender: Remove packet 31105 [10:14:48]ProducePacketName [10:14:48]name=ofd_packets/00031105 [10:14:48]NVStorageDeleteData [10:14:48]Write to MH i2c: 01 00 00 F3 3B 2E [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 07 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: 01 07 00 F3 3B 00 00 00 00 00 ED 0C 2E [10:14:48]RasterBufferAndPrint [10:14:48]line [10:14:48]line [10:14:48]line [10:14:48]line [10:14:48]line [10:14:48]written 0, free lines is 3318 [10:14:48]MH_Cut [10:14:48]Write to MH i2c: D1 01 00 FA 3B 01 07 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: D1 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: D1 01 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: D1 01 00 FA 3B 00 06 [10:14:48]Write to MH i2c: 01 00 00 FB 3B 36 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]OFD Sender: No OFD packet to send [10:14:49]*** Cut start [10:14:49]*** Partial cut [10:14:49]*** CUTSNS_PIN = 1 [10:14:49]*** CUTSNS_PIN = 0 [10:14:49]*** Brake cut motor [10:14:49]Read from MH i2c: 01 [10:14:49]MH_I2C_Read... [10:14:49]*** Stop cut motor [10:14:49]*** Cut end [10:14:49]Read from MH i2c: 01 07 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 FB 3B 00 00 00 00 00 FF 0F 4B [10:14:49]process_action close_receipt done [10:14:49]requested_data is exist [10:14:49]produce_requested_data [10:14:49]requested_item fm.sn is exist - process it [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 11 00 00 [10:14:49]Write to MH i2c: E2 08 00 FC 3B 80 11 00 00 00 00 00 00 B1 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 FC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [10:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:14:49]wFMCommunicate OK [10:14:49]requested_item fd.num is exist - process it [10:14:49]SAM_PROTO_GetFieldsCounters [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 13 00 00 [10:14:49]Write to MH i2c: E2 08 00 FD 3B 80 13 00 00 00 00 00 00 B4 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 62 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 62 00 FD 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 79 00 00 0E 04 04 00 75 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 DC [10:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 79 00 00 0E 04 04 00 75 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 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_GetFieldsCounters done [10:14:50]requested_item shift.num is exist - process it [10:14:50]requested_item shift.opened is exist - process it [10:14:50]req_shift_opened [10:14:50]FM_GetShiftState [10:14:50]SAM_PROTO_GetShiftState [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 13 01 00 [10:14:50]Write to MH i2c: E2 08 00 FE 3B 80 13 01 00 00 00 00 00 B6 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0E 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0E 00 FE 3B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 70 [10:14:50]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_GetShiftState done [10:14:50]FM_GetShiftState done [10:14:50]req_shift_opened done [10:14:50]requested_item shift.open_date is exist - process it [10:14:50]req_shift_open_date [10:14:50]req_shift_open_date done [10:14:50]produce_requested_data done [10:14:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31105,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:14:50]process_action_free close_receipt [10:14:50]json_value_free [10:14:50]json_value_free done [10:14:50]process_json_proto returns [10:14:50]Send response to host [10:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31105,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:14:50]free response buf [10:14:50]execute_script done [10:14:50]execute_script returns [10:14:50]free content buf [10:14:50]Sock 7.Close socket [10:14:50]Sock 7.Thread stoped [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:19]accept exits with 10 [10:16:19]New connection [10:16:19]New thread 3066899812 created [10:16:19]Thread 3067043172 joined [10:16:19]Waiting for new connection... [10:16:19] Sock 10.Parse request [10:16:19]Sock 10.Check first char [10:16:19]Sock 10.First char is OK [10:16:19]request: POST /json_proto HTTP/1.0 [10:16:19]Method: POST [10:16:19]URL: /json_proto [10:16:19]Method is POST - this is cgi request [10:16:19]url: /json_proto [10:16:19]query_string will be loaded in cgi processing [10:16:19]execute_cgi json_proto POST (null) [10:16:19]execute_cgi path=json_proto method=POST [10:16:19]POST find Content-Length [10:16:19]Host: 172.17.51.3:8080 [10:16:19]Content-Length: 677 [10:16:19]Content-Type: application/json [10:16:19] [10:16:19]POST finish read [10:16:19]Found Content-Length = 677 [10:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:19]execute_script... [10:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:19]POST & json_proto [10:16:19]process_json_proto [10:16:19]json parsed OK: [10:16:19]protocol is kg_v1.0 [10:16:19]action value=close_receipt [10:16:19]process_action close_receipt [10:16:19]cmd_close_receipt [10:16:19]MH_GetDate [10:16:19]Write to MH i2c: F0 00 00 FF 3B 29 [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: F0 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: F0 09 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: F0 09 00 FF 3B 00 F9 CC 18 67 04 C1 95 66 36 [10:16:19]GetLastDocTimeStamp 1729678492 [10:16:19]current date 1729678585 [10:16:19]FM_GetShiftState [10:16:19]SAM_PROTO_GetShiftState [10:16:19]wFMCommunicate request_size=4 [10:16:19]MH_SAM_APDU [10:16:19]CAPDU: 80 13 01 00 [10:16:19]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:19]Read from MH i2c: E2 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 0E 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 73 [10:16:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:16:19]wFMCommunicate OK [10:16:19]SAM_PROTO_GetShiftState done [10:16:19]FM_GetShiftState done [10:16:19]opened in 1729643755 [10:16:19]opened+sec_in_day 1729730155 [10:16:19]quantity*price = 50041 [10:16:19]sum+1 = 50042 [10:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 50 23.10.2024 10:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31106 ФПД: 253944041782973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31106&fm=253944041782973&tin=02508201610067®Number=0000000000186857&sum=50000 [10:16:20]StoreToDocumentArchive [10:16:20]shift 117 fd 31106 [10:16:20]save to /storage/0117/doc_00031106 [10:16:20]save last doc name /storage/0117/doc_00031106 to /storage/kkm_last_doc_name [10:16:20]save OK [10:16:20]Clear old archive folders... [10:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:20]tlvbuf is 00D67F20 [10:16:20]SAM_PROTO_ClearQueue [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 09 00 00 [10:16:20]Write to MH i2c: E2 08 00 0D 3C 80 09 00 00 00 00 00 00 BB [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 0D 3C 00 90 00 BD [10:16:20]RAPDU: 90 00 [10:16:20]wFMCommunicate OK [10:16:20]SAM_PROTO_ClearQueue done [10:16:20]KKMCreateOFDPacket [10:16:20]OFDProtocolAddRootSTLVToBuf [10:16:20]FM_MakeSignedData [10:16:20]FM_MakeSignedData [10:16:20]SAM_PROTO_SignData [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 0D 01 02 [10:16:20]Write to MH i2c: E2 08 00 0E 3C 80 0D 01 02 00 00 00 00 C3 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 03 00 0E 3C 00 90 00 BE [10:16:20]RAPDU: 90 00 [10:16:20]wFMCommunicate OK [10:16:20]wFMCommunicate request_size=255 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 79 00 00 35 04 06 00 E6 [10:16:20]Write to MH i2c: E2 02 01 0F 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 79 00 00 35 04 06 00 E6 00 00 20 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 0F 3C 00 90 00 BF [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]wFMCommunicate request_size=10 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 0D 02 02 05 F5 F4 67 3E BD [10:16:21]Write to MH i2c: E2 0D 00 10 3C 80 0D 02 02 05 00 F5 F4 67 3E BD 00 00 1B [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 10 3C 00 90 00 C0 [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 0D 03 02 [10:16:21]Write to MH i2c: E2 08 00 11 3C 80 0D 03 02 00 00 00 00 C8 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0B 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0B 00 11 3C 00 6E 57 FB 36 13 89 E3 6E 90 00 AC [10:16:21]RAPDU: 6E 57 FB 36 13 89 E3 6E 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_SignData done [10:16:21]FM_MakeSignedData done [10:16:21]CreateOFDProtocolMessage [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 11 00 00 [10:16:21]Write to MH i2c: E2 08 00 12 3C 80 11 00 00 00 00 00 00 C8 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 17 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 17 00 12 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [10:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:16:21]wFMCommunicate OK [10:16:21]CreateOFDProtocolMessage done [10:16:21]OFDSenderStorePacket 31106 [10:16:21]StoreOFDPacket docnum=31106 [10:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 10 07 01 FF BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 79 00 00 35 04 06 00 E6 F5 F4 67 3E BD 6E 57 FB 36 13 89 E3 6E [10:16:21]CheckFolder [10:16:21]dirname=/storage/ofd_packets [10:16:21]CheckFolder done [10:16:21]ProducePacketName [10:16:21]name=ofd_packets/00031106 [10:16:21]NVStorageSaveData ofd_packets/00031106 [10:16:21]File name is /storage/ofd_packets/00031106 [10:16:21]Write 301 bytes [10:16:21]NVStorageSaveData done [10:16:21]OFDSenderStorePacket done [10:16:21]KKMCreateOFDPacket done [10:16:21]NVStorageSaveData kkm_last_timestamp [10:16:21]File name is /storage/kkm_last_timestamp [10:16:21]Write 4 bytes [10:16:21]NVStorageSaveData done [10:16:21]ExternCall_PrintAddStr [10:16:21]wPrintStart [10:16:21]Write to MH i2c: 01 00 00 13 3C 4F [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: 01 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: 01 07 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: 01 07 00 13 3C 00 00 00 00 00 FF 0F 64 [10:16:21]RasterBufferAndPrint [10:16:21]line Счет N : (1)343544 [10:16:21]line ИНН: 02508201610067 [10:16:21]line Контрольно-Кассовый Чек [10:16:21]line ПРОДАЖА [10:16:21]line ТРК (МРК, ГНК) : 63 [10:16:21]line Товар: 2710124130 [10:16:21]line Аи-92-К-2 [10:16:21]line 7.480 * 66.90 [10:16:21]line = 500.41 [10:16:21]line НДС 12% НСП 1% [10:16:21]line > о реализуемом товаре [10:16:21]line ОКРУГЛЕНИЕ: -0.41 [10:16:21]line ИТОГО: 500.00 [10:16:21]line Внесено: 500.00 [10:16:21]line СДАЧА: 0.00 [10:16:21]line НСП 1% : 4.43 [10:16:21]line НДС 12% : 53.14 [10:16:21]line Наличными: 500.00 [10:16:21]line Безнал.: 0.00 [10:16:21]line Место: АЗС № 78 "Партнер Нефть" [10:16:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:16:21]line СНО: Общий режим [10:16:21]line Чек 50 23.10.2024 10:16 [10:16:21]line Смена: 117 ФФД: 1.0 [10:16:21]line ЗНМ: 0300000137 [10:16:21]line РНМ: 0000000000186857 [10:16:21]line Версия ККМ: v1.0 [10:16:21]line ФМ: 0000000002094219 [10:16:21]line ФД: 31106 [10:16:21]line ФПД: 253944041782973 [10:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31106&fm=253944041782973&tin=02508201610067®Number=0000000000186857&sum=50000 [10:16:21]OFD Sender: Processing packet 31106 [packets to send 11, broken 10] [10:16:21]ProducePacketName [10:16:21]name=ofd_packets/00031106 [10:16:21]OFD Sender: To server: pG, [10:16:21]CommunicateWithHost lk.salyk.kg:30040 [10:16:21]ConnectInit lk.salyk.kg [10:16:21]written 0, free lines is 4095 [10:16:21]Connected sock=11 [10:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 10 07 01 FF BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 CC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 79 00 00 35 04 06 00 E6 F5 F4 67 3E BD 6E 57 FB 36 13 89 E3 6E [10:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8E EB 47 00 95 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 79 00 00 F4 03 04 00 73 77 18 67 B6 04 01 00 00 6D A0 55 F4 32 3B 93 D1 [10:16:21]CommunicateWithHost err = 0 [10:16:21]CheckOFDResponse [10:16:21]1017 (14) - 77093643461234 [10:16:21]1041 (16) - 0000000002094219 [10:16:21]1040 (4) - 31106 [10:16:21]1012 (4) - 23.10.2024 04:11 [10:16:21]1206 (1) - 0 [10:16:21]OFD Sender: Remove packet 31106 [10:16:21]ProducePacketName [10:16:21]name=ofd_packets/00031106 [10:16:21]NVStorageDeleteData [10:16:22]Write to MH i2c: 01 00 00 3E 3C 7A [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 3E 3C 00 00 00 00 00 F3 0C 80 [10:16:22]RasterBufferAndPrint [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]line [10:16:22]written 0, free lines is 3321 [10:16:22]MH_Cut [10:16:22]Write to MH i2c: D1 01 00 45 3C 01 53 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 01 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: D1 01 00 45 3C 00 52 [10:16:22]Write to MH i2c: 01 00 00 46 3C 82 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]OFD Sender: No OFD packet to send [10:16:22]*** Cut start [10:16:22]*** Partial cut [10:16:22]*** CUTSNS_PIN = 1 [10:16:22]*** CUTSNS_PIN = 0 [10:16:23]*** Brake cut motor [10:16:23]Read from MH i2c: 01 [10:16:23]MH_I2C_Read... [10:16:23]*** Stop cut motor [10:16:23]*** Cut end [10:16:23]Read from MH i2c: 01 07 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: 01 07 00 46 3C 00 00 00 00 00 FF 0F 97 [10:16:23]process_action close_receipt done [10:16:23]requested_data is exist [10:16:23]produce_requested_data [10:16:23]requested_item fm.sn is exist - process it [10:16:23]wFMCommunicate request_size=4 [10:16:23]MH_SAM_APDU [10:16:23]CAPDU: 80 11 00 00 [10:16:23]Write to MH i2c: E2 08 00 47 3C 80 11 00 00 00 00 00 00 FD [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:23]Read from MH i2c: E2 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 17 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 17 00 47 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [10:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:16:23]wFMCommunicate OK [10:16:23]requested_item fd.num is exist - process it [10:16:23]SAM_PROTO_GetFieldsCounters [10:16:23]wFMCommunicate request_size=4 [10:16:23]MH_SAM_APDU [10:16:23]CAPDU: 80 13 00 00 [10:16:23]Write to MH i2c: E2 08 00 48 3C 80 13 00 00 00 00 00 00 00 [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:23]Read from MH i2c: E2 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 62 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 62 00 48 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 79 00 00 0E 04 04 00 75 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 2C [10:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 79 00 00 0E 04 04 00 75 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 [10:16:23]wFMCommunicate OK [10:16:23]SAM_PROTO_GetFieldsCounters done [10:16:23]requested_item shift.num is exist - process it [10:16:23]requested_item shift.opened is exist - process it [10:16:23]req_shift_opened [10:16:23]FM_GetShiftState [10:16:23]SAM_PROTO_GetShiftState [10:16:23]wFMCommunicate request_size=4 [10:16:23]MH_SAM_APDU [10:16:23]CAPDU: 80 13 01 00 [10:16:23]Write to MH i2c: E2 08 00 49 3C 80 13 01 00 00 00 00 00 02 [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:23]Read from MH i2c: E2 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 0E 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: E2 0E 00 49 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BC [10:16:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:16:23]wFMCommunicate OK [10:16:23]SAM_PROTO_GetShiftState done [10:16:23]FM_GetShiftState done [10:16:23]req_shift_opened done [10:16:23]requested_item shift.open_date is exist - process it [10:16:23]req_shift_open_date [10:16:23]req_shift_open_date done [10:16:23]produce_requested_data done [10:16:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31106,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:16:23]process_action_free close_receipt [10:16:23]json_value_free [10:16:23]json_value_free done [10:16:23]process_json_proto returns [10:16:23]Send response to host [10:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31106,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:16:23]free response buf [10:16:23]execute_script done [10:16:23]execute_script returns [10:16:23]free content buf [10:16:23]Sock 10.Close socket [10:16:23]Sock 10.Thread stoped [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:17:58]accept exits with 7 [10:17:58]New connection [10:17:58]New thread 3067043172 created [10:17:58]Thread 3066899812 joined [10:17:58]Waiting for new connection... [10:17:58] Sock 7.Parse request [10:17:58]Sock 7.Check first char [10:17:58]Sock 7.First char is OK [10:17:58]request: POST /json_proto HTTP/1.0 [10:17:58]Method: POST [10:17:58]URL: /json_proto [10:17:58]Method is POST - this is cgi request [10:17:58]url: /json_proto [10:17:58]query_string will be loaded in cgi processing [10:17:58]execute_cgi json_proto POST (null) [10:17:58]execute_cgi path=json_proto method=POST [10:17:58]POST find Content-Length [10:17:58]Host: 172.17.51.3:8080 [10:17:58]Content-Length: 677 [10:17:58]Content-Type: application/json [10:17:58] [10:17:58]POST finish read [10:17:58]Found Content-Length = 677 [10:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:58]execute_script... [10:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:58]POST & json_proto [10:17:58]process_json_proto [10:17:58]json parsed OK: [10:17:58]protocol is kg_v1.0 [10:17:58]action value=close_receipt [10:17:58]process_action close_receipt [10:17:58]cmd_close_receipt [10:17:58]MH_GetDate [10:17:58]Write to MH i2c: F0 00 00 4A 3C 75 [10:17:58]Write i2c OK [10:17:58]MH_I2C_Read... [10:17:58]Read from MH i2c: F0 [10:17:58]MH_I2C_Read... [10:17:58]Read from MH i2c: F0 09 00 [10:17:58]MH_I2C_Read... [10:17:58]Read from MH i2c: F0 09 00 4A 3C 00 5C CD 18 67 04 C1 95 66 E6 [10:17:58]GetLastDocTimeStamp 1729678585 [10:17:58]current date 1729678684 [10:17:58]FM_GetShiftState [10:17:58]SAM_PROTO_GetShiftState [10:17:58]wFMCommunicate request_size=4 [10:17:58]MH_SAM_APDU [10:17:58]CAPDU: 80 13 01 00 [10:17:58]Write to MH i2c: E2 08 00 4B 3C 80 13 01 00 00 00 00 00 04 [10:17:58]Write i2c OK [10:17:58]MH_I2C_Read... [10:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:58]Read from MH i2c: E2 [10:17:58]MH_I2C_Read... [10:17:58]Read from MH i2c: E2 0E 00 [10:17:58]MH_I2C_Read... [10:17:58]Read from MH i2c: E2 0E 00 4B 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BE [10:17:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:17:58]wFMCommunicate OK [10:17:58]SAM_PROTO_GetShiftState done [10:17:58]FM_GetShiftState done [10:17:58]opened in 1729643755 [10:17:58]opened+sec_in_day 1729730155 [10:17:58]quantity*price = 20003 [10:17:58]sum+1 = 20004 [10:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 51 23.10.2024 10:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31107 ФПД: 72559480996557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101804&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31107&fm=72559480996557&tin=02508201610067®Number=0000000000186857&sum=20000 [10:18:00]StoreToDocumentArchive [10:18:00]shift 117 fd 31107 [10:18:00]save to /storage/0117/doc_00031107 [10:18:00]save last doc name /storage/0117/doc_00031107 to /storage/kkm_last_doc_name [10:18:00]save OK [10:18:00]Clear old archive folders... [10:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:00]tlvbuf is B6F6B620 [10:18:00]SAM_PROTO_ClearQueue [10:18:00]wFMCommunicate request_size=4 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 09 00 00 [10:18:00]Write to MH i2c: E2 08 00 58 3C 80 09 00 00 00 00 00 00 06 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 58 3C 00 90 00 08 [10:18:00]RAPDU: 90 00 [10:18:00]wFMCommunicate OK [10:18:00]SAM_PROTO_ClearQueue done [10:18:00]KKMCreateOFDPacket [10:18:00]OFDProtocolAddRootSTLVToBuf [10:18:00]FM_MakeSignedData [10:18:00]FM_MakeSignedData [10:18:00]SAM_PROTO_SignData [10:18:00]wFMCommunicate request_size=4 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 0D 01 02 [10:18:00]Write to MH i2c: E2 08 00 59 3C 80 0D 01 02 00 00 00 00 0E [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 59 3C 00 90 00 09 [10:18:00]RAPDU: 90 00 [10:18:00]wFMCommunicate OK [10:18:00]wFMCommunicate request_size=255 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5C CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 79 00 00 35 04 06 00 41 [10:18:00]Write to MH i2c: E2 02 01 5A 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5C CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 79 00 00 35 04 06 00 41 00 00 EE [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [10:18:00]RAPDU: 90 00 [10:18:00]wFMCommunicate OK [10:18:00]wFMCommunicate request_size=10 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 0D 02 02 05 FE 12 17 02 CD [10:18:00]Write to MH i2c: E2 0D 00 5B 3C 80 0D 02 02 05 00 FE 12 17 02 CD 00 00 11 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [10:18:00]RAPDU: 90 00 [10:18:00]wFMCommunicate OK [10:18:00]wFMCommunicate request_size=4 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 0D 03 02 [10:18:00]Write to MH i2c: E2 08 00 5C 3C 80 0D 03 02 00 00 00 00 13 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 0B 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 0B 00 5C 3C 00 18 9C 2F BD 6F F0 7C C4 90 00 53 [10:18:00]RAPDU: 18 9C 2F BD 6F F0 7C C4 90 00 [10:18:00]wFMCommunicate OK [10:18:00]SAM_PROTO_SignData done [10:18:00]FM_MakeSignedData done [10:18:00]CreateOFDProtocolMessage [10:18:00]wFMCommunicate request_size=4 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 11 00 00 [10:18:00]Write to MH i2c: E2 08 00 5D 3C 80 11 00 00 00 00 00 00 13 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 17 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 17 00 5D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [10:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:18:00]wFMCommunicate OK [10:18:00]CreateOFDProtocolMessage done [10:18:00]OFDSenderStorePacket 31107 [10:18:00]StoreOFDPacket docnum=31107 [10:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 FB 07 01 F7 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5C CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 79 00 00 35 04 06 00 41 FE 12 17 02 CD 18 9C 2F BD 6F F0 7C C4 [10:18:00]CheckFolder [10:18:00]dirname=/storage/ofd_packets [10:18:00]CheckFolder done [10:18:00]ProducePacketName [10:18:00]name=ofd_packets/00031107 [10:18:00]NVStorageSaveData ofd_packets/00031107 [10:18:00]File name is /storage/ofd_packets/00031107 [10:18:00]Write 301 bytes [10:18:00]NVStorageSaveData done [10:18:00]OFDSenderStorePacket done [10:18:00]KKMCreateOFDPacket done [10:18:00]NVStorageSaveData kkm_last_timestamp [10:18:00]File name is /storage/kkm_last_timestamp [10:18:00]Write 4 bytes [10:18:00]NVStorageSaveData done [10:18:00]ExternCall_PrintAddStr [10:18:00]wPrintStart [10:18:00]Write to MH i2c: 01 00 00 5E 3C 9A [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: 01 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: 01 07 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: 01 07 00 5E 3C 00 00 00 00 00 FF 0F AF [10:18:00]RasterBufferAndPrint [10:18:00]line Счет N : (1)343545 [10:18:00]line ИНН: 02508201610067 [10:18:00]line Контрольно-Кассовый Чек [10:18:00]line ПРОДАЖА [10:18:00]line ТРК (МРК, ГНК) : 63 [10:18:00]line Товар: 2710124130 [10:18:00]line Аи-92-К-2 [10:18:00]line 2.990 * 66.90 [10:18:00]line = 200.03 [10:18:00]line НДС 12% НСП 1% [10:18:00]line > о реализуемом товаре [10:18:00]line ОКРУГЛЕНИЕ: -0.03 [10:18:00]line ИТОГО: 200.00 [10:18:00]line Внесено: 200.00 [10:18:00]line СДАЧА: 0.00 [10:18:00]line НСП 1% : 1.77 [10:18:00]line НДС 12% : 21.24 [10:18:00]line Наличными: 200.00 [10:18:00]line Безнал.: 0.00 [10:18:00]line Место: АЗС № 78 "Партнер Нефть" [10:18:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:18:00]line СНО: Общий режим [10:18:00]line Чек 51 23.10.2024 10:18 [10:18:00]line Смена: 117 ФФД: 1.0 [10:18:00]line ЗНМ: 0300000137 [10:18:00]line РНМ: 0000000000186857 [10:18:00]line Версия ККМ: v1.0 [10:18:00]line ФМ: 0000000002094219 [10:18:00]line ФД: 31107 [10:18:00]line ФПД: 72559480996557 [10:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101804&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31107&fm=72559480996557&tin=02508201610067®Number=0000000000186857&sum=20000 [10:18:00]OFD Sender: Processing packet 31107 [packets to send 11, broken 10] [10:18:00]ProducePacketName [10:18:00]name=ofd_packets/00031107 [10:18:00]OFD Sender: To server: pG, [10:18:00]CommunicateWithHost lk.salyk.kg:30040 [10:18:00]ConnectInit lk.salyk.kg [10:18:00]written 0, free lines is 4095 [10:18:01]Connected sock=10 [10:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 FB 07 01 F7 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5C CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 79 00 00 35 04 06 00 41 FE 12 17 02 CD 18 9C 2F BD 6F F0 7C C4 [10:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E2 88 47 00 95 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 79 00 00 F4 03 04 00 D7 77 18 67 B6 04 01 00 00 2F 70 39 3D D4 33 94 08 [10:18:01]CommunicateWithHost err = 0 [10:18:01]CheckOFDResponse [10:18:01]1017 (14) - 77093643461234 [10:18:01]1041 (16) - 0000000002094219 [10:18:01]1040 (4) - 31107 [10:18:01]1012 (4) - 23.10.2024 04:13 [10:18:01]1206 (1) - 0 [10:18:01]OFD Sender: Remove packet 31107 [10:18:01]ProducePacketName [10:18:01]name=ofd_packets/00031107 [10:18:01]NVStorageDeleteData [10:18:01]Write to MH i2c: 01 00 00 89 3C C5 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 07 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 07 00 89 3C 00 00 00 00 00 EF 0C C7 [10:18:01]RasterBufferAndPrint [10:18:01]line [10:18:01]line [10:18:01]line [10:18:01]line [10:18:01]line [10:18:01]written 0, free lines is 3320 [10:18:01]MH_Cut [10:18:01]Write to MH i2c: D1 01 00 90 3C 01 9E [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: D1 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: D1 01 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: D1 01 00 90 3C 00 9D [10:18:01]Write to MH i2c: 01 00 00 91 3C CD [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]OFD Sender: No OFD packet to send [10:18:02]*** Cut start [10:18:02]*** Partial cut [10:18:02]*** CUTSNS_PIN = 1 [10:18:02]*** CUTSNS_PIN = 0 [10:18:02]*** Brake cut motor [10:18:02]Read from MH i2c: 01 [10:18:02]MH_I2C_Read... [10:18:02]*** Stop cut motor [10:18:02]*** Cut end [10:18:02]Read from MH i2c: 01 07 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 FF 0F E2 [10:18:02]process_action close_receipt done [10:18:02]requested_data is exist [10:18:02]produce_requested_data [10:18:02]requested_item fm.sn is exist - process it [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 11 00 00 [10:18:02]Write to MH i2c: E2 08 00 92 3C 80 11 00 00 00 00 00 00 48 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 17 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 17 00 92 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [10:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:18:02]wFMCommunicate OK [10:18:02]requested_item fd.num is exist - process it [10:18:02]SAM_PROTO_GetFieldsCounters [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 13 00 00 [10:18:02]Write to MH i2c: E2 08 00 93 3C 80 13 00 00 00 00 00 00 4B [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 62 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 62 00 93 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 79 00 00 0E 04 04 00 75 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 7B [10:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 79 00 00 0E 04 04 00 75 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 [10:18:02]wFMCommunicate OK [10:18:02]SAM_PROTO_GetFieldsCounters done [10:18:02]requested_item shift.num is exist - process it [10:18:02]requested_item shift.opened is exist - process it [10:18:02]req_shift_opened [10:18:02]FM_GetShiftState [10:18:02]SAM_PROTO_GetShiftState [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 13 01 00 [10:18:02]Write to MH i2c: E2 08 00 94 3C 80 13 01 00 00 00 00 00 4D [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0E 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0E 00 94 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 07 [10:18:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:18:02]wFMCommunicate OK [10:18:02]SAM_PROTO_GetShiftState done [10:18:02]FM_GetShiftState done [10:18:02]req_shift_opened done [10:18:02]requested_item shift.open_date is exist - process it [10:18:02]req_shift_open_date [10:18:02]req_shift_open_date done [10:18:02]produce_requested_data done [10:18:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31107,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:18:02]process_action_free close_receipt [10:18:02]json_value_free [10:18:02]json_value_free done [10:18:02]process_json_proto returns [10:18:02]Send response to host [10:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31107,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:18:02]free response buf [10:18:02]execute_script done [10:18:02]execute_script returns [10:18:02]free content buf [10:18:02]Sock 7.Close socket [10:18:02]Sock 7.Thread stoped [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:04]accept exits with 9 [10:20:04]New connection [10:20:04]New thread 3066899812 created [10:20:04]Thread 3067043172 joined [10:20:04]Waiting for new connection... [10:20:04] Sock 9.Parse request [10:20:04]Sock 9.Check first char [10:20:04]Sock 9.First char is OK [10:20:04]request: POST /json_proto HTTP/1.0 [10:20:04]Method: POST [10:20:04]URL: /json_proto [10:20:04]Method is POST - this is cgi request [10:20:04]url: /json_proto [10:20:04]query_string will be loaded in cgi processing [10:20:04]execute_cgi json_proto POST (null) [10:20:04]execute_cgi path=json_proto method=POST [10:20:04]POST find Content-Length [10:20:04]Host: 172.17.51.3:8080 [10:20:04]Content-Length: 677 [10:20:04]Content-Type: application/json [10:20:04] [10:20:04]POST finish read [10:20:04]Found Content-Length = 677 [10:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:04]execute_script... [10:20:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:04]POST & json_proto [10:20:04]process_json_proto [10:20:04]json parsed OK: [10:20:04]protocol is kg_v1.0 [10:20:04]action value=close_receipt [10:20:04]process_action close_receipt [10:20:04]cmd_close_receipt [10:20:04]MH_GetDate [10:20:04]Write to MH i2c: F0 00 00 95 3C C0 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 09 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 09 00 95 3C 00 DA CD 18 67 04 C1 95 66 AF [10:20:04]GetLastDocTimeStamp 1729678684 [10:20:04]current date 1729678810 [10:20:04]FM_GetShiftState [10:20:04]SAM_PROTO_GetShiftState [10:20:04]wFMCommunicate request_size=4 [10:20:04]MH_SAM_APDU [10:20:04]CAPDU: 80 13 01 00 [10:20:04]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 09 [10:20:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:20:04]wFMCommunicate OK [10:20:04]SAM_PROTO_GetShiftState done [10:20:04]FM_GetShiftState done [10:20:04]opened in 1729643755 [10:20:04]opened+sec_in_day 1729730155 [10:20:04]quantity*price = 30038 [10:20:04]sum+1 = 30039 [10:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 52 23.10.2024 10:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31108 ФПД: 155101616310355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102010&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31108&fm=155101616310355&tin=02508201610067®Number=0000000000186857&sum=30000 [10:20:06]StoreToDocumentArchive [10:20:06]shift 117 fd 31108 [10:20:06]save to /storage/0117/doc_00031108 [10:20:06]save last doc name /storage/0117/doc_00031108 to /storage/kkm_last_doc_name [10:20:06]save OK [10:20:06]Clear old archive folders... [10:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:06]tlvbuf is 00D33590 [10:20:06]SAM_PROTO_ClearQueue [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 09 00 00 [10:20:06]Write to MH i2c: E2 08 00 A3 3C 80 09 00 00 00 00 00 00 51 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 A3 3C 00 90 00 53 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]SAM_PROTO_ClearQueue done [10:20:06]KKMCreateOFDPacket [10:20:06]OFDProtocolAddRootSTLVToBuf [10:20:06]FM_MakeSignedData [10:20:06]FM_MakeSignedData [10:20:06]SAM_PROTO_SignData [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 01 02 [10:20:06]Write to MH i2c: E2 08 00 A4 3C 80 0D 01 02 00 00 00 00 59 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 A4 3C 00 90 00 54 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]wFMCommunicate request_size=255 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DA CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 79 00 00 35 04 06 00 8D [10:20:06]Write to MH i2c: E2 02 01 A5 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DA CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 79 00 00 35 04 06 00 8D 00 00 37 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]wFMCommunicate request_size=10 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 02 02 05 10 68 BE 88 53 [10:20:06]Write to MH i2c: E2 0D 00 A6 3C 80 0D 02 02 05 00 10 68 BE 88 53 00 00 77 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 03 02 [10:20:06]Write to MH i2c: E2 08 00 A7 3C 80 0D 03 02 00 00 00 00 5E [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0B 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0B 00 A7 3C 00 F0 B1 79 A1 A2 37 B9 6F 90 00 1B [10:20:06]RAPDU: F0 B1 79 A1 A2 37 B9 6F 90 00 [10:20:06]wFMCommunicate OK [10:20:06]SAM_PROTO_SignData done [10:20:06]FM_MakeSignedData done [10:20:06]CreateOFDProtocolMessage [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 11 00 00 [10:20:06]Write to MH i2c: E2 08 00 A8 3C 80 11 00 00 00 00 00 00 5E [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 17 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 17 00 A8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [10:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:06]wFMCommunicate OK [10:20:06]CreateOFDProtocolMessage done [10:20:06]OFDSenderStorePacket 31108 [10:20:06]StoreOFDPacket docnum=31108 [10:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 33 4D 07 01 A6 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DA CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 79 00 00 35 04 06 00 8D 10 68 BE 88 53 F0 B1 79 A1 A2 37 B9 6F [10:20:06]CheckFolder [10:20:06]dirname=/storage/ofd_packets [10:20:06]CheckFolder done [10:20:06]ProducePacketName [10:20:06]name=ofd_packets/00031108 [10:20:06]NVStorageSaveData ofd_packets/00031108 [10:20:06]File name is /storage/ofd_packets/00031108 [10:20:06]Write 301 bytes [10:20:06]NVStorageSaveData done [10:20:06]OFDSenderStorePacket done [10:20:06]KKMCreateOFDPacket done [10:20:06]NVStorageSaveData kkm_last_timestamp [10:20:06]File name is /storage/kkm_last_timestamp [10:20:06]Write 4 bytes [10:20:06]NVStorageSaveData done [10:20:06]ExternCall_PrintAddStr [10:20:06]wPrintStart [10:20:06]Write to MH i2c: 01 00 00 A9 3C E5 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 FF 0F FA [10:20:06]RasterBufferAndPrint [10:20:06]line Счет N : (1)343546 [10:20:06]line ИНН: 02508201610067 [10:20:06]line Контрольно-Кассовый Чек [10:20:06]line ПРОДАЖА [10:20:06]line ТРК (МРК, ГНК) : 43 [10:20:06]line Товар: 2710124130 [10:20:06]line Аи-92-К-2 [10:20:06]line 4.490 * 66.90 [10:20:06]line = 300.38 [10:20:06]line НДС 12% НСП 1% [10:20:06]line > о реализуемом товаре [10:20:06]line ОКРУГЛЕНИЕ: -0.38 [10:20:06]line ИТОГО: 300.00 [10:20:06]line Внесено: 300.00 [10:20:06]line СДАЧА: 0.00 [10:20:06]line НСП 1% : 2.66 [10:20:06]line НДС 12% : 31.90 [10:20:06]line Наличными: 300.00 [10:20:06]line Безнал.: 0.00 [10:20:06]line Место: АЗС № 78 "Партнер Нефть" [10:20:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:20:06]line СНО: Общий режим [10:20:06]line Чек 52 23.10.2024 10:20 [10:20:06]line Смена: 117 ФФД: 1.0 [10:20:06]line ЗНМ: 0300000137 [10:20:06]line РНМ: 0000000000186857 [10:20:06]line Версия ККМ: v1.0 [10:20:06]line ФМ: 0000000002094219 [10:20:06]line ФД: 31108 [10:20:06]line ФПД: 155101616310355 [10:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102010&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31108&fm=155101616310355&tin=02508201610067®Number=0000000000186857&sum=30000 [10:20:06]OFD Sender: Processing packet 31108 [packets to send 11, broken 10] [10:20:06]ProducePacketName [10:20:06]name=ofd_packets/00031108 [10:20:06]OFD Sender: To server: pG, [10:20:06]CommunicateWithHost lk.salyk.kg:30040 [10:20:06]ConnectInit lk.salyk.kg [10:20:06]written 0, free lines is 4095 [10:20:07]Connected sock=10 [10:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 33 4D 07 01 A6 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DA CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 79 00 00 35 04 06 00 8D 10 68 BE 88 53 F0 B1 79 A1 A2 37 B9 6F [10:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 7E 47 00 1D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 79 00 00 F4 03 04 00 55 78 18 67 B6 04 01 00 00 56 4D 89 19 22 43 26 D9 [10:20:07]CommunicateWithHost err = 0 [10:20:07]CheckOFDResponse [10:20:07]1017 (14) - 77093643461234 [10:20:07]1041 (16) - 0000000002094219 [10:20:07]1040 (4) - 31108 [10:20:07]1012 (4) - 23.10.2024 04:15 [10:20:07]1206 (1) - 0 [10:20:07]OFD Sender: Remove packet 31108 [10:20:07]ProducePacketName [10:20:07]name=ofd_packets/00031108 [10:20:07]NVStorageDeleteData [10:20:07]Write to MH i2c: 01 00 00 D4 3C 10 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: 01 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: 01 07 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: 01 07 00 D4 3C 00 00 00 00 00 F0 0C 13 [10:20:07]RasterBufferAndPrint [10:20:07]line [10:20:07]line [10:20:07]line [10:20:07]line [10:20:07]line [10:20:07]written 0, free lines is 3321 [10:20:07]MH_Cut [10:20:07]Write to MH i2c: D1 01 00 DB 3C 01 E9 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: D1 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: D1 01 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: D1 01 00 DB 3C 00 E8 [10:20:07]Write to MH i2c: 01 00 00 DC 3C 18 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]OFD Sender: No OFD packet to send [10:20:08]*** Cut start [10:20:08]*** Partial cut [10:20:08]*** CUTSNS_PIN = 1 [10:20:08]*** CUTSNS_PIN = 0 [10:20:08]*** Brake cut motor [10:20:08]Read from MH i2c: 01 [10:20:08]MH_I2C_Read... [10:20:08]*** Stop cut motor [10:20:08]*** Cut end [10:20:08]Read from MH i2c: 01 07 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [10:20:08]process_action close_receipt done [10:20:08]requested_data is exist [10:20:08]produce_requested_data [10:20:08]requested_item fm.sn is exist - process it [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 11 00 00 [10:20:08]Write to MH i2c: E2 08 00 DD 3C 80 11 00 00 00 00 00 00 93 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 DD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [10:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:08]wFMCommunicate OK [10:20:08]requested_item fd.num is exist - process it [10:20:08]SAM_PROTO_GetFieldsCounters [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 13 00 00 [10:20:08]Write to MH i2c: E2 08 00 DE 3C 80 13 00 00 00 00 00 00 96 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 62 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 62 00 DE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 79 00 00 0E 04 04 00 75 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 CA [10:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 79 00 00 0E 04 04 00 75 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 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_GetFieldsCounters done [10:20:08]requested_item shift.num is exist - process it [10:20:08]requested_item shift.opened is exist - process it [10:20:08]req_shift_opened [10:20:08]FM_GetShiftState [10:20:08]SAM_PROTO_GetShiftState [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 13 01 00 [10:20:08]Write to MH i2c: E2 08 00 DF 3C 80 13 01 00 00 00 00 00 98 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0E 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0E 00 DF 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 52 [10:20:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_GetShiftState done [10:20:08]FM_GetShiftState done [10:20:08]req_shift_opened done [10:20:08]requested_item shift.open_date is exist - process it [10:20:08]req_shift_open_date [10:20:08]req_shift_open_date done [10:20:08]produce_requested_data done [10:20:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31108,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:20:08]process_action_free close_receipt [10:20:08]json_value_free [10:20:08]json_value_free done [10:20:08]process_json_proto returns [10:20:08]Send response to host [10:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31108,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:20:08]free response buf [10:20:08]execute_script done [10:20:08]execute_script returns [10:20:08]free content buf [10:20:08]Sock 9.Close socket [10:20:08]Sock 9.Thread stoped [10:20:10]accept exits with 7 [10:20:10]New connection [10:20:10]New thread 3067043172 created [10:20:10]Thread 3066899812 joined [10:20:10]Waiting for new connection... [10:20:10] Sock 7.Parse request [10:20:10]Sock 7.Check first char [10:20:10]Sock 7.First char is OK [10:20:10]request: POST /json_proto HTTP/1.0 [10:20:10]Method: POST [10:20:10]URL: /json_proto [10:20:10]Method is POST - this is cgi request [10:20:10]url: /json_proto [10:20:10]query_string will be loaded in cgi processing [10:20:10]execute_cgi json_proto POST (null) [10:20:10]execute_cgi path=json_proto method=POST [10:20:10]POST find Content-Length [10:20:10]Host: 172.17.51.3:8080 [10:20:10]Content-Length: 677 [10:20:10]Content-Type: application/json [10:20:10] [10:20:10]POST finish read [10:20:10]Found Content-Length = 677 [10:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]execute_script... [10:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]POST & json_proto [10:20:10]process_json_proto [10:20:10]json parsed OK: [10:20:10]protocol is kg_v1.0 [10:20:10]action value=close_receipt [10:20:10]process_action close_receipt [10:20:10]cmd_close_receipt [10:20:10]MH_GetDate [10:20:10]Write to MH i2c: F0 00 00 E0 3C 0B [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 E0 3C 00 DF CD 18 67 04 C1 95 66 FF [10:20:10]GetLastDocTimeStamp 1729678810 [10:20:10]current date 1729678815 [10:20:10]FM_GetShiftState [10:20:10]SAM_PROTO_GetShiftState [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 13 01 00 [10:20:10]Write to MH i2c: E2 08 00 E1 3C 80 13 01 00 00 00 00 00 9A [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 E1 3C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 54 [10:20:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:20:10]wFMCommunicate OK [10:20:10]SAM_PROTO_GetShiftState done [10:20:10]FM_GetShiftState done [10:20:10]opened in 1729643755 [10:20:10]opened+sec_in_day 1729730155 [10:20:10]quantity*price = 50041 [10:20:10]sum+1 = 50042 [10:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 53 23.10.2024 10:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31109 ФПД: 93100274090420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102016&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31109&fm=93100274090420&tin=02508201610067®Number=0000000000186857&sum=50000 [10:20:11]StoreToDocumentArchive [10:20:11]shift 117 fd 31109 [10:20:11]save to /storage/0117/doc_00031109 [10:20:11]save last doc name /storage/0117/doc_00031109 to /storage/kkm_last_doc_name [10:20:11]save OK [10:20:11]Clear old archive folders... [10:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:11]tlvbuf is 00CF3BE0 [10:20:11]SAM_PROTO_ClearQueue [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 09 00 00 [10:20:11]Write to MH i2c: E2 08 00 EE 3C 80 09 00 00 00 00 00 00 9C [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_ClearQueue done [10:20:11]KKMCreateOFDPacket [10:20:11]OFDProtocolAddRootSTLVToBuf [10:20:11]FM_MakeSignedData [10:20:11]FM_MakeSignedData [10:20:11]SAM_PROTO_SignData [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 01 02 [10:20:11]Write to MH i2c: E2 08 00 EF 3C 80 0D 01 02 00 00 00 00 A4 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=255 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E0 CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 79 00 00 35 04 06 00 54 [10:20:11]Write to MH i2c: E2 02 01 F0 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E0 CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 79 00 00 35 04 06 00 54 00 00 5D [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=10 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 02 02 05 AC 98 C4 01 B4 [10:20:11]Write to MH i2c: E2 0D 00 F1 3C 80 0D 02 02 05 00 AC 98 C4 01 B4 00 00 6E [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [10:20:12]RAPDU: 90 00 [10:20:12]wFMCommunicate OK [10:20:12]wFMCommunicate request_size=4 [10:20:12]MH_SAM_APDU [10:20:12]CAPDU: 80 0D 03 02 [10:20:12]Write to MH i2c: E2 08 00 F2 3C 80 0D 03 02 00 00 00 00 A9 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 0B 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 0B 00 F2 3C 00 AB FD 00 17 09 DA F1 1F 90 00 5C [10:20:12]RAPDU: AB FD 00 17 09 DA F1 1F 90 00 [10:20:12]wFMCommunicate OK [10:20:12]SAM_PROTO_SignData done [10:20:12]FM_MakeSignedData done [10:20:12]CreateOFDProtocolMessage [10:20:12]wFMCommunicate request_size=4 [10:20:12]MH_SAM_APDU [10:20:12]CAPDU: 80 11 00 00 [10:20:12]Write to MH i2c: E2 08 00 F3 3C 80 11 00 00 00 00 00 00 A9 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 17 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 17 00 F3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [10:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:12]wFMCommunicate OK [10:20:12]CreateOFDProtocolMessage done [10:20:12]OFDSenderStorePacket 31109 [10:20:12]StoreOFDPacket docnum=31109 [10:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 C5 07 01 D0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E0 CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 79 00 00 35 04 06 00 54 AC 98 C4 01 B4 AB FD 00 17 09 DA F1 1F [10:20:12]CheckFolder [10:20:12]dirname=/storage/ofd_packets [10:20:12]CheckFolder done [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00031109 [10:20:12]NVStorageSaveData ofd_packets/00031109 [10:20:12]File name is /storage/ofd_packets/00031109 [10:20:12]Write 301 bytes [10:20:12]NVStorageSaveData done [10:20:12]OFDSenderStorePacket done [10:20:12]KKMCreateOFDPacket done [10:20:12]NVStorageSaveData kkm_last_timestamp [10:20:12]File name is /storage/kkm_last_timestamp [10:20:12]Write 4 bytes [10:20:12]NVStorageSaveData done [10:20:12]ExternCall_PrintAddStr [10:20:12]wPrintStart [10:20:12]Write to MH i2c: 01 00 00 F4 3C 30 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 F4 3C 00 00 00 00 00 FF 0F 45 [10:20:12]RasterBufferAndPrint [10:20:12]line Счет N : (1)343547 [10:20:12]line ИНН: 02508201610067 [10:20:12]line Контрольно-Кассовый Чек [10:20:12]line ПРОДАЖА [10:20:12]line ТРК (МРК, ГНК) : 63 [10:20:12]line Товар: 2710124130 [10:20:12]line Аи-92-К-2 [10:20:12]line 7.480 * 66.90 [10:20:12]line = 500.41 [10:20:12]line НДС 12% НСП 1% [10:20:12]line > о реализуемом товаре [10:20:12]line ОКРУГЛЕНИЕ: -0.41 [10:20:12]line ИТОГО: 500.00 [10:20:12]line Внесено: 500.00 [10:20:12]line СДАЧА: 0.00 [10:20:12]line НСП 1% : 4.43 [10:20:12]line НДС 12% : 53.14 [10:20:12]line Наличными: 500.00 [10:20:12]line Безнал.: 0.00 [10:20:12]line Место: АЗС № 78 "Партнер Нефть" [10:20:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:20:12]line СНО: Общий режим [10:20:12]line Чек 53 23.10.2024 10:20 [10:20:12]line Смена: 117 ФФД: 1.0 [10:20:12]line ЗНМ: 0300000137 [10:20:12]line РНМ: 0000000000186857 [10:20:12]line Версия ККМ: v1.0 [10:20:12]line ФМ: 0000000002094219 [10:20:12]line ФД: 31109 [10:20:12]line ФПД: 93100274090420 [10:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102016&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31109&fm=93100274090420&tin=02508201610067®Number=0000000000186857&sum=50000 [10:20:12]OFD Sender: Processing packet 31109 [packets to send 11, broken 10] [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00031109 [10:20:12]written 0, free lines is 4095 [10:20:12]OFD Sender: To server: pG, [10:20:12]CommunicateWithHost lk.salyk.kg:30040 [10:20:12]ConnectInit lk.salyk.kg [10:20:12]Connected sock=10 [10:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 C5 07 01 D0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E0 CD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 79 00 00 35 04 06 00 54 AC 98 C4 01 B4 AB FD 00 17 09 DA F1 1F [10:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 34 A4 47 00 02 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 79 00 00 F4 03 04 00 5A 78 18 67 B6 04 01 00 00 2B 70 0B B7 66 4E CB DD [10:20:12]CommunicateWithHost err = 0 [10:20:12]CheckOFDResponse [10:20:12]1017 (14) - 77093643461234 [10:20:12]1041 (16) - 0000000002094219 [10:20:12]1040 (4) - 31109 [10:20:12]1012 (4) - 23.10.2024 04:15 [10:20:12]1206 (1) - 0 [10:20:12]OFD Sender: Remove packet 31109 [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00031109 [10:20:12]NVStorageDeleteData [10:20:12]Write to MH i2c: 01 00 00 1F 3D 5C [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 1F 3D 00 00 00 00 00 FC 0C 6B [10:20:12]RasterBufferAndPrint [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]line [10:20:12]written 0, free lines is 3339 [10:20:12]MH_Cut [10:20:12]Write to MH i2c: D1 01 00 26 3D 01 35 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 01 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: D1 01 00 26 3D 00 34 [10:20:12]Write to MH i2c: 01 00 00 27 3D 64 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:13]OFD Sender: No OFD packet to send [10:20:13]*** Cut start [10:20:13]*** Partial cut [10:20:13]*** CUTSNS_PIN = 1 [10:20:13]*** CUTSNS_PIN = 0 [10:20:13]*** Brake cut motor [10:20:14]Read from MH i2c: 01 [10:20:14]MH_I2C_Read... [10:20:14]*** Stop cut motor [10:20:14]*** Cut end [10:20:14]Read from MH i2c: 01 07 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: 01 07 00 27 3D 00 00 00 00 00 FF 0F 79 [10:20:14]process_action close_receipt done [10:20:14]requested_data is exist [10:20:14]produce_requested_data [10:20:14]requested_item fm.sn is exist - process it [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 11 00 00 [10:20:14]Write to MH i2c: E2 08 00 28 3D 80 11 00 00 00 00 00 00 DF [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 17 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 17 00 28 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [10:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:20:14]wFMCommunicate OK [10:20:14]requested_item fd.num is exist - process it [10:20:14]SAM_PROTO_GetFieldsCounters [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 13 00 00 [10:20:14]Write to MH i2c: E2 08 00 29 3D 80 13 00 00 00 00 00 00 E2 [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 62 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 62 00 29 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:14]wFMCommunicate OK [10:20:14]SAM_PROTO_GetFieldsCounters done [10:20:14]requested_item shift.num is exist - process it [10:20:14]requested_item shift.opened is exist - process it [10:20:14]req_shift_opened [10:20:14]FM_GetShiftState [10:20:14]SAM_PROTO_GetShiftState [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 13 01 00 [10:20:14]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9E [10:20:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:20:14]wFMCommunicate OK [10:20:14]SAM_PROTO_GetShiftState done [10:20:14]FM_GetShiftState done [10:20:14]req_shift_opened done [10:20:14]requested_item shift.open_date is exist - process it [10:20:14]req_shift_open_date [10:20:14]req_shift_open_date done [10:20:14]produce_requested_data done [10:20:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31109,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:20:14]process_action_free close_receipt [10:20:14]json_value_free [10:20:14]json_value_free done [10:20:14]process_json_proto returns [10:20:14]Send response to host [10:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31109,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:20:14]free response buf [10:20:14]execute_script done [10:20:14]execute_script returns [10:20:14]free content buf [10:20:14]Sock 7.Close socket [10:20:14]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:04]accept exits with 9 [10:27:04]New connection [10:27:04]New thread 3066899812 created [10:27:04]Thread 3067043172 joined [10:27:04]Waiting for new connection... [10:27:04] Sock 9.Parse request [10:27:04]Sock 9.Check first char [10:27:04]Sock 9.First char is OK [10:27:04]request: POST /json_proto HTTP/1.0 [10:27:04]Method: POST [10:27:04]URL: /json_proto [10:27:04]Method is POST - this is cgi request [10:27:04]url: /json_proto [10:27:04]query_string will be loaded in cgi processing [10:27:04]execute_cgi json_proto POST (null) [10:27:04]execute_cgi path=json_proto method=POST [10:27:04]POST find Content-Length [10:27:04]Host: 172.17.51.3:8080 [10:27:04]Content-Length: 677 [10:27:04]Content-Type: application/json [10:27:04] [10:27:04]POST finish read [10:27:04]Found Content-Length = 677 [10:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:04]execute_script... [10:27:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:04]POST & json_proto [10:27:04]process_json_proto [10:27:04]json parsed OK: [10:27:04]protocol is kg_v1.0 [10:27:04]action value=close_receipt [10:27:04]process_action close_receipt [10:27:04]cmd_close_receipt [10:27:04]MH_GetDate [10:27:04]Write to MH i2c: F0 00 00 2B 3D 57 [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 09 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 09 00 2B 3D 00 7E CF 18 67 04 C1 95 66 EC [10:27:04]GetLastDocTimeStamp 1729678816 [10:27:04]current date 1729679230 [10:27:04]FM_GetShiftState [10:27:04]SAM_PROTO_GetShiftState [10:27:04]wFMCommunicate request_size=4 [10:27:04]MH_SAM_APDU [10:27:04]CAPDU: 80 13 01 00 [10:27:04]Write to MH i2c: E2 08 00 2C 3D 80 13 01 00 00 00 00 00 E6 [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:04]Read from MH i2c: E2 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 2C 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A0 [10:27:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:27:04]wFMCommunicate OK [10:27:04]SAM_PROTO_GetShiftState done [10:27:04]FM_GetShiftState done [10:27:04]opened in 1729643755 [10:27:04]opened+sec_in_day 1729730155 [10:27:04]quantity*price = 20003 [10:27:04]sum+1 = 20004 [10:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 54 23.10.2024 10:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31110 ФПД: 87059199299164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102710&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31110&fm=87059199299164&tin=02508201610067®Number=0000000000186857&sum=20000 [10:27:06]StoreToDocumentArchive [10:27:06]shift 117 fd 31110 [10:27:06]save to /storage/0117/doc_00031110 [10:27:06]save last doc name /storage/0117/doc_00031110 to /storage/kkm_last_doc_name [10:27:06]save OK [10:27:06]Clear old archive folders... [10:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:06]tlvbuf is 00CC9910 [10:27:06]SAM_PROTO_ClearQueue [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 09 00 00 [10:27:06]Write to MH i2c: E2 08 00 39 3D 80 09 00 00 00 00 00 00 E8 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]SAM_PROTO_ClearQueue done [10:27:06]KKMCreateOFDPacket [10:27:06]OFDProtocolAddRootSTLVToBuf [10:27:06]FM_MakeSignedData [10:27:06]FM_MakeSignedData [10:27:06]SAM_PROTO_SignData [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 01 02 [10:27:06]Write to MH i2c: E2 08 00 3A 3D 80 0D 01 02 00 00 00 00 F0 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=255 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 79 00 00 35 04 06 00 4F [10:27:06]Write to MH i2c: E2 02 01 3B 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 79 00 00 35 04 06 00 4F 00 00 08 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=10 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 05 2E 0C A6 0E 5C [10:27:06]Write to MH i2c: E2 0D 00 3C 3D 80 0D 02 02 05 00 2E 0C A6 0E 5C 00 00 47 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 3C 3D 00 90 00 ED [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 03 02 [10:27:06]Write to MH i2c: E2 08 00 3D 3D 80 0D 03 02 00 00 00 00 F5 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 0B 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 0B 00 3D 3D 00 08 57 A6 F1 7D 50 48 AC 90 00 AD [10:27:06]RAPDU: 08 57 A6 F1 7D 50 48 AC 90 00 [10:27:06]wFMCommunicate OK [10:27:06]SAM_PROTO_SignData done [10:27:06]FM_MakeSignedData done [10:27:06]CreateOFDProtocolMessage [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 11 00 00 [10:27:06]Write to MH i2c: E2 08 00 3E 3D 80 11 00 00 00 00 00 00 F5 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 17 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 17 00 3E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [10:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:06]wFMCommunicate OK [10:27:06]CreateOFDProtocolMessage done [10:27:06]OFDSenderStorePacket 31110 [10:27:06]StoreOFDPacket docnum=31110 [10:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 30 2B 07 01 A9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 79 00 00 35 04 06 00 4F 2E 0C A6 0E 5C 08 57 A6 F1 7D 50 48 AC [10:27:06]CheckFolder [10:27:06]dirname=/storage/ofd_packets [10:27:06]CheckFolder done [10:27:06]ProducePacketName [10:27:06]name=ofd_packets/00031110 [10:27:06]NVStorageSaveData ofd_packets/00031110 [10:27:06]File name is /storage/ofd_packets/00031110 [10:27:06]Write 301 bytes [10:27:06]NVStorageSaveData done [10:27:06]OFDSenderStorePacket done [10:27:06]KKMCreateOFDPacket done [10:27:06]NVStorageSaveData kkm_last_timestamp [10:27:06]File name is /storage/kkm_last_timestamp [10:27:06]Write 4 bytes [10:27:06]NVStorageSaveData done [10:27:06]ExternCall_PrintAddStr [10:27:06]wPrintStart [10:27:06]Write to MH i2c: 01 00 00 3F 3D 7C [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 07 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 07 00 3F 3D 00 00 00 00 00 FF 0F 91 [10:27:06]RasterBufferAndPrint [10:27:06]line Счет N : (1)343549 [10:27:06]line ИНН: 02508201610067 [10:27:06]line Контрольно-Кассовый Чек [10:27:06]line ПРОДАЖА [10:27:06]line ТРК (МРК, ГНК) : 63 [10:27:06]line Товар: 2710124130 [10:27:06]line Аи-92-К-2 [10:27:06]line 2.990 * 66.90 [10:27:06]line = 200.03 [10:27:06]line НДС 12% НСП 1% [10:27:06]line > о реализуемом товаре [10:27:06]line ОКРУГЛЕНИЕ: -0.03 [10:27:06]line ИТОГО: 200.00 [10:27:06]line Внесено: 200.00 [10:27:06]line СДАЧА: 0.00 [10:27:06]line НСП 1% : 1.77 [10:27:06]line НДС 12% : 21.24 [10:27:06]line Наличными: 200.00 [10:27:06]line Безнал.: 0.00 [10:27:06]line Место: АЗС № 78 "Партнер Нефть" [10:27:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:27:06]line СНО: Общий режим [10:27:06]line Чек 54 23.10.2024 10:27 [10:27:06]line Смена: 117 ФФД: 1.0 [10:27:06]line ЗНМ: 0300000137 [10:27:06]line РНМ: 0000000000186857 [10:27:06]line Версия ККМ: v1.0 [10:27:06]line ФМ: 0000000002094219 [10:27:06]line ФД: 31110 [10:27:06]line ФПД: 87059199299164 [10:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102710&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31110&fm=87059199299164&tin=02508201610067®Number=0000000000186857&sum=20000 [10:27:06]OFD Sender: Processing packet 31110 [packets to send 11, broken 10] [10:27:06]ProducePacketName [10:27:06]name=ofd_packets/00031110 [10:27:06]OFD Sender: To server: pG, [10:27:06]CommunicateWithHost lk.salyk.kg:30040 [10:27:06]ConnectInit lk.salyk.kg [10:27:06]written 0, free lines is 4095 [10:27:07]Connected sock=10 [10:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 30 2B 07 01 A9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7E CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 79 00 00 35 04 06 00 4F 2E 0C A6 0E 5C 08 57 A6 F1 7D 50 48 AC [10:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 05 47 00 43 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 79 00 00 F4 03 04 00 F9 79 18 67 B6 04 01 00 00 F6 5D A6 0B 71 38 AA 96 [10:27:07]CommunicateWithHost err = 0 [10:27:07]CheckOFDResponse [10:27:07]1017 (14) - 77093643461234 [10:27:07]1041 (16) - 0000000002094219 [10:27:07]1040 (4) - 31110 [10:27:07]1012 (4) - 23.10.2024 04:22 [10:27:07]1206 (1) - 0 [10:27:07]OFD Sender: Remove packet 31110 [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00031110 [10:27:07]NVStorageDeleteData [10:27:07]Write to MH i2c: 01 00 00 6A 3D A7 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 6A 3D 00 00 00 00 00 F2 0C AC [10:27:07]RasterBufferAndPrint [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]written 0, free lines is 3320 [10:27:07]MH_Cut [10:27:07]Write to MH i2c: D1 01 00 71 3D 01 80 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 01 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 01 00 71 3D 00 7F [10:27:07]Write to MH i2c: 01 00 00 72 3D AF [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]OFD Sender: No OFD packet to send [10:27:08]*** Cut start [10:27:08]*** Partial cut [10:27:08]*** CUTSNS_PIN = 1 [10:27:08]*** CUTSNS_PIN = 0 [10:27:08]*** Brake cut motor [10:27:08]Read from MH i2c: 01 [10:27:08]MH_I2C_Read... [10:27:08]*** Stop cut motor [10:27:08]*** Cut end [10:27:08]Read from MH i2c: 01 07 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 07 00 72 3D 00 00 00 00 00 FF 0F C4 [10:27:08]process_action close_receipt done [10:27:08]requested_data is exist [10:27:08]produce_requested_data [10:27:08]requested_item fm.sn is exist - process it [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 11 00 00 [10:27:08]Write to MH i2c: E2 08 00 73 3D 80 11 00 00 00 00 00 00 2A [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:08]Read from MH i2c: E2 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 17 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 17 00 73 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [10:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:08]wFMCommunicate OK [10:27:08]requested_item fd.num is exist - process it [10:27:08]SAM_PROTO_GetFieldsCounters [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 13 00 00 [10:27:08]Write to MH i2c: E2 08 00 74 3D 80 13 00 00 00 00 00 00 2D [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:08]Read from MH i2c: E2 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 62 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 62 00 74 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:08]wFMCommunicate OK [10:27:08]SAM_PROTO_GetFieldsCounters done [10:27:08]requested_item shift.num is exist - process it [10:27:08]requested_item shift.opened is exist - process it [10:27:08]req_shift_opened [10:27:08]FM_GetShiftState [10:27:08]SAM_PROTO_GetShiftState [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 13 01 00 [10:27:08]Write to MH i2c: E2 08 00 75 3D 80 13 01 00 00 00 00 00 2F [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:08]Read from MH i2c: E2 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 75 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E9 [10:27:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:27:08]wFMCommunicate OK [10:27:08]SAM_PROTO_GetShiftState done [10:27:08]FM_GetShiftState done [10:27:08]req_shift_opened done [10:27:08]requested_item shift.open_date is exist - process it [10:27:08]req_shift_open_date [10:27:08]req_shift_open_date done [10:27:08]produce_requested_data done [10:27:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31110,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:27:08]process_action_free close_receipt [10:27:08]json_value_free [10:27:08]json_value_free done [10:27:08]process_json_proto returns [10:27:08]Send response to host [10:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31110,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:27:08]free response buf [10:27:08]execute_script done [10:27:08]execute_script returns [10:27:08]free content buf [10:27:08]Sock 9.Close socket [10:27:08]Sock 9.Thread stoped [10:27:12]OFD Sender: No OFD packet to send [10:27:14]accept exits with 7 [10:27:14]New connection [10:27:14]New thread 3067043172 created [10:27:14]Thread 3066899812 joined [10:27:14]Waiting for new connection... [10:27:14] Sock 7.Parse request [10:27:14]Sock 7.Check first char [10:27:14]Sock 7.First char is OK [10:27:14]request: POST /json_proto HTTP/1.0 [10:27:14]Method: POST [10:27:14]URL: /json_proto [10:27:14]Method is POST - this is cgi request [10:27:14]url: /json_proto [10:27:14]query_string will be loaded in cgi processing [10:27:14]execute_cgi json_proto POST (null) [10:27:14]execute_cgi path=json_proto method=POST [10:27:14]POST find Content-Length [10:27:14]Host: 172.17.51.3:8080 [10:27:14]Content-Length: 674 [10:27:14]Content-Type: application/json [10:27:14] [10:27:14]POST finish read [10:27:14]Found Content-Length = 674 [10:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.020, "sum" : 230.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]execute_script... [10:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.020, "sum" : 230.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]POST & json_proto [10:27:14]process_json_proto [10:27:14]json parsed OK: [10:27:14]protocol is kg_v1.0 [10:27:14]action value=close_receipt [10:27:14]process_action close_receipt [10:27:14]cmd_close_receipt [10:27:14]MH_GetDate [10:27:14]Write to MH i2c: F0 00 00 76 3D A2 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 76 3D 00 87 CF 18 67 04 C1 95 66 40 [10:27:14]GetLastDocTimeStamp 1729679230 [10:27:14]current date 1729679239 [10:27:14]FM_GetShiftState [10:27:14]SAM_PROTO_GetShiftState [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 13 01 00 [10:27:14]Write to MH i2c: E2 08 00 77 3D 80 13 01 00 00 00 00 00 31 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 77 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EB [10:27:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_GetShiftState done [10:27:14]FM_GetShiftState done [10:27:14]opened in 1729643755 [10:27:14]opened+sec_in_day 1729730155 [10:27:14]quantity*price = 23012 [10:27:14]sum+1 = 23013 [10:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 55 23.10.2024 10:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31111 ФПД: 216073918530124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31111&fm=216073918530124&tin=02508201610067®Number=0000000000186857&sum=23000 [10:27:15]StoreToDocumentArchive [10:27:15]shift 117 fd 31111 [10:27:15]save to /storage/0117/doc_00031111 [10:27:15]save last doc name /storage/0117/doc_00031111 to /storage/kkm_last_doc_name [10:27:15]save OK [10:27:15]Clear old archive folders... [10:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:15]tlvbuf is 00D62C70 [10:27:15]SAM_PROTO_ClearQueue [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 09 00 00 [10:27:15]Write to MH i2c: E2 08 00 84 3D 80 09 00 00 00 00 00 00 33 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_ClearQueue done [10:27:15]KKMCreateOFDPacket [10:27:15]OFDProtocolAddRootSTLVToBuf [10:27:15]FM_MakeSignedData [10:27:15]FM_MakeSignedData [10:27:15]SAM_PROTO_SignData [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 01 02 [10:27:15]Write to MH i2c: E2 08 00 85 3D 80 0D 01 02 00 00 00 00 3B [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 85 3D 00 90 00 36 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=255 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E4 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 79 00 00 35 04 06 00 C4 84 A1 28 [10:27:15]Write to MH i2c: E2 02 01 86 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E4 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 79 00 00 35 04 06 00 C4 84 A1 28 00 00 E4 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 86 3D 00 90 00 37 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=7 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 02 C2 4C [10:27:15]Write to MH i2c: E2 0A 00 87 3D 80 0D 02 02 02 00 C2 4C 00 00 50 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 87 3D 00 90 00 38 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 03 02 [10:27:15]Write to MH i2c: E2 08 00 88 3D 80 0D 03 02 00 00 00 00 40 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 88 3D 00 77 61 54 5E 0A CE F7 CB 90 00 65 [10:27:15]RAPDU: 77 61 54 5E 0A CE F7 CB 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_SignData done [10:27:15]FM_MakeSignedData done [10:27:15]CreateOFDProtocolMessage [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 11 00 00 [10:27:15]Write to MH i2c: E2 08 00 89 3D 80 11 00 00 00 00 00 00 40 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 89 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [10:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:15]wFMCommunicate OK [10:27:15]CreateOFDProtocolMessage done [10:27:15]OFDSenderStorePacket 31111 [10:27:15]StoreOFDPacket docnum=31111 [10:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 3E 04 01 F8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E4 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 79 00 00 35 04 06 00 C4 84 A1 28 C2 4C 77 61 54 5E 0A CE F7 CB [10:27:15]CheckFolder [10:27:15]dirname=/storage/ofd_packets [10:27:15]CheckFolder done [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00031111 [10:27:15]NVStorageSaveData ofd_packets/00031111 [10:27:15]File name is /storage/ofd_packets/00031111 [10:27:15]Write 298 bytes [10:27:15]NVStorageSaveData done [10:27:15]OFDSenderStorePacket done [10:27:15]KKMCreateOFDPacket done [10:27:15]NVStorageSaveData kkm_last_timestamp [10:27:15]File name is /storage/kkm_last_timestamp [10:27:15]Write 4 bytes [10:27:15]NVStorageSaveData done [10:27:15]ExternCall_PrintAddStr [10:27:15]wPrintStart [10:27:15]Write to MH i2c: 01 00 00 8A 3D C7 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 8A 3D 00 00 00 00 00 FF 0F DC [10:27:15]RasterBufferAndPrint [10:27:15]line Счет N : (1)343548 [10:27:15]line ИНН: 02508201610067 [10:27:15]line Контрольно-Кассовый Чек [10:27:15]line ПРОДАЖА [10:27:15]line ТРК (МРК, ГНК) : 44 [10:27:15]line Товар: 2710194210 [10:27:15]line ДТ-К-2 [10:27:15]line 3.020 * 76.20 [10:27:15]line = 230.12 [10:27:15]line НДС 12% НСП 1% [10:27:15]line > о реализуемом товаре [10:27:15]line ОКРУГЛЕНИЕ: -0.12 [10:27:15]line ИТОГО: 230.00 [10:27:15]line Внесено: 230.00 [10:27:15]line СДАЧА: 0.00 [10:27:15]line НСП 1% : 2.04 [10:27:15]line НДС 12% : 24.44 [10:27:15]line Наличными: 230.00 [10:27:15]line Безнал.: 0.00 [10:27:15]line Место: АЗС № 78 "Партнер Нефть" [10:27:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:27:15]line СНО: Общий режим [10:27:15]line Чек 55 23.10.2024 10:27 [10:27:15]line Смена: 117 ФФД: 1.0 [10:27:15]line ЗНМ: 0300000137 [10:27:15]line РНМ: 0000000000186857 [10:27:15]line Версия ККМ: v1.0 [10:27:15]line ФМ: 0000000002094219 [10:27:15]line ФД: 31111 [10:27:15]line ФПД: 216073918530124 [10:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31111&fm=216073918530124&tin=02508201610067®Number=0000000000186857&sum=23000 [10:27:15]written 0, free lines is 4095 [10:27:15]OFD Sender: Processing packet 31111 [packets to send 11, broken 10] [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00031111 [10:27:15]OFD Sender: To server: pG, [10:27:15]CommunicateWithHost lk.salyk.kg:30040 [10:27:15]ConnectInit lk.salyk.kg [10:27:15]Connected sock=10 [10:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 3E 04 01 F8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E4 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 CF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 79 00 00 35 04 06 00 C4 84 A1 28 C2 4C 77 61 54 5E 0A CE F7 CB [10:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 48 E2 47 00 E7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 79 00 00 F4 03 04 00 02 7A 18 67 B6 04 01 00 00 40 31 6C D1 83 0C E6 03 [10:27:16]CommunicateWithHost err = 0 [10:27:16]CheckOFDResponse [10:27:16]1017 (14) - 77093643461234 [10:27:16]1041 (16) - 0000000002094219 [10:27:16]1040 (4) - 31111 [10:27:16]1012 (4) - 23.10.2024 04:22 [10:27:16]1206 (1) - 0 [10:27:16]OFD Sender: Remove packet 31111 [10:27:16]ProducePacketName [10:27:16]name=ofd_packets/00031111 [10:27:16]NVStorageDeleteData [10:27:16]Write to MH i2c: 01 00 00 B5 3D F2 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 EF 0C F4 [10:27:16]RasterBufferAndPrint [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]line [10:27:16]written 0, free lines is 3323 [10:27:16]MH_Cut [10:27:16]Write to MH i2c: D1 01 00 BC 3D 01 CB [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: D1 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: D1 01 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: D1 01 00 BC 3D 00 CA [10:27:16]Write to MH i2c: 01 00 00 BD 3D FA [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]OFD Sender: No OFD packet to send [10:27:16]*** Cut start [10:27:16]*** Partial cut [10:27:16]*** CUTSNS_PIN = 1 [10:27:17]*** CUTSNS_PIN = 0 [10:27:17]*** Brake cut motor [10:27:17]Read from MH i2c: 01 [10:27:17]MH_I2C_Read... [10:27:17]*** Stop cut motor [10:27:17]*** Cut end [10:27:17]Read from MH i2c: 01 07 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: 01 07 00 BD 3D 00 00 00 00 00 FF 0F 0F [10:27:17]process_action close_receipt done [10:27:17]requested_data is exist [10:27:17]produce_requested_data [10:27:17]requested_item fm.sn is exist - process it [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 11 00 00 [10:27:17]Write to MH i2c: E2 08 00 BE 3D 80 11 00 00 00 00 00 00 75 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 17 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 17 00 BE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [10:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:17]wFMCommunicate OK [10:27:17]requested_item fd.num is exist - process it [10:27:17]SAM_PROTO_GetFieldsCounters [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 13 00 00 [10:27:17]Write to MH i2c: E2 08 00 BF 3D 80 13 00 00 00 00 00 00 78 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 62 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 62 00 BF 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:17]wFMCommunicate OK [10:27:17]SAM_PROTO_GetFieldsCounters done [10:27:17]requested_item shift.num is exist - process it [10:27:17]requested_item shift.opened is exist - process it [10:27:17]req_shift_opened [10:27:17]FM_GetShiftState [10:27:17]SAM_PROTO_GetShiftState [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 13 01 00 [10:27:17]Write to MH i2c: E2 08 00 C0 3D 80 13 01 00 00 00 00 00 7A [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 C0 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 34 [10:27:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:27:17]wFMCommunicate OK [10:27:17]SAM_PROTO_GetShiftState done [10:27:17]FM_GetShiftState done [10:27:17]req_shift_opened done [10:27:17]requested_item shift.open_date is exist - process it [10:27:17]req_shift_open_date [10:27:17]req_shift_open_date done [10:27:17]produce_requested_data done [10:27:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31111,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:27:17]process_action_free close_receipt [10:27:17]json_value_free [10:27:17]json_value_free done [10:27:17]process_json_proto returns [10:27:17]Send response to host [10:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31111,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:27:17]free response buf [10:27:17]execute_script done [10:27:17]execute_script returns [10:27:17]free content buf [10:27:17]Sock 7.Close socket [10:27:17]Sock 7.Thread stoped [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:00]accept exits with 9 [10:32:00]New connection [10:32:00]New thread 3066899812 created [10:32:00]Thread 3067043172 joined [10:32:00]Waiting for new connection... [10:32:00] Sock 9.Parse request [10:32:00]Sock 9.Check first char [10:32:00]Sock 9.First char is OK [10:32:00]request: POST /json_proto HTTP/1.0 [10:32:00]Method: POST [10:32:00]URL: /json_proto [10:32:00]Method is POST - this is cgi request [10:32:00]url: /json_proto [10:32:00]query_string will be loaded in cgi processing [10:32:00]execute_cgi json_proto POST (null) [10:32:00]execute_cgi path=json_proto method=POST [10:32:00]POST find Content-Length [10:32:00]Host: 172.17.51.3:8080 [10:32:00]Content-Length: 677 [10:32:00]Content-Type: application/json [10:32:00] [10:32:00]POST finish read [10:32:00]Found Content-Length = 677 [10:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]execute_script... [10:32:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]POST & json_proto [10:32:00]process_json_proto [10:32:00]json parsed OK: [10:32:00]protocol is kg_v1.0 [10:32:00]action value=close_receipt [10:32:00]process_action close_receipt [10:32:00]cmd_close_receipt [10:32:00]MH_GetDate [10:32:00]Write to MH i2c: F0 00 00 C1 3D ED [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 C1 3D 00 A6 D0 18 67 04 C1 95 66 AB [10:32:00]GetLastDocTimeStamp 1729679239 [10:32:00]current date 1729679526 [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 C2 3D 80 13 01 00 00 00 00 00 7C [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 C2 3D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 36 [10:32:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]opened in 1729643755 [10:32:00]opened+sec_in_day 1729730155 [10:32:00]quantity*price = 40006 [10:32:00]sum+1 = 40007 [10:32:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 56 23.10.2024 10:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31112 ФПД: 131725180751602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103206&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31112&fm=131725180751602&tin=02508201610067®Number=0000000000186857&sum=40000 [10:32:02]StoreToDocumentArchive [10:32:02]shift 117 fd 31112 [10:32:02]save to /storage/0117/doc_00031112 [10:32:02]save last doc name /storage/0117/doc_00031112 to /storage/kkm_last_doc_name [10:32:02]save OK [10:32:02]Clear old archive folders... [10:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:02]tlvbuf is 00D68270 [10:32:02]SAM_PROTO_ClearQueue [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 09 00 00 [10:32:02]Write to MH i2c: E2 08 00 CF 3D 80 09 00 00 00 00 00 00 7E [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 CF 3D 00 90 00 80 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_ClearQueue done [10:32:02]KKMCreateOFDPacket [10:32:02]OFDProtocolAddRootSTLVToBuf [10:32:02]FM_MakeSignedData [10:32:02]FM_MakeSignedData [10:32:02]SAM_PROTO_SignData [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 01 02 [10:32:02]Write to MH i2c: E2 08 00 D0 3D 80 0D 01 02 00 00 00 00 86 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D0 3D 00 90 00 81 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=255 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A6 D0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 79 00 00 35 04 06 00 77 [10:32:02]Write to MH i2c: E2 02 01 D1 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A6 D0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 79 00 00 35 04 06 00 77 00 00 00 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=10 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 05 CD A8 9B 4E F2 [10:32:02]Write to MH i2c: E2 0D 00 D2 3D 80 0D 02 02 05 00 CD A8 9B 4E F2 00 00 E3 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D2 3D 00 90 00 83 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 03 02 [10:32:02]Write to MH i2c: E2 08 00 D3 3D 80 0D 03 02 00 00 00 00 8B [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 D3 3D 00 39 56 55 A2 32 D2 26 C5 90 00 01 [10:32:02]RAPDU: 39 56 55 A2 32 D2 26 C5 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_SignData done [10:32:02]FM_MakeSignedData done [10:32:02]CreateOFDProtocolMessage [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 D4 3D 80 11 00 00 00 00 00 00 8B [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 D4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [10:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:32:02]wFMCommunicate OK [10:32:02]CreateOFDProtocolMessage done [10:32:02]OFDSenderStorePacket 31112 [10:32:02]StoreOFDPacket docnum=31112 [10:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B E4 07 01 A4 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A6 D0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 79 00 00 35 04 06 00 77 CD A8 9B 4E F2 39 56 55 A2 32 D2 26 C5 [10:32:02]CheckFolder [10:32:02]dirname=/storage/ofd_packets [10:32:02]CheckFolder done [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00031112 [10:32:02]NVStorageSaveData ofd_packets/00031112 [10:32:02]File name is /storage/ofd_packets/00031112 [10:32:02]Write 301 bytes [10:32:02]NVStorageSaveData done [10:32:02]OFDSenderStorePacket done [10:32:02]KKMCreateOFDPacket done [10:32:02]NVStorageSaveData kkm_last_timestamp [10:32:02]File name is /storage/kkm_last_timestamp [10:32:02]Write 4 bytes [10:32:02]NVStorageSaveData done [10:32:02]ExternCall_PrintAddStr [10:32:02]wPrintStart [10:32:02]Write to MH i2c: 01 00 00 D5 3D 12 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 D5 3D 00 00 00 00 00 FF 0F 27 [10:32:02]RasterBufferAndPrint [10:32:02]line Счет N : (1)343550 [10:32:02]line ИНН: 02508201610067 [10:32:02]line Контрольно-Кассовый Чек [10:32:02]line ПРОДАЖА [10:32:02]line ТРК (МРК, ГНК) : 43 [10:32:02]line Товар: 2710124130 [10:32:02]line Аи-92-К-2 [10:32:02]line 5.980 * 66.90 [10:32:02]line = 400.06 [10:32:02]line НДС 12% НСП 1% [10:32:02]line > о реализуемом товаре [10:32:02]line ОКРУГЛЕНИЕ: -0.06 [10:32:02]line ИТОГО: 400.00 [10:32:02]line Внесено: 400.00 [10:32:02]line СДАЧА: 0.00 [10:32:02]line НСП 1% : 3.54 [10:32:02]line НДС 12% : 42.48 [10:32:02]line Наличными: 400.00 [10:32:02]line Безнал.: 0.00 [10:32:02]line Место: АЗС № 78 "Партнер Нефть" [10:32:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:32:02]line СНО: Общий режим [10:32:02]line Чек 56 23.10.2024 10:32 [10:32:02]line Смена: 117 ФФД: 1.0 [10:32:02]line ЗНМ: 0300000137 [10:32:02]line РНМ: 0000000000186857 [10:32:02]line Версия ККМ: v1.0 [10:32:02]line ФМ: 0000000002094219 [10:32:02]line ФД: 31112 [10:32:02]line ФПД: 131725180751602 [10:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103206&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31112&fm=131725180751602&tin=02508201610067®Number=0000000000186857&sum=40000 [10:32:02]OFD Sender: Processing packet 31112 [packets to send 11, broken 10] [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00031112 [10:32:02]OFD Sender: To server: pG, [10:32:02]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]written 0, free lines is 4095 [10:32:03]Connected sock=10 [10:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B E4 07 01 A4 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A6 D0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 79 00 00 35 04 06 00 77 CD A8 9B 4E F2 39 56 55 A2 32 D2 26 C5 [10:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9E A2 47 00 F5 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 79 00 00 F4 03 04 00 21 7B 18 67 B6 04 01 00 00 50 29 BE 2F 27 D5 2B D1 [10:32:03]CommunicateWithHost err = 0 [10:32:03]CheckOFDResponse [10:32:03]1017 (14) - 77093643461234 [10:32:03]1041 (16) - 0000000002094219 [10:32:03]1040 (4) - 31112 [10:32:03]1012 (4) - 23.10.2024 04:27 [10:32:03]1206 (1) - 0 [10:32:03]OFD Sender: Remove packet 31112 [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00031112 [10:32:03]NVStorageDeleteData [10:32:03]Write to MH i2c: 01 00 00 00 3E 3E [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 00 3E 00 00 00 00 00 F6 0C 47 [10:32:03]RasterBufferAndPrint [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]written 0, free lines is 3324 [10:32:03]MH_Cut [10:32:03]Write to MH i2c: D1 01 00 07 3E 01 17 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 07 3E 00 16 [10:32:03]Write to MH i2c: 01 00 00 08 3E 46 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]OFD Sender: No OFD packet to send [10:32:04]*** Cut start [10:32:04]*** Partial cut [10:32:04]*** CUTSNS_PIN = 1 [10:32:04]*** CUTSNS_PIN = 0 [10:32:04]*** Brake cut motor [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]*** Stop cut motor [10:32:04]*** Cut end [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 08 3E 00 00 00 00 00 FF 0F 5B [10:32:04]process_action close_receipt done [10:32:04]requested_data is exist [10:32:04]produce_requested_data [10:32:04]requested_item fm.sn is exist - process it [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 11 00 00 [10:32:04]Write to MH i2c: E2 08 00 09 3E 80 11 00 00 00 00 00 00 C1 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 09 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [10:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:32:04]wFMCommunicate OK [10:32:04]requested_item fd.num is exist - process it [10:32:04]SAM_PROTO_GetFieldsCounters [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 00 00 [10:32:04]Write to MH i2c: E2 08 00 0A 3E 80 13 00 00 00 00 00 00 C4 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 0A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:32:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetFieldsCounters done [10:32:04]requested_item shift.num is exist - process it [10:32:04]requested_item shift.opened is exist - process it [10:32:04]req_shift_opened [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 0B 3E 80 13 01 00 00 00 00 00 C6 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 0B 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 80 [10:32:05]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]req_shift_opened done [10:32:05]requested_item shift.open_date is exist - process it [10:32:05]req_shift_open_date [10:32:05]req_shift_open_date done [10:32:05]produce_requested_data done [10:32:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31112,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:32:05]process_action_free close_receipt [10:32:05]json_value_free [10:32:05]json_value_free done [10:32:05]process_json_proto returns [10:32:05]Send response to host [10:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31112,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:32:05]free response buf [10:32:05]execute_script done [10:32:05]execute_script returns [10:32:05]free content buf [10:32:05]Sock 9.Close socket [10:32:05]Sock 9.Thread stoped [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:39]accept exits with 7 [10:34:39]New connection [10:34:39]New thread 3067043172 created [10:34:39]Thread 3066899812 joined [10:34:39]Waiting for new connection... [10:34:39] Sock 7.Parse request [10:34:39]Sock 7.Check first char [10:34:39]Sock 7.First char is OK [10:34:39]request: POST /json_proto HTTP/1.0 [10:34:39]Method: POST [10:34:39]URL: /json_proto [10:34:39]Method is POST - this is cgi request [10:34:39]url: /json_proto [10:34:39]query_string will be loaded in cgi processing [10:34:39]execute_cgi json_proto POST (null) [10:34:39]execute_cgi path=json_proto method=POST [10:34:39]POST find Content-Length [10:34:39]Host: 172.17.51.3:8080 [10:34:39]Content-Length: 792 [10:34:39]Content-Type: application/json [10:34:39] [10:34:39]POST finish read [10:34:39]Found Content-Length = 792 [10:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53615", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]execute_script... [10:34:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53615", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]POST & json_proto [10:34:39]process_json_proto [10:34:39]json parsed OK: [10:34:39]protocol is kg_v1.0 [10:34:39]action value=close_receipt [10:34:39]process_action close_receipt [10:34:39]cmd_close_receipt [10:34:39]MH_GetDate [10:34:39]Write to MH i2c: F0 00 00 0C 3E 39 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 0C 3E 00 44 D1 18 67 04 C1 95 66 96 [10:34:39]GetLastDocTimeStamp 1729679526 [10:34:39]current date 1729679684 [10:34:39]FM_GetShiftState [10:34:39]SAM_PROTO_GetShiftState [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 13 01 00 [10:34:39]Write to MH i2c: E2 08 00 0D 3E 80 13 01 00 00 00 00 00 C8 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 0D 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 82 [10:34:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:34:39]wFMCommunicate OK [10:34:39]SAM_PROTO_GetShiftState done [10:34:39]FM_GetShiftState done [10:34:39]opened in 1729643755 [10:34:39]opened+sec_in_day 1729730155 [10:34:39]quantity*price = 0 [10:34:39]sum+1 = 1 [10:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 57 23.10.2024 10:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 53615 ФМ: 0000000002094219 ФД: 31113 ФПД: 219393898979634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103444&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31113&fm=219393898979634&tin=02508201610067®Number=0000000000186857&sum=0 [10:34:40]StoreToDocumentArchive [10:34:40]shift 117 fd 31113 [10:34:40]save to /storage/0117/doc_00031113 [10:34:40]save last doc name /storage/0117/doc_00031113 to /storage/kkm_last_doc_name [10:34:40]save OK [10:34:40]Clear old archive folders... [10:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:40]tlvbuf is 00CEB390 [10:34:40]SAM_PROTO_ClearQueue [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 09 00 00 [10:34:40]Write to MH i2c: E2 08 00 1A 3E 80 09 00 00 00 00 00 00 CA [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 1A 3E 00 90 00 CC [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_ClearQueue done [10:34:40]KKMCreateOFDPacket [10:34:40]OFDProtocolAddRootSTLVToBuf [10:34:40]FM_MakeSignedData [10:34:40]FM_MakeSignedData [10:34:40]SAM_PROTO_SignData [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 01 02 [10:34:40]Write to MH i2c: E2 08 00 1B 3E 80 0D 01 02 00 00 00 00 D2 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=255 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 79 00 00 35 04 06 00 C7 [10:34:40]Write to MH i2c: E2 02 01 1C 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 79 00 00 35 04 06 00 C7 00 00 8E [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=10 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 02 02 05 89 9F 6A 21 32 [10:34:40]Write to MH i2c: E2 0D 00 1D 3E 80 0D 02 02 05 00 89 9F 6A 21 32 00 00 C4 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [10:34:40]RAPDU: 90 00 [10:34:40]wFMCommunicate OK [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 0D 03 02 [10:34:40]Write to MH i2c: E2 08 00 1E 3E 80 0D 03 02 00 00 00 00 D7 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0B 00 1E 3E 00 BE F7 29 9E C8 71 E8 CF 90 00 44 [10:34:40]RAPDU: BE F7 29 9E C8 71 E8 CF 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_SignData done [10:34:40]FM_MakeSignedData done [10:34:40]CreateOFDProtocolMessage [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 11 00 00 [10:34:40]Write to MH i2c: E2 08 00 1F 3E 80 11 00 00 00 00 00 00 D7 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 17 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 17 00 1F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [10:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:34:40]wFMCommunicate OK [10:34:40]CreateOFDProtocolMessage done [10:34:40]OFDSenderStorePacket 31113 [10:34:40]StoreOFDPacket docnum=31113 [10:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3C 82 07 01 DC 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 79 00 00 35 04 06 00 C7 89 9F 6A 21 32 BE F7 29 9E C8 71 E8 CF [10:34:40]CheckFolder [10:34:40]dirname=/storage/ofd_packets [10:34:40]CheckFolder done [10:34:40]ProducePacketName [10:34:40]name=ofd_packets/00031113 [10:34:40]NVStorageSaveData ofd_packets/00031113 [10:34:40]File name is /storage/ofd_packets/00031113 [10:34:40]Write 301 bytes [10:34:40]NVStorageSaveData done [10:34:40]OFDSenderStorePacket done [10:34:40]KKMCreateOFDPacket done [10:34:40]NVStorageSaveData kkm_last_timestamp [10:34:40]File name is /storage/kkm_last_timestamp [10:34:40]Write 4 bytes [10:34:40]NVStorageSaveData done [10:34:40]ExternCall_PrintAddStr [10:34:40]wPrintStart [10:34:40]Write to MH i2c: 01 00 00 20 3E 5E [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 07 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: 01 07 00 20 3E 00 00 00 00 00 FF 0F 73 [10:34:40]RasterBufferAndPrint [10:34:40]line Счет N : (1)343553 [10:34:40]line ИНН: 02508201610067 [10:34:40]line Контрольно-Кассовый Чек [10:34:40]line ПРОДАЖА [10:34:40]line ТРК (МРК, ГНК) : 63 [10:34:40]line Товар: 2710124130 [10:34:40]line Аи-92-К-2 [10:34:40]line 30.000 * 0.00 [10:34:40]line = 0.00 [10:34:40]line НДС 12% НСП 1% [10:34:40]line > о реализуемом товаре [10:34:40]line ИТОГО: 0.00 [10:34:40]line НСП 1% : 0.00 [10:34:40]line НДС 12% : 0.00 [10:34:40]line Наличными: 0.00 [10:34:40]line Безнал.: 0.00 [10:34:40]line Место: АЗС № 78 "Партнер Нефть" [10:34:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:34:40]line СНО: Общий режим [10:34:40]line Чек 57 23.10.2024 10:34 [10:34:40]line Смена: 117 ФФД: 1.0 [10:34:40]line ЗНМ: 0300000137 [10:34:40]line РНМ: 0000000000186857 [10:34:40]line Версия ККМ: v1.0 [10:34:40]line Талоны: Топливная Карта [10:34:40]line 53615 [10:34:40]line ФМ: 0000000002094219 [10:34:40]line ФД: 31113 [10:34:40]line ФПД: 219393898979634 [10:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103444&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31113&fm=219393898979634&tin=02508201610067®Number=0000000000186857&sum=0 [10:34:41]OFD Sender: Processing packet 31113 [packets to send 11, broken 10] [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00031113 [10:34:41]OFD Sender: To server: pG, [10:34:41]CommunicateWithHost lk.salyk.kg:30040 [10:34:41]ConnectInit lk.salyk.kg [10:34:41]written 0, free lines is 4095 [10:34:41]Connected sock=9 [10:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3C 82 07 01 DC 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 44 D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 79 00 00 35 04 06 00 C7 89 9F 6A 21 32 BE F7 29 9E C8 71 E8 CF [10:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 90 96 47 00 E5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 79 00 00 F4 03 04 00 BF 7B 18 67 B6 04 01 00 00 40 00 C9 99 8E 41 65 B5 [10:34:41]CommunicateWithHost err = 0 [10:34:41]CheckOFDResponse [10:34:41]1017 (14) - 77093643461234 [10:34:41]1041 (16) - 0000000002094219 [10:34:41]1040 (4) - 31113 [10:34:41]1012 (4) - 23.10.2024 04:29 [10:34:41]1206 (1) - 0 [10:34:41]OFD Sender: Remove packet 31113 [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00031113 [10:34:41]NVStorageDeleteData [10:34:41]Write to MH i2c: 01 00 00 4A 3E 88 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 4A 3E 00 00 00 00 00 15 0D B1 [10:34:41]RasterBufferAndPrint [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]line [10:34:41]written 0, free lines is 3358 [10:34:41]MH_Cut [10:34:41]Write to MH i2c: D1 01 00 51 3E 01 61 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: D1 01 00 51 3E 00 60 [10:34:41]Write to MH i2c: 01 00 00 52 3E 90 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]OFD Sender: No OFD packet to send [10:34:42]*** Cut start [10:34:42]*** Partial cut [10:34:42]*** CUTSNS_PIN = 1 [10:34:42]*** CUTSNS_PIN = 0 [10:34:42]*** Brake cut motor [10:34:42]Read from MH i2c: 01 [10:34:42]MH_I2C_Read... [10:34:42]*** Stop cut motor [10:34:42]*** Cut end [10:34:42]Read from MH i2c: 01 07 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 52 3E 00 00 00 00 00 FF 0F A5 [10:34:42]process_action close_receipt done [10:34:42]requested_data is exist [10:34:42]produce_requested_data [10:34:42]requested_item fm.sn is exist - process it [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 11 00 00 [10:34:42]Write to MH i2c: E2 08 00 53 3E 80 11 00 00 00 00 00 00 0B [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 53 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [10:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:34:42]wFMCommunicate OK [10:34:42]requested_item fd.num is exist - process it [10:34:42]SAM_PROTO_GetFieldsCounters [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 13 00 00 [10:34:42]Write to MH i2c: E2 08 00 54 3E 80 13 00 00 00 00 00 00 0E [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 62 00 54 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [10:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetFieldsCounters done [10:34:43]requested_item shift.num is exist - process it [10:34:43]requested_item shift.opened is exist - process it [10:34:43]req_shift_opened [10:34:43]FM_GetShiftState [10:34:43]SAM_PROTO_GetShiftState [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 01 00 [10:34:43]Write to MH i2c: E2 08 00 55 3E 80 13 01 00 00 00 00 00 10 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 55 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CA [10:34:43]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetShiftState done [10:34:43]FM_GetShiftState done [10:34:43]req_shift_opened done [10:34:43]requested_item shift.open_date is exist - process it [10:34:43]req_shift_open_date [10:34:43]req_shift_open_date done [10:34:43]produce_requested_data done [10:34:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31113,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:34:43]process_action_free close_receipt [10:34:43]json_value_free [10:34:43]json_value_free done [10:34:43]process_json_proto returns [10:34:43]Send response to host [10:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31113,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:34:43]free response buf [10:34:43]execute_script done [10:34:43]execute_script returns [10:34:43]free content buf [10:34:43]Sock 7.Close socket [10:34:43]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:06]accept exits with 10 [10:36:06]New connection [10:36:06]New thread 3066899812 created [10:36:06]Thread 3067043172 joined [10:36:06]Waiting for new connection... [10:36:06] Sock 10.Parse request [10:36:06]Sock 10.Check first char [10:36:06]Sock 10.First char is OK [10:36:06]request: POST /json_proto HTTP/1.0 [10:36:06]Method: POST [10:36:06]URL: /json_proto [10:36:06]Method is POST - this is cgi request [10:36:06]url: /json_proto [10:36:06]query_string will be loaded in cgi processing [10:36:06]execute_cgi json_proto POST (null) [10:36:06]execute_cgi path=json_proto method=POST [10:36:06]POST find Content-Length [10:36:06]Host: 172.17.51.3:8080 [10:36:06]Content-Length: 677 [10:36:06]Content-Type: application/json [10:36:06] [10:36:06]POST finish read [10:36:06]Found Content-Length = 677 [10:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:06]execute_script... [10:36:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:06]POST & json_proto [10:36:06]process_json_proto [10:36:06]json parsed OK: [10:36:06]protocol is kg_v1.0 [10:36:06]action value=close_receipt [10:36:06]process_action close_receipt [10:36:06]cmd_close_receipt [10:36:06]MH_GetDate [10:36:06]Write to MH i2c: F0 00 00 56 3E 83 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 09 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 09 00 56 3E 00 9C D1 18 67 04 C1 95 66 38 [10:36:06]GetLastDocTimeStamp 1729679684 [10:36:06]current date 1729679772 [10:36:06]FM_GetShiftState [10:36:06]SAM_PROTO_GetShiftState [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 13 01 00 [10:36:06]Write to MH i2c: E2 08 00 57 3E 80 13 01 00 00 00 00 00 12 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0E 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0E 00 57 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CC [10:36:06]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:36:06]wFMCommunicate OK [10:36:06]SAM_PROTO_GetShiftState done [10:36:06]FM_GetShiftState done [10:36:06]opened in 1729643755 [10:36:06]opened+sec_in_day 1729730155 [10:36:06]quantity*price = 70044 [10:36:06]sum+1 = 70046 [10:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 58 23.10.2024 10:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31114 ФПД: 144791992816515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31114&fm=144791992816515&tin=02508201610067®Number=0000000000186857&sum=70000 [10:36:08]StoreToDocumentArchive [10:36:08]shift 117 fd 31114 [10:36:08]save to /storage/0117/doc_00031114 [10:36:08]save last doc name /storage/0117/doc_00031114 to /storage/kkm_last_doc_name [10:36:08]save OK [10:36:08]Clear old archive folders... [10:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:08]tlvbuf is B6DBE160 [10:36:08]SAM_PROTO_ClearQueue [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 09 00 00 [10:36:08]Write to MH i2c: E2 08 00 64 3E 80 09 00 00 00 00 00 00 14 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 64 3E 00 90 00 16 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_ClearQueue done [10:36:08]KKMCreateOFDPacket [10:36:08]OFDProtocolAddRootSTLVToBuf [10:36:08]FM_MakeSignedData [10:36:08]FM_MakeSignedData [10:36:08]SAM_PROTO_SignData [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 01 02 [10:36:08]Write to MH i2c: E2 08 00 65 3E 80 0D 01 02 00 00 00 00 1C [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 65 3E 00 90 00 17 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=255 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9C D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 79 00 00 35 04 06 00 83 [10:36:08]Write to MH i2c: E2 02 01 66 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9C D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 79 00 00 35 04 06 00 83 00 00 B6 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 66 3E 00 90 00 18 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=10 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 05 B0 03 4C 53 83 [10:36:08]Write to MH i2c: E2 0D 00 67 3E 80 0D 02 02 05 00 B0 03 4C 53 83 00 00 FE [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 67 3E 00 90 00 19 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 03 02 [10:36:08]Write to MH i2c: E2 08 00 68 3E 80 0D 03 02 00 00 00 00 21 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 68 3E 00 F1 A1 A5 78 9D 4E 60 70 90 00 8C [10:36:08]RAPDU: F1 A1 A5 78 9D 4E 60 70 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_SignData done [10:36:08]FM_MakeSignedData done [10:36:08]CreateOFDProtocolMessage [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 11 00 00 [10:36:08]Write to MH i2c: E2 08 00 69 3E 80 11 00 00 00 00 00 00 21 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 69 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [10:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:36:08]wFMCommunicate OK [10:36:08]CreateOFDProtocolMessage done [10:36:08]OFDSenderStorePacket 31114 [10:36:08]StoreOFDPacket docnum=31114 [10:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B 74 07 01 AC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9C D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 79 00 00 35 04 06 00 83 B0 03 4C 53 83 F1 A1 A5 78 9D 4E 60 70 [10:36:08]CheckFolder [10:36:08]dirname=/storage/ofd_packets [10:36:08]CheckFolder done [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00031114 [10:36:08]NVStorageSaveData ofd_packets/00031114 [10:36:08]File name is /storage/ofd_packets/00031114 [10:36:08]Write 301 bytes [10:36:08]NVStorageSaveData done [10:36:08]OFDSenderStorePacket done [10:36:08]KKMCreateOFDPacket done [10:36:08]NVStorageSaveData kkm_last_timestamp [10:36:08]File name is /storage/kkm_last_timestamp [10:36:08]Write 4 bytes [10:36:08]NVStorageSaveData done [10:36:08]ExternCall_PrintAddStr [10:36:08]wPrintStart [10:36:08]Write to MH i2c: 01 00 00 6A 3E A8 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 FF 0F BD [10:36:08]RasterBufferAndPrint [10:36:08]line Счет N : (1)343554 [10:36:08]line ИНН: 02508201610067 [10:36:08]line Контрольно-Кассовый Чек [10:36:08]line ПРОДАЖА [10:36:08]line ТРК (МРК, ГНК) : 52 [10:36:08]line Товар: 2710124500 [10:36:08]line Аи-95-К-3 [10:36:08]line 9.440 * 74.20 [10:36:08]line = 700.45 [10:36:08]line НДС 12% НСП 1% [10:36:08]line > о реализуемом товаре [10:36:08]line ОКРУГЛЕНИЕ: -0.45 [10:36:08]line ИТОГО: 700.00 [10:36:08]line Внесено: 700.00 [10:36:08]line СДАЧА: 0.00 [10:36:08]line НСП 1% : 6.20 [10:36:08]line НДС 12% : 74.38 [10:36:08]line Наличными: 700.00 [10:36:08]line Безнал.: 0.00 [10:36:08]line Место: АЗС № 78 "Партнер Нефть" [10:36:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:36:08]line СНО: Общий режим [10:36:08]line Чек 58 23.10.2024 10:36 [10:36:08]line Смена: 117 ФФД: 1.0 [10:36:08]line ЗНМ: 0300000137 [10:36:08]line РНМ: 0000000000186857 [10:36:08]line Версия ККМ: v1.0 [10:36:08]line ФМ: 0000000002094219 [10:36:08]line ФД: 31114 [10:36:08]line ФПД: 144791992816515 [10:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31114&fm=144791992816515&tin=02508201610067®Number=0000000000186857&sum=70000 [10:36:08]OFD Sender: Processing packet 31114 [packets to send 11, broken 10] [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00031114 [10:36:08]OFD Sender: To server: pG, [10:36:08]CommunicateWithHost lk.salyk.kg:30040 [10:36:08]ConnectInit lk.salyk.kg [10:36:08]written 0, free lines is 4095 [10:36:09]Write to MH i2c: 01 00 00 95 3E D3 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 95 3E 00 00 00 00 00 E7 0C CD [10:36:09]RasterBufferAndPrint [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]written 0, free lines is 3310 [10:36:09]MH_Cut [10:36:09]Write to MH i2c: D1 01 00 9C 3E 01 AC [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 9C 3E 00 AB [10:36:09]Write to MH i2c: 01 00 00 9D 3E DB [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:10]*** Cut start [10:36:10]*** Partial cut [10:36:10]*** CUTSNS_PIN = 1 [10:36:10]*** CUTSNS_PIN = 0 [10:36:10]*** Brake cut motor [10:36:10]Read from MH i2c: 01 [10:36:10]MH_I2C_Read... [10:36:10]*** Stop cut motor [10:36:10]*** Cut end [10:36:10]Read from MH i2c: 01 07 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: 01 07 00 9D 3E 00 00 00 00 00 FF 0F F0 [10:36:10]process_action close_receipt done [10:36:10]requested_data is exist [10:36:10]produce_requested_data [10:36:10]requested_item fm.sn is exist - process it [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 11 00 00 [10:36:10]Write to MH i2c: E2 08 00 9E 3E 80 11 00 00 00 00 00 00 56 [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 17 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 17 00 9E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [10:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:36:10]wFMCommunicate OK [10:36:10]requested_item fd.num is exist - process it [10:36:10]SAM_PROTO_GetFieldsCounters [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 13 00 00 [10:36:10]Write to MH i2c: E2 08 00 9F 3E 80 13 00 00 00 00 00 00 59 [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 62 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 62 00 9F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:36:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_GetFieldsCounters done [10:36:10]requested_item shift.num is exist - process it [10:36:10]requested_item shift.opened is exist - process it [10:36:10]req_shift_opened [10:36:10]FM_GetShiftState [10:36:10]SAM_PROTO_GetShiftState [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 13 01 00 [10:36:10]Write to MH i2c: E2 08 00 A0 3E 80 13 01 00 00 00 00 00 5B [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 A0 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 15 [10:36:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_GetShiftState done [10:36:10]FM_GetShiftState done [10:36:10]req_shift_opened done [10:36:10]requested_item shift.open_date is exist - process it [10:36:10]req_shift_open_date [10:36:10]req_shift_open_date done [10:36:10]produce_requested_data done [10:36:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31114,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:36:10]process_action_free close_receipt [10:36:10]json_value_free [10:36:10]json_value_free done [10:36:10]process_json_proto returns [10:36:10]Send response to host [10:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31114,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:36:10]free response buf [10:36:10]execute_script done [10:36:10]execute_script returns [10:36:10]free content buf [10:36:10]Sock 10.Close socket [10:36:10]Sock 10.Thread stoped [10:38:15]accept exits with 7 [10:38:15]New connection [10:38:15]New thread 3067043172 created [10:38:15]Thread 3066899812 joined [10:38:15]Waiting for new connection... [10:38:15] Sock 7.Parse request [10:38:15]Sock 7.Check first char [10:38:15]Sock 7.First char is OK [10:38:15]request: POST /json_proto HTTP/1.0 [10:38:15]Method: POST [10:38:15]URL: /json_proto [10:38:15]Method is POST - this is cgi request [10:38:15]url: /json_proto [10:38:15]query_string will be loaded in cgi processing [10:38:15]execute_cgi json_proto POST (null) [10:38:15]execute_cgi path=json_proto method=POST [10:38:15]POST find Content-Length [10:38:15]Host: 172.17.51.3:8080 [10:38:15]Content-Length: 682 [10:38:15]Content-Type: application/json [10:38:15] [10:38:15]POST finish read [10:38:15]Found Content-Length = 682 [10:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:15]execute_script... [10:38:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:15]POST & json_proto [10:38:15]process_json_proto [10:38:15]json parsed OK: [10:38:15]protocol is kg_v1.0 [10:38:15]action value=close_receipt [10:38:15]process_action close_receipt [10:38:15]cmd_close_receipt [10:38:15]MH_GetDate [10:38:15]Write to MH i2c: F0 00 00 A1 3E CE [10:38:15]Write i2c OK [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 09 00 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: F0 09 00 A1 3E 00 1D D2 18 67 04 C1 95 66 05 [10:38:15]GetLastDocTimeStamp 1729679772 [10:38:15]current date 1729679901 [10:38:15]FM_GetShiftState [10:38:15]SAM_PROTO_GetShiftState [10:38:15]wFMCommunicate request_size=4 [10:38:15]MH_SAM_APDU [10:38:15]CAPDU: 80 13 01 00 [10:38:15]Write to MH i2c: E2 08 00 A2 3E 80 13 01 00 00 00 00 00 5D [10:38:15]Write i2c OK [10:38:15]MH_I2C_Read... [10:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:15]Read from MH i2c: E2 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: E2 0E 00 [10:38:15]MH_I2C_Read... [10:38:15]Read from MH i2c: E2 0E 00 A2 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 17 [10:38:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:38:15]wFMCommunicate OK [10:38:15]SAM_PROTO_GetShiftState done [10:38:15]FM_GetShiftState done [10:38:15]opened in 1729643755 [10:38:15]opened+sec_in_day 1729730155 [10:38:15]quantity*price = 100015 [10:38:15]sum+1 = 100017 [10:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 59 23.10.2024 10:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31115 ФПД: 262505568435484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31115&fm=262505568435484&tin=02508201610067®Number=0000000000186857&sum=100000 [10:38:16]StoreToDocumentArchive [10:38:16]shift 117 fd 31115 [10:38:16]save to /storage/0117/doc_00031115 [10:38:16]save last doc name /storage/0117/doc_00031115 to /storage/kkm_last_doc_name [10:38:16]save OK [10:38:16]Clear old archive folders... [10:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:16]tlvbuf is 00E4B0D0 [10:38:16]SAM_PROTO_ClearQueue [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 09 00 00 [10:38:16]Write to MH i2c: E2 08 00 AF 3E 80 09 00 00 00 00 00 00 5F [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 AF 3E 00 90 00 61 [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]SAM_PROTO_ClearQueue done [10:38:16]KKMCreateOFDPacket [10:38:16]OFDProtocolAddRootSTLVToBuf [10:38:16]FM_MakeSignedData [10:38:16]FM_MakeSignedData [10:38:16]SAM_PROTO_SignData [10:38:16]wFMCommunicate request_size=4 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 01 02 [10:38:16]Write to MH i2c: E2 08 00 B0 3E 80 0D 01 02 00 00 00 00 67 [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:16]Read from MH i2c: E2 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 [10:38:16]MH_I2C_Read... [10:38:16]Read from MH i2c: E2 03 00 B0 3E 00 90 00 62 [10:38:16]RAPDU: 90 00 [10:38:16]wFMCommunicate OK [10:38:16]wFMCommunicate request_size=255 [10:38:16]MH_SAM_APDU [10:38:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1D D2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 79 00 00 35 04 06 00 EE [10:38:16]Write to MH i2c: E2 02 01 B1 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1D D2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 79 00 00 35 04 06 00 EE 00 00 02 [10:38:16]Write i2c OK [10:38:16]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 03 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 03 00 B1 3E 00 90 00 63 [10:38:17]RAPDU: 90 00 [10:38:17]wFMCommunicate OK [10:38:17]wFMCommunicate request_size=10 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 0D 02 02 05 BF 57 28 7D 1C [10:38:17]Write to MH i2c: E2 0D 00 B2 3E 80 0D 02 02 05 00 BF 57 28 7D 1C 00 00 4B [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 03 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 03 00 B2 3E 00 90 00 64 [10:38:17]RAPDU: 90 00 [10:38:17]wFMCommunicate OK [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 0D 03 02 [10:38:17]Write to MH i2c: E2 08 00 B3 3E 80 0D 03 02 00 00 00 00 6C [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0B 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0B 00 B3 3E 00 36 58 98 BA 0D D4 65 89 90 00 1C [10:38:17]RAPDU: 36 58 98 BA 0D D4 65 89 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_SignData done [10:38:17]FM_MakeSignedData done [10:38:17]CreateOFDProtocolMessage [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 11 00 00 [10:38:17]Write to MH i2c: E2 08 00 B4 3E 80 11 00 00 00 00 00 00 6C [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 B4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [10:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:38:17]wFMCommunicate OK [10:38:17]CreateOFDProtocolMessage done [10:38:17]OFDSenderStorePacket 31115 [10:38:17]StoreOFDPacket docnum=31115 [10:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 0B 07 01 F5 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1D D2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 79 00 00 35 04 06 00 EE BF 57 28 7D 1C 36 58 98 BA 0D D4 65 89 [10:38:17]CheckFolder [10:38:17]dirname=/storage/ofd_packets [10:38:17]CheckFolder done [10:38:17]ProducePacketName [10:38:17]name=ofd_packets/00031115 [10:38:17]NVStorageSaveData ofd_packets/00031115 [10:38:17]File name is /storage/ofd_packets/00031115 [10:38:17]Write 301 bytes [10:38:17]NVStorageSaveData done [10:38:17]OFDSenderStorePacket done [10:38:17]KKMCreateOFDPacket done [10:38:17]NVStorageSaveData kkm_last_timestamp [10:38:17]File name is /storage/kkm_last_timestamp [10:38:17]Write 4 bytes [10:38:17]NVStorageSaveData done [10:38:17]ExternCall_PrintAddStr [10:38:17]wPrintStart [10:38:17]Write to MH i2c: 01 00 00 B5 3E F3 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 FF 0F 08 [10:38:17]RasterBufferAndPrint [10:38:17]line Счет N : (1)343555 [10:38:17]line ИНН: 02508201610067 [10:38:17]line Контрольно-Кассовый Чек [10:38:17]line ПРОДАЖА [10:38:17]line ТРК (МРК, ГНК) : 63 [10:38:17]line Товар: 2710124130 [10:38:17]line Аи-92-К-2 [10:38:17]line 14.950 * 66.90 [10:38:17]line = 1000.16 [10:38:17]line НДС 12% НСП 1% [10:38:17]line > о реализуемом товаре [10:38:17]line ОКРУГЛЕНИЕ: -0.16 [10:38:17]line ИТОГО: 1000.00 [10:38:17]line Внесено: 1000.00 [10:38:17]line СДАЧА: 0.00 [10:38:17]line НСП 1% : 8.85 [10:38:17]line НДС 12% : 106.21 [10:38:17]line Наличными: 1000.00 [10:38:17]line Безнал.: 0.00 [10:38:17]line Место: АЗС № 78 "Партнер Нефть" [10:38:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:38:17]line СНО: Общий режим [10:38:17]line Чек 59 23.10.2024 10:38 [10:38:17]line Смена: 117 ФФД: 1.0 [10:38:17]line ЗНМ: 0300000137 [10:38:17]line РНМ: 0000000000186857 [10:38:17]line Версия ККМ: v1.0 [10:38:17]line ФМ: 0000000002094219 [10:38:17]line ФД: 31115 [10:38:17]line ФПД: 262505568435484 [10:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31115&fm=262505568435484&tin=02508201610067®Number=0000000000186857&sum=100000 [10:38:17]written 0, free lines is 4095 [10:38:18]Write to MH i2c: 01 00 00 E0 3E 1E [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 E0 3E 00 00 00 00 00 EA 0C 1B [10:38:18]RasterBufferAndPrint [10:38:18]line [10:38:18]line [10:38:18]line [10:38:18]line [10:38:18]line [10:38:18]written 0, free lines is 3313 [10:38:18]MH_Cut [10:38:18]Write to MH i2c: D1 01 00 E7 3E 01 F7 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: D1 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: D1 01 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: D1 01 00 E7 3E 00 F6 [10:38:18]Write to MH i2c: 01 00 00 E8 3E 26 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** Cut start [10:38:18]*** Partial cut [10:38:18]*** CUTSNS_PIN = 1 [10:38:18]*** CUTSNS_PIN = 0 [10:38:19]*** Brake cut motor [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]*** Stop cut motor [10:38:19]*** Cut end [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 E8 3E 00 00 00 00 00 FF 0F 3B [10:38:19]process_action close_receipt done [10:38:19]requested_data is exist [10:38:19]produce_requested_data [10:38:19]requested_item fm.sn is exist - process it [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 11 00 00 [10:38:19]Write to MH i2c: E2 08 00 E9 3E 80 11 00 00 00 00 00 00 A1 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 E9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [10:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:38:19]wFMCommunicate OK [10:38:19]requested_item fd.num is exist - process it [10:38:19]SAM_PROTO_GetFieldsCounters [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 00 00 [10:38:19]Write to MH i2c: E2 08 00 EA 3E 80 13 00 00 00 00 00 00 A4 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 EA 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:38:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetFieldsCounters done [10:38:19]requested_item shift.num is exist - process it [10:38:19]requested_item shift.opened is exist - process it [10:38:19]req_shift_opened [10:38:19]FM_GetShiftState [10:38:19]SAM_PROTO_GetShiftState [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 01 00 [10:38:19]Write to MH i2c: E2 08 00 EB 3E 80 13 01 00 00 00 00 00 A6 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 EB 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 60 [10:38:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetShiftState done [10:38:19]FM_GetShiftState done [10:38:19]req_shift_opened done [10:38:19]requested_item shift.open_date is exist - process it [10:38:19]req_shift_open_date [10:38:19]req_shift_open_date done [10:38:19]produce_requested_data done [10:38:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31115,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:38:19]process_action_free close_receipt [10:38:19]json_value_free [10:38:19]json_value_free done [10:38:19]process_json_proto returns [10:38:19]Send response to host [10:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31115,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:38:19]free response buf [10:38:19]execute_script done [10:38:19]execute_script returns [10:38:19]free content buf [10:38:19]Sock 7.Close socket [10:38:19]Sock 7.Thread stoped [10:38:22]ConnectInit Can't connect to host [10:38:22]CommunicateWithHost connect error [10:38:22]CommunicateWithHost err = -1 [10:38:22]OFD Sender: Server communicate error [10:38:22]OFD Sender: Processing packet 31114 [packets to send 12, broken 10] [10:38:22]ProducePacketName [10:38:22]name=ofd_packets/00031114 [10:38:22]OFD Sender: To server: pG, [10:38:22]CommunicateWithHost lk.salyk.kg:30040 [10:38:22]ConnectInit lk.salyk.kg [10:38:22]Connected sock=7 [10:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B 74 07 01 AC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9C D1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 79 00 00 35 04 06 00 83 B0 03 4C 53 83 F1 A1 A5 78 9D 4E 60 70 [10:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DB 99 47 00 A4 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 79 00 00 F4 03 04 00 9D 7C 18 67 B6 04 01 00 00 C9 E1 09 D9 B4 C1 44 CB [10:38:23]CommunicateWithHost err = 0 [10:38:23]CheckOFDResponse [10:38:23]1017 (14) - 77093643461234 [10:38:23]1041 (16) - 0000000002094219 [10:38:23]1040 (4) - 31114 [10:38:23]1012 (4) - 23.10.2024 04:33 [10:38:23]1206 (1) - 0 [10:38:23]OFD Sender: Remove packet 31114 [10:38:23]ProducePacketName [10:38:23]name=ofd_packets/00031114 [10:38:23]NVStorageDeleteData [10:38:23]OFD Sender: Processing packet 31115 [packets to send 11, broken 10] [10:38:23]ProducePacketName [10:38:23]name=ofd_packets/00031115 [10:38:23]OFD Sender: To server: pG, [10:38:23]CommunicateWithHost lk.salyk.kg:30040 [10:38:23]ConnectInit lk.salyk.kg [10:38:23]Connected sock=7 [10:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 0B 07 01 F5 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1D D2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 79 00 00 35 04 06 00 EE BF 57 28 7D 1C 36 58 98 BA 0D D4 65 89 [10:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F1 08 47 00 E6 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 79 00 00 F4 03 04 00 9D 7C 18 67 B6 04 01 00 00 A6 7D 05 EA CD 16 D0 37 [10:38:23]CommunicateWithHost err = 0 [10:38:23]CheckOFDResponse [10:38:23]1017 (14) - 77093643461234 [10:38:23]1041 (16) - 0000000002094219 [10:38:23]1040 (4) - 31115 [10:38:23]1012 (4) - 23.10.2024 04:33 [10:38:23]1206 (1) - 0 [10:38:23]OFD Sender: Remove packet 31115 [10:38:23]ProducePacketName [10:38:23]name=ofd_packets/00031115 [10:38:23]NVStorageDeleteData [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]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:20]accept exits with 10 [10:45:20]New connection [10:45:20]New thread 3066899812 created [10:45:20]Thread 3067043172 joined [10:45:20]Waiting for new connection... [10:45:20] Sock 10.Parse request [10:45:20]Sock 10.Check first char [10:45:20]Sock 10.First char is OK [10:45:20]request: POST /json_proto HTTP/1.0 [10:45:20]Method: POST [10:45:20]URL: /json_proto [10:45:20]Method is POST - this is cgi request [10:45:20]url: /json_proto [10:45:20]query_string will be loaded in cgi processing [10:45:20]execute_cgi json_proto POST (null) [10:45:20]execute_cgi path=json_proto method=POST [10:45:20]POST find Content-Length [10:45:20]Host: 172.17.51.3:8080 [10:45:20]Content-Length: 688 [10:45:20]Content-Type: application/json [10:45:20] [10:45:20]POST finish read [10:45:20]Found Content-Length = 688 [10:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:20]execute_script... [10:45:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:20]POST & json_proto [10:45:20]process_json_proto [10:45:20]json parsed OK: [10:45:20]protocol is kg_v1.0 [10:45:20]action value=close_receipt [10:45:20]process_action close_receipt [10:45:20]cmd_close_receipt [10:45:20]MH_GetDate [10:45:20]Write to MH i2c: F0 00 00 EC 3E 19 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: F0 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: F0 09 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: F0 09 00 EC 3E 00 C5 D3 18 67 04 C1 95 66 F9 [10:45:20]GetLastDocTimeStamp 1729679901 [10:45:20]current date 1729680325 [10:45:20]FM_GetShiftState [10:45:20]SAM_PROTO_GetShiftState [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 13 01 00 [10:45:20]Write to MH i2c: E2 08 00 ED 3E 80 13 01 00 00 00 00 00 A8 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 ED 3E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 62 [10:45:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:45:20]wFMCommunicate OK [10:45:20]SAM_PROTO_GetShiftState done [10:45:20]FM_GetShiftState done [10:45:20]opened in 1729643755 [10:45:20]opened+sec_in_day 1729730155 [10:45:20]quantity*price = 100051 [10:45:20]sum+1 = 100052 [10:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 60 23.10.2024 10:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31116 ФПД: 15758768821142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31116&fm=15758768821142&tin=02508201610067®Number=0000000000186857&sum=100000 [10:45:21]StoreToDocumentArchive [10:45:21]shift 117 fd 31116 [10:45:21]save to /storage/0117/doc_00031116 [10:45:21]save last doc name /storage/0117/doc_00031116 to /storage/kkm_last_doc_name [10:45:21]save OK [10:45:21]Clear old archive folders... [10:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:45:21]tlvbuf is 00CC5050 [10:45:21]SAM_PROTO_ClearQueue [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 09 00 00 [10:45:21]Write to MH i2c: E2 08 00 FA 3E 80 09 00 00 00 00 00 00 AA [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 FA 3E 00 90 00 AC [10:45:21]RAPDU: 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_ClearQueue done [10:45:21]KKMCreateOFDPacket [10:45:21]OFDProtocolAddRootSTLVToBuf [10:45:21]FM_MakeSignedData [10:45:21]FM_MakeSignedData [10:45:21]SAM_PROTO_SignData [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 0D 01 02 [10:45:21]Write to MH i2c: E2 08 00 FB 3E 80 0D 01 02 00 00 00 00 B2 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 FB 3E 00 90 00 AD [10:45:21]RAPDU: 90 00 [10:45:21]wFMCommunicate OK [10:45:21]wFMCommunicate request_size=255 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C6 D3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 79 00 [10:45:21]Write to MH i2c: E2 02 01 FC 3E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C6 D3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 79 00 00 00 DA [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 FC 3E 00 90 00 AE [10:45:21]RAPDU: 90 00 [10:45:21]wFMCommunicate OK [10:45:21]wFMCommunicate request_size=16 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0E 55 1F D1 53 96 [10:45:21]Write to MH i2c: E2 13 00 FD 3E 80 0D 02 02 0B 00 00 35 04 06 00 0E 55 1F D1 53 96 00 00 46 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 03 00 FD 3E 00 90 00 AF [10:45:21]RAPDU: 90 00 [10:45:21]wFMCommunicate OK [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 0D 03 02 [10:45:21]Write to MH i2c: E2 08 00 FE 3E 80 0D 03 02 00 00 00 00 B7 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0B 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0B 00 FE 3E 00 04 82 AA 9F 14 04 66 9C 90 00 A1 [10:45:21]RAPDU: 04 82 AA 9F 14 04 66 9C 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_SignData done [10:45:21]FM_MakeSignedData done [10:45:21]CreateOFDProtocolMessage [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 11 00 00 [10:45:21]Write to MH i2c: E2 08 00 FF 3E 80 11 00 00 00 00 00 00 B7 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 FF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [10:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:45:21]wFMCommunicate OK [10:45:21]CreateOFDProtocolMessage done [10:45:21]OFDSenderStorePacket 31116 [10:45:21]StoreOFDPacket docnum=31116 [10:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 9F 80 0D 01 F2 6B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C6 D3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 79 00 00 35 04 06 00 0E 55 1F D1 53 96 04 82 AA 9F 14 04 66 9C [10:45:21]CheckFolder [10:45:21]dirname=/storage/ofd_packets [10:45:21]CheckFolder done [10:45:21]ProducePacketName [10:45:21]name=ofd_packets/00031116 [10:45:21]NVStorageSaveData ofd_packets/00031116 [10:45:21]File name is /storage/ofd_packets/00031116 [10:45:21]Write 307 bytes [10:45:21]NVStorageSaveData done [10:45:21]OFDSenderStorePacket done [10:45:21]KKMCreateOFDPacket done [10:45:21]NVStorageSaveData kkm_last_timestamp [10:45:21]File name is /storage/kkm_last_timestamp [10:45:21]Write 4 bytes [10:45:21]NVStorageSaveData done [10:45:21]ExternCall_PrintAddStr [10:45:21]wPrintStart [10:45:21]Write to MH i2c: 01 00 00 00 3F 3F [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 07 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 07 00 00 3F 00 00 00 00 00 FF 0F 54 [10:45:21]RasterBufferAndPrint [10:45:21]line Счет N : (1)343556 [10:45:21]line ИНН: 02508201610067 [10:45:21]line Контрольно-Кассовый Чек [10:45:21]line ПРОДАЖА [10:45:21]line ТРК (МРК, ГНК) : 61 [10:45:21]line Товар: 2710194210 [10:45:21]line D-ENERGY Дт-К-2 [10:45:21]line 12.960 * 77.20 [10:45:21]line = 1000.51 [10:45:21]line НДС 12% НСП 1% [10:45:21]line > о реализуемом товаре [10:45:21]line ОКРУГЛЕНИЕ: -0.51 [10:45:21]line ИТОГО: 1000.00 [10:45:21]line Внесено: 1000.00 [10:45:21]line СДАЧА: 0.00 [10:45:21]line НСП 1% : 8.85 [10:45:21]line НДС 12% : 106.25 [10:45:21]line Наличными: 1000.00 [10:45:21]line Безнал.: 0.00 [10:45:21]line Место: АЗС № 78 "Партнер Нефть" [10:45:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:45:21]line СНО: Общий режим [10:45:21]line Чек 60 23.10.2024 10:45 [10:45:21]line Смена: 117 ФФД: 1.0 [10:45:21]line ЗНМ: 0300000137 [10:45:21]line РНМ: 0000000000186857 [10:45:21]line Версия ККМ: v1.0 [10:45:21]line ФМ: 0000000002094219 [10:45:21]line ФД: 31116 [10:45:21]line ФПД: 15758768821142 [10:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31116&fm=15758768821142&tin=02508201610067®Number=0000000000186857&sum=100000 [10:45:22]OFD Sender: Processing packet 31116 [packets to send 11, broken 10] [10:45:22]ProducePacketName [10:45:22]name=ofd_packets/00031116 [10:45:22]OFD Sender: To server: pG, [10:45:22]CommunicateWithHost lk.salyk.kg:30040 [10:45:22]ConnectInit lk.salyk.kg [10:45:22]written 0, free lines is 4095 [10:45:22]Connected sock=9 [10:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 9F 80 0D 01 F2 6B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C6 D3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 79 00 00 35 04 06 00 0E 55 1F D1 53 96 04 82 AA 9F 14 04 66 9C [10:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DA 46 47 00 9F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 79 00 00 F4 03 04 00 40 7E 18 67 B6 04 01 00 00 47 C5 D5 5A DB 04 E6 6F [10:45:22]CommunicateWithHost err = 0 [10:45:22]CheckOFDResponse [10:45:22]1017 (14) - 77093643461234 [10:45:22]1041 (16) - 0000000002094219 [10:45:22]1040 (4) - 31116 [10:45:22]1012 (4) - 23.10.2024 04:40 [10:45:22]1206 (1) - 0 [10:45:22]OFD Sender: Remove packet 31116 [10:45:22]ProducePacketName [10:45:22]name=ofd_packets/00031116 [10:45:22]NVStorageDeleteData [10:45:22]Write to MH i2c: 01 00 00 2B 3F 6A [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: 01 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: 01 07 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: 01 07 00 2B 3F 00 00 00 00 00 FE 0C 7B [10:45:22]RasterBufferAndPrint [10:45:22]line [10:45:22]line [10:45:22]line [10:45:22]line [10:45:22]line [10:45:22]written 0, free lines is 3335 [10:45:22]MH_Cut [10:45:22]Write to MH i2c: D1 01 00 32 3F 01 43 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: D1 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: D1 01 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: D1 01 00 32 3F 00 42 [10:45:22]Write to MH i2c: 01 00 00 33 3F 72 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:23]OFD Sender: No OFD packet to send [10:45:23]*** Cut start [10:45:23]*** Partial cut [10:45:23]*** CUTSNS_PIN = 1 [10:45:23]*** CUTSNS_PIN = 0 [10:45:23]*** Brake cut motor [10:45:24]Read from MH i2c: 01 [10:45:24]MH_I2C_Read... [10:45:24]*** Stop cut motor [10:45:24]*** Cut end [10:45:24]Read from MH i2c: 01 07 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 07 00 33 3F 00 00 00 00 00 FF 0F 87 [10:45:24]process_action close_receipt done [10:45:24]requested_data is exist [10:45:24]produce_requested_data [10:45:24]requested_item fm.sn is exist - process it [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 11 00 00 [10:45:24]Write to MH i2c: E2 08 00 34 3F 80 11 00 00 00 00 00 00 ED [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 17 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 17 00 34 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [10:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:45:24]wFMCommunicate OK [10:45:24]requested_item fd.num is exist - process it [10:45:24]SAM_PROTO_GetFieldsCounters [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 13 00 00 [10:45:24]Write to MH i2c: E2 08 00 35 3F 80 13 00 00 00 00 00 00 F0 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 62 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 62 00 35 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [10:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:24]wFMCommunicate OK [10:45:24]SAM_PROTO_GetFieldsCounters done [10:45:24]requested_item shift.num is exist - process it [10:45:24]requested_item shift.opened is exist - process it [10:45:24]req_shift_opened [10:45:24]FM_GetShiftState [10:45:24]SAM_PROTO_GetShiftState [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 13 01 00 [10:45:24]Write to MH i2c: E2 08 00 36 3F 80 13 01 00 00 00 00 00 F2 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 0E 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 0E 00 36 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AC [10:45:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:45:24]wFMCommunicate OK [10:45:24]SAM_PROTO_GetShiftState done [10:45:24]FM_GetShiftState done [10:45:24]req_shift_opened done [10:45:24]requested_item shift.open_date is exist - process it [10:45:24]req_shift_open_date [10:45:24]req_shift_open_date done [10:45:24]produce_requested_data done [10:45:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31116,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:45:24]process_action_free close_receipt [10:45:24]json_value_free [10:45:24]json_value_free done [10:45:24]process_json_proto returns [10:45:24]Send response to host [10:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31116,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:45:24]free response buf [10:45:24]execute_script done [10:45:24]execute_script returns [10:45:24]free content buf [10:45:24]Sock 10.Close socket [10:45:24]Sock 10.Thread stoped [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:38]accept exits with 7 [10:46:38]New connection [10:46:38]New thread 3067043172 created [10:46:38]Thread 3066899812 joined [10:46:38]Waiting for new connection... [10:46:38] Sock 7.Parse request [10:46:38]Sock 7.Check first char [10:46:38]Sock 7.First char is OK [10:46:38]request: POST /json_proto HTTP/1.0 [10:46:38]Method: POST [10:46:38]URL: /json_proto [10:46:38]Method is POST - this is cgi request [10:46:38]url: /json_proto [10:46:38]query_string will be loaded in cgi processing [10:46:38]execute_cgi json_proto POST (null) [10:46:38]execute_cgi path=json_proto method=POST [10:46:38]POST find Content-Length [10:46:38]Host: 172.17.51.3:8080 [10:46:38]Content-Length: 677 [10:46:38]Content-Type: application/json [10:46:38] [10:46:38]POST finish read [10:46:38]Found Content-Length = 677 [10:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:38]execute_script... [10:46:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:38]POST & json_proto [10:46:38]process_json_proto [10:46:38]json parsed OK: [10:46:38]protocol is kg_v1.0 [10:46:38]action value=close_receipt [10:46:38]process_action close_receipt [10:46:38]cmd_close_receipt [10:46:38]MH_GetDate [10:46:38]Write to MH i2c: F0 00 00 37 3F 65 [10:46:38]Write i2c OK [10:46:38]MH_I2C_Read... [10:46:38]Read from MH i2c: F0 [10:46:38]MH_I2C_Read... [10:46:38]Read from MH i2c: F0 09 00 [10:46:38]MH_I2C_Read... [10:46:38]Read from MH i2c: F0 09 00 37 3F 00 14 D4 18 67 04 C1 95 66 95 [10:46:38]GetLastDocTimeStamp 1729680326 [10:46:38]current date 1729680404 [10:46:38]FM_GetShiftState [10:46:38]SAM_PROTO_GetShiftState [10:46:38]wFMCommunicate request_size=4 [10:46:38]MH_SAM_APDU [10:46:38]CAPDU: 80 13 01 00 [10:46:38]Write to MH i2c: E2 08 00 38 3F 80 13 01 00 00 00 00 00 F4 [10:46:38]Write i2c OK [10:46:38]MH_I2C_Read... [10:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:38]Read from MH i2c: E2 [10:46:38]MH_I2C_Read... [10:46:38]Read from MH i2c: E2 0E 00 [10:46:38]MH_I2C_Read... [10:46:38]Read from MH i2c: E2 0E 00 38 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AE [10:46:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:46:38]wFMCommunicate OK [10:46:38]SAM_PROTO_GetShiftState done [10:46:38]FM_GetShiftState done [10:46:38]opened in 1729643755 [10:46:38]opened+sec_in_day 1729730155 [10:46:38]quantity*price = 30038 [10:46:38]sum+1 = 30039 [10:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 61 23.10.2024 10:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31117 ФПД: 197431422155406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31117&fm=197431422155406&tin=02508201610067®Number=0000000000186857&sum=30000 [10:46:39]StoreToDocumentArchive [10:46:39]shift 117 fd 31117 [10:46:39]save to /storage/0117/doc_00031117 [10:46:39]save last doc name /storage/0117/doc_00031117 to /storage/kkm_last_doc_name [10:46:39]save OK [10:46:39]Clear old archive folders... [10:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:39]tlvbuf is 00DB7240 [10:46:39]SAM_PROTO_ClearQueue [10:46:39]wFMCommunicate request_size=4 [10:46:39]MH_SAM_APDU [10:46:39]CAPDU: 80 09 00 00 [10:46:39]Write to MH i2c: E2 08 00 45 3F 80 09 00 00 00 00 00 00 F6 [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 45 3F 00 90 00 F8 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]SAM_PROTO_ClearQueue done [10:46:40]KKMCreateOFDPacket [10:46:40]OFDProtocolAddRootSTLVToBuf [10:46:40]FM_MakeSignedData [10:46:40]FM_MakeSignedData [10:46:40]SAM_PROTO_SignData [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 01 02 [10:46:40]Write to MH i2c: E2 08 00 46 3F 80 0D 01 02 00 00 00 00 FE [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 46 3F 00 90 00 F9 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=255 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 14 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 79 00 00 35 04 06 00 B3 [10:46:40]Write to MH i2c: E2 02 01 47 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 14 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 79 00 00 35 04 06 00 B3 00 00 55 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 47 3F 00 90 00 FA [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=10 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 02 02 05 90 15 C8 FA 8E [10:46:40]Write to MH i2c: E2 0D 00 48 3F 80 0D 02 02 05 00 90 15 C8 FA 8E 00 00 00 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 48 3F 00 90 00 FB [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 03 02 [10:46:40]Write to MH i2c: E2 08 00 49 3F 80 0D 03 02 00 00 00 00 03 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 0B 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 0B 00 49 3F 00 21 F0 F7 3B 6A DA 23 74 90 00 22 [10:46:40]RAPDU: 21 F0 F7 3B 6A DA 23 74 90 00 [10:46:40]wFMCommunicate OK [10:46:40]SAM_PROTO_SignData done [10:46:40]FM_MakeSignedData done [10:46:40]CreateOFDProtocolMessage [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 11 00 00 [10:46:40]Write to MH i2c: E2 08 00 4A 3F 80 11 00 00 00 00 00 00 03 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 17 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 17 00 4A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [10:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:40]wFMCommunicate OK [10:46:40]CreateOFDProtocolMessage done [10:46:40]OFDSenderStorePacket 31117 [10:46:40]StoreOFDPacket docnum=31117 [10:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 45 8C 07 01 F0 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 14 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 79 00 00 35 04 06 00 B3 90 15 C8 FA 8E 21 F0 F7 3B 6A DA 23 74 [10:46:40]CheckFolder [10:46:40]dirname=/storage/ofd_packets [10:46:40]CheckFolder done [10:46:40]ProducePacketName [10:46:40]name=ofd_packets/00031117 [10:46:40]NVStorageSaveData ofd_packets/00031117 [10:46:40]File name is /storage/ofd_packets/00031117 [10:46:40]Write 301 bytes [10:46:40]NVStorageSaveData done [10:46:40]OFDSenderStorePacket done [10:46:40]KKMCreateOFDPacket done [10:46:40]NVStorageSaveData kkm_last_timestamp [10:46:40]File name is /storage/kkm_last_timestamp [10:46:40]Write 4 bytes [10:46:40]NVStorageSaveData done [10:46:40]ExternCall_PrintAddStr [10:46:40]wPrintStart [10:46:40]Write to MH i2c: 01 00 00 4B 3F 8A [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: 01 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: 01 07 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: 01 07 00 4B 3F 00 00 00 00 00 FF 0F 9F [10:46:40]RasterBufferAndPrint [10:46:40]line Счет N : (1)343557 [10:46:40]line ИНН: 02508201610067 [10:46:40]line Контрольно-Кассовый Чек [10:46:40]line ПРОДАЖА [10:46:40]line ТРК (МРК, ГНК) : 63 [10:46:40]line Товар: 2710124130 [10:46:40]line Аи-92-К-2 [10:46:40]line 4.490 * 66.90 [10:46:40]line = 300.38 [10:46:40]line НДС 12% НСП 1% [10:46:40]line > о реализуемом товаре [10:46:40]line ОКРУГЛЕНИЕ: -0.38 [10:46:40]line ИТОГО: 300.00 [10:46:40]line Внесено: 300.00 [10:46:40]line СДАЧА: 0.00 [10:46:40]line НСП 1% : 2.66 [10:46:40]line НДС 12% : 31.90 [10:46:40]line Наличными: 300.00 [10:46:40]line Безнал.: 0.00 [10:46:40]line Место: АЗС № 78 "Партнер Нефть" [10:46:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:46:40]line СНО: Общий режим [10:46:40]line Чек 61 23.10.2024 10:46 [10:46:40]line Смена: 117 ФФД: 1.0 [10:46:40]line ЗНМ: 0300000137 [10:46:40]line РНМ: 0000000000186857 [10:46:40]line Версия ККМ: v1.0 [10:46:40]line ФМ: 0000000002094219 [10:46:40]line ФД: 31117 [10:46:40]line ФПД: 197431422155406 [10:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31117&fm=197431422155406&tin=02508201610067®Number=0000000000186857&sum=30000 [10:46:40]OFD Sender: Processing packet 31117 [packets to send 11, broken 10] [10:46:40]ProducePacketName [10:46:40]name=ofd_packets/00031117 [10:46:40]OFD Sender: To server: pG, [10:46:40]CommunicateWithHost lk.salyk.kg:30040 [10:46:40]ConnectInit lk.salyk.kg [10:46:40]written 0, free lines is 4095 [10:46:40]Connected sock=9 [10:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 45 8C 07 01 F0 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 14 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 79 00 00 35 04 06 00 B3 90 15 C8 FA 8E 21 F0 F7 3B 6A DA 23 74 [10:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 02 52 47 00 45 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 79 00 00 F4 03 04 00 8F 7E 18 67 B6 04 01 00 00 7C 18 AF 78 D0 8F 8A D5 [10:46:41]CommunicateWithHost err = 0 [10:46:41]CheckOFDResponse [10:46:41]1017 (14) - 77093643461234 [10:46:41]1041 (16) - 0000000002094219 [10:46:41]1040 (4) - 31117 [10:46:41]1012 (4) - 23.10.2024 04:41 [10:46:41]1206 (1) - 0 [10:46:41]OFD Sender: Remove packet 31117 [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00031117 [10:46:41]NVStorageDeleteData [10:46:41]Write to MH i2c: 01 00 00 76 3F B5 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 76 3F 00 00 00 00 00 FE 0C C6 [10:46:41]RasterBufferAndPrint [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]written 0, free lines is 3334 [10:46:41]MH_Cut [10:46:41]Write to MH i2c: D1 01 00 7D 3F 01 8E [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 7D 3F 00 8D [10:46:41]Write to MH i2c: 01 00 00 7E 3F BD [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]OFD Sender: No OFD packet to send [10:46:41]*** Cut start [10:46:41]*** Partial cut [10:46:41]*** CUTSNS_PIN = 1 [10:46:42]*** CUTSNS_PIN = 0 [10:46:42]*** Brake cut motor [10:46:42]Read from MH i2c: 01 [10:46:42]MH_I2C_Read... [10:46:42]*** Stop cut motor [10:46:42]*** Cut end [10:46:42]Read from MH i2c: 01 07 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: 01 07 00 7E 3F 00 00 00 00 00 FF 0F D2 [10:46:42]process_action close_receipt done [10:46:42]requested_data is exist [10:46:42]produce_requested_data [10:46:42]requested_item fm.sn is exist - process it [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 11 00 00 [10:46:42]Write to MH i2c: E2 08 00 7F 3F 80 11 00 00 00 00 00 00 38 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 17 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 17 00 7F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [10:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:42]wFMCommunicate OK [10:46:42]requested_item fd.num is exist - process it [10:46:42]SAM_PROTO_GetFieldsCounters [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 13 00 00 [10:46:42]Write to MH i2c: E2 08 00 80 3F 80 13 00 00 00 00 00 00 3B [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 62 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 62 00 80 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:42]wFMCommunicate OK [10:46:42]SAM_PROTO_GetFieldsCounters done [10:46:42]requested_item shift.num is exist - process it [10:46:42]requested_item shift.opened is exist - process it [10:46:42]req_shift_opened [10:46:42]FM_GetShiftState [10:46:42]SAM_PROTO_GetShiftState [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 13 01 00 [10:46:42]Write to MH i2c: E2 08 00 81 3F 80 13 01 00 00 00 00 00 3D [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 81 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F7 [10:46:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:46:42]wFMCommunicate OK [10:46:42]SAM_PROTO_GetShiftState done [10:46:42]FM_GetShiftState done [10:46:42]req_shift_opened done [10:46:42]requested_item shift.open_date is exist - process it [10:46:42]req_shift_open_date [10:46:42]req_shift_open_date done [10:46:42]produce_requested_data done [10:46:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31117,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:46:42]process_action_free close_receipt [10:46:42]json_value_free [10:46:42]json_value_free done [10:46:42]process_json_proto returns [10:46:42]Send response to host [10:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31117,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:46:42]free response buf [10:46:42]execute_script done [10:46:42]execute_script returns [10:46:42]free content buf [10:46:42]Sock 7.Close socket [10:46:42]Sock 7.Thread stoped [10:46:46]OFD Sender: No OFD packet to send [10:46:51]accept exits with 10 [10:46:51]New connection [10:46:51]New thread 3066899812 created [10:46:51]Thread 3067043172 joined [10:46:51]Waiting for new connection... [10:46:51] Sock 10.Parse request [10:46:51]Sock 10.Check first char [10:46:51]Sock 10.First char is OK [10:46:51]request: POST /json_proto HTTP/1.0 [10:46:51]Method: POST [10:46:51]URL: /json_proto [10:46:51]Method is POST - this is cgi request [10:46:51]url: /json_proto [10:46:51]query_string will be loaded in cgi processing [10:46:51]execute_cgi json_proto POST (null) [10:46:51]execute_cgi path=json_proto method=POST [10:46:51]POST find Content-Length [10:46:51]Host: 172.17.51.3:8080 [10:46:51]Content-Length: 677 [10:46:51]Content-Type: application/json [10:46:51] [10:46:51]POST finish read [10:46:51]Found Content-Length = 677 [10:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:51]execute_script... [10: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 : (1)343558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:51]POST & json_proto [10:46:51]process_json_proto [10:46:51]json parsed OK: [10:46:51]protocol is kg_v1.0 [10:46:51]action value=close_receipt [10:46:51]process_action close_receipt [10:46:51]cmd_close_receipt [10:46:51]MH_GetDate [10:46:51]Write to MH i2c: F0 00 00 82 3F B0 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 09 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: F0 09 00 82 3F 00 20 D4 18 67 04 C1 95 66 EC [10:46:51]GetLastDocTimeStamp 1729680404 [10:46:51]current date 1729680416 [10:46:51]FM_GetShiftState [10:46:51]SAM_PROTO_GetShiftState [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 13 01 00 [10:46:51]Write to MH i2c: E2 08 00 83 3F 80 13 01 00 00 00 00 00 3F [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 83 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F9 [10:46:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetShiftState done [10:46:51]FM_GetShiftState done [10:46:51]opened in 1729643755 [10:46:51]opened+sec_in_day 1729730155 [10:46:51]quantity*price = 30038 [10:46:51]sum+1 = 30039 [10:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 62 23.10.2024 10:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31118 ФПД: 61233837051754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31118&fm=61233837051754&tin=02508201610067®Number=0000000000186857&sum=30000 [10:46:52]StoreToDocumentArchive [10:46:52]shift 117 fd 31118 [10:46:52]save to /storage/0117/doc_00031118 [10:46:52]save last doc name /storage/0117/doc_00031118 to /storage/kkm_last_doc_name [10:46:52]save OK [10:46:52]Clear old archive folders... [10:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:52]tlvbuf is B6F6BCC0 [10:46:52]SAM_PROTO_ClearQueue [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 09 00 00 [10:46:52]Write to MH i2c: E2 08 00 90 3F 80 09 00 00 00 00 00 00 41 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 90 3F 00 90 00 43 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_ClearQueue done [10:46:52]KKMCreateOFDPacket [10:46:52]OFDProtocolAddRootSTLVToBuf [10:46:52]FM_MakeSignedData [10:46:52]FM_MakeSignedData [10:46:52]SAM_PROTO_SignData [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 01 02 [10:46:52]Write to MH i2c: E2 08 00 91 3F 80 0D 01 02 00 00 00 00 49 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 91 3F 00 90 00 44 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=255 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 20 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 79 00 00 35 04 06 00 37 [10:46:52]Write to MH i2c: E2 02 01 92 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 20 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 79 00 00 35 04 06 00 37 00 00 32 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 92 3F 00 90 00 45 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=10 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 05 B1 1D 1B 0F 6A [10:46:52]Write to MH i2c: E2 0D 00 93 3F 80 0D 02 02 05 00 B1 1D 1B 0F 6A 00 00 B8 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 93 3F 00 90 00 46 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 03 02 [10:46:52]Write to MH i2c: E2 08 00 94 3F 80 0D 03 02 00 00 00 00 4E [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 94 3F 00 9D 75 1E 29 58 14 EC 26 90 00 26 [10:46:52]RAPDU: 9D 75 1E 29 58 14 EC 26 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_SignData done [10:46:52]FM_MakeSignedData done [10:46:52]CreateOFDProtocolMessage [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 11 00 00 [10:46:52]Write to MH i2c: E2 08 00 95 3F 80 11 00 00 00 00 00 00 4E [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 95 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [10:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:52]wFMCommunicate OK [10:46:52]CreateOFDProtocolMessage done [10:46:52]OFDSenderStorePacket 31118 [10:46:52]StoreOFDPacket docnum=31118 [10:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 70 75 07 01 83 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 20 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 79 00 00 35 04 06 00 37 B1 1D 1B 0F 6A 9D 75 1E 29 58 14 EC 26 [10:46:52]CheckFolder [10:46:52]dirname=/storage/ofd_packets [10:46:52]CheckFolder done [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00031118 [10:46:52]NVStorageSaveData ofd_packets/00031118 [10:46:52]File name is /storage/ofd_packets/00031118 [10:46:52]Write 301 bytes [10:46:52]NVStorageSaveData done [10:46:52]OFDSenderStorePacket done [10:46:52]KKMCreateOFDPacket done [10:46:52]NVStorageSaveData kkm_last_timestamp [10:46:52]File name is /storage/kkm_last_timestamp [10:46:52]Write 4 bytes [10:46:52]NVStorageSaveData done [10:46:52]ExternCall_PrintAddStr [10:46:52]wPrintStart [10:46:52]Write to MH i2c: 01 00 00 96 3F D5 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 96 3F 00 00 00 00 00 FF 0F EA [10:46:52]RasterBufferAndPrint [10:46:52]line Счет N : (1)343558 [10:46:52]line ИНН: 02508201610067 [10:46:52]line Контрольно-Кассовый Чек [10:46:52]line ПРОДАЖА [10:46:52]line ТРК (МРК, ГНК) : 43 [10:46:52]line Товар: 2710124130 [10:46:52]line Аи-92-К-2 [10:46:52]line 4.490 * 66.90 [10:46:52]line = 300.38 [10:46:52]line НДС 12% НСП 1% [10:46:52]line > о реализуемом товаре [10:46:52]line ОКРУГЛЕНИЕ: -0.38 [10:46:52]line ИТОГО: 300.00 [10:46:52]line Внесено: 300.00 [10:46:52]line СДАЧА: 0.00 [10:46:52]line НСП 1% : 2.66 [10:46:52]line НДС 12% : 31.90 [10:46:52]line Наличными: 300.00 [10:46:52]line Безнал.: 0.00 [10:46:52]line Место: АЗС № 78 "Партнер Нефть" [10:46:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:46:52]line СНО: Общий режим [10:46:52]line Чек 62 23.10.2024 10:46 [10:46:52]line Смена: 117 ФФД: 1.0 [10:46:52]line ЗНМ: 0300000137 [10:46:52]line РНМ: 0000000000186857 [10:46:52]line Версия ККМ: v1.0 [10:46:52]line ФМ: 0000000002094219 [10:46:52]line ФД: 31118 [10:46:52]line ФПД: 61233837051754 [10:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31118&fm=61233837051754&tin=02508201610067®Number=0000000000186857&sum=30000 [10:46:52]written 0, free lines is 4095 [10:46:52]OFD Sender: Processing packet 31118 [packets to send 11, broken 10] [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00031118 [10:46:52]OFD Sender: To server: pG, [10:46:52]CommunicateWithHost lk.salyk.kg:30040 [10:46:52]ConnectInit lk.salyk.kg [10:46:53]Connected sock=9 [10:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 70 75 07 01 83 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 20 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 79 00 00 35 04 06 00 37 B1 1D 1B 0F 6A 9D 75 1E 29 58 14 EC 26 [10:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 89 79 47 00 1D D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 79 00 00 F4 03 04 00 9B 7E 18 67 B6 04 01 00 00 2B 42 CF 89 C8 92 65 14 [10:46:53]CommunicateWithHost err = 0 [10:46:53]CheckOFDResponse [10:46:53]1017 (14) - 77093643461234 [10:46:53]1041 (16) - 0000000002094219 [10:46:53]1040 (4) - 31118 [10:46:53]1012 (4) - 23.10.2024 04:42 [10:46:53]1206 (1) - 0 [10:46:53]OFD Sender: Remove packet 31118 [10:46:53]ProducePacketName [10:46:53]name=ofd_packets/00031118 [10:46:53]NVStorageDeleteData [10:46:53]Write to MH i2c: 01 00 00 C1 3F 00 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 C1 3F 00 00 00 00 00 F7 0C 0A [10:46:53]RasterBufferAndPrint [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]written 0, free lines is 3328 [10:46:53]MH_Cut [10:46:53]Write to MH i2c: D1 01 00 C8 3F 01 D9 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 C8 3F 00 D8 [10:46:53]Write to MH i2c: 01 00 00 C9 3F 08 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]OFD Sender: No OFD packet to send [10:46:54]*** Cut start [10:46:54]*** Partial cut [10:46:54]*** CUTSNS_PIN = 1 [10:46:54]*** CUTSNS_PIN = 0 [10:46:54]*** Brake cut motor [10:46:54]Read from MH i2c: 01 [10:46:54]MH_I2C_Read... [10:46:54]*** Stop cut motor [10:46:54]*** Cut end [10:46:54]Read from MH i2c: 01 07 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: 01 07 00 C9 3F 00 00 00 00 00 FF 0F 1D [10:46:54]process_action close_receipt done [10:46:54]requested_data is exist [10:46:54]produce_requested_data [10:46:54]requested_item fm.sn is exist - process it [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 11 00 00 [10:46:54]Write to MH i2c: E2 08 00 CA 3F 80 11 00 00 00 00 00 00 83 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 CA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [10:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:54]wFMCommunicate OK [10:46:54]requested_item fd.num is exist - process it [10:46:54]SAM_PROTO_GetFieldsCounters [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 00 00 [10:46:54]Write to MH i2c: E2 08 00 CB 3F 80 13 00 00 00 00 00 00 86 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 CB 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [10:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetFieldsCounters done [10:46:54]requested_item shift.num is exist - process it [10:46:54]requested_item shift.opened is exist - process it [10:46:54]req_shift_opened [10:46:54]FM_GetShiftState [10:46:54]SAM_PROTO_GetShiftState [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 01 00 [10:46:54]Write to MH i2c: E2 08 00 CC 3F 80 13 01 00 00 00 00 00 88 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 CC 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 42 [10:46:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetShiftState done [10:46:54]FM_GetShiftState done [10:46:54]req_shift_opened done [10:46:54]requested_item shift.open_date is exist - process it [10:46:54]req_shift_open_date [10:46:54]req_shift_open_date done [10:46:54]produce_requested_data done [10:46:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31118,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:46:54]process_action_free close_receipt [10:46:54]json_value_free [10:46:54]json_value_free done [10:46:54]process_json_proto returns [10:46:54]Send response to host [10:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31118,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:46:54]free response buf [10:46:54]execute_script done [10:46:54]execute_script returns [10:46:54]free content buf [10:46:54]Sock 10.Close socket [10:46:54]Sock 10.Thread stoped [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:07]accept exits with 7 [10:47:07]New connection [10:47:07]New thread 3067043172 created [10:47:07]Thread 3066899812 joined [10:47:07]Waiting for new connection... [10:47:07] Sock 7.Parse request [10:47:07]Sock 7.Check first char [10:47:07]Sock 7.First char is OK [10:47:07]request: POST /json_proto HTTP/1.0 [10:47:07]Method: POST [10:47:07]URL: /json_proto [10:47:07]Method is POST - this is cgi request [10:47:07]url: /json_proto [10:47:07]query_string will be loaded in cgi processing [10:47:07]execute_cgi json_proto POST (null) [10:47:07]execute_cgi path=json_proto method=POST [10:47:07]POST find Content-Length [10:47:07]Host: 172.17.51.3:8080 [10:47:07]Content-Length: 677 [10:47:07]Content-Type: application/json [10:47:07] [10:47:07]POST finish read [10:47:07]Found Content-Length = 677 [10:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:07]execute_script... [10:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:07]POST & json_proto [10:47:07]process_json_proto [10:47:07]json parsed OK: [10:47:07]protocol is kg_v1.0 [10:47:07]action value=close_receipt [10:47:07]process_action close_receipt [10:47:07]cmd_close_receipt [10:47:07]MH_GetDate [10:47:07]Write to MH i2c: F0 00 00 CD 3F FB [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 09 00 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: F0 09 00 CD 3F 00 31 D4 18 67 04 C1 95 66 48 [10:47:07]GetLastDocTimeStamp 1729680416 [10:47:07]current date 1729680433 [10:47:07]FM_GetShiftState [10:47:07]SAM_PROTO_GetShiftState [10:47:07]wFMCommunicate request_size=4 [10:47:07]MH_SAM_APDU [10:47:07]CAPDU: 80 13 01 00 [10:47:07]Write to MH i2c: E2 08 00 CE 3F 80 13 01 00 00 00 00 00 8A [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:07]Read from MH i2c: E2 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 0E 00 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 0E 00 CE 3F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 44 [10:47:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:47:07]wFMCommunicate OK [10:47:07]SAM_PROTO_GetShiftState done [10:47:07]FM_GetShiftState done [10:47:07]opened in 1729643755 [10:47:07]opened+sec_in_day 1729730155 [10:47:07]quantity*price = 20003 [10:47:07]sum+1 = 20004 [10:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 63 23.10.2024 10:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31119 ФПД: 28566011232467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104713&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31119&fm=28566011232467&tin=02508201610067®Number=0000000000186857&sum=20000 [10:47:08]StoreToDocumentArchive [10:47:08]shift 117 fd 31119 [10:47:08]save to /storage/0117/doc_00031119 [10:47:08]save last doc name /storage/0117/doc_00031119 to /storage/kkm_last_doc_name [10:47:08]save OK [10:47:08]Clear old archive folders... [10:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:08]tlvbuf is 00D9ECB0 [10:47:08]SAM_PROTO_ClearQueue [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 09 00 00 [10:47:08]Write to MH i2c: E2 08 00 DB 3F 80 09 00 00 00 00 00 00 8C [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 DB 3F 00 90 00 8E [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]SAM_PROTO_ClearQueue done [10:47:08]KKMCreateOFDPacket [10:47:08]OFDProtocolAddRootSTLVToBuf [10:47:08]FM_MakeSignedData [10:47:08]FM_MakeSignedData [10:47:08]SAM_PROTO_SignData [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 01 02 [10:47:08]Write to MH i2c: E2 08 00 DC 3F 80 0D 01 02 00 00 00 00 94 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 DC 3F 00 90 00 8F [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=255 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 31 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 79 00 00 35 04 06 00 19 [10:47:08]Write to MH i2c: E2 02 01 DD 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 31 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 79 00 00 35 04 06 00 19 00 00 40 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]OFD Sender: No OFD packet to send [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 DD 3F 00 90 00 90 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=10 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 02 02 05 FB 0A F3 C0 D3 [10:47:08]Write to MH i2c: E2 0D 00 DE 3F 80 0D 02 02 05 00 FB 0A F3 C0 D3 00 00 2C [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 DE 3F 00 90 00 91 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 03 02 [10:47:08]Write to MH i2c: E2 08 00 DF 3F 80 0D 03 02 00 00 00 00 99 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 DF 3F 00 30 35 F8 FF 0E F6 03 05 90 00 02 [10:47:08]RAPDU: 30 35 F8 FF 0E F6 03 05 90 00 [10:47:08]wFMCommunicate OK [10:47:08]SAM_PROTO_SignData done [10:47:08]FM_MakeSignedData done [10:47:08]CreateOFDProtocolMessage [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 11 00 00 [10:47:08]Write to MH i2c: E2 08 00 E0 3F 80 11 00 00 00 00 00 00 99 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 E0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [10:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:47:09]wFMCommunicate OK [10:47:09]CreateOFDProtocolMessage done [10:47:09]OFDSenderStorePacket 31119 [10:47:09]StoreOFDPacket docnum=31119 [10:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 47 07 01 DE 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 31 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 79 00 00 35 04 06 00 19 FB 0A F3 C0 D3 30 35 F8 FF 0E F6 03 05 [10:47:09]CheckFolder [10:47:09]dirname=/storage/ofd_packets [10:47:09]CheckFolder done [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00031119 [10:47:09]NVStorageSaveData ofd_packets/00031119 [10:47:09]File name is /storage/ofd_packets/00031119 [10:47:09]Write 301 bytes [10:47:09]NVStorageSaveData done [10:47:09]OFDSenderStorePacket done [10:47:09]KKMCreateOFDPacket done [10:47:09]NVStorageSaveData kkm_last_timestamp [10:47:09]File name is /storage/kkm_last_timestamp [10:47:09]Write 4 bytes [10:47:09]NVStorageSaveData done [10:47:09]ExternCall_PrintAddStr [10:47:09]wPrintStart [10:47:09]Write to MH i2c: 01 00 00 E1 3F 20 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 E1 3F 00 00 00 00 00 FF 0F 35 [10:47:09]RasterBufferAndPrint [10:47:09]line Счет N : (1)343559 [10:47:09]line ИНН: 02508201610067 [10:47:09]line Контрольно-Кассовый Чек [10:47:09]line ПРОДАЖА [10:47:09]line ТРК (МРК, ГНК) : 63 [10:47:09]line Товар: 2710124130 [10:47:09]line Аи-92-К-2 [10:47:09]line 2.990 * 66.90 [10:47:09]line = 200.03 [10:47:09]line НДС 12% НСП 1% [10:47:09]line > о реализуемом товаре [10:47:09]line ОКРУГЛЕНИЕ: -0.03 [10:47:09]line ИТОГО: 200.00 [10:47:09]line Внесено: 200.00 [10:47:09]line СДАЧА: 0.00 [10:47:09]line НСП 1% : 1.77 [10:47:09]line НДС 12% : 21.24 [10:47:09]line Наличными: 200.00 [10:47:09]line Безнал.: 0.00 [10:47:09]line Место: АЗС № 78 "Партнер Нефть" [10:47:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:47:09]line СНО: Общий режим [10:47:09]line Чек 63 23.10.2024 10:47 [10:47:09]line Смена: 117 ФФД: 1.0 [10:47:09]line ЗНМ: 0300000137 [10:47:09]line РНМ: 0000000000186857 [10:47:09]line Версия ККМ: v1.0 [10:47:09]line ФМ: 0000000002094219 [10:47:09]line ФД: 31119 [10:47:09]line ФПД: 28566011232467 [10:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104713&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31119&fm=28566011232467&tin=02508201610067®Number=0000000000186857&sum=20000 [10:47:09]written 0, free lines is 4095 [10:47:09]OFD Sender: Processing packet 31119 [packets to send 11, broken 10] [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00031119 [10:47:09]OFD Sender: To server: pG, [10:47:09]CommunicateWithHost lk.salyk.kg:30040 [10:47:09]ConnectInit lk.salyk.kg [10:47:09]Connected sock=10 [10:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 47 07 01 DE 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 31 D4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 79 00 00 35 04 06 00 19 FB 0A F3 C0 D3 30 35 F8 FF 0E F6 03 05 [10:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 37 45 47 00 2E 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 79 00 00 F4 03 04 00 AB 7E 18 67 B6 04 01 00 00 7A 9A A3 C0 04 C8 AB 6E [10:47:09]CommunicateWithHost err = 0 [10:47:09]CheckOFDResponse [10:47:09]1017 (14) - 77093643461234 [10:47:09]1041 (16) - 0000000002094219 [10:47:09]1040 (4) - 31119 [10:47:09]1012 (4) - 23.10.2024 04:42 [10:47:09]1206 (1) - 0 [10:47:09]OFD Sender: Remove packet 31119 [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00031119 [10:47:09]NVStorageDeleteData [10:47:09]Write to MH i2c: 01 00 00 0C 40 4C [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 0C 40 00 00 00 00 00 FD 0C 5C [10:47:09]RasterBufferAndPrint [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]written 0, free lines is 3337 [10:47:09]MH_Cut [10:47:09]Write to MH i2c: D1 01 00 13 40 01 25 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 01 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 01 00 13 40 00 24 [10:47:09]Write to MH i2c: 01 00 00 14 40 54 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]OFD Sender: No OFD packet to send [10:47:10]*** Cut start [10:47:10]*** Partial cut [10:47:10]*** CUTSNS_PIN = 1 [10:47:10]*** CUTSNS_PIN = 0 [10:47:10]*** Brake cut motor [10:47:10]Read from MH i2c: 01 [10:47:10]MH_I2C_Read... [10:47:10]*** Stop cut motor [10:47:10]*** Cut end [10:47:10]Read from MH i2c: 01 07 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 14 40 00 00 00 00 00 FF 0F 69 [10:47:10]process_action close_receipt done [10:47:10]requested_data is exist [10:47:10]produce_requested_data [10:47:10]requested_item fm.sn is exist - process it [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 11 00 00 [10:47:10]Write to MH i2c: E2 08 00 15 40 80 11 00 00 00 00 00 00 CF [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 15 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [10:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:47:10]wFMCommunicate OK [10:47:10]requested_item fd.num is exist - process it [10:47:10]SAM_PROTO_GetFieldsCounters [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 13 00 00 [10:47:10]Write to MH i2c: E2 08 00 16 40 80 13 00 00 00 00 00 00 D2 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 62 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 62 00 16 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:11]wFMCommunicate OK [10:47:11]SAM_PROTO_GetFieldsCounters done [10:47:11]requested_item shift.num is exist - process it [10:47:11]requested_item shift.opened is exist - process it [10:47:11]req_shift_opened [10:47:11]FM_GetShiftState [10:47:11]SAM_PROTO_GetShiftState [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 13 01 00 [10:47:11]Write to MH i2c: E2 08 00 17 40 80 13 01 00 00 00 00 00 D4 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 0E 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 0E 00 17 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8E [10:47:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:47:11]wFMCommunicate OK [10:47:11]SAM_PROTO_GetShiftState done [10:47:11]FM_GetShiftState done [10:47:11]req_shift_opened done [10:47:11]requested_item shift.open_date is exist - process it [10:47:11]req_shift_open_date [10:47:11]req_shift_open_date done [10:47:11]produce_requested_data done [10:47:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31119,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:47:11]process_action_free close_receipt [10:47:11]json_value_free [10:47:11]json_value_free done [10:47:11]process_json_proto returns [10:47:11]Send response to host [10:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31119,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:47:11]free response buf [10:47:11]execute_script done [10:47:11]execute_script returns [10:47:11]free content buf [10:47:11]Sock 7.Close socket [10:47:11]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:21]accept exits with 9 [10:51:21]New connection [10:51:21]New thread 3066899812 created [10:51:21]Thread 3067043172 joined [10:51:21]Waiting for new connection... [10:51:21] Sock 9.Parse request [10:51:21]Sock 9.Check first char [10:51:21]Sock 9.First char is OK [10:51:21]request: POST /json_proto HTTP/1.0 [10:51:21]Method: POST [10:51:21]URL: /json_proto [10:51:21]Method is POST - this is cgi request [10:51:21]url: /json_proto [10:51:21]query_string will be loaded in cgi processing [10:51:21]execute_cgi json_proto POST (null) [10:51:21]execute_cgi path=json_proto method=POST [10:51:21]POST find Content-Length [10:51:21]Host: 172.17.51.3:8080 [10:51:21]Content-Length: 682 [10:51:21]Content-Type: application/json [10:51:21] [10:51:21]POST finish read [10:51:21]Found Content-Length = 682 [10:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:21]execute_script... [10:51:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:21]POST & json_proto [10:51:21]process_json_proto [10:51:21]json parsed OK: [10:51:21]protocol is kg_v1.0 [10:51:21]action value=close_receipt [10:51:21]process_action close_receipt [10:51:21]cmd_close_receipt [10:51:21]MH_GetDate [10:51:21]Write to MH i2c: F0 00 00 18 40 47 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 09 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 09 00 18 40 00 2F D5 18 67 04 C1 95 66 93 [10:51:21]GetLastDocTimeStamp 1729680433 [10:51:21]current date 1729680687 [10:51:21]FM_GetShiftState [10:51:21]SAM_PROTO_GetShiftState [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 13 01 00 [10:51:21]Write to MH i2c: E2 08 00 19 40 80 13 01 00 00 00 00 00 D6 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 19 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 90 [10:51:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:51:21]wFMCommunicate OK [10:51:21]SAM_PROTO_GetShiftState done [10:51:21]FM_GetShiftState done [10:51:21]opened in 1729643755 [10:51:21]opened+sec_in_day 1729730155 [10:51:21]quantity*price = 120018 [10:51:21]sum+1 = 120020 [10:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 64 23.10.2024 10:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31120 ФПД: 69087641510837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31120&fm=69087641510837&tin=02508201610067®Number=0000000000186857&sum=120000 [10:51:22]StoreToDocumentArchive [10:51:22]shift 117 fd 31120 [10:51:22]save to /storage/0117/doc_00031120 [10:51:22]save last doc name /storage/0117/doc_00031120 to /storage/kkm_last_doc_name [10:51:22]save OK [10:51:22]Clear old archive folders... [10:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:22]tlvbuf is 00D2B640 [10:51:22]SAM_PROTO_ClearQueue [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 09 00 00 [10:51:22]Write to MH i2c: E2 08 00 26 40 80 09 00 00 00 00 00 00 D8 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 26 40 00 90 00 DA [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]SAM_PROTO_ClearQueue done [10:51:22]KKMCreateOFDPacket [10:51:22]OFDProtocolAddRootSTLVToBuf [10:51:22]FM_MakeSignedData [10:51:22]FM_MakeSignedData [10:51:22]SAM_PROTO_SignData [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 0D 01 02 [10:51:22]Write to MH i2c: E2 08 00 27 40 80 0D 01 02 00 00 00 00 E0 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]wFMCommunicate request_size=255 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2F D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 79 00 00 35 04 06 00 3E [10:51:22]Write to MH i2c: E2 02 01 28 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2F D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 79 00 00 35 04 06 00 3E 00 00 F7 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 03 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [10:51:23]RAPDU: 90 00 [10:51:23]wFMCommunicate OK [10:51:23]wFMCommunicate request_size=10 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 0D 02 02 05 D5 B8 54 A3 B5 [10:51:23]Write to MH i2c: E2 0D 00 29 40 80 0D 02 02 05 00 D5 B8 54 A3 B5 00 00 26 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 03 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 03 00 29 40 00 90 00 DD [10:51:23]RAPDU: 90 00 [10:51:23]wFMCommunicate OK [10:51:23]wFMCommunicate request_size=4 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 0D 03 02 [10:51:23]Write to MH i2c: E2 08 00 2A 40 80 0D 03 02 00 00 00 00 E5 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0B 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0B 00 2A 40 00 BB F2 5F E4 9B 86 4D 9F 90 00 E3 [10:51:23]RAPDU: BB F2 5F E4 9B 86 4D 9F 90 00 [10:51:23]wFMCommunicate OK [10:51:23]SAM_PROTO_SignData done [10:51:23]FM_MakeSignedData done [10:51:23]CreateOFDProtocolMessage [10:51:23]wFMCommunicate request_size=4 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 11 00 00 [10:51:23]Write to MH i2c: E2 08 00 2B 40 80 11 00 00 00 00 00 00 E5 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 17 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 17 00 2B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [10:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:51:23]wFMCommunicate OK [10:51:23]CreateOFDProtocolMessage done [10:51:23]OFDSenderStorePacket 31120 [10:51:23]StoreOFDPacket docnum=31120 [10:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 BC 07 01 86 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2F D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 79 00 00 35 04 06 00 3E D5 B8 54 A3 B5 BB F2 5F E4 9B 86 4D 9F [10:51:23]CheckFolder [10:51:23]dirname=/storage/ofd_packets [10:51:23]CheckFolder done [10:51:23]ProducePacketName [10:51:23]name=ofd_packets/00031120 [10:51:23]NVStorageSaveData ofd_packets/00031120 [10:51:23]File name is /storage/ofd_packets/00031120 [10:51:23]Write 301 bytes [10:51:23]NVStorageSaveData done [10:51:23]OFDSenderStorePacket done [10:51:23]KKMCreateOFDPacket done [10:51:23]NVStorageSaveData kkm_last_timestamp [10:51:23]File name is /storage/kkm_last_timestamp [10:51:23]Write 4 bytes [10:51:23]NVStorageSaveData done [10:51:23]ExternCall_PrintAddStr [10:51:23]wPrintStart [10:51:23]Write to MH i2c: 01 00 00 2C 40 6C [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 07 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 07 00 2C 40 00 00 00 00 00 FF 0F 81 [10:51:23]RasterBufferAndPrint [10:51:23]line Счет N : (1)343560 [10:51:23]line ИНН: 02508201610067 [10:51:23]line Контрольно-Кассовый Чек [10:51:23]line ПРОДАЖА [10:51:23]line ТРК (МРК, ГНК) : 53 [10:51:23]line Товар: 2710124130 [10:51:23]line Аи-92-К-2 [10:51:23]line 17.940 * 66.90 [10:51:23]line = 1200.19 [10:51:23]line НДС 12% НСП 1% [10:51:23]line > о реализуемом товаре [10:51:23]line ОКРУГЛЕНИЕ: -0.19 [10:51:23]line ИТОГО: 1200.00 [10:51:23]line Внесено: 1200.00 [10:51:23]line СДАЧА: 0.00 [10:51:23]line НСП 1% : 10.62 [10:51:23]line НДС 12% : 127.45 [10:51:23]line Наличными: 1200.00 [10:51:23]line Безнал.: 0.00 [10:51:23]line Место: АЗС № 78 "Партнер Нефть" [10:51:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:51:23]line СНО: Общий режим [10:51:23]line Чек 64 23.10.2024 10:51 [10:51:23]line Смена: 117 ФФД: 1.0 [10:51:23]line ЗНМ: 0300000137 [10:51:23]line РНМ: 0000000000186857 [10:51:23]line Версия ККМ: v1.0 [10:51:23]line ФМ: 0000000002094219 [10:51:23]line ФД: 31120 [10:51:23]line ФПД: 69087641510837 [10:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31120&fm=69087641510837&tin=02508201610067®Number=0000000000186857&sum=120000 [10:51:23]OFD Sender: Processing packet 31120 [packets to send 11, broken 10] [10:51:23]ProducePacketName [10:51:23]name=ofd_packets/00031120 [10:51:23]OFD Sender: To server: pG, [10:51:23]CommunicateWithHost lk.salyk.kg:30040 [10:51:23]ConnectInit lk.salyk.kg [10:51:23]written 0, free lines is 4095 [10:51:23]Connected sock=10 [10:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 BC 07 01 86 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2F D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 79 00 00 35 04 06 00 3E D5 B8 54 A3 B5 BB F2 5F E4 9B 86 4D 9F [10:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 52 D3 47 00 B0 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 79 00 00 F4 03 04 00 AA 7F 18 67 B6 04 01 00 00 12 4F 06 88 5A 92 DF E1 [10:51:24]CommunicateWithHost err = 0 [10:51:24]CheckOFDResponse [10:51:24]1017 (14) - 77093643461234 [10:51:24]1041 (16) - 0000000002094219 [10:51:24]1040 (4) - 31120 [10:51:24]1012 (4) - 23.10.2024 04:46 [10:51:24]1206 (1) - 0 [10:51:24]OFD Sender: Remove packet 31120 [10:51:24]ProducePacketName [10:51:24]name=ofd_packets/00031120 [10:51:24]NVStorageDeleteData [10:51:24]Write to MH i2c: 01 00 00 57 40 97 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: 01 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: 01 07 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: 01 07 00 57 40 00 00 00 00 00 EF 0C 99 [10:51:24]RasterBufferAndPrint [10:51:24]line [10:51:24]line [10:51:24]line [10:51:24]line [10:51:24]line [10:51:24]written 0, free lines is 3320 [10:51:24]MH_Cut [10:51:24]Write to MH i2c: D1 01 00 5E 40 01 70 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: D1 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: D1 01 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: D1 01 00 5E 40 00 6F [10:51:24]Write to MH i2c: 01 00 00 5F 40 9F [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]OFD Sender: No OFD packet to send [10:51:24]*** Cut start [10:51:24]*** Partial cut [10:51:24]*** CUTSNS_PIN = 1 [10:51:24]*** CUTSNS_PIN = 0 [10:51:25]*** Brake cut motor [10:51:25]Read from MH i2c: 01 [10:51:25]MH_I2C_Read... [10:51:25]*** Stop cut motor [10:51:25]*** Cut end [10:51:25]Read from MH i2c: 01 07 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 5F 40 00 00 00 00 00 FF 0F B4 [10:51:25]process_action close_receipt done [10:51:25]requested_data is exist [10:51:25]produce_requested_data [10:51:25]requested_item fm.sn is exist - process it [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 11 00 00 [10:51:25]Write to MH i2c: E2 08 00 60 40 80 11 00 00 00 00 00 00 1A [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 60 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [10:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:51:25]wFMCommunicate OK [10:51:25]requested_item fd.num is exist - process it [10:51:25]SAM_PROTO_GetFieldsCounters [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 00 00 [10:51:25]Write to MH i2c: E2 08 00 61 40 80 13 00 00 00 00 00 00 1D [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 62 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 62 00 61 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [10:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetFieldsCounters done [10:51:25]requested_item shift.num is exist - process it [10:51:25]requested_item shift.opened is exist - process it [10:51:25]req_shift_opened [10:51:25]FM_GetShiftState [10:51:25]SAM_PROTO_GetShiftState [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 01 00 [10:51:25]Write to MH i2c: E2 08 00 62 40 80 13 01 00 00 00 00 00 1F [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 62 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D9 [10:51:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetShiftState done [10:51:25]FM_GetShiftState done [10:51:25]req_shift_opened done [10:51:25]requested_item shift.open_date is exist - process it [10:51:25]req_shift_open_date [10:51:25]req_shift_open_date done [10:51:25]produce_requested_data done [10:51:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31120,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:51:25]process_action_free close_receipt [10:51:25]json_value_free [10:51:25]json_value_free done [10:51:25]process_json_proto returns [10:51:25]Send response to host [10:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31120,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:51:25]free response buf [10:51:25]execute_script done [10:51:25]execute_script returns [10:51:25]free content buf [10:51:25]Sock 9.Close socket [10:51:25]Sock 9.Thread stoped [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:17]accept exits with 7 [10:53:17]New connection [10:53:17]New thread 3067043172 created [10:53:17]Thread 3066899812 joined [10:53:17]Waiting for new connection... [10:53:17] Sock 7.Parse request [10:53:17]Sock 7.Check first char [10:53:17]Sock 7.First char is OK [10:53:17]request: POST /json_proto HTTP/1.0 [10:53:17]Method: POST [10:53:17]URL: /json_proto [10:53:17]Method is POST - this is cgi request [10:53:17]url: /json_proto [10:53:17]query_string will be loaded in cgi processing [10:53:17]execute_cgi json_proto POST (null) [10:53:17]execute_cgi path=json_proto method=POST [10:53:17]POST find Content-Length [10:53:17]Host: 172.17.51.3:8080 [10:53:17]Content-Length: 754 [10:53:17]Content-Type: application/json [10:53:17] [10:53:17]POST finish read [10:53:17]Found Content-Length = 754 [10:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074753", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:17]execute_script... [10:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074753", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:17]POST & json_proto [10:53:17]process_json_proto [10:53:17]json parsed OK: [10:53:17]protocol is kg_v1.0 [10:53:17]action value=close_receipt [10:53:17]process_action close_receipt [10:53:17]cmd_close_receipt [10:53:17]MH_GetDate [10:53:17]Write to MH i2c: F0 00 00 63 40 92 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 09 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 09 00 63 40 00 A3 D5 18 67 04 C1 95 66 52 [10:53:17]GetLastDocTimeStamp 1729680687 [10:53:17]current date 1729680803 [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 64 40 80 13 01 00 00 00 00 00 21 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 64 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DB [10:53:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]opened in 1729643755 [10:53:17]opened+sec_in_day 1729730155 [10:53:17]quantity*price = 0 [10:53:17]sum+1 = 1 [10:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 65 23.10.2024 10:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30074753 ФМ: 0000000002094219 ФД: 31121 ФПД: 272078442632592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105323&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31121&fm=272078442632592&tin=02508201610067®Number=0000000000186857&sum=0 [10:53:18]StoreToDocumentArchive [10:53:18]shift 117 fd 31121 [10:53:18]save to /storage/0117/doc_00031121 [10:53:18]save last doc name /storage/0117/doc_00031121 to /storage/kkm_last_doc_name [10:53:18]save OK [10:53:18]Clear old archive folders... [10:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:18]tlvbuf is 00CD4520 [10:53:18]SAM_PROTO_ClearQueue [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 09 00 00 [10:53:18]Write to MH i2c: E2 08 00 71 40 80 09 00 00 00 00 00 00 23 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [10:53:18]RAPDU: 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_ClearQueue done [10:53:18]KKMCreateOFDPacket [10:53:18]OFDProtocolAddRootSTLVToBuf [10:53:18]FM_MakeSignedData [10:53:18]FM_MakeSignedData [10:53:18]SAM_PROTO_SignData [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 0D 01 02 [10:53:18]Write to MH i2c: E2 08 00 72 40 80 0D 01 02 00 00 00 00 2B [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=255 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 79 00 00 35 04 06 00 F7 [10:53:19]Write to MH i2c: E2 02 01 73 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 79 00 00 35 04 06 00 F7 00 00 8A [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=10 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 02 02 05 74 32 EC 95 90 [10:53:19]Write to MH i2c: E2 0D 00 74 40 80 0D 02 02 05 00 74 32 EC 95 90 00 00 EF [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 74 40 00 90 00 28 [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 03 02 [10:53:19]Write to MH i2c: E2 08 00 75 40 80 0D 03 02 00 00 00 00 30 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0B 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0B 00 75 40 00 83 98 18 AF D9 85 78 02 90 00 EB [10:53:19]RAPDU: 83 98 18 AF D9 85 78 02 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_SignData done [10:53:19]FM_MakeSignedData done [10:53:19]CreateOFDProtocolMessage [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 11 00 00 [10:53:19]Write to MH i2c: E2 08 00 76 40 80 11 00 00 00 00 00 00 30 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 76 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [10:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:53:19]wFMCommunicate OK [10:53:19]CreateOFDProtocolMessage done [10:53:19]OFDSenderStorePacket 31121 [10:53:19]StoreOFDPacket docnum=31121 [10:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 FB 07 01 43 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 79 00 00 35 04 06 00 F7 74 32 EC 95 90 83 98 18 AF D9 85 78 02 [10:53:19]CheckFolder [10:53:19]dirname=/storage/ofd_packets [10:53:19]CheckFolder done [10:53:19]ProducePacketName [10:53:19]name=ofd_packets/00031121 [10:53:19]NVStorageSaveData ofd_packets/00031121 [10:53:19]File name is /storage/ofd_packets/00031121 [10:53:19]Write 301 bytes [10:53:19]NVStorageSaveData done [10:53:19]OFDSenderStorePacket done [10:53:19]KKMCreateOFDPacket done [10:53:19]NVStorageSaveData kkm_last_timestamp [10:53:19]File name is /storage/kkm_last_timestamp [10:53:19]Write 4 bytes [10:53:19]NVStorageSaveData done [10:53:19]ExternCall_PrintAddStr [10:53:19]wPrintStart [10:53:19]Write to MH i2c: 01 00 00 77 40 B7 [10:53:19]OFD Sender: Processing packet 31121 [packets to send 11, broken 10] [10:53:19]ProducePacketName [10:53:19]name=ofd_packets/00031121 [10:53:19]OFD Sender: To server: pG, [10:53:19]CommunicateWithHost lk.salyk.kg:30040 [10:53:19]ConnectInit lk.salyk.kg [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 07 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 07 00 77 40 00 00 00 00 00 FF 0F CC [10:53:19]RasterBufferAndPrint [10:53:19]line Счет N : (1)343561 [10:53:19]line ИНН: 02508201610067 [10:53:19]line Контрольно-Кассовый Чек [10:53:19]line ПРОДАЖА [10:53:19]line ТРК (МРК, ГНК) : 43 [10:53:19]line Товар: 2710124130 [10:53:19]line Аи-92-К-2 [10:53:19]line 30.000 * 0.00 [10:53:19]line = 0.00 [10:53:19]line НДС 12% НСП 1% [10:53:19]line > о реализуемом товаре [10:53:19]line ИТОГО: 0.00 [10:53:19]line НСП 1% : 0.00 [10:53:19]line НДС 12% : 0.00 [10:53:19]line Наличными: 0.00 [10:53:19]line Безнал.: 0.00 [10:53:19]line Место: АЗС № 78 "Партнер Нефть" [10:53:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:53:19]line СНО: Общий режим [10:53:19]line Чек 65 23.10.2024 10:53 [10:53:19]line Смена: 117 ФФД: 1.0 [10:53:19]line ЗНМ: 0300000137 [10:53:19]line РНМ: 0000000000186857 [10:53:19]line Версия ККМ: v1.0 [10:53:19]line Талоны: ТК ГПНА Online [10:53:19]line 30074753 [10:53:19]line ФМ: 0000000002094219 [10:53:19]line ФД: 31121 [10:53:19]line ФПД: 272078442632592 [10:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105323&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31121&fm=272078442632592&tin=02508201610067®Number=0000000000186857&sum=0 [10:53:19]Connected sock=10 [10:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 FB 07 01 43 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 79 00 00 35 04 06 00 F7 74 32 EC 95 90 83 98 18 AF D9 85 78 02 [10:53:19]written 0, free lines is 4095 [10:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 21 B8 47 00 26 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 79 00 00 F4 03 04 00 1E 80 18 67 B6 04 01 00 00 39 02 87 84 D4 51 1A B6 [10:53:20]CommunicateWithHost err = 0 [10:53:20]CheckOFDResponse [10:53:20]1017 (14) - 77093643461234 [10:53:20]1041 (16) - 0000000002094219 [10:53:20]1040 (4) - 31121 [10:53:20]1012 (4) - 23.10.2024 04:48 [10:53:20]1206 (1) - 0 [10:53:20]OFD Sender: Remove packet 31121 [10:53:20]ProducePacketName [10:53:20]name=ofd_packets/00031121 [10:53:20]NVStorageDeleteData [10:53:20]Write to MH i2c: 01 00 00 A1 40 E1 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 A1 40 00 00 00 00 00 F2 0C E6 [10:53:20]RasterBufferAndPrint [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]written 0, free lines is 3323 [10:53:20]MH_Cut [10:53:20]Write to MH i2c: D1 01 00 A8 40 01 BA [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 01 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 01 00 A8 40 00 B9 [10:53:20]Write to MH i2c: 01 00 00 A9 40 E9 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]OFD Sender: No OFD packet to send [10:53:20]*** Cut start [10:53:20]*** Partial cut [10:53:20]*** CUTSNS_PIN = 1 [10:53:20]*** CUTSNS_PIN = 0 [10:53:21]*** Brake cut motor [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]*** Stop cut motor [10:53:21]*** Cut end [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 A9 40 00 00 00 00 00 FF 0F FE [10:53:21]process_action close_receipt done [10:53:21]requested_data is exist [10:53:21]produce_requested_data [10:53:21]requested_item fm.sn is exist - process it [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 11 00 00 [10:53:21]Write to MH i2c: E2 08 00 AA 40 80 11 00 00 00 00 00 00 64 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 AA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [10:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:53:21]wFMCommunicate OK [10:53:21]requested_item fd.num is exist - process it [10:53:21]SAM_PROTO_GetFieldsCounters [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 13 00 00 [10:53:21]Write to MH i2c: E2 08 00 AB 40 80 13 00 00 00 00 00 00 67 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 62 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 62 00 AB 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_GetFieldsCounters done [10:53:21]requested_item shift.num is exist - process it [10:53:21]requested_item shift.opened is exist - process it [10:53:21]req_shift_opened [10:53:21]FM_GetShiftState [10:53:21]SAM_PROTO_GetShiftState [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 13 01 00 [10:53:21]Write to MH i2c: E2 08 00 AC 40 80 13 01 00 00 00 00 00 69 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 AC 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 23 [10:53:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_GetShiftState done [10:53:21]FM_GetShiftState done [10:53:21]req_shift_opened done [10:53:21]requested_item shift.open_date is exist - process it [10:53:21]req_shift_open_date [10:53:21]req_shift_open_date done [10:53:21]produce_requested_data done [10:53:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31121,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [10:53:21]process_action_free close_receipt [10:53:21]json_value_free [10:53:21]json_value_free done [10:53:21]process_json_proto returns [10:53:21]Send response to host [10:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31121,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [10:53:21]free response buf [10:53:21]execute_script done [10:53:21]execute_script returns [10:53:21]free content buf [10:53:21]Sock 7.Close socket [10:53:21]Sock 7.Thread stoped [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:26]accept exits with 9 [11:03:26]New connection [11:03:26]New thread 3066899812 created [11:03:26]Thread 3067043172 joined [11:03:26]Waiting for new connection... [11:03:26] Sock 9.Parse request [11:03:26]Sock 9.Check first char [11:03:26]Sock 9.First char is OK [11:03:26]request: POST /json_proto HTTP/1.0 [11:03:26]Method: POST [11:03:26]URL: /json_proto [11:03:26]Method is POST - this is cgi request [11:03:26]url: /json_proto [11:03:26]query_string will be loaded in cgi processing [11:03:26]execute_cgi json_proto POST (null) [11:03:26]execute_cgi path=json_proto method=POST [11:03:26]POST find Content-Length [11:03:26]Host: 172.17.51.3:8080 [11:03:26]Content-Length: 754 [11:03:26]Content-Type: application/json [11:03:26] [11:03:26]POST finish read [11:03:26]Found Content-Length = 754 [11:03:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:26]execute_script... [11:03:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:26]POST & json_proto [11:03:26]process_json_proto [11:03:26]json parsed OK: [11:03:26]protocol is kg_v1.0 [11:03:26]action value=close_receipt [11:03:26]process_action close_receipt [11:03:26]cmd_close_receipt [11:03:26]MH_GetDate [11:03:26]Write to MH i2c: F0 00 00 AD 40 DC [11:03:26]Write i2c OK [11:03:26]MH_I2C_Read... [11:03:26]Read from MH i2c: F0 [11:03:26]MH_I2C_Read... [11:03:26]Read from MH i2c: F0 09 00 [11:03:26]MH_I2C_Read... [11:03:26]Read from MH i2c: F0 09 00 AD 40 00 03 D8 18 67 04 C1 95 66 FF [11:03:26]GetLastDocTimeStamp 1729680803 [11:03:26]current date 1729681411 [11:03:26]FM_GetShiftState [11:03:26]SAM_PROTO_GetShiftState [11:03:26]wFMCommunicate request_size=4 [11:03:26]MH_SAM_APDU [11:03:26]CAPDU: 80 13 01 00 [11:03:26]Write to MH i2c: E2 08 00 AE 40 80 13 01 00 00 00 00 00 6B [11:03:26]Write i2c OK [11:03:26]MH_I2C_Read... [11:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:26]Read from MH i2c: E2 [11:03:26]MH_I2C_Read... [11:03:26]Read from MH i2c: E2 0E 00 [11:03:26]MH_I2C_Read... [11:03:26]Read from MH i2c: E2 0E 00 AE 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 25 [11:03:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:03:26]wFMCommunicate OK [11:03:26]SAM_PROTO_GetShiftState done [11:03:26]FM_GetShiftState done [11:03:26]opened in 1729643755 [11:03:26]opened+sec_in_day 1729730155 [11:03:26]quantity*price = 0 [11:03:26]sum+1 = 1 [11:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 66 23.10.2024 11:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30035879 ФМ: 0000000002094219 ФД: 31122 ФПД: 205936201729442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31122&fm=205936201729442&tin=02508201610067®Number=0000000000186857&sum=0 [11:03:27]StoreToDocumentArchive [11:03:27]shift 117 fd 31122 [11:03:27]save to /storage/0117/doc_00031122 [11:03:27]save last doc name /storage/0117/doc_00031122 to /storage/kkm_last_doc_name [11:03:27]save OK [11:03:27]Clear old archive folders... [11:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:27]tlvbuf is 00D33350 [11:03:27]SAM_PROTO_ClearQueue [11:03:27]wFMCommunicate request_size=4 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 09 00 00 [11:03:27]Write to MH i2c: E2 08 00 BB 40 80 09 00 00 00 00 00 00 6D [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 BB 40 00 90 00 6F [11:03:27]RAPDU: 90 00 [11:03:27]wFMCommunicate OK [11:03:27]SAM_PROTO_ClearQueue done [11:03:27]KKMCreateOFDPacket [11:03:27]OFDProtocolAddRootSTLVToBuf [11:03:27]FM_MakeSignedData [11:03:27]FM_MakeSignedData [11:03:27]SAM_PROTO_SignData [11:03:27]wFMCommunicate request_size=4 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 0D 01 02 [11:03:27]Write to MH i2c: E2 08 00 BC 40 80 0D 01 02 00 00 00 00 75 [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 BC 40 00 90 00 70 [11:03:27]RAPDU: 90 00 [11:03:27]wFMCommunicate OK [11:03:27]wFMCommunicate request_size=255 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 79 00 00 35 04 06 00 BB [11:03:27]Write to MH i2c: E2 02 01 BD 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 79 00 00 35 04 06 00 BB 00 00 66 [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 BD 40 00 90 00 71 [11:03:27]RAPDU: 90 00 [11:03:27]wFMCommunicate OK [11:03:27]wFMCommunicate request_size=10 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 0D 02 02 05 4C 42 26 85 A2 [11:03:27]Write to MH i2c: E2 0D 00 BE 40 80 0D 02 02 05 00 4C 42 26 85 A2 00 00 5D [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 03 00 BE 40 00 90 00 72 [11:03:27]RAPDU: 90 00 [11:03:27]wFMCommunicate OK [11:03:27]wFMCommunicate request_size=4 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 0D 03 02 [11:03:27]Write to MH i2c: E2 08 00 BF 40 80 0D 03 02 00 00 00 00 7A [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 0B 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 0B 00 BF 40 00 C1 61 24 26 31 BA 5E 2F 90 00 5F [11:03:27]RAPDU: C1 61 24 26 31 BA 5E 2F 90 00 [11:03:27]wFMCommunicate OK [11:03:27]SAM_PROTO_SignData done [11:03:27]FM_MakeSignedData done [11:03:27]CreateOFDProtocolMessage [11:03:27]wFMCommunicate request_size=4 [11:03:27]MH_SAM_APDU [11:03:27]CAPDU: 80 11 00 00 [11:03:27]Write to MH i2c: E2 08 00 C0 40 80 11 00 00 00 00 00 00 7A [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:27]Read from MH i2c: E2 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 17 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: E2 17 00 C0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [11:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:03:27]wFMCommunicate OK [11:03:27]CreateOFDProtocolMessage done [11:03:27]OFDSenderStorePacket 31122 [11:03:27]StoreOFDPacket docnum=31122 [11:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 74 07 01 E2 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 79 00 00 35 04 06 00 BB 4C 42 26 85 A2 C1 61 24 26 31 BA 5E 2F [11:03:27]CheckFolder [11:03:27]dirname=/storage/ofd_packets [11:03:27]CheckFolder done [11:03:27]ProducePacketName [11:03:27]name=ofd_packets/00031122 [11:03:27]NVStorageSaveData ofd_packets/00031122 [11:03:27]File name is /storage/ofd_packets/00031122 [11:03:27]Write 301 bytes [11:03:27]NVStorageSaveData done [11:03:27]OFDSenderStorePacket done [11:03:27]KKMCreateOFDPacket done [11:03:27]NVStorageSaveData kkm_last_timestamp [11:03:27]File name is /storage/kkm_last_timestamp [11:03:27]Write 4 bytes [11:03:27]NVStorageSaveData done [11:03:27]ExternCall_PrintAddStr [11:03:27]wPrintStart [11:03:27]Write to MH i2c: 01 00 00 C1 40 01 [11:03:27]Write i2c OK [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: 01 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: 01 07 00 [11:03:27]MH_I2C_Read... [11:03:27]Read from MH i2c: 01 07 00 C1 40 00 00 00 00 00 FF 0F 16 [11:03:27]RasterBufferAndPrint [11:03:27]line Счет N : (1)343562 [11:03:27]line ИНН: 02508201610067 [11:03:27]line Контрольно-Кассовый Чек [11:03:27]line ПРОДАЖА [11:03:27]line ТРК (МРК, ГНК) : 32 [11:03:27]line Товар: 2710124500 [11:03:27]line Аи-95-К-3 [11:03:27]line 25.000 * 0.00 [11:03:27]line = 0.00 [11:03:27]line НДС 12% НСП 1% [11:03:27]line > о реализуемом товаре [11:03:27]line ИТОГО: 0.00 [11:03:27]line НСП 1% : 0.00 [11:03:27]line НДС 12% : 0.00 [11:03:27]line Наличными: 0.00 [11:03:27]line Безнал.: 0.00 [11:03:27]line Место: АЗС № 78 "Партнер Нефть" [11:03:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:03:27]line СНО: Общий режим [11:03:27]line Чек 66 23.10.2024 11:03 [11:03:27]line Смена: 117 ФФД: 1.0 [11:03:27]line ЗНМ: 0300000137 [11:03:27]line РНМ: 0000000000186857 [11:03:27]line Версия ККМ: v1.0 [11:03:27]line Талоны: ТК ГПНА Online [11:03:27]line 30035879 [11:03:27]line ФМ: 0000000002094219 [11:03:27]line ФД: 31122 [11:03:27]line ФПД: 205936201729442 [11:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31122&fm=205936201729442&tin=02508201610067®Number=0000000000186857&sum=0 [11:03:28]OFD Sender: Processing packet 31122 [packets to send 11, broken 10] [11:03:28]ProducePacketName [11:03:28]name=ofd_packets/00031122 [11:03:28]OFD Sender: To server: pG, [11:03:28]CommunicateWithHost lk.salyk.kg:30040 [11:03:28]ConnectInit lk.salyk.kg [11:03:28]written 0, free lines is 4095 [11:03:28]Connected sock=10 [11:03:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 74 07 01 E2 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 79 00 00 35 04 06 00 BB 4C 42 26 85 A2 C1 61 24 26 31 BA 5E 2F [11:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AC 95 47 00 FD 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 32 30 39 34 32 31 39 10 04 04 00 92 79 00 00 F4 03 04 00 7E 82 18 67 B6 04 01 00 00 83 0D 08 B9 5F A4 2F 0F [11:03:28]CommunicateWithHost err = 0 [11:03:28]CheckOFDResponse [11:03:28]1017 (14) - 77093643461234 [11:03:28]1041 (16) - 0000000002094219 [11:03:28]1040 (4) - 31122 [11:03:28]1012 (4) - 23.10.2024 04:58 [11:03:28]1206 (1) - 0 [11:03:28]OFD Sender: Remove packet 31122 [11:03:28]ProducePacketName [11:03:28]name=ofd_packets/00031122 [11:03:28]NVStorageDeleteData [11:03:28]Write to MH i2c: 01 00 00 EB 40 2B [11:03:28]Write i2c OK [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: 01 [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: 01 07 00 [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: 01 07 00 EB 40 00 00 00 00 00 1A 0D 59 [11:03:28]RasterBufferAndPrint [11:03:28]line [11:03:28]line [11:03:28]line [11:03:28]line [11:03:28]line [11:03:28]written 0, free lines is 3364 [11:03:28]MH_Cut [11:03:28]Write to MH i2c: D1 01 00 F2 40 01 04 [11:03:28]Write i2c OK [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: D1 [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: D1 01 00 [11:03:28]MH_I2C_Read... [11:03:28]Read from MH i2c: D1 01 00 F2 40 00 03 [11:03:28]Write to MH i2c: 01 00 00 F3 40 33 [11:03:28]Write i2c OK [11:03:28]MH_I2C_Read... [11:03:28]OFD Sender: No OFD packet to send [11:03:29]*** Cut start [11:03:29]*** Partial cut [11:03:29]*** CUTSNS_PIN = 1 [11:03:29]*** CUTSNS_PIN = 0 [11:03:29]*** Brake cut motor [11:03:29]Read from MH i2c: 01 [11:03:29]MH_I2C_Read... [11:03:29]*** Stop cut motor [11:03:29]*** Cut end [11:03:29]Read from MH i2c: 01 07 00 [11:03:29]MH_I2C_Read... [11:03:29]Read from MH i2c: 01 07 00 F3 40 00 00 00 00 00 FF 0F 48 [11:03:29]process_action close_receipt done [11:03:29]requested_data is exist [11:03:29]produce_requested_data [11:03:29]requested_item fm.sn is exist - process it [11:03:29]wFMCommunicate request_size=4 [11:03:29]MH_SAM_APDU [11:03:29]CAPDU: 80 11 00 00 [11:03:29]Write to MH i2c: E2 08 00 F4 40 80 11 00 00 00 00 00 00 AE [11:03:29]Write i2c OK [11:03:29]MH_I2C_Read... [11:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:29]Read from MH i2c: E2 [11:03:29]MH_I2C_Read... [11:03:29]Read from MH i2c: E2 17 00 [11:03:29]MH_I2C_Read... [11:03:29]Read from MH i2c: E2 17 00 F4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [11:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:03:29]wFMCommunicate OK [11:03:29]requested_item fd.num is exist - process it [11:03:29]SAM_PROTO_GetFieldsCounters [11:03:29]wFMCommunicate request_size=4 [11:03:29]MH_SAM_APDU [11:03:29]CAPDU: 80 13 00 00 [11:03:29]Write to MH i2c: E2 08 00 F5 40 80 13 00 00 00 00 00 00 B1 [11:03:29]Write i2c OK [11:03:29]MH_I2C_Read... [11:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:30]Read from MH i2c: E2 [11:03:30]MH_I2C_Read... [11:03:30]Read from MH i2c: E2 62 00 [11:03:30]MH_I2C_Read... [11:03:30]Read from MH i2c: E2 62 00 F5 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [11:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:30]wFMCommunicate OK [11:03:30]SAM_PROTO_GetFieldsCounters done [11:03:30]requested_item shift.num is exist - process it [11:03:30]requested_item shift.opened is exist - process it [11:03:30]req_shift_opened [11:03:30]FM_GetShiftState [11:03:30]SAM_PROTO_GetShiftState [11:03:30]wFMCommunicate request_size=4 [11:03:30]MH_SAM_APDU [11:03:30]CAPDU: 80 13 01 00 [11:03:30]Write to MH i2c: E2 08 00 F6 40 80 13 01 00 00 00 00 00 B3 [11:03:30]Write i2c OK [11:03:30]MH_I2C_Read... [11:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:30]Read from MH i2c: E2 [11:03:30]MH_I2C_Read... [11:03:30]Read from MH i2c: E2 0E 00 [11:03:30]MH_I2C_Read... [11:03:30]Read from MH i2c: E2 0E 00 F6 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6D [11:03:30]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:03:30]wFMCommunicate OK [11:03:30]SAM_PROTO_GetShiftState done [11:03:30]FM_GetShiftState done [11:03:30]req_shift_opened done [11:03:30]requested_item shift.open_date is exist - process it [11:03:30]req_shift_open_date [11:03:30]req_shift_open_date done [11:03:30]produce_requested_data done [11:03:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31122,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:03:30]process_action_free close_receipt [11:03:30]json_value_free [11:03:30]json_value_free done [11:03:30]process_json_proto returns [11:03:30]Send response to host [11:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31122,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:03:30]free response buf [11:03:30]execute_script done [11:03:30]execute_script returns [11:03:30]free content buf [11:03:30]Sock 9.Close socket [11:03:30]Sock 9.Thread stoped [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:01]accept exits with 7 [11:05:01]New connection [11:05:01]New thread 3067043172 created [11:05:01]Thread 3066899812 joined [11:05:01]Waiting for new connection... [11:05:01] Sock 7.Parse request [11:05:01]Sock 7.Check first char [11:05:01]Sock 7.First char is OK [11:05:01]request: POST /json_proto HTTP/1.0 [11:05:01]Method: POST [11:05:01]URL: /json_proto [11:05:01]Method is POST - this is cgi request [11:05:01]url: /json_proto [11:05:01]query_string will be loaded in cgi processing [11:05:01]execute_cgi json_proto POST (null) [11:05:01]execute_cgi path=json_proto method=POST [11:05:01]POST find Content-Length [11:05:01]Host: 172.17.51.3:8080 [11:05:01]Content-Length: 753 [11:05:01]Content-Type: application/json [11:05:01] [11:05:01]POST finish read [11:05:01]Found Content-Length = 753 [11:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:01]execute_script... [11:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:01]POST & json_proto [11:05:01]process_json_proto [11:05:01]json parsed OK: [11:05:01]protocol is kg_v1.0 [11:05:01]action value=close_receipt [11:05:01]process_action close_receipt [11:05:01]cmd_close_receipt [11:05:01]MH_GetDate [11:05:01]Write to MH i2c: F0 00 00 F7 40 26 [11:05:01]Write i2c OK [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: F0 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: F0 09 00 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: F0 09 00 F7 40 00 63 D8 18 67 04 C1 95 66 A9 [11:05:01]GetLastDocTimeStamp 1729681411 [11:05:01]current date 1729681507 [11:05:01]FM_GetShiftState [11:05:01]SAM_PROTO_GetShiftState [11:05:01]wFMCommunicate request_size=4 [11:05:01]MH_SAM_APDU [11:05:01]CAPDU: 80 13 01 00 [11:05:01]Write to MH i2c: E2 08 00 F8 40 80 13 01 00 00 00 00 00 B5 [11:05:01]Write i2c OK [11:05:01]MH_I2C_Read... [11:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:01]Read from MH i2c: E2 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: E2 0E 00 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: E2 0E 00 F8 40 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6F [11:05:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:05:01]wFMCommunicate OK [11:05:01]SAM_PROTO_GetShiftState done [11:05:01]FM_GetShiftState done [11:05:01]opened in 1729643755 [11:05:01]opened+sec_in_day 1729730155 [11:05:01]quantity*price = 0 [11:05:01]sum+1 = 1 [11:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 67 23.10.2024 11:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30035879 ФМ: 0000000002094219 ФД: 31123 ФПД: 85387022780292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110507&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31123&fm=85387022780292&tin=02508201610067®Number=0000000000186857&sum=0 [11:05:03]StoreToDocumentArchive [11:05:03]shift 117 fd 31123 [11:05:03]save to /storage/0117/doc_00031123 [11:05:03]save last doc name /storage/0117/doc_00031123 to /storage/kkm_last_doc_name [11:05:03]save OK [11:05:03]Clear old archive folders... [11:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:03]tlvbuf is 00E84DA0 [11:05:03]SAM_PROTO_ClearQueue [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 09 00 00 [11:05:03]Write to MH i2c: E2 08 00 05 41 80 09 00 00 00 00 00 00 B8 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 05 41 00 90 00 BA [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]SAM_PROTO_ClearQueue done [11:05:03]KKMCreateOFDPacket [11:05:03]OFDProtocolAddRootSTLVToBuf [11:05:03]FM_MakeSignedData [11:05:03]FM_MakeSignedData [11:05:03]SAM_PROTO_SignData [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 01 02 [11:05:03]Write to MH i2c: E2 08 00 06 41 80 0D 01 02 00 00 00 00 C0 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 06 41 00 90 00 BB [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=255 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 79 00 00 35 04 06 00 4D [11:05:03]Write to MH i2c: E2 02 01 07 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 79 00 00 35 04 06 00 4D 00 00 37 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 07 41 00 90 00 BC [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=10 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 02 02 05 A8 B7 29 47 84 [11:05:03]Write to MH i2c: E2 0D 00 08 41 80 0D 02 02 05 00 A8 B7 29 47 84 00 00 20 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 08 41 00 90 00 BD [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 03 02 [11:05:03]Write to MH i2c: E2 08 00 09 41 80 0D 03 02 00 00 00 00 C5 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 0B 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 0B 00 09 41 00 C8 74 18 1A 20 9A DB 54 90 00 1D [11:05:03]RAPDU: C8 74 18 1A 20 9A DB 54 90 00 [11:05:03]wFMCommunicate OK [11:05:03]SAM_PROTO_SignData done [11:05:03]FM_MakeSignedData done [11:05:03]CreateOFDProtocolMessage [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 11 00 00 [11:05:03]Write to MH i2c: E2 08 00 0A 41 80 11 00 00 00 00 00 00 C5 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 17 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 17 00 0A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [11:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:03]wFMCommunicate OK [11:05:03]CreateOFDProtocolMessage done [11:05:03]OFDSenderStorePacket 31123 [11:05:03]StoreOFDPacket docnum=31123 [11:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA 25 07 01 6D 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 79 00 00 35 04 06 00 4D A8 B7 29 47 84 C8 74 18 1A 20 9A DB 54 [11:05:03]CheckFolder [11:05:03]dirname=/storage/ofd_packets [11:05:03]CheckFolder done [11:05:03]ProducePacketName [11:05:03]name=ofd_packets/00031123 [11:05:03]NVStorageSaveData ofd_packets/00031123 [11:05:03]File name is /storage/ofd_packets/00031123 [11:05:03]Write 301 bytes [11:05:03]NVStorageSaveData done [11:05:03]OFDSenderStorePacket done [11:05:03]KKMCreateOFDPacket done [11:05:03]NVStorageSaveData kkm_last_timestamp [11:05:03]File name is /storage/kkm_last_timestamp [11:05:03]Write 4 bytes [11:05:03]NVStorageSaveData done [11:05:03]ExternCall_PrintAddStr [11:05:03]wPrintStart [11:05:03]Write to MH i2c: 01 00 00 0B 41 4C [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: 01 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: 01 07 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: 01 07 00 0B 41 00 00 00 00 00 FF 0F 61 [11:05:03]RasterBufferAndPrint [11:05:03]line Счет N : (1)343563 [11:05:03]line ИНН: 02508201610067 [11:05:03]line Контрольно-Кассовый Чек [11:05:03]line ПРОДАЖА [11:05:03]line ТРК (МРК, ГНК) : 32 [11:05:03]line Товар: 2710124500 [11:05:03]line Аи-95-К-3 [11:05:03]line 5.000 * 0.00 [11:05:03]line = 0.00 [11:05:03]line НДС 12% НСП 1% [11:05:03]line > о реализуемом товаре [11:05:03]line ИТОГО: 0.00 [11:05:03]line НСП 1% : 0.00 [11:05:03]line НДС 12% : 0.00 [11:05:03]line Наличными: 0.00 [11:05:03]line Безнал.: 0.00 [11:05:03]line Место: АЗС № 78 "Партнер Нефть" [11:05:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:05:03]line СНО: Общий режим [11:05:03]line Чек 67 23.10.2024 11:05 [11:05:03]line Смена: 117 ФФД: 1.0 [11:05:03]line ЗНМ: 0300000137 [11:05:03]line РНМ: 0000000000186857 [11:05:03]line Версия ККМ: v1.0 [11:05:03]line Талоны: ТК ГПНА Online [11:05:03]line 30035879 [11:05:03]line ФМ: 0000000002094219 [11:05:03]line ФД: 31123 [11:05:03]line ФПД: 85387022780292 [11:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110507&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31123&fm=85387022780292&tin=02508201610067®Number=0000000000186857&sum=0 [11:05:03]OFD Sender: Processing packet 31123 [packets to send 11, broken 10] [11:05:03]ProducePacketName [11:05:03]name=ofd_packets/00031123 [11:05:03]OFD Sender: To server: pG, [11:05:03]CommunicateWithHost lk.salyk.kg:30040 [11:05:03]ConnectInit lk.salyk.kg [11:05:03]written 0, free lines is 4095 [11:05:03]Connected sock=10 [11:05:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA 25 07 01 6D 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 79 00 00 35 04 06 00 4D A8 B7 29 47 84 C8 74 18 1A 20 9A DB 54 [11:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C7 B6 47 00 23 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 79 00 00 F4 03 04 00 DE 82 18 67 B6 04 01 00 00 90 63 BF 6B 0C 70 55 54 [11:05:04]CommunicateWithHost err = 0 [11:05:04]CheckOFDResponse [11:05:04]1017 (14) - 77093643461234 [11:05:04]1041 (16) - 0000000002094219 [11:05:04]1040 (4) - 31123 [11:05:04]1012 (4) - 23.10.2024 05:00 [11:05:04]1206 (1) - 0 [11:05:04]OFD Sender: Remove packet 31123 [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00031123 [11:05:04]NVStorageDeleteData [11:05:04]Write to MH i2c: 01 00 00 35 41 76 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 35 41 00 00 00 00 00 08 0D 92 [11:05:04]RasterBufferAndPrint [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]written 0, free lines is 3345 [11:05:04]MH_Cut [11:05:04]Write to MH i2c: D1 01 00 3C 41 01 4F [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 01 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 01 00 3C 41 00 4E [11:05:04]Write to MH i2c: 01 00 00 3D 41 7E [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]OFD Sender: No OFD packet to send [11:05:05]*** Cut start [11:05:05]*** Partial cut [11:05:05]*** CUTSNS_PIN = 1 [11:05:05]*** CUTSNS_PIN = 0 [11:05:05]*** Brake cut motor [11:05:05]Read from MH i2c: 01 [11:05:05]MH_I2C_Read... [11:05:05]*** Stop cut motor [11:05:05]*** Cut end [11:05:05]Read from MH i2c: 01 07 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 07 00 3D 41 00 00 00 00 00 FF 0F 93 [11:05:05]process_action close_receipt done [11:05:05]requested_data is exist [11:05:05]produce_requested_data [11:05:05]requested_item fm.sn is exist - process it [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 11 00 00 [11:05:05]Write to MH i2c: E2 08 00 3E 41 80 11 00 00 00 00 00 00 F9 [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 17 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 17 00 3E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [11:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:05]wFMCommunicate OK [11:05:05]requested_item fd.num is exist - process it [11:05:05]SAM_PROTO_GetFieldsCounters [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 13 00 00 [11:05:05]Write to MH i2c: E2 08 00 3F 41 80 13 00 00 00 00 00 00 FC [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 62 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 62 00 3F 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:05]wFMCommunicate OK [11:05:05]SAM_PROTO_GetFieldsCounters done [11:05:05]requested_item shift.num is exist - process it [11:05:05]requested_item shift.opened is exist - process it [11:05:05]req_shift_opened [11:05:05]FM_GetShiftState [11:05:05]SAM_PROTO_GetShiftState [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 13 01 00 [11:05:05]Write to MH i2c: E2 08 00 40 41 80 13 01 00 00 00 00 00 FE [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 0E 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 0E 00 40 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B8 [11:05:05]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:05:05]wFMCommunicate OK [11:05:05]SAM_PROTO_GetShiftState done [11:05:05]FM_GetShiftState done [11:05:05]req_shift_opened done [11:05:05]requested_item shift.open_date is exist - process it [11:05:05]req_shift_open_date [11:05:05]req_shift_open_date done [11:05:05]produce_requested_data done [11:05:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31123,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:05:05]process_action_free close_receipt [11:05:05]json_value_free [11:05:05]json_value_free done [11:05:05]process_json_proto returns [11:05:05]Send response to host [11:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31123,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:05:05]free response buf [11:05:05]execute_script done [11:05:05]execute_script returns [11:05:05]free content buf [11:05:05]Sock 7.Close socket [11:05:05]Sock 7.Thread stoped [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:36]accept exits with 9 [11:05:36]New connection [11:05:36]New thread 3066899812 created [11:05:36]Thread 3067043172 joined [11:05:36]Waiting for new connection... [11:05:36] Sock 9.Parse request [11:05:36]Sock 9.Check first char [11:05:36]Sock 9.First char is OK [11:05:36]request: POST /json_proto HTTP/1.0 [11:05:36]Method: POST [11:05:36]URL: /json_proto [11:05:36]Method is POST - this is cgi request [11:05:36]url: /json_proto [11:05:36]query_string will be loaded in cgi processing [11:05:36]execute_cgi json_proto POST (null) [11:05:36]execute_cgi path=json_proto method=POST [11:05:36]POST find Content-Length [11:05:36]Host: 172.17.51.3:8080 [11:05:36]Content-Length: 677 [11:05:36]Content-Type: application/json [11:05:36] [11:05:36]POST finish read [11:05:36]Found Content-Length = 677 [11:05:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:36]execute_script... [11:05:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:36]POST & json_proto [11:05:36]process_json_proto [11:05:36]json parsed OK: [11:05:36]protocol is kg_v1.0 [11:05:36]action value=close_receipt [11:05:36]process_action close_receipt [11:05:36]cmd_close_receipt [11:05:36]MH_GetDate [11:05:36]Write to MH i2c: F0 00 00 41 41 71 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: F0 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: F0 09 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: F0 09 00 41 41 00 86 D8 18 67 04 C1 95 66 17 [11:05:36]GetLastDocTimeStamp 1729681507 [11:05:36]current date 1729681542 [11:05:36]FM_GetShiftState [11:05:36]SAM_PROTO_GetShiftState [11:05:36]wFMCommunicate request_size=4 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 13 01 00 [11:05:36]Write to MH i2c: E2 08 00 42 41 80 13 01 00 00 00 00 00 00 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 0E 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 0E 00 42 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BA [11:05:36]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:05:36]wFMCommunicate OK [11:05:36]SAM_PROTO_GetShiftState done [11:05:36]FM_GetShiftState done [11:05:36]opened in 1729643755 [11:05:36]opened+sec_in_day 1729730155 [11:05:36]quantity*price = 20003 [11:05:36]sum+1 = 20004 [11:05:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 68 23.10.2024 11:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31124 ФПД: 8620271326220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110542&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31124&fm=8620271326220&tin=02508201610067®Number=0000000000186857&sum=20000 [11:05:37]StoreToDocumentArchive [11:05:37]shift 117 fd 31124 [11:05:37]save to /storage/0117/doc_00031124 [11:05:37]save last doc name /storage/0117/doc_00031124 to /storage/kkm_last_doc_name [11:05:37]save OK [11:05:37]Clear old archive folders... [11:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:37]tlvbuf is 00E4AC60 [11:05:37]SAM_PROTO_ClearQueue [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 09 00 00 [11:05:37]Write to MH i2c: E2 08 00 4F 41 80 09 00 00 00 00 00 00 02 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 4F 41 00 90 00 04 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_ClearQueue done [11:05:37]KKMCreateOFDPacket [11:05:37]OFDProtocolAddRootSTLVToBuf [11:05:37]FM_MakeSignedData [11:05:37]FM_MakeSignedData [11:05:37]SAM_PROTO_SignData [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 01 02 [11:05:37]Write to MH i2c: E2 08 00 50 41 80 0D 01 02 00 00 00 00 0A [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 50 41 00 90 00 05 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=255 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 86 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 79 00 00 35 04 06 00 07 [11:05:37]Write to MH i2c: E2 02 01 51 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 86 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 79 00 00 35 04 06 00 07 00 00 07 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 03 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 03 00 51 41 00 90 00 06 [11:05:38]RAPDU: 90 00 [11:05:38]wFMCommunicate OK [11:05:38]wFMCommunicate request_size=10 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 0D 02 02 05 D7 10 35 D4 0C [11:05:38]Write to MH i2c: E2 0D 00 52 41 80 0D 02 02 05 00 D7 10 35 D4 0C 00 00 13 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 03 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 03 00 52 41 00 90 00 07 [11:05:38]RAPDU: 90 00 [11:05:38]wFMCommunicate OK [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 0D 03 02 [11:05:38]Write to MH i2c: E2 08 00 53 41 80 0D 03 02 00 00 00 00 0F [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0B 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0B 00 53 41 00 E1 18 BD 14 AF 96 27 A6 90 00 EC [11:05:38]RAPDU: E1 18 BD 14 AF 96 27 A6 90 00 [11:05:38]wFMCommunicate OK [11:05:38]SAM_PROTO_SignData done [11:05:38]FM_MakeSignedData done [11:05:38]CreateOFDProtocolMessage [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 11 00 00 [11:05:38]Write to MH i2c: E2 08 00 54 41 80 11 00 00 00 00 00 00 0F [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 17 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 17 00 54 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [11:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:38]wFMCommunicate OK [11:05:38]CreateOFDProtocolMessage done [11:05:38]OFDSenderStorePacket 31124 [11:05:38]StoreOFDPacket docnum=31124 [11:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 E5 07 01 68 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 86 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 79 00 00 35 04 06 00 07 D7 10 35 D4 0C E1 18 BD 14 AF 96 27 A6 [11:05:38]CheckFolder [11:05:38]dirname=/storage/ofd_packets [11:05:38]CheckFolder done [11:05:38]ProducePacketName [11:05:38]name=ofd_packets/00031124 [11:05:38]NVStorageSaveData ofd_packets/00031124 [11:05:38]File name is /storage/ofd_packets/00031124 [11:05:38]Write 301 bytes [11:05:38]NVStorageSaveData done [11:05:38]OFDSenderStorePacket done [11:05:38]KKMCreateOFDPacket done [11:05:38]NVStorageSaveData kkm_last_timestamp [11:05:38]File name is /storage/kkm_last_timestamp [11:05:38]Write 4 bytes [11:05:38]NVStorageSaveData done [11:05:38]ExternCall_PrintAddStr [11:05:38]wPrintStart [11:05:38]Write to MH i2c: 01 00 00 55 41 96 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 07 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 07 00 55 41 00 00 00 00 00 FF 0F AB [11:05:38]RasterBufferAndPrint [11:05:38]line Счет N : (1)343564 [11:05:38]line ИНН: 02508201610067 [11:05:38]line Контрольно-Кассовый Чек [11:05:38]line ПРОДАЖА [11:05:38]line ТРК (МРК, ГНК) : 63 [11:05:38]line Товар: 2710124130 [11:05:38]line Аи-92-К-2 [11:05:38]line 2.990 * 66.90 [11:05:38]line = 200.03 [11:05:38]line НДС 12% НСП 1% [11:05:38]line > о реализуемом товаре [11:05:38]line ОКРУГЛЕНИЕ: -0.03 [11:05:38]line ИТОГО: 200.00 [11:05:38]line Внесено: 200.00 [11:05:38]line СДАЧА: 0.00 [11:05:38]line НСП 1% : 1.77 [11:05:38]line НДС 12% : 21.24 [11:05:38]line Наличными: 200.00 [11:05:38]line Безнал.: 0.00 [11:05:38]line Место: АЗС № 78 "Партнер Нефть" [11:05:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:05:38]line СНО: Общий режим [11:05:38]line Чек 68 23.10.2024 11:05 [11:05:38]line Смена: 117 ФФД: 1.0 [11:05:38]line ЗНМ: 0300000137 [11:05:38]line РНМ: 0000000000186857 [11:05:38]line Версия ККМ: v1.0 [11:05:38]line ФМ: 0000000002094219 [11:05:38]line ФД: 31124 [11:05:38]line ФПД: 8620271326220 [11:05:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110542&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31124&fm=8620271326220&tin=02508201610067®Number=0000000000186857&sum=20000 [11:05:38]OFD Sender: Processing packet 31124 [packets to send 11, broken 10] [11:05:38]ProducePacketName [11:05:38]name=ofd_packets/00031124 [11:05:38]OFD Sender: To server: pG, [11:05:38]CommunicateWithHost lk.salyk.kg:30040 [11:05:38]ConnectInit lk.salyk.kg [11:05:38]written 0, free lines is 4095 [11:05:38]Connected sock=10 [11:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 E5 07 01 68 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 86 D8 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 79 00 00 35 04 06 00 07 D7 10 35 D4 0C E1 18 BD 14 AF 96 27 A6 [11:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 96 AC 47 00 57 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 79 00 00 F4 03 04 00 01 83 18 67 B6 04 01 00 00 E5 FF 5C B7 80 EA 12 D1 [11:05:39]CommunicateWithHost err = 0 [11:05:39]CheckOFDResponse [11:05:39]1017 (14) - 77093643461234 [11:05:39]1041 (16) - 0000000002094219 [11:05:39]1040 (4) - 31124 [11:05:39]1012 (4) - 23.10.2024 05:00 [11:05:39]1206 (1) - 0 [11:05:39]OFD Sender: Remove packet 31124 [11:05:39]ProducePacketName [11:05:39]name=ofd_packets/00031124 [11:05:39]NVStorageDeleteData [11:05:39]Write to MH i2c: 01 00 00 80 41 C1 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 80 41 00 00 00 00 00 F4 0C C8 [11:05:39]RasterBufferAndPrint [11:05:39]line [11:05:39]line [11:05:39]line [11:05:39]line [11:05:39]line [11:05:39]written 0, free lines is 3322 [11:05:39]MH_Cut [11:05:39]Write to MH i2c: D1 01 00 87 41 01 9A [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: D1 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: D1 01 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: D1 01 00 87 41 00 99 [11:05:39]Write to MH i2c: 01 00 00 88 41 C9 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]OFD Sender: No OFD packet to send [11:05:39]*** Cut start [11:05:39]*** Partial cut [11:05:39]*** CUTSNS_PIN = 1 [11:05:39]*** CUTSNS_PIN = 0 [11:05:40]*** Brake cut motor [11:05:40]Read from MH i2c: 01 [11:05:40]MH_I2C_Read... [11:05:40]*** Stop cut motor [11:05:40]*** Cut end [11:05:40]Read from MH i2c: 01 07 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 88 41 00 00 00 00 00 FF 0F DE [11:05:40]process_action close_receipt done [11:05:40]requested_data is exist [11:05:40]produce_requested_data [11:05:40]requested_item fm.sn is exist - process it [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 11 00 00 [11:05:40]Write to MH i2c: E2 08 00 89 41 80 11 00 00 00 00 00 00 44 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 17 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 17 00 89 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [11:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:40]wFMCommunicate OK [11:05:40]requested_item fd.num is exist - process it [11:05:40]SAM_PROTO_GetFieldsCounters [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 13 00 00 [11:05:40]Write to MH i2c: E2 08 00 8A 41 80 13 00 00 00 00 00 00 47 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 8A 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 94 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 94 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetFieldsCounters done [11:05:40]requested_item shift.num is exist - process it [11:05:40]requested_item shift.opened is exist - process it [11:05:40]req_shift_opened [11:05:40]FM_GetShiftState [11:05:40]SAM_PROTO_GetShiftState [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 13 01 00 [11:05:40]Write to MH i2c: E2 08 00 8B 41 80 13 01 00 00 00 00 00 49 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 0E 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 0E 00 8B 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 03 [11:05:40]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetShiftState done [11:05:40]FM_GetShiftState done [11:05:40]req_shift_opened done [11:05:40]requested_item shift.open_date is exist - process it [11:05:40]req_shift_open_date [11:05:40]req_shift_open_date done [11:05:40]produce_requested_data done [11:05:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31124,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:05:40]process_action_free close_receipt [11:05:40]json_value_free [11:05:40]json_value_free done [11:05:40]process_json_proto returns [11:05:40]Send response to host [11:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31124,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:05:40]free response buf [11:05:40]execute_script done [11:05:40]execute_script returns [11:05:40]free content buf [11:05:40]Sock 9.Close socket [11:05:40]Sock 9.Thread stoped [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:20]accept exits with 7 [11:08:20]New connection [11:08:20]New thread 3067043172 created [11:08:20]Thread 3066899812 joined [11:08:20]Waiting for new connection... [11:08:20] Sock 7.Parse request [11:08:20]Sock 7.Check first char [11:08:20]Sock 7.First char is OK [11:08:20]request: POST /json_proto HTTP/1.0 [11:08:20]Method: POST [11:08:20]URL: /json_proto [11:08:20]Method is POST - this is cgi request [11:08:20]url: /json_proto [11:08:20]query_string will be loaded in cgi processing [11:08:20]execute_cgi json_proto POST (null) [11:08:20]execute_cgi path=json_proto method=POST [11:08:20]POST find Content-Length [11:08:20]Host: 172.17.51.3:8080 [11:08:20]Content-Length: 677 [11:08:20]Content-Type: application/json [11:08:20] [11:08:20]POST finish read [11:08:20]Found Content-Length = 677 [11:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:20]execute_script... [11:08:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:20]POST & json_proto [11:08:20]process_json_proto [11:08:20]json parsed OK: [11:08:20]protocol is kg_v1.0 [11:08:20]action value=close_receipt [11:08:20]process_action close_receipt [11:08:20]cmd_close_receipt [11:08:20]MH_GetDate [11:08:20]Write to MH i2c: F0 00 00 8C 41 BC [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 09 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 09 00 8C 41 00 2A D9 18 67 04 C1 95 66 07 [11:08:20]GetLastDocTimeStamp 1729681542 [11:08:20]current date 1729681706 [11:08:20]FM_GetShiftState [11:08:20]SAM_PROTO_GetShiftState [11:08:20]wFMCommunicate request_size=4 [11:08:20]MH_SAM_APDU [11:08:20]CAPDU: 80 13 01 00 [11:08:20]Write to MH i2c: E2 08 00 8D 41 80 13 01 00 00 00 00 00 4B [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:20]Read from MH i2c: E2 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 8D 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 05 [11:08:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:08:20]wFMCommunicate OK [11:08:20]SAM_PROTO_GetShiftState done [11:08:20]FM_GetShiftState done [11:08:20]opened in 1729643755 [11:08:20]opened+sec_in_day 1729730155 [11:08:20]quantity*price = 50041 [11:08:20]sum+1 = 50042 [11:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 69 23.10.2024 11:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31125 ФПД: 11721120970980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31125&fm=11721120970980&tin=02508201610067®Number=0000000000186857&sum=50000 [11:08:21]StoreToDocumentArchive [11:08:21]shift 117 fd 31125 [11:08:21]save to /storage/0117/doc_00031125 [11:08:21]save last doc name /storage/0117/doc_00031125 to /storage/kkm_last_doc_name [11:08:21]save OK [11:08:21]Clear old archive folders... [11:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:21]tlvbuf is 00D679D0 [11:08:21]SAM_PROTO_ClearQueue [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 09 00 00 [11:08:21]Write to MH i2c: E2 08 00 9A 41 80 09 00 00 00 00 00 00 4D [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 9A 41 00 90 00 4F [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_ClearQueue done [11:08:21]KKMCreateOFDPacket [11:08:21]OFDProtocolAddRootSTLVToBuf [11:08:21]FM_MakeSignedData [11:08:21]FM_MakeSignedData [11:08:21]SAM_PROTO_SignData [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 01 02 [11:08:21]Write to MH i2c: E2 08 00 9B 41 80 0D 01 02 00 00 00 00 55 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 9B 41 00 90 00 50 [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=255 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2A D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 79 00 00 35 04 06 00 0A [11:08:21]Write to MH i2c: E2 02 01 9C 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2A D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 79 00 00 35 04 06 00 0A 00 00 3A [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 9C 41 00 90 00 51 [11:08:22]RAPDU: 90 00 [11:08:22]wFMCommunicate OK [11:08:22]wFMCommunicate request_size=10 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 0D 02 02 05 A9 09 40 78 E4 [11:08:22]Write to MH i2c: E2 0D 00 9D 41 80 0D 02 02 05 00 A9 09 40 78 E4 00 00 B0 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 9D 41 00 90 00 52 [11:08:22]RAPDU: 90 00 [11:08:22]wFMCommunicate OK [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 0D 03 02 [11:08:22]Write to MH i2c: E2 08 00 9E 41 80 0D 03 02 00 00 00 00 5A [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 0B 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 0B 00 9E 41 00 C9 1A FD 2B DD 13 C3 A8 90 00 C1 [11:08:22]RAPDU: C9 1A FD 2B DD 13 C3 A8 90 00 [11:08:22]wFMCommunicate OK [11:08:22]SAM_PROTO_SignData done [11:08:22]FM_MakeSignedData done [11:08:22]CreateOFDProtocolMessage [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 11 00 00 [11:08:22]Write to MH i2c: E2 08 00 9F 41 80 11 00 00 00 00 00 00 5A [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 17 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 17 00 9F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [11:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:22]wFMCommunicate OK [11:08:22]CreateOFDProtocolMessage done [11:08:22]OFDSenderStorePacket 31125 [11:08:22]StoreOFDPacket docnum=31125 [11:08:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 39 E2 07 01 90 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2A D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 79 00 00 35 04 06 00 0A A9 09 40 78 E4 C9 1A FD 2B DD 13 C3 A8 [11:08:22]CheckFolder [11:08:22]dirname=/storage/ofd_packets [11:08:22]CheckFolder done [11:08:22]ProducePacketName [11:08:22]name=ofd_packets/00031125 [11:08:22]NVStorageSaveData ofd_packets/00031125 [11:08:22]File name is /storage/ofd_packets/00031125 [11:08:22]Write 301 bytes [11:08:22]NVStorageSaveData done [11:08:22]OFDSenderStorePacket done [11:08:22]KKMCreateOFDPacket done [11:08:22]NVStorageSaveData kkm_last_timestamp [11:08:22]File name is /storage/kkm_last_timestamp [11:08:22]Write 4 bytes [11:08:22]NVStorageSaveData done [11:08:22]ExternCall_PrintAddStr [11:08:22]wPrintStart [11:08:22]Write to MH i2c: 01 00 00 A0 41 E1 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 A0 41 00 00 00 00 00 FF 0F F6 [11:08:22]RasterBufferAndPrint [11:08:22]line Счет N : (1)343565 [11:08:22]line ИНН: 02508201610067 [11:08:22]line Контрольно-Кассовый Чек [11:08:22]line ПРОДАЖА [11:08:22]line ТРК (МРК, ГНК) : 33 [11:08:22]line Товар: 2710124130 [11:08:22]line Аи-92-К-2 [11:08:22]line 7.480 * 66.90 [11:08:22]line = 500.41 [11:08:22]line НДС 12% НСП 1% [11:08:22]line > о реализуемом товаре [11:08:22]line ОКРУГЛЕНИЕ: -0.41 [11:08:22]line ИТОГО: 500.00 [11:08:22]line Внесено: 500.00 [11:08:22]line СДАЧА: 0.00 [11:08:22]line НСП 1% : 4.43 [11:08:22]line НДС 12% : 53.14 [11:08:22]line Наличными: 500.00 [11:08:22]line Безнал.: 0.00 [11:08:22]line Место: АЗС № 78 "Партнер Нефть" [11:08:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:08:22]line СНО: Общий режим [11:08:22]line Чек 69 23.10.2024 11:08 [11:08:22]line Смена: 117 ФФД: 1.0 [11:08:22]line ЗНМ: 0300000137 [11:08:22]line РНМ: 0000000000186857 [11:08:22]line Версия ККМ: v1.0 [11:08:22]line ФМ: 0000000002094219 [11:08:22]line ФД: 31125 [11:08:22]line ФПД: 11721120970980 [11:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31125&fm=11721120970980&tin=02508201610067®Number=0000000000186857&sum=50000 [11:08:22]OFD Sender: Processing packet 31125 [packets to send 11, broken 10] [11:08:22]ProducePacketName [11:08:22]name=ofd_packets/00031125 [11:08:22]OFD Sender: To server: pG, [11:08:22]CommunicateWithHost lk.salyk.kg:30040 [11:08:22]ConnectInit lk.salyk.kg [11:08:22]written 0, free lines is 4095 [11:08:22]Connected sock=10 [11:08:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 39 E2 07 01 90 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2A D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 79 00 00 35 04 06 00 0A A9 09 40 78 E4 C9 1A FD 2B DD 13 C3 A8 [11:08:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 23 38 47 00 87 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 79 00 00 F4 03 04 00 A5 83 18 67 B6 04 01 00 00 40 0A B5 25 C9 44 CF 84 [11:08:23]CommunicateWithHost err = 0 [11:08:23]CheckOFDResponse [11:08:23]1017 (14) - 77093643461234 [11:08:23]1041 (16) - 0000000002094219 [11:08:23]1040 (4) - 31125 [11:08:23]1012 (4) - 23.10.2024 05:03 [11:08:23]1206 (1) - 0 [11:08:23]OFD Sender: Remove packet 31125 [11:08:23]ProducePacketName [11:08:23]name=ofd_packets/00031125 [11:08:23]NVStorageDeleteData [11:08:23]Write to MH i2c: 01 00 00 CB 41 0C [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 CB 41 00 00 00 00 00 F7 0C 16 [11:08:23]RasterBufferAndPrint [11:08:23]line [11:08:23]line [11:08:23]line [11:08:23]line [11:08:23]line [11:08:23]written 0, free lines is 3326 [11:08:23]MH_Cut [11:08:23]Write to MH i2c: D1 01 00 D2 41 01 E5 [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: D1 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: D1 01 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: D1 01 00 D2 41 00 E4 [11:08:23]Write to MH i2c: 01 00 00 D3 41 14 [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]OFD Sender: No OFD packet to send [11:08:23]*** Cut start [11:08:23]*** Partial cut [11:08:23]*** CUTSNS_PIN = 1 [11:08:23]*** CUTSNS_PIN = 0 [11:08:24]*** Brake cut motor [11:08:24]Read from MH i2c: 01 [11:08:24]MH_I2C_Read... [11:08:24]*** Stop cut motor [11:08:24]*** Cut end [11:08:24]Read from MH i2c: 01 07 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 07 00 D3 41 00 00 00 00 00 FF 0F 29 [11:08:24]process_action close_receipt done [11:08:24]requested_data is exist [11:08:24]produce_requested_data [11:08:24]requested_item fm.sn is exist - process it [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 11 00 00 [11:08:24]Write to MH i2c: E2 08 00 D4 41 80 11 00 00 00 00 00 00 8F [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 17 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 17 00 D4 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [11:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:24]wFMCommunicate OK [11:08:24]requested_item fd.num is exist - process it [11:08:24]SAM_PROTO_GetFieldsCounters [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 13 00 00 [11:08:24]Write to MH i2c: E2 08 00 D5 41 80 13 00 00 00 00 00 00 92 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 D5 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetFieldsCounters done [11:08:24]requested_item shift.num is exist - process it [11:08:24]requested_item shift.opened is exist - process it [11:08:24]req_shift_opened [11:08:24]FM_GetShiftState [11:08:24]SAM_PROTO_GetShiftState [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 13 01 00 [11:08:24]Write to MH i2c: E2 08 00 D6 41 80 13 01 00 00 00 00 00 94 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 D6 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4E [11:08:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetShiftState done [11:08:24]FM_GetShiftState done [11:08:24]req_shift_opened done [11:08:24]requested_item shift.open_date is exist - process it [11:08:24]req_shift_open_date [11:08:24]req_shift_open_date done [11:08:24]produce_requested_data done [11:08:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31125,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:08:24]process_action_free close_receipt [11:08:24]json_value_free [11:08:24]json_value_free done [11:08:24]process_json_proto returns [11:08:24]Send response to host [11:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31125,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:08:24]free response buf [11:08:24]execute_script done [11:08:24]execute_script returns [11:08:24]free content buf [11:08:24]Sock 7.Close socket [11:08:24]Sock 7.Thread stoped [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:44]accept exits with 9 [11:08:44]New connection [11:08:44]New thread 3066899812 created [11:08:44]Thread 3067043172 joined [11:08:44]Waiting for new connection... [11:08:44] Sock 9.Parse request [11:08:44]Sock 9.Check first char [11:08:44]Sock 9.First char is OK [11:08:44]request: POST /json_proto HTTP/1.0 [11:08:44]Method: POST [11:08:44]URL: /json_proto [11:08:44]Method is POST - this is cgi request [11:08:44]url: /json_proto [11:08:44]query_string will be loaded in cgi processing [11:08:44]execute_cgi json_proto POST (null) [11:08:44]execute_cgi path=json_proto method=POST [11:08:44]POST find Content-Length [11:08:44]Host: 172.17.51.3:8080 [11:08:44]Content-Length: 682 [11:08:44]Content-Type: application/json [11:08:44] [11:08:44]POST finish read [11:08:44]Found Content-Length = 682 [11:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:44]execute_script... [11:08:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:44]POST & json_proto [11:08:44]process_json_proto [11:08:44]json parsed OK: [11:08:44]protocol is kg_v1.0 [11:08:44]action value=close_receipt [11:08:44]process_action close_receipt [11:08:44]cmd_close_receipt [11:08:44]MH_GetDate [11:08:44]Write to MH i2c: F0 00 00 D7 41 07 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: F0 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: F0 09 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: F0 09 00 D7 41 00 41 D9 18 67 04 C1 95 66 69 [11:08:44]GetLastDocTimeStamp 1729681706 [11:08:44]current date 1729681729 [11:08:44]FM_GetShiftState [11:08:44]SAM_PROTO_GetShiftState [11:08:44]wFMCommunicate request_size=4 [11:08:44]MH_SAM_APDU [11:08:44]CAPDU: 80 13 01 00 [11:08:44]Write to MH i2c: E2 08 00 D8 41 80 13 01 00 00 00 00 00 96 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 0E 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 0E 00 D8 41 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 50 [11:08:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:08:44]wFMCommunicate OK [11:08:44]SAM_PROTO_GetShiftState done [11:08:44]FM_GetShiftState done [11:08:44]opened in 1729643755 [11:08:44]opened+sec_in_day 1729730155 [11:08:44]quantity*price = 100015 [11:08:44]sum+1 = 100017 [11:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 70 23.10.2024 11:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31126 ФПД: 45708926760027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31126&fm=45708926760027&tin=02508201610067®Number=0000000000186857&sum=100000 [11:08:45]StoreToDocumentArchive [11:08:45]shift 117 fd 31126 [11:08:45]save to /storage/0117/doc_00031126 [11:08:45]save last doc name /storage/0117/doc_00031126 to /storage/kkm_last_doc_name [11:08:45]save OK [11:08:45]Clear old archive folders... [11:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:45]tlvbuf is 00DBAE60 [11:08:45]SAM_PROTO_ClearQueue [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 09 00 00 [11:08:45]Write to MH i2c: E2 08 00 E5 41 80 09 00 00 00 00 00 00 98 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 E5 41 00 90 00 9A [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]SAM_PROTO_ClearQueue done [11:08:45]KKMCreateOFDPacket [11:08:45]OFDProtocolAddRootSTLVToBuf [11:08:45]FM_MakeSignedData [11:08:45]FM_MakeSignedData [11:08:45]SAM_PROTO_SignData [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 01 02 [11:08:45]Write to MH i2c: E2 08 00 E6 41 80 0D 01 02 00 00 00 00 A0 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 E6 41 00 90 00 9B [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]wFMCommunicate request_size=255 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 41 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 79 00 00 35 04 06 00 29 [11:08:45]Write to MH i2c: E2 02 01 E7 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 41 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 79 00 00 35 04 06 00 29 00 00 B7 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 E7 41 00 90 00 9C [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]wFMCommunicate request_size=10 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 02 02 05 92 70 57 B4 5B [11:08:45]Write to MH i2c: E2 0D 00 E8 41 80 0D 02 02 05 00 92 70 57 B4 5B 00 00 15 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 E8 41 00 90 00 9D [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 03 02 [11:08:45]Write to MH i2c: E2 08 00 E9 41 80 0D 03 02 00 00 00 00 A5 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 0B 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 0B 00 E9 41 00 23 87 04 D3 84 9B 23 DA 90 00 43 [11:08:45]RAPDU: 23 87 04 D3 84 9B 23 DA 90 00 [11:08:45]wFMCommunicate OK [11:08:45]SAM_PROTO_SignData done [11:08:45]FM_MakeSignedData done [11:08:45]CreateOFDProtocolMessage [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 11 00 00 [11:08:45]Write to MH i2c: E2 08 00 EA 41 80 11 00 00 00 00 00 00 A5 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 17 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 17 00 EA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [11:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:45]wFMCommunicate OK [11:08:45]CreateOFDProtocolMessage done [11:08:45]OFDSenderStorePacket 31126 [11:08:45]StoreOFDPacket docnum=31126 [11:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 64 07 01 CA 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 41 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 79 00 00 35 04 06 00 29 92 70 57 B4 5B 23 87 04 D3 84 9B 23 DA [11:08:45]CheckFolder [11:08:45]dirname=/storage/ofd_packets [11:08:45]CheckFolder done [11:08:45]ProducePacketName [11:08:45]name=ofd_packets/00031126 [11:08:45]NVStorageSaveData ofd_packets/00031126 [11:08:45]File name is /storage/ofd_packets/00031126 [11:08:45]Write 301 bytes [11:08:45]NVStorageSaveData done [11:08:45]OFDSenderStorePacket done [11:08:45]KKMCreateOFDPacket done [11:08:45]NVStorageSaveData kkm_last_timestamp [11:08:45]File name is /storage/kkm_last_timestamp [11:08:45]Write 4 bytes [11:08:45]NVStorageSaveData done [11:08:45]ExternCall_PrintAddStr [11:08:45]wPrintStart [11:08:45]Write to MH i2c: 01 00 00 EB 41 2C [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 EB 41 00 00 00 00 00 FF 0F 41 [11:08:45]RasterBufferAndPrint [11:08:45]line Счет N : (1)343566 [11:08:45]line ИНН: 02508201610067 [11:08:45]line Контрольно-Кассовый Чек [11:08:45]line ПРОДАЖА [11:08:45]line ТРК (МРК, ГНК) : 53 [11:08:45]line Товар: 2710124130 [11:08:45]line Аи-92-К-2 [11:08:45]line 14.950 * 66.90 [11:08:45]line = 1000.16 [11:08:45]line НДС 12% НСП 1% [11:08:45]line > о реализуемом товаре [11:08:45]line ОКРУГЛЕНИЕ: -0.16 [11:08:45]line ИТОГО: 1000.00 [11:08:45]line Внесено: 1000.00 [11:08:45]line СДАЧА: 0.00 [11:08:45]line НСП 1% : 8.85 [11:08:45]line НДС 12% : 106.21 [11:08:45]line Наличными: 1000.00 [11:08:45]line Безнал.: 0.00 [11:08:45]line Место: АЗС № 78 "Партнер Нефть" [11:08:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:08:45]line СНО: Общий режим [11:08:45]line Чек 70 23.10.2024 11:08 [11:08:45]line Смена: 117 ФФД: 1.0 [11:08:45]line ЗНМ: 0300000137 [11:08:45]line РНМ: 0000000000186857 [11:08:45]line Версия ККМ: v1.0 [11:08:45]line ФМ: 0000000002094219 [11:08:45]line ФД: 31126 [11:08:45]line ФПД: 45708926760027 [11:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31126&fm=45708926760027&tin=02508201610067®Number=0000000000186857&sum=100000 [11:08:46]OFD Sender: Processing packet 31126 [packets to send 11, broken 10] [11:08:46]ProducePacketName [11:08:46]name=ofd_packets/00031126 [11:08:46]OFD Sender: To server: pG, [11:08:46]CommunicateWithHost lk.salyk.kg:30040 [11:08:46]ConnectInit lk.salyk.kg [11:08:46]written 0, free lines is 4095 [11:08:46]Connected sock=10 [11:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 85 64 07 01 CA 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 41 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 79 00 00 35 04 06 00 29 92 70 57 B4 5B 23 87 04 D3 84 9B 23 DA [11:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 75 52 47 00 24 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 32 30 39 34 32 31 39 10 04 04 00 96 79 00 00 F4 03 04 00 BC 83 18 67 B6 04 01 00 00 D5 48 85 AA 6B E1 B5 67 [11:08:46]CommunicateWithHost err = 0 [11:08:46]CheckOFDResponse [11:08:46]1017 (14) - 77093643461234 [11:08:46]1041 (16) - 0000000002094219 [11:08:46]1040 (4) - 31126 [11:08:46]1012 (4) - 23.10.2024 05:03 [11:08:46]1206 (1) - 0 [11:08:46]OFD Sender: Remove packet 31126 [11:08:46]ProducePacketName [11:08:46]name=ofd_packets/00031126 [11:08:46]NVStorageDeleteData [11:08:46]Write to MH i2c: 01 00 00 16 42 58 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: 01 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: 01 07 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: 01 07 00 16 42 00 00 00 00 00 EE 0C 59 [11:08:46]RasterBufferAndPrint [11:08:46]line [11:08:46]line [11:08:46]line [11:08:46]line [11:08:46]line [11:08:46]written 0, free lines is 3316 [11:08:46]MH_Cut [11:08:46]Write to MH i2c: D1 01 00 1D 42 01 31 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: D1 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: D1 01 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: D1 01 00 1D 42 00 30 [11:08:46]Write to MH i2c: 01 00 00 1E 42 60 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:47]OFD Sender: No OFD packet to send [11:08:47]*** Cut start [11:08:47]*** Partial cut [11:08:47]*** CUTSNS_PIN = 1 [11:08:47]*** CUTSNS_PIN = 0 [11:08:47]*** Brake cut motor [11:08:47]Read from MH i2c: 01 [11:08:47]MH_I2C_Read... [11:08:47]*** Stop cut motor [11:08:47]*** Cut end [11:08:47]Read from MH i2c: 01 07 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: 01 07 00 1E 42 00 00 00 00 00 FF 0F 75 [11:08:47]process_action close_receipt done [11:08:47]requested_data is exist [11:08:47]produce_requested_data [11:08:47]requested_item fm.sn is exist - process it [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 11 00 00 [11:08:47]Write to MH i2c: E2 08 00 1F 42 80 11 00 00 00 00 00 00 DB [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 17 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 17 00 1F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [11:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:47]wFMCommunicate OK [11:08:47]requested_item fd.num is exist - process it [11:08:47]SAM_PROTO_GetFieldsCounters [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 13 00 00 [11:08:47]Write to MH i2c: E2 08 00 20 42 80 13 00 00 00 00 00 00 DE [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 62 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 62 00 20 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:47]wFMCommunicate OK [11:08:47]SAM_PROTO_GetFieldsCounters done [11:08:47]requested_item shift.num is exist - process it [11:08:47]requested_item shift.opened is exist - process it [11:08:47]req_shift_opened [11:08:47]FM_GetShiftState [11:08:47]SAM_PROTO_GetShiftState [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 13 01 00 [11:08:47]Write to MH i2c: E2 08 00 21 42 80 13 01 00 00 00 00 00 E0 [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:48]Read from MH i2c: E2 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 0E 00 [11:08:48]MH_I2C_Read... [11:08:48]Read from MH i2c: E2 0E 00 21 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9A [11:08:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:08:48]wFMCommunicate OK [11:08:48]SAM_PROTO_GetShiftState done [11:08:48]FM_GetShiftState done [11:08:48]req_shift_opened done [11:08:48]requested_item shift.open_date is exist - process it [11:08:48]req_shift_open_date [11:08:48]req_shift_open_date done [11:08:48]produce_requested_data done [11:08:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31126,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:08:48]process_action_free close_receipt [11:08:48]json_value_free [11:08:48]json_value_free done [11:08:48]process_json_proto returns [11:08:48]Send response to host [11:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31126,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:08:48]free response buf [11:08:48]execute_script done [11:08:48]execute_script returns [11:08:48]free content buf [11:08:48]Sock 9.Close socket [11:08:48]Sock 9.Thread stoped [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:09]accept exits with 7 [11:09:09]New connection [11:09:09]New thread 3067043172 created [11:09:09]Thread 3066899812 joined [11:09:09]Waiting for new connection... [11:09:09] Sock 7.Parse request [11:09:09]Sock 7.Check first char [11:09:09]Sock 7.First char is OK [11:09:09]request: POST /json_proto HTTP/1.0 [11:09:09]Method: POST [11:09:09]URL: /json_proto [11:09:09]Method is POST - this is cgi request [11:09:09]url: /json_proto [11:09:09]query_string will be loaded in cgi processing [11:09:09]execute_cgi json_proto POST (null) [11:09:09]execute_cgi path=json_proto method=POST [11:09:09]POST find Content-Length [11:09:09]Host: 172.17.51.3:8080 [11:09:09]Content-Length: 682 [11:09:09]Content-Type: application/json [11:09:09] [11:09:09]POST finish read [11:09:09]Found Content-Length = 682 [11:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:09]execute_script... [11:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:09]POST & json_proto [11:09:09]process_json_proto [11:09:09]json parsed OK: [11:09:09]protocol is kg_v1.0 [11:09:09]action value=close_receipt [11:09:09]process_action close_receipt [11:09:09]cmd_close_receipt [11:09:09]MH_GetDate [11:09:09]Write to MH i2c: F0 00 00 22 42 53 [11:09:09]Write i2c OK [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: F0 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: F0 09 00 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: F0 09 00 22 42 00 5B D9 18 67 04 C1 95 66 CF [11:09:09]GetLastDocTimeStamp 1729681729 [11:09:09]current date 1729681755 [11:09:09]FM_GetShiftState [11:09:09]SAM_PROTO_GetShiftState [11:09:09]wFMCommunicate request_size=4 [11:09:09]MH_SAM_APDU [11:09:09]CAPDU: 80 13 01 00 [11:09:09]Write to MH i2c: E2 08 00 23 42 80 13 01 00 00 00 00 00 E2 [11:09:09]Write i2c OK [11:09:09]MH_I2C_Read... [11:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:09]Read from MH i2c: E2 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: E2 0E 00 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: E2 0E 00 23 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9C [11:09:09]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:09:09]wFMCommunicate OK [11:09:09]SAM_PROTO_GetShiftState done [11:09:09]FM_GetShiftState done [11:09:09]opened in 1729643755 [11:09:09]opened+sec_in_day 1729730155 [11:09:09]quantity*price = 200043 [11:09:09]sum+1 = 200044 [11:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 71 23.10.2024 11:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31127 ФПД: 270021659484998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110915&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31127&fm=270021659484998&tin=02508201610067®Number=0000000000186857&sum=200000 [11:09:10]StoreToDocumentArchive [11:09:10]shift 117 fd 31127 [11:09:10]save to /storage/0117/doc_00031127 [11:09:10]save last doc name /storage/0117/doc_00031127 to /storage/kkm_last_doc_name [11:09:10]save OK [11:09:10]Clear old archive folders... [11:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:10]tlvbuf is 00D313E0 [11:09:10]SAM_PROTO_ClearQueue [11:09:10]wFMCommunicate request_size=4 [11:09:10]MH_SAM_APDU [11:09:10]CAPDU: 80 09 00 00 [11:09:10]Write to MH i2c: E2 08 00 30 42 80 09 00 00 00 00 00 00 E4 [11:09:10]Write i2c OK [11:09:10]MH_I2C_Read... [11:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:10]Read from MH i2c: E2 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 03 00 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 03 00 30 42 00 90 00 E6 [11:09:10]RAPDU: 90 00 [11:09:10]wFMCommunicate OK [11:09:10]SAM_PROTO_ClearQueue done [11:09:10]KKMCreateOFDPacket [11:09:10]OFDProtocolAddRootSTLVToBuf [11:09:10]FM_MakeSignedData [11:09:10]FM_MakeSignedData [11:09:10]SAM_PROTO_SignData [11:09:10]wFMCommunicate request_size=4 [11:09:10]MH_SAM_APDU [11:09:10]CAPDU: 80 0D 01 02 [11:09:10]Write to MH i2c: E2 08 00 31 42 80 0D 01 02 00 00 00 00 EC [11:09:10]Write i2c OK [11:09:10]MH_I2C_Read... [11:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:10]Read from MH i2c: E2 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 03 00 [11:09:10]MH_I2C_Read... [11:09:10]Read from MH i2c: E2 03 00 31 42 00 90 00 E7 [11:09:10]RAPDU: 90 00 [11:09:10]wFMCommunicate OK [11:09:10]wFMCommunicate request_size=255 [11:09:10]MH_SAM_APDU [11:09:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 5B D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 79 00 00 35 04 06 00 F5 [11:09:10]Write to MH i2c: E2 02 01 32 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 5B D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 79 00 00 35 04 06 00 F5 00 00 9A [11:09:10]Write i2c OK [11:09:10]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 32 42 00 90 00 E8 [11:09:11]RAPDU: 90 00 [11:09:11]wFMCommunicate OK [11:09:11]wFMCommunicate request_size=10 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 0D 02 02 05 95 51 18 63 46 [11:09:11]Write to MH i2c: E2 0D 00 33 42 80 0D 02 02 05 00 95 51 18 63 46 00 00 A0 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 03 00 33 42 00 90 00 E9 [11:09:11]RAPDU: 90 00 [11:09:11]wFMCommunicate OK [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 0D 03 02 [11:09:11]Write to MH i2c: E2 08 00 34 42 80 0D 03 02 00 00 00 00 F1 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0B 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0B 00 34 42 00 66 E6 DC 7B 0B 62 05 CD 90 00 D4 [11:09:11]RAPDU: 66 E6 DC 7B 0B 62 05 CD 90 00 [11:09:11]wFMCommunicate OK [11:09:11]SAM_PROTO_SignData done [11:09:11]FM_MakeSignedData done [11:09:11]CreateOFDProtocolMessage [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 11 00 00 [11:09:11]Write to MH i2c: E2 08 00 35 42 80 11 00 00 00 00 00 00 F1 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 17 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 17 00 35 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [11:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:11]wFMCommunicate OK [11:09:11]CreateOFDProtocolMessage done [11:09:11]OFDSenderStorePacket 31127 [11:09:11]StoreOFDPacket docnum=31127 [11:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 61 07 01 51 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 5B D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 79 00 00 35 04 06 00 F5 95 51 18 63 46 66 E6 DC 7B 0B 62 05 CD [11:09:11]CheckFolder [11:09:11]dirname=/storage/ofd_packets [11:09:11]CheckFolder done [11:09:11]ProducePacketName [11:09:11]name=ofd_packets/00031127 [11:09:11]NVStorageSaveData ofd_packets/00031127 [11:09:11]File name is /storage/ofd_packets/00031127 [11:09:11]Write 301 bytes [11:09:11]NVStorageSaveData done [11:09:11]OFDSenderStorePacket done [11:09:11]KKMCreateOFDPacket done [11:09:11]NVStorageSaveData kkm_last_timestamp [11:09:11]File name is /storage/kkm_last_timestamp [11:09:11]Write 4 bytes [11:09:11]NVStorageSaveData done [11:09:11]ExternCall_PrintAddStr [11:09:11]wPrintStart [11:09:11]Write to MH i2c: 01 00 00 36 42 78 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: 01 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: 01 07 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: 01 07 00 36 42 00 00 00 00 00 FF 0F 8D [11:09:11]RasterBufferAndPrint [11:09:11]line Счет N : (1)343567 [11:09:11]line ИНН: 02508201610067 [11:09:11]line Контрольно-Кассовый Чек [11:09:11]line ПРОДАЖА [11:09:11]line ТРК (МРК, ГНК) : 62 [11:09:11]line Товар: 2710124500 [11:09:11]line Аи-95-К-3 [11:09:11]line 26.960 * 74.20 [11:09:11]line = 2000.43 [11:09:11]line НДС 12% НСП 1% [11:09:11]line > о реализуемом товаре [11:09:11]line ОКРУГЛЕНИЕ: -0.43 [11:09:11]line ИТОГО: 2000.00 [11:09:11]line Внесено: 2000.00 [11:09:11]line СДАЧА: 0.00 [11:09:11]line НСП 1% : 17.70 [11:09:11]line НДС 12% : 212.43 [11:09:11]line Наличными: 2000.00 [11:09:11]line Безнал.: 0.00 [11:09:11]line Место: АЗС № 78 "Партнер Нефть" [11:09:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:09:11]line СНО: Общий режим [11:09:11]line Чек 71 23.10.2024 11:09 [11:09:11]line Смена: 117 ФФД: 1.0 [11:09:11]line ЗНМ: 0300000137 [11:09:11]line РНМ: 0000000000186857 [11:09:11]line Версия ККМ: v1.0 [11:09:11]line ФМ: 0000000002094219 [11:09:11]line ФД: 31127 [11:09:11]line ФПД: 270021659484998 [11:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110915&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31127&fm=270021659484998&tin=02508201610067®Number=0000000000186857&sum=200000 [11:09:11]OFD Sender: Processing packet 31127 [packets to send 11, broken 10] [11:09:11]ProducePacketName [11:09:11]name=ofd_packets/00031127 [11:09:11]OFD Sender: To server: pG, [11:09:11]CommunicateWithHost lk.salyk.kg:30040 [11:09:11]ConnectInit lk.salyk.kg [11:09:11]written 0, free lines is 4095 [11:09:11]Connected sock=10 [11:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 61 07 01 51 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 5B D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 79 00 00 35 04 06 00 F5 95 51 18 63 46 66 E6 DC 7B 0B 62 05 CD [11:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AE 76 47 00 36 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 79 00 00 F4 03 04 00 D6 83 18 67 B6 04 01 00 00 8D EC 55 B7 74 7F C7 1D [11:09:12]CommunicateWithHost err = 0 [11:09:12]CheckOFDResponse [11:09:12]1017 (14) - 77093643461234 [11:09:12]1041 (16) - 0000000002094219 [11:09:12]1040 (4) - 31127 [11:09:12]1012 (4) - 23.10.2024 05:04 [11:09:12]1206 (1) - 0 [11:09:12]OFD Sender: Remove packet 31127 [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00031127 [11:09:12]NVStorageDeleteData [11:09:12]Write to MH i2c: 01 00 00 61 42 A3 [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 07 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: 01 07 00 61 42 00 00 00 00 00 00 0D B7 [11:09:12]RasterBufferAndPrint [11:09:12]line [11:09:12]line [11:09:12]line [11:09:12]line [11:09:12]line [11:09:12]written 0, free lines is 3334 [11:09:12]MH_Cut [11:09:12]Write to MH i2c: D1 01 00 68 42 01 7C [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: D1 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: D1 01 00 [11:09:12]MH_I2C_Read... [11:09:12]Read from MH i2c: D1 01 00 68 42 00 7B [11:09:12]Write to MH i2c: 01 00 00 69 42 AB [11:09:12]Write i2c OK [11:09:12]MH_I2C_Read... [11:09:12]OFD Sender: No OFD packet to send [11:09:12]*** Cut start [11:09:12]*** Partial cut [11:09:12]*** CUTSNS_PIN = 1 [11:09:12]*** CUTSNS_PIN = 0 [11:09:13]*** Brake cut motor [11:09:13]Read from MH i2c: 01 [11:09:13]MH_I2C_Read... [11:09:13]*** Stop cut motor [11:09:13]*** Cut end [11:09:13]Read from MH i2c: 01 07 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 07 00 69 42 00 00 00 00 00 FF 0F C0 [11:09:13]process_action close_receipt done [11:09:13]requested_data is exist [11:09:13]produce_requested_data [11:09:13]requested_item fm.sn is exist - process it [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 11 00 00 [11:09:13]Write to MH i2c: E2 08 00 6A 42 80 11 00 00 00 00 00 00 26 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 6A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [11:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:13]wFMCommunicate OK [11:09:13]requested_item fd.num is exist - process it [11:09:13]SAM_PROTO_GetFieldsCounters [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 13 00 00 [11:09:13]Write to MH i2c: E2 08 00 6B 42 80 13 00 00 00 00 00 00 29 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 62 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 62 00 6B 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_GetFieldsCounters done [11:09:13]requested_item shift.num is exist - process it [11:09:13]requested_item shift.opened is exist - process it [11:09:13]req_shift_opened [11:09:13]FM_GetShiftState [11:09:13]SAM_PROTO_GetShiftState [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 13 01 00 [11:09:13]Write to MH i2c: E2 08 00 6C 42 80 13 01 00 00 00 00 00 2B [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0E 00 6C 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E5 [11:09:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_GetShiftState done [11:09:13]FM_GetShiftState done [11:09:13]req_shift_opened done [11:09:13]requested_item shift.open_date is exist - process it [11:09:13]req_shift_open_date [11:09:13]req_shift_open_date done [11:09:13]produce_requested_data done [11:09:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31127,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:09:13]process_action_free close_receipt [11:09:13]json_value_free [11:09:13]json_value_free done [11:09:13]process_json_proto returns [11:09:13]Send response to host [11:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31127,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:09:13]free response buf [11:09:13]execute_script done [11:09:13]execute_script returns [11:09:13]free content buf [11:09:13]Sock 7.Close socket [11:09:13]Sock 7.Thread stoped [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]accept exits with 9 [11:10:57]New connection [11:10:57]New thread 3066899812 created [11:10:57]Thread 3067043172 joined [11:10:57]Waiting for new connection... [11:10:57] Sock 9.Parse request [11:10:57]Sock 9.Check first char [11:10:57]Sock 9.First char is OK [11:10:57]request: POST /json_proto HTTP/1.0 [11:10:57]Method: POST [11:10:57]URL: /json_proto [11:10:57]Method is POST - this is cgi request [11:10:57]url: /json_proto [11:10:57]query_string will be loaded in cgi processing [11:10:57]execute_cgi json_proto POST (null) [11:10:57]execute_cgi path=json_proto method=POST [11:10:57]POST find Content-Length [11:10:57]Host: 172.17.51.3:8080 [11:10:57]Content-Length: 677 [11:10:57]Content-Type: application/json [11:10:57] [11:10:57]POST finish read [11:10:57]Found Content-Length = 677 [11:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:57]execute_script... [11:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:57]POST & json_proto [11:10:57]process_json_proto [11:10:57]json parsed OK: [11:10:57]protocol is kg_v1.0 [11:10:57]action value=close_receipt [11:10:57]process_action close_receipt [11:10:57]cmd_close_receipt [11:10:57]MH_GetDate [11:10:57]Write to MH i2c: F0 00 00 6D 42 9E [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 6D 42 00 C6 D9 18 67 04 C1 95 66 85 [11:10:57]GetLastDocTimeStamp 1729681755 [11:10:57]current date 1729681862 [11:10:57]FM_GetShiftState [11:10:57]SAM_PROTO_GetShiftState [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 01 00 [11:10:57]Write to MH i2c: E2 08 00 6E 42 80 13 01 00 00 00 00 00 2D [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 6E 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E7 [11:10:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]opened in 1729643755 [11:10:57]opened+sec_in_day 1729730155 [11:10:57]quantity*price = 34052 [11:10:57]sum+1 = 34053 [11:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 72 23.10.2024 11:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31128 ФПД: 33175283950478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111103&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31128&fm=33175283950478&tin=02508201610067®Number=0000000000186857&sum=34000 [11:10:58]StoreToDocumentArchive [11:10:58]shift 117 fd 31128 [11:10:58]save to /storage/0117/doc_00031128 [11:10:58]save last doc name /storage/0117/doc_00031128 to /storage/kkm_last_doc_name [11:10:58]save OK [11:10:58]Clear old archive folders... [11:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:58]tlvbuf is 00D634B0 [11:10:58]SAM_PROTO_ClearQueue [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 09 00 00 [11:10:58]Write to MH i2c: E2 08 00 7B 42 80 09 00 00 00 00 00 00 2F [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 7B 42 00 90 00 31 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_ClearQueue done [11:10:58]KKMCreateOFDPacket [11:10:58]OFDProtocolAddRootSTLVToBuf [11:10:58]FM_MakeSignedData [11:10:58]FM_MakeSignedData [11:10:58]SAM_PROTO_SignData [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 01 02 [11:10:58]Write to MH i2c: E2 08 00 7C 42 80 0D 01 02 00 00 00 00 37 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 7C 42 00 90 00 32 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=255 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 79 00 00 35 04 06 00 1E [11:10:58]Write to MH i2c: E2 02 01 7D 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 79 00 00 35 04 06 00 1E 00 00 0C [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 7D 42 00 90 00 33 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=10 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 02 02 05 2C 39 03 E3 8E [11:10:58]Write to MH i2c: E2 0D 00 7E 42 80 0D 02 02 05 00 2C 39 03 E3 8E 00 00 1D [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 7E 42 00 90 00 34 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 03 02 [11:10:58]Write to MH i2c: E2 08 00 7F 42 80 0D 03 02 00 00 00 00 3C [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0B 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0B 00 7F 42 00 97 B4 7D 9C 1D C8 36 5E 90 00 1A [11:10:58]RAPDU: 97 B4 7D 9C 1D C8 36 5E 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_SignData done [11:10:58]FM_MakeSignedData done [11:10:58]CreateOFDProtocolMessage [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 11 00 00 [11:10:58]Write to MH i2c: E2 08 00 80 42 80 11 00 00 00 00 00 00 3C [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 80 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [11:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:10:58]wFMCommunicate OK [11:10:58]CreateOFDProtocolMessage done [11:10:58]OFDSenderStorePacket 31128 [11:10:58]StoreOFDPacket docnum=31128 [11:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4C 02 07 01 91 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 79 00 00 35 04 06 00 1E 2C 39 03 E3 8E 97 B4 7D 9C 1D C8 36 5E [11:10:58]CheckFolder [11:10:58]dirname=/storage/ofd_packets [11:10:58]CheckFolder done [11:10:58]ProducePacketName [11:10:58]name=ofd_packets/00031128 [11:10:58]NVStorageSaveData ofd_packets/00031128 [11:10:58]File name is /storage/ofd_packets/00031128 [11:10:58]Write 301 bytes [11:10:58]NVStorageSaveData done [11:10:58]OFDSenderStorePacket done [11:10:58]KKMCreateOFDPacket done [11:10:58]NVStorageSaveData kkm_last_timestamp [11:10:58]File name is /storage/kkm_last_timestamp [11:10:58]Write 4 bytes [11:10:58]NVStorageSaveData done [11:10:58]ExternCall_PrintAddStr [11:10:58]wPrintStart [11:10:58]Write to MH i2c: 01 00 00 81 42 C3 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 81 42 00 00 00 00 00 FF 0F D8 [11:10:58]RasterBufferAndPrint [11:10:58]line Счет N : (1)343569 [11:10:58]line ИНН: 02508201610067 [11:10:58]line Контрольно-Кассовый Чек [11:10:58]line ПРОДАЖА [11:10:58]line ТРК (МРК, ГНК) : 33 [11:10:58]line Товар: 2710124130 [11:10:58]line Аи-92-К-2 [11:10:58]line 5.090 * 66.90 [11:10:58]line = 340.52 [11:10:58]line НДС 12% НСП 1% [11:10:58]line > о реализуемом товаре [11:10:58]line ОКРУГЛЕНИЕ: -0.52 [11:10:58]line ИТОГО: 340.00 [11:10:58]line Внесено: 340.00 [11:10:58]line СДАЧА: 0.00 [11:10:58]line НСП 1% : 3.01 [11:10:58]line НДС 12% : 36.16 [11:10:58]line Наличными: 340.00 [11:10:58]line Безнал.: 0.00 [11:10:58]line Место: АЗС № 78 "Партнер Нефть" [11:10:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:10:58]line СНО: Общий режим [11:10:58]line Чек 72 23.10.2024 11:11 [11:10:58]line Смена: 117 ФФД: 1.0 [11:10:58]line ЗНМ: 0300000137 [11:10:58]line РНМ: 0000000000186857 [11:10:58]line Версия ККМ: v1.0 [11:10:58]line ФМ: 0000000002094219 [11:10:58]line ФД: 31128 [11:10:58]line ФПД: 33175283950478 [11:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111103&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31128&fm=33175283950478&tin=02508201610067®Number=0000000000186857&sum=34000 [11:10:59]OFD Sender: Processing packet 31128 [packets to send 11, broken 10] [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00031128 [11:10:59]OFD Sender: To server: pG, [11:10:59]CommunicateWithHost lk.salyk.kg:30040 [11:10:59]ConnectInit lk.salyk.kg [11:10:59]written 0, free lines is 4095 [11:10:59]Connected sock=10 [11:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4C 02 07 01 91 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 D9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 79 00 00 35 04 06 00 1E 2C 39 03 E3 8E 97 B4 7D 9C 1D C8 36 5E [11:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8F 40 47 00 3E 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 79 00 00 F4 03 04 00 41 84 18 67 B6 04 01 00 00 64 CF 77 98 66 2B E2 FF [11:10:59]CommunicateWithHost err = 0 [11:10:59]CheckOFDResponse [11:10:59]1017 (14) - 77093643461234 [11:10:59]1041 (16) - 0000000002094219 [11:10:59]1040 (4) - 31128 [11:10:59]1012 (4) - 23.10.2024 05:06 [11:10:59]1206 (1) - 0 [11:10:59]OFD Sender: Remove packet 31128 [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00031128 [11:10:59]NVStorageDeleteData [11:10:59]Write to MH i2c: 01 00 00 AC 42 EE [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 AC 42 00 00 00 00 00 E6 0C E7 [11:10:59]RasterBufferAndPrint [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]written 0, free lines is 3309 [11:10:59]MH_Cut [11:10:59]Write to MH i2c: D1 01 00 B3 42 01 C7 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 01 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 01 00 B3 42 00 C6 [11:10:59]Write to MH i2c: 01 00 00 B4 42 F6 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:11:00]OFD Sender: No OFD packet to send [11:11:00]*** Cut start [11:11:00]*** Partial cut [11:11:00]*** CUTSNS_PIN = 1 [11:11:00]*** CUTSNS_PIN = 0 [11:11:00]*** Brake cut motor [11:11:00]Read from MH i2c: 01 [11:11:00]MH_I2C_Read... [11:11:00]*** Stop cut motor [11:11:00]*** Cut end [11:11:00]Read from MH i2c: 01 07 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 B4 42 00 00 00 00 00 FF 0F 0B [11:11:00]process_action close_receipt done [11:11:00]requested_data is exist [11:11:00]produce_requested_data [11:11:00]requested_item fm.sn is exist - process it [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 11 00 00 [11:11:00]Write to MH i2c: E2 08 00 B5 42 80 11 00 00 00 00 00 00 71 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:00]Read from MH i2c: E2 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 17 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 17 00 B5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [11:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:11:00]wFMCommunicate OK [11:11:00]requested_item fd.num is exist - process it [11:11:00]SAM_PROTO_GetFieldsCounters [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 13 00 00 [11:11:00]Write to MH i2c: E2 08 00 B6 42 80 13 00 00 00 00 00 00 74 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 B6 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetFieldsCounters done [11:11:01]requested_item shift.num is exist - process it [11:11:01]requested_item shift.opened is exist - process it [11:11:01]req_shift_opened [11:11:01]FM_GetShiftState [11:11:01]SAM_PROTO_GetShiftState [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 01 00 [11:11:01]Write to MH i2c: E2 08 00 B7 42 80 13 01 00 00 00 00 00 76 [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 B7 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 30 [11:11:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetShiftState done [11:11:01]FM_GetShiftState done [11:11:01]req_shift_opened done [11:11:01]requested_item shift.open_date is exist - process it [11:11:01]req_shift_open_date [11:11:01]req_shift_open_date done [11:11:01]produce_requested_data done [11:11:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31128,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:11:01]process_action_free close_receipt [11:11:01]json_value_free [11:11:01]json_value_free done [11:11:01]process_json_proto returns [11:11:01]Send response to host [11:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31128,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:11:01]free response buf [11:11:01]execute_script done [11:11:01]execute_script returns [11:11:01]free content buf [11:11:01]Sock 9.Close socket [11:11:01]Sock 9.Thread stoped [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:03]accept exits with 7 [11:13:03]New connection [11:13:03]New thread 3067043172 created [11:13:03]Thread 3066899812 joined [11:13:03]Waiting for new connection... [11:13:03] Sock 7.Parse request [11:13:03]Sock 7.Check first char [11:13:03]Sock 7.First char is OK [11:13:03]request: POST /json_proto HTTP/1.0 [11:13:03]Method: POST [11:13:03]URL: /json_proto [11:13:03]Method is POST - this is cgi request [11:13:03]url: /json_proto [11:13:03]query_string will be loaded in cgi processing [11:13:03]execute_cgi json_proto POST (null) [11:13:03]execute_cgi path=json_proto method=POST [11:13:03]POST find Content-Length [11:13:03]Host: 172.17.51.3:8080 [11:13:03]Content-Length: 677 [11:13:03]Content-Type: application/json [11:13:03] [11:13:03]POST finish read [11:13:03]Found Content-Length = 677 [11:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:03]execute_script... [11:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:03]POST & json_proto [11:13:03]process_json_proto [11:13:03]json parsed OK: [11:13:03]protocol is kg_v1.0 [11:13:03]action value=close_receipt [11:13:03]process_action close_receipt [11:13:03]cmd_close_receipt [11:13:03]MH_GetDate [11:13:03]Write to MH i2c: F0 00 00 B8 42 E9 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 09 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 09 00 B8 42 00 44 DA 18 67 04 C1 95 66 4F [11:13:03]GetLastDocTimeStamp 1729681863 [11:13:03]current date 1729681988 [11:13:03]FM_GetShiftState [11:13:03]SAM_PROTO_GetShiftState [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 01 00 [11:13:03]Write to MH i2c: E2 08 00 B9 42 80 13 01 00 00 00 00 00 78 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 B9 42 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 32 [11:13:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_GetShiftState done [11:13:03]FM_GetShiftState done [11:13:03]opened in 1729643755 [11:13:03]opened+sec_in_day 1729730155 [11:13:03]quantity*price = 60009 [11:13:03]sum+1 = 60010 [11:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 73 23.10.2024 11:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31129 ФПД: 201478492259014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31129&fm=201478492259014&tin=02508201610067®Number=0000000000186857&sum=60000 [11:13:04]StoreToDocumentArchive [11:13:04]shift 117 fd 31129 [11:13:04]save to /storage/0117/doc_00031129 [11:13:04]save last doc name /storage/0117/doc_00031129 to /storage/kkm_last_doc_name [11:13:04]save OK [11:13:04]Clear old archive folders... [11:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:04]tlvbuf is 00CD65D0 [11:13:04]SAM_PROTO_ClearQueue [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 09 00 00 [11:13:04]Write to MH i2c: E2 08 00 C6 42 80 09 00 00 00 00 00 00 7A [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 C6 42 00 90 00 7C [11:13:04]RAPDU: 90 00 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_ClearQueue done [11:13:04]KKMCreateOFDPacket [11:13:04]OFDProtocolAddRootSTLVToBuf [11:13:04]FM_MakeSignedData [11:13:04]FM_MakeSignedData [11:13:04]SAM_PROTO_SignData [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 0D 01 02 [11:13:04]Write to MH i2c: E2 08 00 C7 42 80 0D 01 02 00 00 00 00 82 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 C7 42 00 90 00 7D [11:13:04]RAPDU: 90 00 [11:13:04]wFMCommunicate OK [11:13:04]wFMCommunicate request_size=255 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 45 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 79 00 00 35 04 06 00 B7 [11:13:04]Write to MH i2c: E2 02 01 C8 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 45 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 79 00 00 35 04 06 00 B7 00 00 15 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 C8 42 00 90 00 7E [11:13:04]RAPDU: 90 00 [11:13:04]wFMCommunicate OK [11:13:04]wFMCommunicate request_size=10 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 0D 02 02 05 3E 5D F6 02 C6 [11:13:04]Write to MH i2c: E2 0D 00 C9 42 80 0D 02 02 05 00 3E 5D F6 02 C6 00 00 E8 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 03 00 C9 42 00 90 00 7F [11:13:04]RAPDU: 90 00 [11:13:04]wFMCommunicate OK [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 0D 03 02 [11:13:04]Write to MH i2c: E2 08 00 CA 42 80 0D 03 02 00 00 00 00 87 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0B 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0B 00 CA 42 00 46 FA 9E 0B 5E D3 2F E3 90 00 B4 [11:13:04]RAPDU: 46 FA 9E 0B 5E D3 2F E3 90 00 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_SignData done [11:13:04]FM_MakeSignedData done [11:13:04]CreateOFDProtocolMessage [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 11 00 00 [11:13:04]Write to MH i2c: E2 08 00 CB 42 80 11 00 00 00 00 00 00 87 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 CB 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [11:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:13:04]wFMCommunicate OK [11:13:04]CreateOFDProtocolMessage done [11:13:04]OFDSenderStorePacket 31129 [11:13:04]StoreOFDPacket docnum=31129 [11:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 69 07 01 3D BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 45 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 79 00 00 35 04 06 00 B7 3E 5D F6 02 C6 46 FA 9E 0B 5E D3 2F E3 [11:13:04]CheckFolder [11:13:04]dirname=/storage/ofd_packets [11:13:04]CheckFolder done [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00031129 [11:13:04]NVStorageSaveData ofd_packets/00031129 [11:13:04]File name is /storage/ofd_packets/00031129 [11:13:04]Write 301 bytes [11:13:04]NVStorageSaveData done [11:13:04]OFDSenderStorePacket done [11:13:04]KKMCreateOFDPacket done [11:13:04]NVStorageSaveData kkm_last_timestamp [11:13:04]File name is /storage/kkm_last_timestamp [11:13:04]Write 4 bytes [11:13:04]NVStorageSaveData done [11:13:04]ExternCall_PrintAddStr [11:13:04]wPrintStart [11:13:04]Write to MH i2c: 01 00 00 CC 42 0E [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 CC 42 00 00 00 00 00 FF 0F 23 [11:13:04]RasterBufferAndPrint [11:13:04]line Счет N : (1)343570 [11:13:04]line ИНН: 02508201610067 [11:13:04]line Контрольно-Кассовый Чек [11:13:04]line ПРОДАЖА [11:13:04]line ТРК (МРК, ГНК) : 53 [11:13:04]line Товар: 2710124130 [11:13:04]line Аи-92-К-2 [11:13:04]line 8.970 * 66.90 [11:13:04]line = 600.09 [11:13:04]line НДС 12% НСП 1% [11:13:04]line > о реализуемом товаре [11:13:04]line ОКРУГЛЕНИЕ: -0.09 [11:13:04]line ИТОГО: 600.00 [11:13:04]line Внесено: 600.00 [11:13:04]line СДАЧА: 0.00 [11:13:04]line НСП 1% : 5.31 [11:13:04]line НДС 12% : 63.73 [11:13:04]line Наличными: 600.00 [11:13:04]line Безнал.: 0.00 [11:13:04]line Место: АЗС № 78 "Партнер Нефть" [11:13:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:13:04]line СНО: Общий режим [11:13:04]line Чек 73 23.10.2024 11:13 [11:13:04]line Смена: 117 ФФД: 1.0 [11:13:04]line ЗНМ: 0300000137 [11:13:04]line РНМ: 0000000000186857 [11:13:04]line Версия ККМ: v1.0 [11:13:04]line ФМ: 0000000002094219 [11:13:04]line ФД: 31129 [11:13:04]line ФПД: 201478492259014 [11:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31129&fm=201478492259014&tin=02508201610067®Number=0000000000186857&sum=60000 [11:13:05]OFD Sender: Processing packet 31129 [packets to send 11, broken 10] [11:13:05]ProducePacketName [11:13:05]name=ofd_packets/00031129 [11:13:05]OFD Sender: To server: pG, [11:13:05]CommunicateWithHost lk.salyk.kg:30040 [11:13:05]ConnectInit lk.salyk.kg [11:13:05]written 0, free lines is 4095 [11:13:05]Connected sock=10 [11:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 69 07 01 3D BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 45 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 79 00 00 35 04 06 00 B7 3E 5D F6 02 C6 46 FA 9E 0B 5E D3 2F E3 [11:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B3 B9 47 00 2A 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 32 30 39 34 32 31 39 10 04 04 00 99 79 00 00 F4 03 04 00 BF 84 18 67 B6 04 01 00 00 AF EB 5F EE 4D 0B 0D 78 [11:13:05]CommunicateWithHost err = 0 [11:13:05]CheckOFDResponse [11:13:05]1017 (14) - 77093643461234 [11:13:05]1041 (16) - 0000000002094219 [11:13:05]1040 (4) - 31129 [11:13:05]1012 (4) - 23.10.2024 05:08 [11:13:05]1206 (1) - 0 [11:13:05]OFD Sender: Remove packet 31129 [11:13:05]ProducePacketName [11:13:05]name=ofd_packets/00031129 [11:13:05]NVStorageDeleteData [11:13:05]Write to MH i2c: 01 00 00 F7 42 39 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 F7 42 00 00 00 00 00 0C 0D 59 [11:13:05]RasterBufferAndPrint [11:13:05]line [11:13:05]line [11:13:05]line [11:13:05]line [11:13:05]line [11:13:05]written 0, free lines is 3349 [11:13:05]MH_Cut [11:13:05]Write to MH i2c: D1 01 00 FE 42 01 12 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: D1 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: D1 01 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: D1 01 00 FE 42 00 11 [11:13:05]Write to MH i2c: 01 00 00 FF 42 41 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:06]OFD Sender: No OFD packet to send [11:13:06]*** Cut start [11:13:06]*** Partial cut [11:13:06]*** CUTSNS_PIN = 1 [11:13:06]*** CUTSNS_PIN = 0 [11:13:06]*** Brake cut motor [11:13:06]Read from MH i2c: 01 [11:13:06]MH_I2C_Read... [11:13:06]*** Stop cut motor [11:13:06]*** Cut end [11:13:06]Read from MH i2c: 01 07 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: 01 07 00 FF 42 00 00 00 00 00 FF 0F 56 [11:13:06]process_action close_receipt done [11:13:06]requested_data is exist [11:13:06]produce_requested_data [11:13:06]requested_item fm.sn is exist - process it [11:13:06]wFMCommunicate request_size=4 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 11 00 00 [11:13:06]Write to MH i2c: E2 08 00 00 43 80 11 00 00 00 00 00 00 BD [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:06]Read from MH i2c: E2 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 17 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 17 00 00 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [11:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:13:06]wFMCommunicate OK [11:13:06]requested_item fd.num is exist - process it [11:13:06]SAM_PROTO_GetFieldsCounters [11:13:06]wFMCommunicate request_size=4 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 13 00 00 [11:13:06]Write to MH i2c: E2 08 00 01 43 80 13 00 00 00 00 00 00 C0 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 62 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 62 00 01 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_GetFieldsCounters done [11:13:07]requested_item shift.num is exist - process it [11:13:07]requested_item shift.opened is exist - process it [11:13:07]req_shift_opened [11:13:07]FM_GetShiftState [11:13:07]SAM_PROTO_GetShiftState [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 13 01 00 [11:13:07]Write to MH i2c: E2 08 00 02 43 80 13 01 00 00 00 00 00 C2 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0E 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0E 00 02 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7C [11:13:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_GetShiftState done [11:13:07]FM_GetShiftState done [11:13:07]req_shift_opened done [11:13:07]requested_item shift.open_date is exist - process it [11:13:07]req_shift_open_date [11:13:07]req_shift_open_date done [11:13:07]produce_requested_data done [11:13:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31129,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:13:07]process_action_free close_receipt [11:13:07]json_value_free [11:13:07]json_value_free done [11:13:07]process_json_proto returns [11:13:07]Send response to host [11:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31129,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:13:07]free response buf [11:13:07]execute_script done [11:13:07]execute_script returns [11:13:07]free content buf [11:13:07]Sock 7.Close socket [11:13:07]Sock 7.Thread stoped [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:15]accept exits with 9 [11:15:15]New connection [11:15:15]New thread 3066899812 created [11:15:15]Thread 3067043172 joined [11:15:15]Waiting for new connection... [11:15:15] Sock 9.Parse request [11:15:15]Sock 9.Check first char [11:15:15]Sock 9.First char is OK [11:15:15]request: POST /json_proto HTTP/1.0 [11:15:15]Method: POST [11:15:15]URL: /json_proto [11:15:15]Method is POST - this is cgi request [11:15:15]url: /json_proto [11:15:15]query_string will be loaded in cgi processing [11:15:15]execute_cgi json_proto POST (null) [11:15:15]execute_cgi path=json_proto method=POST [11:15:15]POST find Content-Length [11:15:15]Host: 172.17.51.3:8080 [11:15:15]Content-Length: 677 [11:15:15]Content-Type: application/json [11:15:15] [11:15:15]POST finish read [11:15:15]Found Content-Length = 677 [11:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:15]execute_script... [11:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:15]POST & json_proto [11:15:15]process_json_proto [11:15:15]json parsed OK: [11:15:15]protocol is kg_v1.0 [11:15:15]action value=close_receipt [11:15:15]process_action close_receipt [11:15:15]cmd_close_receipt [11:15:15]MH_GetDate [11:15:15]Write to MH i2c: F0 00 00 03 43 35 [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: F0 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: F0 09 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: F0 09 00 03 43 00 C9 DA 18 67 04 C1 95 66 20 [11:15:15]GetLastDocTimeStamp 1729681989 [11:15:15]current date 1729682121 [11:15:15]FM_GetShiftState [11:15:15]SAM_PROTO_GetShiftState [11:15:15]wFMCommunicate request_size=4 [11:15:15]MH_SAM_APDU [11:15:15]CAPDU: 80 13 01 00 [11:15:15]Write to MH i2c: E2 08 00 04 43 80 13 01 00 00 00 00 00 C4 [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:15]Read from MH i2c: E2 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 0E 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 0E 00 04 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7E [11:15:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:15:15]wFMCommunicate OK [11:15:15]SAM_PROTO_GetShiftState done [11:15:15]FM_GetShiftState done [11:15:15]opened in 1729643755 [11:15:15]opened+sec_in_day 1729730155 [11:15:15]quantity*price = 20003 [11:15:15]sum+1 = 20004 [11:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 74 23.10.2024 11:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31130 ФПД: 196819313808607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111521&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31130&fm=196819313808607&tin=02508201610067®Number=0000000000186857&sum=20000 [11:15:16]StoreToDocumentArchive [11:15:16]shift 117 fd 31130 [11:15:16]save to /storage/0117/doc_00031130 [11:15:16]save last doc name /storage/0117/doc_00031130 to /storage/kkm_last_doc_name [11:15:16]save OK [11:15:16]Clear old archive folders... [11:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:16]tlvbuf is 00D2B760 [11:15:16]SAM_PROTO_ClearQueue [11:15:16]wFMCommunicate request_size=4 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 09 00 00 [11:15:16]Write to MH i2c: E2 08 00 11 43 80 09 00 00 00 00 00 00 C6 [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 11 43 00 90 00 C8 [11:15:16]RAPDU: 90 00 [11:15:16]wFMCommunicate OK [11:15:16]SAM_PROTO_ClearQueue done [11:15:16]KKMCreateOFDPacket [11:15:16]OFDProtocolAddRootSTLVToBuf [11:15:16]FM_MakeSignedData [11:15:16]FM_MakeSignedData [11:15:16]SAM_PROTO_SignData [11:15:16]wFMCommunicate request_size=4 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 0D 01 02 [11:15:16]Write to MH i2c: E2 08 00 12 43 80 0D 01 02 00 00 00 00 CE [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 12 43 00 90 00 C9 [11:15:16]RAPDU: 90 00 [11:15:16]wFMCommunicate OK [11:15:16]wFMCommunicate request_size=255 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C9 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 79 00 00 35 04 06 00 B3 [11:15:16]Write to MH i2c: E2 02 01 13 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C9 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 79 00 00 35 04 06 00 B3 00 00 C8 [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [11:15:16]RAPDU: 90 00 [11:15:16]wFMCommunicate OK [11:15:16]wFMCommunicate request_size=10 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 0D 02 02 05 01 91 48 D4 DF [11:15:16]Write to MH i2c: E2 0D 00 14 43 80 0D 02 02 05 00 01 91 48 D4 DF 00 00 68 [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [11:15:16]RAPDU: 90 00 [11:15:16]wFMCommunicate OK [11:15:16]wFMCommunicate request_size=4 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 0D 03 02 [11:15:16]Write to MH i2c: E2 08 00 15 43 80 0D 03 02 00 00 00 00 D3 [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 0B 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 0B 00 15 43 00 DC 42 B5 32 0E B3 8A 36 90 00 5A [11:15:16]RAPDU: DC 42 B5 32 0E B3 8A 36 90 00 [11:15:16]wFMCommunicate OK [11:15:16]SAM_PROTO_SignData done [11:15:16]FM_MakeSignedData done [11:15:16]CreateOFDProtocolMessage [11:15:16]wFMCommunicate request_size=4 [11:15:16]MH_SAM_APDU [11:15:16]CAPDU: 80 11 00 00 [11:15:16]Write to MH i2c: E2 08 00 16 43 80 11 00 00 00 00 00 00 D3 [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 17 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 17 00 16 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [11:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:15:16]wFMCommunicate OK [11:15:16]CreateOFDProtocolMessage done [11:15:16]OFDSenderStorePacket 31130 [11:15:16]StoreOFDPacket docnum=31130 [11:15:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 5B 07 01 DD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C9 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 79 00 00 35 04 06 00 B3 01 91 48 D4 DF DC 42 B5 32 0E B3 8A 36 [11:15:16]CheckFolder [11:15:16]dirname=/storage/ofd_packets [11:15:16]CheckFolder done [11:15:16]ProducePacketName [11:15:16]name=ofd_packets/00031130 [11:15:16]NVStorageSaveData ofd_packets/00031130 [11:15:16]File name is /storage/ofd_packets/00031130 [11:15:16]Write 301 bytes [11:15:16]NVStorageSaveData done [11:15:16]OFDSenderStorePacket done [11:15:16]KKMCreateOFDPacket done [11:15:16]NVStorageSaveData kkm_last_timestamp [11:15:16]File name is /storage/kkm_last_timestamp [11:15:16]Write 4 bytes [11:15:16]NVStorageSaveData done [11:15:16]ExternCall_PrintAddStr [11:15:16]wPrintStart [11:15:16]Write to MH i2c: 01 00 00 17 43 5A [11:15:16]Write i2c OK [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: 01 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: 01 07 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: 01 07 00 17 43 00 00 00 00 00 FF 0F 6F [11:15:16]RasterBufferAndPrint [11:15:16]line Счет N : (1)343571 [11:15:16]line ИНН: 02508201610067 [11:15:16]line Контрольно-Кассовый Чек [11:15:16]line ПРОДАЖА [11:15:16]line ТРК (МРК, ГНК) : 63 [11:15:16]line Товар: 2710124130 [11:15:16]line Аи-92-К-2 [11:15:16]line 2.990 * 66.90 [11:15:16]line = 200.03 [11:15:16]line НДС 12% НСП 1% [11:15:16]line > о реализуемом товаре [11:15:16]line ОКРУГЛЕНИЕ: -0.03 [11:15:16]line ИТОГО: 200.00 [11:15:16]line Внесено: 200.00 [11:15:16]line СДАЧА: 0.00 [11:15:16]line НСП 1% : 1.77 [11:15:16]line НДС 12% : 21.24 [11:15:16]line Наличными: 200.00 [11:15:16]line Безнал.: 0.00 [11:15:16]line Место: АЗС № 78 "Партнер Нефть" [11:15:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:15:16]line СНО: Общий режим [11:15:16]line Чек 74 23.10.2024 11:15 [11:15:16]line Смена: 117 ФФД: 1.0 [11:15:16]line ЗНМ: 0300000137 [11:15:16]line РНМ: 0000000000186857 [11:15:16]line Версия ККМ: v1.0 [11:15:16]line ФМ: 0000000002094219 [11:15:16]line ФД: 31130 [11:15:16]line ФПД: 196819313808607 [11:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111521&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31130&fm=196819313808607&tin=02508201610067®Number=0000000000186857&sum=20000 [11:15:17]OFD Sender: Processing packet 31130 [packets to send 11, broken 10] [11:15:17]ProducePacketName [11:15:17]name=ofd_packets/00031130 [11:15:17]OFD Sender: To server: pG, [11:15:17]CommunicateWithHost lk.salyk.kg:30040 [11:15:17]ConnectInit lk.salyk.kg [11:15:17]written 0, free lines is 4095 [11:15:17]Connected sock=7 [11:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 5B 07 01 DD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C9 DA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 79 00 00 35 04 06 00 B3 01 91 48 D4 DF DC 42 B5 32 0E B3 8A 36 [11:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B7 00 47 00 A8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 79 00 00 F4 03 04 00 43 85 18 67 B6 04 01 00 00 C7 31 E3 26 F5 70 53 98 [11:15:17]CommunicateWithHost err = 0 [11:15:17]CheckOFDResponse [11:15:17]1017 (14) - 77093643461234 [11:15:17]1041 (16) - 0000000002094219 [11:15:17]1040 (4) - 31130 [11:15:17]1012 (4) - 23.10.2024 05:10 [11:15:17]1206 (1) - 0 [11:15:17]OFD Sender: Remove packet 31130 [11:15:17]ProducePacketName [11:15:17]name=ofd_packets/00031130 [11:15:17]NVStorageDeleteData [11:15:17]Write to MH i2c: 01 00 00 42 43 85 [11:15:17]Write i2c OK [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: 01 [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: 01 07 00 [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: 01 07 00 42 43 00 00 00 00 00 03 0D 9C [11:15:17]RasterBufferAndPrint [11:15:17]line [11:15:17]line [11:15:17]line [11:15:17]line [11:15:17]line [11:15:17]written 0, free lines is 3337 [11:15:17]MH_Cut [11:15:17]Write to MH i2c: D1 01 00 49 43 01 5E [11:15:17]Write i2c OK [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: D1 [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: D1 01 00 [11:15:17]MH_I2C_Read... [11:15:17]Read from MH i2c: D1 01 00 49 43 00 5D [11:15:17]Write to MH i2c: 01 00 00 4A 43 8D [11:15:17]Write i2c OK [11:15:17]MH_I2C_Read... [11:15:18]OFD Sender: No OFD packet to send [11:15:18]*** Cut start [11:15:18]*** Partial cut [11:15:18]*** CUTSNS_PIN = 1 [11:15:18]*** CUTSNS_PIN = 0 [11:15:18]*** Brake cut motor [11:15:18]Read from MH i2c: 01 [11:15:18]MH_I2C_Read... [11:15:18]*** Stop cut motor [11:15:18]*** Cut end [11:15:18]Read from MH i2c: 01 07 00 [11:15:18]MH_I2C_Read... [11:15:19]Read from MH i2c: 01 07 00 4A 43 00 00 00 00 00 FF 0F A2 [11:15:19]process_action close_receipt done [11:15:19]requested_data is exist [11:15:19]produce_requested_data [11:15:19]requested_item fm.sn is exist - process it [11:15:19]wFMCommunicate request_size=4 [11:15:19]MH_SAM_APDU [11:15:19]CAPDU: 80 11 00 00 [11:15:19]Write to MH i2c: E2 08 00 4B 43 80 11 00 00 00 00 00 00 08 [11:15:19]Write i2c OK [11:15:19]MH_I2C_Read... [11:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:19]Read from MH i2c: E2 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 17 00 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 17 00 4B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [11:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:15:19]wFMCommunicate OK [11:15:19]requested_item fd.num is exist - process it [11:15:19]SAM_PROTO_GetFieldsCounters [11:15:19]wFMCommunicate request_size=4 [11:15:19]MH_SAM_APDU [11:15:19]CAPDU: 80 13 00 00 [11:15:19]Write to MH i2c: E2 08 00 4C 43 80 13 00 00 00 00 00 00 0B [11:15:19]Write i2c OK [11:15:19]MH_I2C_Read... [11:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:19]Read from MH i2c: E2 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 62 00 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 62 00 4C 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [11:15:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:19]wFMCommunicate OK [11:15:19]SAM_PROTO_GetFieldsCounters done [11:15:19]requested_item shift.num is exist - process it [11:15:19]requested_item shift.opened is exist - process it [11:15:19]req_shift_opened [11:15:19]FM_GetShiftState [11:15:19]SAM_PROTO_GetShiftState [11:15:19]wFMCommunicate request_size=4 [11:15:19]MH_SAM_APDU [11:15:19]CAPDU: 80 13 01 00 [11:15:19]Write to MH i2c: E2 08 00 4D 43 80 13 01 00 00 00 00 00 0D [11:15:19]Write i2c OK [11:15:19]MH_I2C_Read... [11:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:19]Read from MH i2c: E2 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 0E 00 [11:15:19]MH_I2C_Read... [11:15:19]Read from MH i2c: E2 0E 00 4D 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C7 [11:15:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:15:19]wFMCommunicate OK [11:15:19]SAM_PROTO_GetShiftState done [11:15:19]FM_GetShiftState done [11:15:19]req_shift_opened done [11:15:19]requested_item shift.open_date is exist - process it [11:15:19]req_shift_open_date [11:15:19]req_shift_open_date done [11:15:19]produce_requested_data done [11:15:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31130,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:15:19]process_action_free close_receipt [11:15:19]json_value_free [11:15:19]json_value_free done [11:15:19]process_json_proto returns [11:15:19]Send response to host [11:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31130,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:15:19]free response buf [11:15:19]execute_script done [11:15:19]execute_script returns [11:15:19]free content buf [11:15:19]Sock 9.Close socket [11:15:19]Sock 9.Thread stoped [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]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:01]accept exits with 10 [11:17:01]New connection [11:17:01]New thread 3067043172 created [11:17:01]Thread 3066899812 joined [11:17:01]Waiting for new connection... [11:17:01] Sock 10.Parse request [11:17:01]Sock 10.Check first char [11:17:01]Sock 10.First char is OK [11:17:01]request: POST /json_proto HTTP/1.0 [11:17:01]Method: POST [11:17:01]URL: /json_proto [11:17:01]Method is POST - this is cgi request [11:17:01]url: /json_proto [11:17:01]query_string will be loaded in cgi processing [11:17:01]execute_cgi json_proto POST (null) [11:17:01]execute_cgi path=json_proto method=POST [11:17:01]POST find Content-Length [11:17:01]Host: 172.17.51.3:8080 [11:17:01]Content-Length: 677 [11:17:01]Content-Type: application/json [11:17:01] [11:17:01]POST finish read [11:17:01]Found Content-Length = 677 [11:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:01]execute_script... [11:17:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:01]POST & json_proto [11:17:01]process_json_proto [11:17:01]json parsed OK: [11:17:01]protocol is kg_v1.0 [11:17:01]action value=close_receipt [11:17:01]process_action close_receipt [11:17:01]cmd_close_receipt [11:17:01]MH_GetDate [11:17:01]Write to MH i2c: F0 00 00 4E 43 80 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 09 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: F0 09 00 4E 43 00 33 DB 18 67 04 C1 95 66 D6 [11:17:01]GetLastDocTimeStamp 1729682121 [11:17:01]current date 1729682227 [11:17:01]FM_GetShiftState [11:17:01]SAM_PROTO_GetShiftState [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 13 01 00 [11:17:01]Write to MH i2c: E2 08 00 4F 43 80 13 01 00 00 00 00 00 0F [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 0E 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 0E 00 4F 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C9 [11:17:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:17:01]wFMCommunicate OK [11:17:01]SAM_PROTO_GetShiftState done [11:17:01]FM_GetShiftState done [11:17:01]opened in 1729643755 [11:17:01]opened+sec_in_day 1729730155 [11:17:01]quantity*price = 40006 [11:17:01]sum+1 = 40007 [11:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 75 23.10.2024 11:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31131 ФПД: 195850551915681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31131&fm=195850551915681&tin=02508201610067®Number=0000000000186857&sum=40000 [11:17:02]StoreToDocumentArchive [11:17:02]shift 117 fd 31131 [11:17:02]save to /storage/0117/doc_00031131 [11:17:02]save last doc name /storage/0117/doc_00031131 to /storage/kkm_last_doc_name [11:17:02]save OK [11:17:02]Clear old archive folders... [11:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:02]tlvbuf is 00D2B720 [11:17:02]SAM_PROTO_ClearQueue [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 09 00 00 [11:17:02]Write to MH i2c: E2 08 00 5C 43 80 09 00 00 00 00 00 00 11 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 5C 43 00 90 00 13 [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]SAM_PROTO_ClearQueue done [11:17:02]KKMCreateOFDPacket [11:17:02]OFDProtocolAddRootSTLVToBuf [11:17:02]FM_MakeSignedData [11:17:02]FM_MakeSignedData [11:17:02]SAM_PROTO_SignData [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 01 02 [11:17:02]Write to MH i2c: E2 08 00 5D 43 80 0D 01 02 00 00 00 00 19 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 5D 43 00 90 00 14 [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]wFMCommunicate request_size=255 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 79 00 00 35 04 06 00 B2 [11:17:02]Write to MH i2c: E2 02 01 5E 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 79 00 00 35 04 06 00 B2 00 00 8C [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:03]OFD Sender: No OFD packet to send [11:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 5E 43 00 90 00 15 [11:17:03]RAPDU: 90 00 [11:17:03]wFMCommunicate OK [11:17:03]wFMCommunicate request_size=10 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 0D 02 02 05 20 02 93 74 A1 [11:17:03]Write to MH i2c: E2 0D 00 5F 43 80 0D 02 02 05 00 20 02 93 74 A1 00 00 F0 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 03 00 5F 43 00 90 00 16 [11:17:03]RAPDU: 90 00 [11:17:03]wFMCommunicate OK [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 0D 03 02 [11:17:03]Write to MH i2c: E2 08 00 60 43 80 0D 03 02 00 00 00 00 1E [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0B 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0B 00 60 43 00 6B 15 42 D2 62 CE D4 D3 90 00 8A [11:17:03]RAPDU: 6B 15 42 D2 62 CE D4 D3 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_SignData done [11:17:03]FM_MakeSignedData done [11:17:03]CreateOFDProtocolMessage [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 11 00 00 [11:17:03]Write to MH i2c: E2 08 00 61 43 80 11 00 00 00 00 00 00 1E [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 61 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [11:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:17:03]wFMCommunicate OK [11:17:03]CreateOFDProtocolMessage done [11:17:03]OFDSenderStorePacket 31131 [11:17:03]StoreOFDPacket docnum=31131 [11:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 05 07 01 47 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 79 00 00 35 04 06 00 B2 20 02 93 74 A1 6B 15 42 D2 62 CE D4 D3 [11:17:03]CheckFolder [11:17:03]dirname=/storage/ofd_packets [11:17:03]CheckFolder done [11:17:03]ProducePacketName [11:17:03]name=ofd_packets/00031131 [11:17:03]NVStorageSaveData ofd_packets/00031131 [11:17:03]File name is /storage/ofd_packets/00031131 [11:17:03]Write 301 bytes [11:17:03]NVStorageSaveData done [11:17:03]OFDSenderStorePacket done [11:17:03]KKMCreateOFDPacket done [11:17:03]NVStorageSaveData kkm_last_timestamp [11:17:03]File name is /storage/kkm_last_timestamp [11:17:03]Write 4 bytes [11:17:03]NVStorageSaveData done [11:17:03]ExternCall_PrintAddStr [11:17:03]wPrintStart [11:17:03]Write to MH i2c: 01 00 00 62 43 A5 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 62 43 00 00 00 00 00 FF 0F BA [11:17:03]RasterBufferAndPrint [11:17:03]line Счет N : (1)343573 [11:17:03]line ИНН: 02508201610067 [11:17:03]line Контрольно-Кассовый Чек [11:17:03]line ПРОДАЖА [11:17:03]line ТРК (МРК, ГНК) : 63 [11:17:03]line Товар: 2710124130 [11:17:03]line Аи-92-К-2 [11:17:03]line 5.980 * 66.90 [11:17:03]line = 400.06 [11:17:03]line НДС 12% НСП 1% [11:17:03]line > о реализуемом товаре [11:17:03]line ОКРУГЛЕНИЕ: -0.06 [11:17:03]line ИТОГО: 400.00 [11:17:03]line Внесено: 400.00 [11:17:03]line СДАЧА: 0.00 [11:17:03]line НСП 1% : 3.54 [11:17:03]line НДС 12% : 42.48 [11:17:03]line Наличными: 400.00 [11:17:03]line Безнал.: 0.00 [11:17:03]line Место: АЗС № 78 "Партнер Нефть" [11:17:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:17:03]line СНО: Общий режим [11:17:03]line Чек 75 23.10.2024 11:17 [11:17:03]line Смена: 117 ФФД: 1.0 [11:17:03]line ЗНМ: 0300000137 [11:17:03]line РНМ: 0000000000186857 [11:17:03]line Версия ККМ: v1.0 [11:17:03]line ФМ: 0000000002094219 [11:17:03]line ФД: 31131 [11:17:03]line ФПД: 195850551915681 [11:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31131&fm=195850551915681&tin=02508201610067®Number=0000000000186857&sum=40000 [11:17:03]OFD Sender: Processing packet 31131 [packets to send 11, broken 10] [11:17:03]ProducePacketName [11:17:03]name=ofd_packets/00031131 [11:17:03]OFD Sender: To server: pG, [11:17:03]CommunicateWithHost lk.salyk.kg:30040 [11:17:03]ConnectInit lk.salyk.kg [11:17:03]written 0, free lines is 4095 [11:17:03]Connected sock=9 [11:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 05 07 01 47 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 79 00 00 35 04 06 00 B2 20 02 93 74 A1 6B 15 42 D2 62 CE D4 D3 [11:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BE 3C 47 00 81 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 79 00 00 F4 03 04 00 AE 85 18 67 B6 04 01 00 00 81 3B 51 AA 56 16 15 32 [11:17:04]CommunicateWithHost err = 0 [11:17:04]CheckOFDResponse [11:17:04]1017 (14) - 77093643461234 [11:17:04]1041 (16) - 0000000002094219 [11:17:04]1040 (4) - 31131 [11:17:04]1012 (4) - 23.10.2024 05:12 [11:17:04]1206 (1) - 0 [11:17:04]OFD Sender: Remove packet 31131 [11:17:04]ProducePacketName [11:17:04]name=ofd_packets/00031131 [11:17:04]NVStorageDeleteData [11:17:04]Write to MH i2c: 01 00 00 8D 43 D0 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 8D 43 00 00 00 00 00 E6 0C C9 [11:17:04]RasterBufferAndPrint [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]written 0, free lines is 3309 [11:17:04]MH_Cut [11:17:04]Write to MH i2c: D1 01 00 94 43 01 A9 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 01 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 01 00 94 43 00 A8 [11:17:04]Write to MH i2c: 01 00 00 95 43 D8 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]OFD Sender: No OFD packet to send [11:17:04]*** Cut start [11:17:04]*** Partial cut [11:17:04]*** CUTSNS_PIN = 1 [11:17:04]*** CUTSNS_PIN = 0 [11:17:05]*** Brake cut motor [11:17:05]Read from MH i2c: 01 [11:17:05]MH_I2C_Read... [11:17:05]*** Stop cut motor [11:17:05]*** Cut end [11:17:05]Read from MH i2c: 01 07 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 FF 0F ED [11:17:05]process_action close_receipt done [11:17:05]requested_data is exist [11:17:05]produce_requested_data [11:17:05]requested_item fm.sn is exist - process it [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 11 00 00 [11:17:05]Write to MH i2c: E2 08 00 96 43 80 11 00 00 00 00 00 00 53 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 96 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [11:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:17:05]wFMCommunicate OK [11:17:05]requested_item fd.num is exist - process it [11:17:05]SAM_PROTO_GetFieldsCounters [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 00 00 [11:17:05]Write to MH i2c: E2 08 00 97 43 80 13 00 00 00 00 00 00 56 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 97 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetFieldsCounters done [11:17:05]requested_item shift.num is exist - process it [11:17:05]requested_item shift.opened is exist - process it [11:17:05]req_shift_opened [11:17:05]FM_GetShiftState [11:17:05]SAM_PROTO_GetShiftState [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 01 00 [11:17:05]Write to MH i2c: E2 08 00 98 43 80 13 01 00 00 00 00 00 58 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 98 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 12 [11:17:05]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetShiftState done [11:17:05]FM_GetShiftState done [11:17:05]req_shift_opened done [11:17:05]requested_item shift.open_date is exist - process it [11:17:05]req_shift_open_date [11:17:05]req_shift_open_date done [11:17:05]produce_requested_data done [11:17:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31131,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:17:05]process_action_free close_receipt [11:17:05]json_value_free [11:17:05]json_value_free done [11:17:05]process_json_proto returns [11:17:05]Send response to host [11:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31131,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:17:05]free response buf [11:17:05]execute_script done [11:17:05]execute_script returns [11:17:05]free content buf [11:17:05]Sock 10.Close socket [11:17:05]Sock 10.Thread stoped [11:17:06]accept exits with 7 [11:17:06]New connection [11:17:06]New thread 3066899812 created [11:17:06]Thread 3067043172 joined [11:17:06]Waiting for new connection... [11:17:06] Sock 7.Parse request [11:17:06]Sock 7.Check first char [11:17:06]Sock 7.First char is OK [11:17:06]request: POST /json_proto HTTP/1.0 [11:17:06]Method: POST [11:17:06]URL: /json_proto [11:17:06]Method is POST - this is cgi request [11:17:06]url: /json_proto [11:17:06]query_string will be loaded in cgi processing [11:17:06]execute_cgi json_proto POST (null) [11:17:06]execute_cgi path=json_proto method=POST [11:17:06]POST find Content-Length [11:17:06]Host: 172.17.51.3:8080 [11:17:06]Content-Length: 677 [11:17:06]Content-Type: application/json [11:17:06] [11:17:06]POST finish read [11:17:06]Found Content-Length = 677 [11:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:06]execute_script... [11:17:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:06]POST & json_proto [11:17:06]process_json_proto [11:17:06]json parsed OK: [11:17:06]protocol is kg_v1.0 [11:17:06]action value=close_receipt [11:17:06]process_action close_receipt [11:17:06]cmd_close_receipt [11:17:06]MH_GetDate [11:17:06]Write to MH i2c: F0 00 00 99 43 CB [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: F0 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: F0 09 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: F0 09 00 99 43 00 37 DB 18 67 04 C1 95 66 25 [11:17:06]GetLastDocTimeStamp 1729682227 [11:17:06]current date 1729682231 [11:17:06]FM_GetShiftState [11:17:06]SAM_PROTO_GetShiftState [11:17:06]wFMCommunicate request_size=4 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 13 01 00 [11:17:06]Write to MH i2c: E2 08 00 9A 43 80 13 01 00 00 00 00 00 5A [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:06]Read from MH i2c: E2 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 0E 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 0E 00 9A 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 14 [11:17:06]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:17:06]wFMCommunicate OK [11:17:06]SAM_PROTO_GetShiftState done [11:17:06]FM_GetShiftState done [11:17:06]opened in 1729643755 [11:17:06]opened+sec_in_day 1729730155 [11:17:06]quantity*price = 40006 [11:17:06]sum+1 = 40007 [11:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 76 23.10.2024 11:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31132 ФПД: 126386334241697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111712&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31132&fm=126386334241697&tin=02508201610067®Number=0000000000186857&sum=40000 [11:17:07]StoreToDocumentArchive [11:17:07]shift 117 fd 31132 [11:17:07]save to /storage/0117/doc_00031132 [11:17:07]save last doc name /storage/0117/doc_00031132 to /storage/kkm_last_doc_name [11:17:07]save OK [11:17:07]Clear old archive folders... [11:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:07]tlvbuf is 00F006C0 [11:17:07]SAM_PROTO_ClearQueue [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 09 00 00 [11:17:07]Write to MH i2c: E2 08 00 A7 43 80 09 00 00 00 00 00 00 5C [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 A7 43 00 90 00 5E [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_ClearQueue done [11:17:07]KKMCreateOFDPacket [11:17:07]OFDProtocolAddRootSTLVToBuf [11:17:07]FM_MakeSignedData [11:17:07]FM_MakeSignedData [11:17:07]SAM_PROTO_SignData [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 01 02 [11:17:07]Write to MH i2c: E2 08 00 A8 43 80 0D 01 02 00 00 00 00 64 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 A8 43 00 90 00 5F [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=255 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 79 00 00 35 04 06 00 72 [11:17:07]Write to MH i2c: E2 02 01 A9 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 79 00 00 35 04 06 00 72 00 00 9E [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=10 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 02 02 05 F2 9C 8E 93 A1 [11:17:07]Write to MH i2c: E2 0D 00 AA 43 80 0D 02 02 05 00 F2 9C 8E 93 A1 00 00 C1 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:08]Read from MH i2c: E2 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 03 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [11:17:08]RAPDU: 90 00 [11:17:08]wFMCommunicate OK [11:17:08]wFMCommunicate request_size=4 [11:17:08]MH_SAM_APDU [11:17:08]CAPDU: 80 0D 03 02 [11:17:08]Write to MH i2c: E2 08 00 AB 43 80 0D 03 02 00 00 00 00 69 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:08]Read from MH i2c: E2 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 0B 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 0B 00 AB 43 00 73 83 AF 28 06 D9 A9 58 90 00 17 [11:17:08]RAPDU: 73 83 AF 28 06 D9 A9 58 90 00 [11:17:08]wFMCommunicate OK [11:17:08]SAM_PROTO_SignData done [11:17:08]FM_MakeSignedData done [11:17:08]CreateOFDProtocolMessage [11:17:08]wFMCommunicate request_size=4 [11:17:08]MH_SAM_APDU [11:17:08]CAPDU: 80 11 00 00 [11:17:08]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:08]Read from MH i2c: E2 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 17 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [11:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:17:08]wFMCommunicate OK [11:17:08]CreateOFDProtocolMessage done [11:17:08]OFDSenderStorePacket 31132 [11:17:08]StoreOFDPacket docnum=31132 [11:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 87 06 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 79 00 00 35 04 06 00 72 F2 9C 8E 93 A1 73 83 AF 28 06 D9 A9 58 [11:17:08]CheckFolder [11:17:08]dirname=/storage/ofd_packets [11:17:08]CheckFolder done [11:17:08]ProducePacketName [11:17:08]name=ofd_packets/00031132 [11:17:08]NVStorageSaveData ofd_packets/00031132 [11:17:08]File name is /storage/ofd_packets/00031132 [11:17:08]Write 301 bytes [11:17:08]NVStorageSaveData done [11:17:08]OFDSenderStorePacket done [11:17:08]KKMCreateOFDPacket done [11:17:08]NVStorageSaveData kkm_last_timestamp [11:17:08]File name is /storage/kkm_last_timestamp [11:17:08]Write 4 bytes [11:17:08]NVStorageSaveData done [11:17:08]ExternCall_PrintAddStr [11:17:08]wPrintStart [11:17:08]Write to MH i2c: 01 00 00 AD 43 F0 [11:17:08]OFD Sender: Processing packet 31132 [packets to send 11, broken 10] [11:17:08]ProducePacketName [11:17:08]name=ofd_packets/00031132 [11:17:08]OFD Sender: To server: pG, [11:17:08]CommunicateWithHost lk.salyk.kg:30040 [11:17:08]ConnectInit lk.salyk.kg [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 AD 43 00 00 00 00 00 FF 0F 05 [11:17:08]RasterBufferAndPrint [11:17:08]line Счет N : (1)343572 [11:17:08]line ИНН: 02508201610067 [11:17:08]line Контрольно-Кассовый Чек [11:17:08]line ПРОДАЖА [11:17:08]line ТРК (МРК, ГНК) : 33 [11:17:08]line Товар: 2710124130 [11:17:08]line Аи-92-К-2 [11:17:08]line 5.980 * 66.90 [11:17:08]line = 400.06 [11:17:08]line НДС 12% НСП 1% [11:17:08]line > о реализуемом товаре [11:17:08]line ОКРУГЛЕНИЕ: -0.06 [11:17:08]line ИТОГО: 400.00 [11:17:08]line Внесено: 400.00 [11:17:08]line СДАЧА: 0.00 [11:17:08]line НСП 1% : 3.54 [11:17:08]line НДС 12% : 42.48 [11:17:08]line Наличными: 400.00 [11:17:08]line Безнал.: 0.00 [11:17:08]line Место: АЗС № 78 "Партнер Нефть" [11:17:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:17:08]line СНО: Общий режим [11:17:08]line Чек 76 23.10.2024 11:17 [11:17:08]line Смена: 117 ФФД: 1.0 [11:17:08]line ЗНМ: 0300000137 [11:17:08]line РНМ: 0000000000186857 [11:17:08]line Версия ККМ: v1.0 [11:17:08]line ФМ: 0000000002094219 [11:17:08]line ФД: 31132 [11:17:08]line ФПД: 126386334241697 [11:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111712&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31132&fm=126386334241697&tin=02508201610067®Number=0000000000186857&sum=40000 [11:17:08]Connected sock=10 [11:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 87 06 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 38 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 79 00 00 35 04 06 00 72 F2 9C 8E 93 A1 73 83 AF 28 06 D9 A9 58 [11:17:08]written 0, free lines is 4095 [11:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 C5 47 00 7E 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 32 30 39 34 32 31 39 10 04 04 00 9C 79 00 00 F4 03 04 00 B2 85 18 67 B6 04 01 00 00 E0 2A D1 5E 6D 67 8F 14 [11:17:08]CommunicateWithHost err = 0 [11:17:08]CheckOFDResponse [11:17:08]1017 (14) - 77093643461234 [11:17:08]1041 (16) - 0000000002094219 [11:17:08]1040 (4) - 31132 [11:17:08]1012 (4) - 23.10.2024 05:12 [11:17:08]1206 (1) - 0 [11:17:08]OFD Sender: Remove packet 31132 [11:17:08]ProducePacketName [11:17:08]name=ofd_packets/00031132 [11:17:08]NVStorageDeleteData [11:17:09]Write to MH i2c: 01 00 00 D8 43 1B [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: 01 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: 01 07 00 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: 01 07 00 D8 43 00 00 00 00 00 00 0D 2F [11:17:09]RasterBufferAndPrint [11:17:09]line [11:17:09]line [11:17:09]line [11:17:09]line [11:17:09]line [11:17:09]written 0, free lines is 3343 [11:17:09]MH_Cut [11:17:09]Write to MH i2c: D1 01 00 DF 43 01 F4 [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: D1 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: D1 01 00 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: D1 01 00 DF 43 00 F3 [11:17:09]Write to MH i2c: 01 00 00 E0 43 23 [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:09]OFD Sender: No OFD packet to send [11:17:09]*** Cut start [11:17:09]*** Partial cut [11:17:09]*** CUTSNS_PIN = 1 [11:17:09]*** CUTSNS_PIN = 0 [11:17:09]*** Brake cut motor [11:17:10]Read from MH i2c: 01 [11:17:10]MH_I2C_Read... [11:17:10]*** Stop cut motor [11:17:10]*** Cut end [11:17:10]Read from MH i2c: 01 07 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 FF 0F 38 [11:17:10]process_action close_receipt done [11:17:10]requested_data is exist [11:17:10]produce_requested_data [11:17:10]requested_item fm.sn is exist - process it [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 11 00 00 [11:17:10]Write to MH i2c: E2 08 00 E1 43 80 11 00 00 00 00 00 00 9E [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 17 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 17 00 E1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [11:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:17:10]wFMCommunicate OK [11:17:10]requested_item fd.num is exist - process it [11:17:10]SAM_PROTO_GetFieldsCounters [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 13 00 00 [11:17:10]Write to MH i2c: E2 08 00 E2 43 80 13 00 00 00 00 00 00 A1 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 62 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 62 00 E2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:10]wFMCommunicate OK [11:17:10]SAM_PROTO_GetFieldsCounters done [11:17:10]requested_item shift.num is exist - process it [11:17:10]requested_item shift.opened is exist - process it [11:17:10]req_shift_opened [11:17:10]FM_GetShiftState [11:17:10]SAM_PROTO_GetShiftState [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 13 01 00 [11:17:10]Write to MH i2c: E2 08 00 E3 43 80 13 01 00 00 00 00 00 A3 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 E3 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5D [11:17:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:17:10]wFMCommunicate OK [11:17:10]SAM_PROTO_GetShiftState done [11:17:10]FM_GetShiftState done [11:17:10]req_shift_opened done [11:17:10]requested_item shift.open_date is exist - process it [11:17:10]req_shift_open_date [11:17:10]req_shift_open_date done [11:17:10]produce_requested_data done [11:17:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31132,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:17:10]process_action_free close_receipt [11:17:10]json_value_free [11:17:10]json_value_free done [11:17:10]process_json_proto returns [11:17:10]Send response to host [11:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31132,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:17:10]free response buf [11:17:10]execute_script done [11:17:10]execute_script returns [11:17:10]free content buf [11:17:10]Sock 7.Close socket [11:17:10]Sock 7.Thread stoped [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:57]accept exits with 9 [11:18:57]New connection [11:18:57]New thread 3067043172 created [11:18:57]Thread 3066899812 joined [11:18:57]Waiting for new connection... [11:18:57] Sock 9.Parse request [11:18:57]Sock 9.Check first char [11:18:57]Sock 9.First char is OK [11:18:57]request: POST /json_proto HTTP/1.0 [11:18:57]Method: POST [11:18:57]URL: /json_proto [11:18:57]Method is POST - this is cgi request [11:18:57]url: /json_proto [11:18:57]query_string will be loaded in cgi processing [11:18:57]execute_cgi json_proto POST (null) [11:18:57]execute_cgi path=json_proto method=POST [11:18:57]POST find Content-Length [11:18:57]Host: 172.17.51.3:8080 [11:18:57]Content-Length: 677 [11:18:57]Content-Type: application/json [11:18:57] [11:18:57]POST finish read [11:18:57]Found Content-Length = 677 [11:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:57]execute_script... [11:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:57]POST & json_proto [11:18:57]process_json_proto [11:18:57]json parsed OK: [11:18:57]protocol is kg_v1.0 [11:18:57]action value=close_receipt [11:18:57]process_action close_receipt [11:18:57]cmd_close_receipt [11:18:57]MH_GetDate [11:18:57]Write to MH i2c: F0 00 00 E4 43 16 [11:18:57]Write i2c OK [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 09 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 09 00 E4 43 00 A7 DB 18 67 04 C1 95 66 E0 [11:18:57]GetLastDocTimeStamp 1729682232 [11:18:57]current date 1729682343 [11:18:57]FM_GetShiftState [11:18:57]SAM_PROTO_GetShiftState [11:18:57]wFMCommunicate request_size=4 [11:18:57]MH_SAM_APDU [11:18:57]CAPDU: 80 13 01 00 [11:18:57]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [11:18:57]Write i2c OK [11:18:57]MH_I2C_Read... [11:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:57]Read from MH i2c: E2 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5F [11:18:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:18:57]wFMCommunicate OK [11:18:57]SAM_PROTO_GetShiftState done [11:18:57]FM_GetShiftState done [11:18:57]opened in 1729643755 [11:18:57]opened+sec_in_day 1729730155 [11:18:57]quantity*price = 50041 [11:18:57]sum+1 = 50042 [11:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 77 23.10.2024 11:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31133 ФПД: 228742843552427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31133&fm=228742843552427&tin=02508201610067®Number=0000000000186857&sum=50000 [11:18:58]StoreToDocumentArchive [11:18:58]shift 117 fd 31133 [11:18:58]save to /storage/0117/doc_00031133 [11:18:58]save last doc name /storage/0117/doc_00031133 to /storage/kkm_last_doc_name [11:18:58]save OK [11:18:58]Clear old archive folders... [11:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:58]tlvbuf is B6F6E4F0 [11:18:58]SAM_PROTO_ClearQueue [11:18:58]wFMCommunicate request_size=4 [11:18:58]MH_SAM_APDU [11:18:58]CAPDU: 80 09 00 00 [11:18:58]Write to MH i2c: E2 08 00 F2 43 80 09 00 00 00 00 00 00 A7 [11:18:58]Write i2c OK [11:18:58]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 F2 43 00 90 00 A9 [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]SAM_PROTO_ClearQueue done [11:18:59]KKMCreateOFDPacket [11:18:59]OFDProtocolAddRootSTLVToBuf [11:18:59]FM_MakeSignedData [11:18:59]FM_MakeSignedData [11:18:59]SAM_PROTO_SignData [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 01 02 [11:18:59]Write to MH i2c: E2 08 00 F3 43 80 0D 01 02 00 00 00 00 AF [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 F3 43 00 90 00 AA [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]wFMCommunicate request_size=255 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 79 00 00 35 04 06 00 D0 [11:18:59]Write to MH i2c: E2 02 01 F4 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 79 00 00 35 04 06 00 D0 00 00 E9 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]wFMCommunicate request_size=10 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 02 02 05 0A 57 EF 52 AB [11:18:59]Write to MH i2c: E2 0D 00 F5 43 80 0D 02 02 05 00 0A 57 EF 52 AB 00 00 09 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 03 02 [11:18:59]Write to MH i2c: E2 08 00 F6 43 80 0D 03 02 00 00 00 00 B4 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:59]OFD Sender: No OFD packet to send [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 0B 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 0B 00 F6 43 00 CA B4 EC 02 3E AC 88 05 90 00 98 [11:18:59]RAPDU: CA B4 EC 02 3E AC 88 05 90 00 [11:18:59]wFMCommunicate OK [11:18:59]SAM_PROTO_SignData done [11:18:59]FM_MakeSignedData done [11:18:59]CreateOFDProtocolMessage [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 11 00 00 [11:18:59]Write to MH i2c: E2 08 00 F7 43 80 11 00 00 00 00 00 00 B4 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 17 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 17 00 F7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [11:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:18:59]wFMCommunicate OK [11:18:59]CreateOFDProtocolMessage done [11:18:59]OFDSenderStorePacket 31133 [11:18:59]StoreOFDPacket docnum=31133 [11:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 86 07 01 7C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 79 00 00 35 04 06 00 D0 0A 57 EF 52 AB CA B4 EC 02 3E AC 88 05 [11:18:59]CheckFolder [11:18:59]dirname=/storage/ofd_packets [11:18:59]CheckFolder done [11:18:59]ProducePacketName [11:18:59]name=ofd_packets/00031133 [11:18:59]NVStorageSaveData ofd_packets/00031133 [11:18:59]File name is /storage/ofd_packets/00031133 [11:18:59]Write 301 bytes [11:18:59]NVStorageSaveData done [11:18:59]OFDSenderStorePacket done [11:18:59]KKMCreateOFDPacket done [11:18:59]NVStorageSaveData kkm_last_timestamp [11:18:59]File name is /storage/kkm_last_timestamp [11:18:59]Write 4 bytes [11:18:59]NVStorageSaveData done [11:18:59]ExternCall_PrintAddStr [11:18:59]wPrintStart [11:18:59]Write to MH i2c: 01 00 00 F8 43 3B [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: 01 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: 01 07 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: 01 07 00 F8 43 00 00 00 00 00 FF 0F 50 [11:18:59]RasterBufferAndPrint [11:18:59]line Счет N : (1)343574 [11:18:59]line ИНН: 02508201610067 [11:18:59]line Контрольно-Кассовый Чек [11:18:59]line ПРОДАЖА [11:18:59]line ТРК (МРК, ГНК) : 53 [11:18:59]line Товар: 2710124130 [11:18:59]line Аи-92-К-2 [11:18:59]line 7.480 * 66.90 [11:18:59]line = 500.41 [11:18:59]line НДС 12% НСП 1% [11:18:59]line > о реализуемом товаре [11:18:59]line ОКРУГЛЕНИЕ: -0.41 [11:18:59]line ИТОГО: 500.00 [11:18:59]line Внесено: 500.00 [11:18:59]line СДАЧА: 0.00 [11:18:59]line НСП 1% : 4.43 [11:18:59]line НДС 12% : 53.14 [11:18:59]line Наличными: 500.00 [11:18:59]line Безнал.: 0.00 [11:18:59]line Место: АЗС № 78 "Партнер Нефть" [11:18:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:18:59]line СНО: Общий режим [11:18:59]line Чек 77 23.10.2024 11:19 [11:18:59]line Смена: 117 ФФД: 1.0 [11:18:59]line ЗНМ: 0300000137 [11:18:59]line РНМ: 0000000000186857 [11:18:59]line Версия ККМ: v1.0 [11:18:59]line ФМ: 0000000002094219 [11:18:59]line ФД: 31133 [11:18:59]line ФПД: 228742843552427 [11:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31133&fm=228742843552427&tin=02508201610067®Number=0000000000186857&sum=50000 [11:18:59]OFD Sender: Processing packet 31133 [packets to send 11, broken 10] [11:18:59]ProducePacketName [11:18:59]name=ofd_packets/00031133 [11:18:59]OFD Sender: To server: pG, [11:18:59]CommunicateWithHost lk.salyk.kg:30040 [11:18:59]ConnectInit lk.salyk.kg [11:18:59]written 0, free lines is 4095 [11:18:59]Connected sock=7 [11:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 86 07 01 7C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 79 00 00 35 04 06 00 D0 0A 57 EF 52 AB CA B4 EC 02 3E AC 88 05 [11:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E2 C3 47 00 E3 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 32 30 39 34 32 31 39 10 04 04 00 9D 79 00 00 F4 03 04 00 22 86 18 67 B6 04 01 00 00 A4 29 BD A8 CE F3 D4 F6 [11:19:00]CommunicateWithHost err = 0 [11:19:00]CheckOFDResponse [11:19:00]1017 (14) - 77093643461234 [11:19:00]1041 (16) - 0000000002094219 [11:19:00]1040 (4) - 31133 [11:19:00]1012 (4) - 23.10.2024 05:14 [11:19:00]1206 (1) - 0 [11:19:00]OFD Sender: Remove packet 31133 [11:19:00]ProducePacketName [11:19:00]name=ofd_packets/00031133 [11:19:00]NVStorageDeleteData [11:19:00]Write to MH i2c: 01 00 00 23 44 67 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: 01 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: 01 07 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: 01 07 00 23 44 00 00 00 00 00 FD 0C 77 [11:19:00]RasterBufferAndPrint [11:19:00]line [11:19:00]line [11:19:00]line [11:19:00]line [11:19:00]line [11:19:00]written 0, free lines is 3334 [11:19:00]MH_Cut [11:19:00]Write to MH i2c: D1 01 00 2A 44 01 40 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: D1 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: D1 01 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: D1 01 00 2A 44 00 3F [11:19:00]Write to MH i2c: 01 00 00 2B 44 6F [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]OFD Sender: No OFD packet to send [11:19:00]*** Cut start [11:19:00]*** Partial cut [11:19:00]*** CUTSNS_PIN = 1 [11:19:01]*** CUTSNS_PIN = 0 [11:19:01]*** Brake cut motor [11:19:01]Read from MH i2c: 01 [11:19:01]MH_I2C_Read... [11:19:01]*** Stop cut motor [11:19:01]*** Cut end [11:19:01]Read from MH i2c: 01 07 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 2B 44 00 00 00 00 00 FF 0F 84 [11:19:01]process_action close_receipt done [11:19:01]requested_data is exist [11:19:01]produce_requested_data [11:19:01]requested_item fm.sn is exist - process it [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 11 00 00 [11:19:01]Write to MH i2c: E2 08 00 2C 44 80 11 00 00 00 00 00 00 EA [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 2C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [11:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:19:01]wFMCommunicate OK [11:19:01]requested_item fd.num is exist - process it [11:19:01]SAM_PROTO_GetFieldsCounters [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 13 00 00 [11:19:01]Write to MH i2c: E2 08 00 2D 44 80 13 00 00 00 00 00 00 ED [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 62 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 62 00 2D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:01]wFMCommunicate OK [11:19:01]SAM_PROTO_GetFieldsCounters done [11:19:01]requested_item shift.num is exist - process it [11:19:01]requested_item shift.opened is exist - process it [11:19:01]req_shift_opened [11:19:01]FM_GetShiftState [11:19:01]SAM_PROTO_GetShiftState [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 13 01 00 [11:19:01]Write to MH i2c: E2 08 00 2E 44 80 13 01 00 00 00 00 00 EF [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0E 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0E 00 2E 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A9 [11:19:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:19:01]wFMCommunicate OK [11:19:01]SAM_PROTO_GetShiftState done [11:19:01]FM_GetShiftState done [11:19:01]req_shift_opened done [11:19:01]requested_item shift.open_date is exist - process it [11:19:01]req_shift_open_date [11:19:01]req_shift_open_date done [11:19:01]produce_requested_data done [11:19:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31133,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:19:01]process_action_free close_receipt [11:19:01]json_value_free [11:19:01]json_value_free done [11:19:01]process_json_proto returns [11:19:01]Send response to host [11:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31133,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:19:01]free response buf [11:19:01]execute_script done [11:19:01]execute_script returns [11:19:01]free content buf [11:19:01]Sock 9.Close socket [11:19:01]Sock 9.Thread stoped [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:28]accept exits with 10 [11:19:28]New connection [11:19:28]New thread 3066899812 created [11:19:28]Thread 3067043172 joined [11:19:28]Waiting for new connection... [11:19:28] Sock 10.Parse request [11:19:28]Sock 10.Check first char [11:19:28]Sock 10.First char is OK [11:19:28]request: POST /json_proto HTTP/1.0 [11:19:28]Method: POST [11:19:28]URL: /json_proto [11:19:28]Method is POST - this is cgi request [11:19:28]url: /json_proto [11:19:28]query_string will be loaded in cgi processing [11:19:28]execute_cgi json_proto POST (null) [11:19:28]execute_cgi path=json_proto method=POST [11:19:28]POST find Content-Length [11:19:28]Host: 172.17.51.3:8080 [11:19:28]Content-Length: 677 [11:19:28]Content-Type: application/json [11:19:28] [11:19:28]POST finish read [11:19:28]Found Content-Length = 677 [11:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:28]execute_script... [11:19:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:28]POST & json_proto [11:19:28]process_json_proto [11:19:28]json parsed OK: [11:19:28]protocol is kg_v1.0 [11:19:28]action value=close_receipt [11:19:28]process_action close_receipt [11:19:28]cmd_close_receipt [11:19:28]MH_GetDate [11:19:28]Write to MH i2c: F0 00 00 2F 44 62 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 09 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: F0 09 00 2F 44 00 C5 DB 18 67 04 C1 95 66 4A [11:19:28]GetLastDocTimeStamp 1729682343 [11:19:28]current date 1729682373 [11:19:28]FM_GetShiftState [11:19:28]SAM_PROTO_GetShiftState [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 13 01 00 [11:19:28]Write to MH i2c: E2 08 00 30 44 80 13 01 00 00 00 00 00 F1 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 30 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AB [11:19:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:19:28]wFMCommunicate OK [11:19:28]SAM_PROTO_GetShiftState done [11:19:28]FM_GetShiftState done [11:19:28]opened in 1729643755 [11:19:28]opened+sec_in_day 1729730155 [11:19:28]quantity*price = 30038 [11:19:28]sum+1 = 30039 [11:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 78 23.10.2024 11:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31134 ФПД: 272713758896973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111933&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31134&fm=272713758896973&tin=02508201610067®Number=0000000000186857&sum=30000 [11:19:29]StoreToDocumentArchive [11:19:29]shift 117 fd 31134 [11:19:29]save to /storage/0117/doc_00031134 [11:19:29]save last doc name /storage/0117/doc_00031134 to /storage/kkm_last_doc_name [11:19:29]save OK [11:19:29]Clear old archive folders... [11:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:29]tlvbuf is B6F6EEC0 [11:19:29]SAM_PROTO_ClearQueue [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 09 00 00 [11:19:29]Write to MH i2c: E2 08 00 3D 44 80 09 00 00 00 00 00 00 F3 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 3D 44 00 90 00 F5 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]SAM_PROTO_ClearQueue done [11:19:29]KKMCreateOFDPacket [11:19:29]OFDProtocolAddRootSTLVToBuf [11:19:29]FM_MakeSignedData [11:19:29]FM_MakeSignedData [11:19:29]SAM_PROTO_SignData [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 01 02 [11:19:29]Write to MH i2c: E2 08 00 3E 44 80 0D 01 02 00 00 00 00 FB [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 3E 44 00 90 00 F6 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=255 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C5 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 79 00 00 35 04 06 00 F8 [11:19:29]Write to MH i2c: E2 02 01 3F 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C5 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 79 00 00 35 04 06 00 F8 00 00 71 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 3F 44 00 90 00 F7 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=10 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 02 02 05 08 1E B9 73 4D [11:19:29]Write to MH i2c: E2 0D 00 40 44 80 0D 02 02 05 00 08 1E B9 73 4D 00 00 A7 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 03 00 40 44 00 90 00 F8 [11:19:29]RAPDU: 90 00 [11:19:29]wFMCommunicate OK [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 0D 03 02 [11:19:29]Write to MH i2c: E2 08 00 41 44 80 0D 03 02 00 00 00 00 00 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0B 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 0B 00 41 44 00 88 FF C3 A2 08 07 80 81 90 00 FD [11:19:29]RAPDU: 88 FF C3 A2 08 07 80 81 90 00 [11:19:29]wFMCommunicate OK [11:19:29]SAM_PROTO_SignData done [11:19:29]FM_MakeSignedData done [11:19:29]CreateOFDProtocolMessage [11:19:29]wFMCommunicate request_size=4 [11:19:29]MH_SAM_APDU [11:19:29]CAPDU: 80 11 00 00 [11:19:29]Write to MH i2c: E2 08 00 42 44 80 11 00 00 00 00 00 00 00 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:29]Read from MH i2c: E2 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 17 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: E2 17 00 42 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [11:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:19:29]wFMCommunicate OK [11:19:29]CreateOFDProtocolMessage done [11:19:29]OFDSenderStorePacket 31134 [11:19:29]StoreOFDPacket docnum=31134 [11:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 41 12 07 01 0C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C5 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 79 00 00 35 04 06 00 F8 08 1E B9 73 4D 88 FF C3 A2 08 07 80 81 [11:19:29]CheckFolder [11:19:29]dirname=/storage/ofd_packets [11:19:29]CheckFolder done [11:19:29]ProducePacketName [11:19:29]name=ofd_packets/00031134 [11:19:29]NVStorageSaveData ofd_packets/00031134 [11:19:29]File name is /storage/ofd_packets/00031134 [11:19:29]Write 301 bytes [11:19:29]NVStorageSaveData done [11:19:29]OFDSenderStorePacket done [11:19:29]KKMCreateOFDPacket done [11:19:29]NVStorageSaveData kkm_last_timestamp [11:19:29]File name is /storage/kkm_last_timestamp [11:19:29]Write 4 bytes [11:19:29]NVStorageSaveData done [11:19:29]ExternCall_PrintAddStr [11:19:29]wPrintStart [11:19:29]Write to MH i2c: 01 00 00 43 44 87 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 43 44 00 00 00 00 00 FF 0F 9C [11:19:29]RasterBufferAndPrint [11:19:29]line Счет N : (1)343575 [11:19:29]line ИНН: 02508201610067 [11:19:29]line Контрольно-Кассовый Чек [11:19:29]line ПРОДАЖА [11:19:29]line ТРК (МРК, ГНК) : 33 [11:19:29]line Товар: 2710124130 [11:19:29]line Аи-92-К-2 [11:19:29]line 4.490 * 66.90 [11:19:29]line = 300.38 [11:19:29]line НДС 12% НСП 1% [11:19:29]line > о реализуемом товаре [11:19:29]line ОКРУГЛЕНИЕ: -0.38 [11:19:29]line ИТОГО: 300.00 [11:19:29]line Внесено: 300.00 [11:19:29]line СДАЧА: 0.00 [11:19:29]line НСП 1% : 2.66 [11:19:29]line НДС 12% : 31.90 [11:19:29]line Наличными: 300.00 [11:19:29]line Безнал.: 0.00 [11:19:29]line Место: АЗС № 78 "Партнер Нефть" [11:19:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:19:29]line СНО: Общий режим [11:19:29]line Чек 78 23.10.2024 11:19 [11:19:29]line Смена: 117 ФФД: 1.0 [11:19:29]line ЗНМ: 0300000137 [11:19:29]line РНМ: 0000000000186857 [11:19:29]line Версия ККМ: v1.0 [11:19:29]line ФМ: 0000000002094219 [11:19:29]line ФД: 31134 [11:19:29]line ФПД: 272713758896973 [11:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111933&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31134&fm=272713758896973&tin=02508201610067®Number=0000000000186857&sum=30000 [11:19:30]OFD Sender: Processing packet 31134 [packets to send 11, broken 10] [11:19:30]ProducePacketName [11:19:30]name=ofd_packets/00031134 [11:19:30]OFD Sender: To server: pG, [11:19:30]CommunicateWithHost lk.salyk.kg:30040 [11:19:30]ConnectInit lk.salyk.kg [11:19:30]written 0, free lines is 4095 [11:19:30]Connected sock=9 [11:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 41 12 07 01 0C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C5 DB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 79 00 00 35 04 06 00 F8 08 1E B9 73 4D 88 FF C3 A2 08 07 80 81 [11:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 68 58 47 00 B7 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 79 00 00 F4 03 04 00 40 86 18 67 B6 04 01 00 00 84 28 4F DF A5 7C DD 4E [11:19:30]CommunicateWithHost err = 0 [11:19:30]CheckOFDResponse [11:19:30]1017 (14) - 77093643461234 [11:19:30]1041 (16) - 0000000002094219 [11:19:30]1040 (4) - 31134 [11:19:30]1012 (4) - 23.10.2024 05:14 [11:19:30]1206 (1) - 0 [11:19:30]OFD Sender: Remove packet 31134 [11:19:30]ProducePacketName [11:19:30]name=ofd_packets/00031134 [11:19:30]NVStorageDeleteData [11:19:30]Write to MH i2c: 01 00 00 6E 44 B2 [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: 01 07 00 6E 44 00 00 00 00 00 F3 0C B8 [11:19:30]RasterBufferAndPrint [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]line [11:19:30]written 0, free lines is 3322 [11:19:30]MH_Cut [11:19:30]Write to MH i2c: D1 01 00 75 44 01 8B [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 01 00 [11:19:30]MH_I2C_Read... [11:19:30]Read from MH i2c: D1 01 00 75 44 00 8A [11:19:30]Write to MH i2c: 01 00 00 76 44 BA [11:19:30]Write i2c OK [11:19:30]MH_I2C_Read... [11:19:30]OFD Sender: No OFD packet to send [11:19:31]*** Cut start [11:19:31]*** Partial cut [11:19:31]*** CUTSNS_PIN = 1 [11:19:31]*** CUTSNS_PIN = 0 [11:19:31]*** Brake cut motor [11:19:31]Read from MH i2c: 01 [11:19:31]MH_I2C_Read... [11:19:31]*** Stop cut motor [11:19:31]*** Cut end [11:19:31]Read from MH i2c: 01 07 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 76 44 00 00 00 00 00 FF 0F CF [11:19:31]process_action close_receipt done [11:19:31]requested_data is exist [11:19:31]produce_requested_data [11:19:31]requested_item fm.sn is exist - process it [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 11 00 00 [11:19:31]Write to MH i2c: E2 08 00 77 44 80 11 00 00 00 00 00 00 35 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 77 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [11:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:19:31]wFMCommunicate OK [11:19:31]requested_item fd.num is exist - process it [11:19:31]SAM_PROTO_GetFieldsCounters [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 13 00 00 [11:19:31]Write to MH i2c: E2 08 00 78 44 80 13 00 00 00 00 00 00 38 [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 62 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 62 00 78 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_GetFieldsCounters done [11:19:32]requested_item shift.num is exist - process it [11:19:32]requested_item shift.opened is exist - process it [11:19:32]req_shift_opened [11:19:32]FM_GetShiftState [11:19:32]SAM_PROTO_GetShiftState [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 13 01 00 [11:19:32]Write to MH i2c: E2 08 00 79 44 80 13 01 00 00 00 00 00 3A [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 79 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F4 [11:19:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_GetShiftState done [11:19:32]FM_GetShiftState done [11:19:32]req_shift_opened done [11:19:32]requested_item shift.open_date is exist - process it [11:19:32]req_shift_open_date [11:19:32]req_shift_open_date done [11:19:32]produce_requested_data done [11:19:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31134,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:19:32]process_action_free close_receipt [11:19:32]json_value_free [11:19:32]json_value_free done [11:19:32]process_json_proto returns [11:19:32]Send response to host [11:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31134,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:19:32]free response buf [11:19:32]execute_script done [11:19:32]execute_script returns [11:19:32]free content buf [11:19:32]Sock 10.Close socket [11:19:32]Sock 10.Thread stoped [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:16]accept exits with 7 [11:25:16]New connection [11:25:16]New thread 3067043172 created [11:25:16]Thread 3066899812 joined [11:25:16]Waiting for new connection... [11:25:16] Sock 7.Parse request [11:25:16]Sock 7.Check first char [11:25:16]Sock 7.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.51.3:8080 [11:25:16]Content-Length: 682 [11:25:16]Content-Type: application/json [11:25:16] [11:25:16]POST finish read [11:25:16]Found Content-Length = 682 [11:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 43.880, "sum" : 2935.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2935.00, "payments": [ { "type": 0, "sum" : 2935.00 } ] } , "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 : (1)343576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 43.880, "sum" : 2935.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2935.00, "payments": [ { "type": 0, "sum" : 2935.00 } ] } , "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 7A 44 AD [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 7A 44 00 22 DD 18 67 04 C1 95 66 F4 [11:25:16]GetLastDocTimeStamp 1729682373 [11:25:16]current date 1729682722 [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 7B 44 80 13 01 00 00 00 00 00 3C [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 7B 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F6 [11:25:16]RAPDU: 09 00 01 EB 44 18 67 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 1729643755 [11:25:16]opened+sec_in_day 1729730155 [11:25:16]quantity*price = 293557 [11:25:16]sum+1 = 293558 [11:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 2935.00 Внесено: 3000.00 СДАЧА: 65.00 НСП 1% : 25.98 НДС 12% : 311.74 Наличными: 2935.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 79 23.10.2024 11:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31135 ФПД: 251989311269799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31135&fm=251989311269799&tin=02508201610067®Number=0000000000186857&sum=293500 [11:25:18]StoreToDocumentArchive [11:25:18]shift 117 fd 31135 [11:25:18]save to /storage/0117/doc_00031135 [11:25:18]save last doc name /storage/0117/doc_00031135 to /storage/kkm_last_doc_name [11:25:18]save OK [11:25:18]Clear old archive folders... [11:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:18]tlvbuf is 00D67B50 [11:25:18]SAM_PROTO_ClearQueue [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 09 00 00 [11:25:18]Write to MH i2c: E2 08 00 88 44 80 09 00 00 00 00 00 00 3E [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 88 44 00 90 00 40 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_ClearQueue done [11:25:18]KKMCreateOFDPacket [11:25:18]OFDProtocolAddRootSTLVToBuf [11:25:18]FM_MakeSignedData [11:25:18]FM_MakeSignedData [11:25:18]SAM_PROTO_SignData [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 0D 01 02 [11:25:18]Write to MH i2c: E2 08 00 89 44 80 0D 01 02 00 00 00 00 46 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 89 44 00 90 00 41 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]wFMCommunicate request_size=255 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B5 7A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 7A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 79 00 00 00 00 07 04 06 00 7C 7A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 22 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 79 00 00 35 04 06 00 E5 [11:25:18]Write to MH i2c: E2 02 01 8A 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B5 7A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 7A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 79 00 00 00 00 07 04 06 00 7C 7A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 22 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 79 00 00 35 04 06 00 E5 00 00 76 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 8A 44 00 90 00 42 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]wFMCommunicate request_size=10 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 0D 02 02 05 2E D5 62 AB A7 [11:25:18]Write to MH i2c: E2 0D 00 8B 44 80 0D 02 02 05 00 2E D5 62 AB A7 00 00 0A [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [11:25:18]RAPDU: 90 00 [11:25:18]wFMCommunicate OK [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 0D 03 02 [11:25:18]Write to MH i2c: E2 08 00 8C 44 80 0D 03 02 00 00 00 00 4B [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0B 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0B 00 8C 44 00 10 AF F6 5E 7B 75 80 4A 90 00 19 [11:25:18]RAPDU: 10 AF F6 5E 7B 75 80 4A 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_SignData done [11:25:18]FM_MakeSignedData done [11:25:18]CreateOFDProtocolMessage [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 11 00 00 [11:25:18]Write to MH i2c: E2 08 00 8D 44 80 11 00 00 00 00 00 00 4B [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 17 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 17 00 8D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [11:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:25:18]wFMCommunicate OK [11:25:18]CreateOFDProtocolMessage done [11:25:18]OFDSenderStorePacket 31135 [11:25:18]StoreOFDPacket docnum=31135 [11:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 97 07 01 C2 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B5 7A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 7A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 79 00 00 00 00 07 04 06 00 7C 7A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 22 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 79 00 00 35 04 06 00 E5 2E D5 62 AB A7 10 AF F6 5E 7B 75 80 4A [11:25:18]CheckFolder [11:25:18]dirname=/storage/ofd_packets [11:25:18]CheckFolder done [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00031135 [11:25:18]NVStorageSaveData ofd_packets/00031135 [11:25:18]File name is /storage/ofd_packets/00031135 [11:25:18]Write 301 bytes [11:25:18]NVStorageSaveData done [11:25:18]OFDSenderStorePacket done [11:25:18]KKMCreateOFDPacket done [11:25:18]NVStorageSaveData kkm_last_timestamp [11:25:18]File name is /storage/kkm_last_timestamp [11:25:18]Write 4 bytes [11:25:18]NVStorageSaveData done [11:25:18]ExternCall_PrintAddStr [11:25:18]wPrintStart [11:25:18]Write to MH i2c: 01 00 00 8E 44 D2 [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 8E 44 00 00 00 00 00 FF 0F E7 [11:25:18]RasterBufferAndPrint [11:25:18]line Счет N : (1)343576 [11:25:18]line ИНН: 02508201610067 [11:25:18]line Контрольно-Кассовый Чек [11:25:18]line ПРОДАЖА [11:25:18]line ТРК (МРК, ГНК) : 43 [11:25:18]line Товар: 2710124130 [11:25:18]line Аи-92-К-2 [11:25:18]line 43.880 * 66.90 [11:25:18]line = 2935.57 [11:25:18]line НДС 12% НСП 1% [11:25:18]line > о реализуемом товаре [11:25:18]line ОКРУГЛЕНИЕ: -0.57 [11:25:18]line ИТОГО: 2935.00 [11:25:18]line Внесено: 3000.00 [11:25:18]line СДАЧА: 65.00 [11:25:18]line НСП 1% : 25.98 [11:25:18]line НДС 12% : 311.74 [11:25:18]line Наличными: 2935.00 [11:25:18]line Безнал.: 0.00 [11:25:18]line Место: АЗС № 78 "Партнер Нефть" [11:25:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:25:18]line СНО: Общий режим [11:25:18]line Чек 79 23.10.2024 11:25 [11:25:18]line Смена: 117 ФФД: 1.0 [11:25:18]line ЗНМ: 0300000137 [11:25:18]line РНМ: 0000000000186857 [11:25:18]line Версия ККМ: v1.0 [11:25:18]line ФМ: 0000000002094219 [11:25:18]line ФД: 31135 [11:25:18]line ФПД: 251989311269799 [11:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31135&fm=251989311269799&tin=02508201610067®Number=0000000000186857&sum=293500 [11:25:18]OFD Sender: Processing packet 31135 [packets to send 11, broken 10] [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00031135 [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:19]Connected sock=10 [11:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 97 07 01 C2 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 AB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B5 7A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 7A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 79 00 00 00 00 07 04 06 00 7C 7A 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 22 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 79 00 00 35 04 06 00 E5 2E D5 62 AB A7 10 AF F6 5E 7B 75 80 4A [11:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D 9F 47 00 7F 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 32 30 39 34 32 31 39 10 04 04 00 9F 79 00 00 F4 03 04 00 9D 87 18 67 B6 04 01 00 00 86 F5 D8 1B 4B 59 40 2F [11:25:19]CommunicateWithHost err = 0 [11:25:19]CheckOFDResponse [11:25:19]1017 (14) - 77093643461234 [11:25:19]1041 (16) - 0000000002094219 [11:25:19]1040 (4) - 31135 [11:25:19]1012 (4) - 23.10.2024 05:20 [11:25:19]1206 (1) - 0 [11:25:19]OFD Sender: Remove packet 31135 [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00031135 [11:25:19]NVStorageDeleteData [11:25:19]Write to MH i2c: 01 00 00 B9 44 FD [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 B9 44 00 00 00 00 00 FF 0C 0F [11:25:19]RasterBufferAndPrint [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]line [11:25:19]written 0, free lines is 3333 [11:25:19]MH_Cut [11:25:19]Write to MH i2c: D1 01 00 C0 44 01 D6 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 01 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: D1 01 00 C0 44 00 D5 [11:25:19]Write to MH i2c: 01 00 00 C1 44 05 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]OFD Sender: No OFD packet to send [11:25:20]*** Cut start [11:25:20]*** Partial cut [11:25:20]*** CUTSNS_PIN = 1 [11:25:20]*** CUTSNS_PIN = 0 [11:25:20]*** 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 C1 44 00 00 00 00 00 FF 0F 1A [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 C2 44 80 11 00 00 00 00 00 00 80 [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 C2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [11:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 C3 44 80 13 00 00 00 00 00 00 83 [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 C3 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [11:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 C4 44 80 13 01 00 00 00 00 00 85 [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 C4 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3F [11:25:20]RAPDU: 09 00 01 EB 44 18 67 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":"0000000002094219","fd.num":31135,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [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":"0000000002094219","fd.num":31135,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [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 7.Close socket [11:25:20]Sock 7.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:35]accept exits with 9 [11:27:35]New connection [11:27:35]New thread 3066899812 created [11:27:35]Thread 3067043172 joined [11:27:35]Waiting for new connection... [11:27:35] Sock 9.Parse request [11:27:35]Sock 9.Check first char [11:27:35]Sock 9.First char is OK [11:27:35]request: POST /json_proto HTTP/1.0 [11:27:35]Method: POST [11:27:35]URL: /json_proto [11:27:35]Method is POST - this is cgi request [11:27:35]url: /json_proto [11:27:35]query_string will be loaded in cgi processing [11:27:35]execute_cgi json_proto POST (null) [11:27:35]execute_cgi path=json_proto method=POST [11:27:35]POST find Content-Length [11:27:35]Host: 172.17.51.3:8080 [11:27:35]Content-Length: 677 [11:27:35]Content-Type: application/json [11:27:35] [11:27:35]POST finish read [11:27:35]Found Content-Length = 677 [11:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:35]execute_script... [11:27:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:35]POST & json_proto [11:27:35]process_json_proto [11:27:35]json parsed OK: [11:27:35]protocol is kg_v1.0 [11:27:35]action value=close_receipt [11:27:35]process_action close_receipt [11:27:35]cmd_close_receipt [11:27:35]MH_GetDate [11:27:35]Write to MH i2c: F0 00 00 C5 44 F8 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 09 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 09 00 C5 44 00 AD DD 18 67 04 C1 95 66 CA [11:27:35]GetLastDocTimeStamp 1729682722 [11:27:35]current date 1729682861 [11:27:35]FM_GetShiftState [11:27:35]SAM_PROTO_GetShiftState [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 13 01 00 [11:27:35]Write to MH i2c: E2 08 00 C6 44 80 13 01 00 00 00 00 00 87 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 C6 44 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 41 [11:27:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetShiftState done [11:27:35]FM_GetShiftState done [11:27:35]opened in 1729643755 [11:27:35]opened+sec_in_day 1729730155 [11:27:35]quantity*price = 50041 [11:27:35]sum+1 = 50042 [11:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 80 23.10.2024 11:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31136 ФПД: 88453623432328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112741&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31136&fm=88453623432328&tin=02508201610067®Number=0000000000186857&sum=50000 [11:27:36]StoreToDocumentArchive [11:27:36]shift 117 fd 31136 [11:27:36]save to /storage/0117/doc_00031136 [11:27:36]save last doc name /storage/0117/doc_00031136 to /storage/kkm_last_doc_name [11:27:36]save OK [11:27:36]Clear old archive folders... [11:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:36]tlvbuf is 00D65660 [11:27:36]SAM_PROTO_ClearQueue [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 09 00 00 [11:27:36]Write to MH i2c: E2 08 00 D3 44 80 09 00 00 00 00 00 00 89 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 D3 44 00 90 00 8B [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]SAM_PROTO_ClearQueue done [11:27:36]KKMCreateOFDPacket [11:27:36]OFDProtocolAddRootSTLVToBuf [11:27:36]FM_MakeSignedData [11:27:36]FM_MakeSignedData [11:27:36]SAM_PROTO_SignData [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 01 02 [11:27:36]Write to MH i2c: E2 08 00 D4 44 80 0D 01 02 00 00 00 00 91 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 D4 44 00 90 00 8C [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=255 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AD DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 79 00 00 35 04 06 00 50 [11:27:36]Write to MH i2c: E2 02 01 D5 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AD DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 79 00 00 35 04 06 00 50 00 00 59 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 D5 44 00 90 00 8D [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=10 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 02 02 05 72 B6 CD C4 88 [11:27:36]Write to MH i2c: E2 0D 00 D6 44 80 0D 02 02 05 00 72 B6 CD C4 88 00 00 DF [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 D6 44 00 90 00 8E [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 03 02 [11:27:36]Write to MH i2c: E2 08 00 D7 44 80 0D 03 02 00 00 00 00 96 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0B 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0B 00 D7 44 00 C5 24 1F FC 0D 01 0F 34 90 00 EC [11:27:37]RAPDU: C5 24 1F FC 0D 01 0F 34 90 00 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_SignData done [11:27:37]FM_MakeSignedData done [11:27:37]CreateOFDProtocolMessage [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 11 00 00 [11:27:37]Write to MH i2c: E2 08 00 D8 44 80 11 00 00 00 00 00 00 96 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 17 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 17 00 D8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [11:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:27:37]wFMCommunicate OK [11:27:37]CreateOFDProtocolMessage done [11:27:37]OFDSenderStorePacket 31136 [11:27:37]StoreOFDPacket docnum=31136 [11:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 67 5E 07 01 B0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AD DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 79 00 00 35 04 06 00 50 72 B6 CD C4 88 C5 24 1F FC 0D 01 0F 34 [11:27:37]CheckFolder [11:27:37]dirname=/storage/ofd_packets [11:27:37]CheckFolder done [11:27:37]ProducePacketName [11:27:37]name=ofd_packets/00031136 [11:27:37]NVStorageSaveData ofd_packets/00031136 [11:27:37]File name is /storage/ofd_packets/00031136 [11:27:37]Write 301 bytes [11:27:37]NVStorageSaveData done [11:27:37]OFDSenderStorePacket done [11:27:37]KKMCreateOFDPacket done [11:27:37]NVStorageSaveData kkm_last_timestamp [11:27:37]File name is /storage/kkm_last_timestamp [11:27:37]Write 4 bytes [11:27:37]NVStorageSaveData done [11:27:37]ExternCall_PrintAddStr [11:27:37]wPrintStart [11:27:37]Write to MH i2c: 01 00 00 D9 44 1D [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 D9 44 00 00 00 00 00 FF 0F 32 [11:27:37]RasterBufferAndPrint [11:27:37]line Счет N : (1)343577 [11:27:37]line ИНН: 02508201610067 [11:27:37]line Контрольно-Кассовый Чек [11:27:37]line ПРОДАЖА [11:27:37]line ТРК (МРК, ГНК) : 53 [11:27:37]line Товар: 2710124130 [11:27:37]line Аи-92-К-2 [11:27:37]line 7.480 * 66.90 [11:27:37]line = 500.41 [11:27:37]line НДС 12% НСП 1% [11:27:37]line > о реализуемом товаре [11:27:37]line ОКРУГЛЕНИЕ: -0.41 [11:27:37]line ИТОГО: 500.00 [11:27:37]line Внесено: 500.00 [11:27:37]line СДАЧА: 0.00 [11:27:37]line НСП 1% : 4.43 [11:27:37]line НДС 12% : 53.14 [11:27:37]line Наличными: 500.00 [11:27:37]line Безнал.: 0.00 [11:27:37]line Место: АЗС № 78 "Партнер Нефть" [11:27:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:27:37]line СНО: Общий режим [11:27:37]line Чек 80 23.10.2024 11:27 [11:27:37]line Смена: 117 ФФД: 1.0 [11:27:37]line ЗНМ: 0300000137 [11:27:37]line РНМ: 0000000000186857 [11:27:37]line Версия ККМ: v1.0 [11:27:37]line ФМ: 0000000002094219 [11:27:37]line ФД: 31136 [11:27:37]line ФПД: 88453623432328 [11:27:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112741&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31136&fm=88453623432328&tin=02508201610067®Number=0000000000186857&sum=50000 [11:27:37]OFD Sender: Processing packet 31136 [packets to send 11, broken 10] [11:27:37]ProducePacketName [11:27:37]name=ofd_packets/00031136 [11:27:37]OFD Sender: To server: pG, [11:27:37]CommunicateWithHost lk.salyk.kg:30040 [11:27:37]ConnectInit lk.salyk.kg [11:27:37]written 0, free lines is 4095 [11:27:37]Connected sock=11 [11:27:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 67 5E 07 01 B0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AD DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 79 00 00 35 04 06 00 50 72 B6 CD C4 88 C5 24 1F FC 0D 01 0F 34 [11:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 74 33 47 00 A9 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 32 30 39 34 32 31 39 10 04 04 00 A0 79 00 00 F4 03 04 00 27 88 18 67 B6 04 01 00 00 F5 48 0A 0E 14 C2 F2 BA [11:27:37]CommunicateWithHost err = 0 [11:27:37]CheckOFDResponse [11:27:37]1017 (14) - 77093643461234 [11:27:37]1041 (16) - 0000000002094219 [11:27:37]1040 (4) - 31136 [11:27:37]1012 (4) - 23.10.2024 05:22 [11:27:37]1206 (1) - 0 [11:27:37]OFD Sender: Remove packet 31136 [11:27:37]ProducePacketName [11:27:37]name=ofd_packets/00031136 [11:27:37]NVStorageDeleteData [11:27:37]Write to MH i2c: 01 00 00 04 45 49 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 04 45 00 00 00 00 00 F8 0C 54 [11:27:37]RasterBufferAndPrint [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]written 0, free lines is 3326 [11:27:37]MH_Cut [11:27:37]Write to MH i2c: D1 01 00 0B 45 01 22 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 01 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 01 00 0B 45 00 21 [11:27:37]Write to MH i2c: 01 00 00 0C 45 51 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:38]OFD Sender: No OFD packet to send [11:27:38]*** Cut start [11:27:38]*** Partial cut [11:27:38]*** CUTSNS_PIN = 1 [11:27:38]*** CUTSNS_PIN = 0 [11:27:38]*** Brake cut motor [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]*** Stop cut motor [11:27:39]*** Cut end [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 0C 45 00 00 00 00 00 FF 0F 66 [11:27:39]process_action close_receipt done [11:27:39]requested_data is exist [11:27:39]produce_requested_data [11:27:39]requested_item fm.sn is exist - process it [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 0D 45 80 11 00 00 00 00 00 00 CC [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 0D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:27:39]wFMCommunicate OK [11:27:39]requested_item fd.num is exist - process it [11:27:39]SAM_PROTO_GetFieldsCounters [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 00 00 [11:27:39]Write to MH i2c: E2 08 00 0E 45 80 13 00 00 00 00 00 00 CF [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 0E 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:27:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetFieldsCounters done [11:27:39]requested_item shift.num is exist - process it [11:27:39]requested_item shift.opened is exist - process it [11:27:39]req_shift_opened [11:27:39]FM_GetShiftState [11:27:39]SAM_PROTO_GetShiftState [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 01 00 [11:27:39]Write to MH i2c: E2 08 00 0F 45 80 13 01 00 00 00 00 00 D1 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 0F 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8B [11:27:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetShiftState done [11:27:39]FM_GetShiftState done [11:27:39]req_shift_opened done [11:27:39]requested_item shift.open_date is exist - process it [11:27:39]req_shift_open_date [11:27:39]req_shift_open_date done [11:27:39]produce_requested_data done [11:27:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31136,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:27:39]process_action_free close_receipt [11:27:39]json_value_free [11:27:39]json_value_free done [11:27:39]process_json_proto returns [11:27:39]Send response to host [11:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31136,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:27:39]free response buf [11:27:39]execute_script done [11:27:39]execute_script returns [11:27:39]free content buf [11:27:39]Sock 9.Close socket [11:27:39]Sock 9.Thread stoped [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:16]accept exits with 7 [11:28:16]New connection [11:28:16]New thread 3067043172 created [11:28:16]Thread 3066899812 joined [11:28:16]Waiting for new connection... [11:28:16] Sock 7.Parse request [11:28:16]Sock 7.Check first char [11:28:16]Sock 7.First char is OK [11:28:16]request: POST /json_proto HTTP/1.0 [11:28:16]Method: POST [11:28:16]URL: /json_proto [11:28:16]Method is POST - this is cgi request [11:28:16]url: /json_proto [11:28:16]query_string will be loaded in cgi processing [11:28:16]execute_cgi json_proto POST (null) [11:28:16]execute_cgi path=json_proto method=POST [11:28:16]POST find Content-Length [11:28:16]Host: 172.17.51.3:8080 [11:28:16]Content-Length: 678 [11:28:16]Content-Type: application/json [11:28:16] [11:28:16]POST finish read [11:28:16]Found Content-Length = 678 [11:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:16]execute_script... [11:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:16]POST & json_proto [11:28:16]process_json_proto [11:28:16]json parsed OK: [11:28:16]protocol is kg_v1.0 [11:28:16]action value=close_receipt [11:28:16]process_action close_receipt [11:28:16]cmd_close_receipt [11:28:16]MH_GetDate [11:28:16]Write to MH i2c: F0 00 00 10 45 44 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 10 45 00 D6 DD 18 67 04 C1 95 66 3F [11:28:16]GetLastDocTimeStamp 1729682861 [11:28:16]current date 1729682902 [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 11 45 80 13 01 00 00 00 00 00 D3 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 11 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8D [11:28:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]opened in 1729643755 [11:28:16]opened+sec_in_day 1729730155 [11:28:16]quantity*price = 70044 [11:28:16]sum+1 = 70045 [11:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 81 23.10.2024 11:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31137 ФПД: 108974010435592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112822&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31137&fm=108974010435592&tin=02508201610067®Number=0000000000186857&sum=70000 [11:28:17]StoreToDocumentArchive [11:28:17]shift 117 fd 31137 [11:28:17]save to /storage/0117/doc_00031137 [11:28:17]save last doc name /storage/0117/doc_00031137 to /storage/kkm_last_doc_name [11:28:17]save OK [11:28:17]Clear old archive folders... [11:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:17]tlvbuf is 00D62D10 [11:28:17]SAM_PROTO_ClearQueue [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 09 00 00 [11:28:17]Write to MH i2c: E2 08 00 1E 45 80 09 00 00 00 00 00 00 D5 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 1E 45 00 90 00 D7 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]SAM_PROTO_ClearQueue done [11:28:17]KKMCreateOFDPacket [11:28:17]OFDProtocolAddRootSTLVToBuf [11:28:17]FM_MakeSignedData [11:28:17]FM_MakeSignedData [11:28:17]SAM_PROTO_SignData [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 01 02 [11:28:17]Write to MH i2c: E2 08 00 1F 45 80 0D 01 02 00 00 00 00 DD [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 1F 45 00 90 00 D8 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=255 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D6 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 79 00 00 35 04 06 00 63 [11:28:17]Write to MH i2c: E2 02 01 20 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D6 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 79 00 00 35 04 06 00 63 00 00 F3 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 20 45 00 90 00 D9 [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=10 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 02 02 05 1C 7D 2E 88 08 [11:28:17]Write to MH i2c: E2 0D 00 21 45 80 0D 02 02 05 00 1C 7D 2E 88 08 00 00 41 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:17]Read from MH i2c: E2 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: E2 03 00 21 45 00 90 00 DA [11:28:17]RAPDU: 90 00 [11:28:17]wFMCommunicate OK [11:28:17]wFMCommunicate request_size=4 [11:28:17]MH_SAM_APDU [11:28:17]CAPDU: 80 0D 03 02 [11:28:17]Write to MH i2c: E2 08 00 22 45 80 0D 03 02 00 00 00 00 E2 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 0B 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 0B 00 22 45 00 4D 57 65 DB 73 78 D0 FE 90 00 80 [11:28:18]RAPDU: 4D 57 65 DB 73 78 D0 FE 90 00 [11:28:18]wFMCommunicate OK [11:28:18]SAM_PROTO_SignData done [11:28:18]FM_MakeSignedData done [11:28:18]CreateOFDProtocolMessage [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 11 00 00 [11:28:18]Write to MH i2c: E2 08 00 23 45 80 11 00 00 00 00 00 00 E2 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 23 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [11:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:28:18]wFMCommunicate OK [11:28:18]CreateOFDProtocolMessage done [11:28:18]OFDSenderStorePacket 31137 [11:28:18]StoreOFDPacket docnum=31137 [11:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 81 07 01 6A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D6 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 79 00 00 35 04 06 00 63 1C 7D 2E 88 08 4D 57 65 DB 73 78 D0 FE [11:28:18]CheckFolder [11:28:18]dirname=/storage/ofd_packets [11:28:18]CheckFolder done [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00031137 [11:28:18]NVStorageSaveData ofd_packets/00031137 [11:28:18]File name is /storage/ofd_packets/00031137 [11:28:18]Write 301 bytes [11:28:18]NVStorageSaveData done [11:28:18]OFDSenderStorePacket done [11:28:18]KKMCreateOFDPacket done [11:28:18]NVStorageSaveData kkm_last_timestamp [11:28:18]File name is /storage/kkm_last_timestamp [11:28:18]Write 4 bytes [11:28:18]NVStorageSaveData done [11:28:18]ExternCall_PrintAddStr [11:28:18]wPrintStart [11:28:18]Write to MH i2c: 01 00 00 24 45 69 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 24 45 00 00 00 00 00 FF 0F 7E [11:28:18]RasterBufferAndPrint [11:28:18]line Счет N : (1)343578 [11:28:18]line ИНН: 02508201610067 [11:28:18]line Контрольно-Кассовый Чек [11:28:18]line ПРОДАЖА [11:28:18]line ТРК (МРК, ГНК) : 33 [11:28:18]line Товар: 2710124130 [11:28:18]line Аи-92-К-2 [11:28:18]line 10.470 * 66.90 [11:28:18]line = 700.44 [11:28:18]line НДС 12% НСП 1% [11:28:18]line > о реализуемом товаре [11:28:18]line ОКРУГЛЕНИЕ: -0.44 [11:28:18]line ИТОГО: 700.00 [11:28:18]line Внесено: 700.00 [11:28:18]line СДАЧА: 0.00 [11:28:18]line НСП 1% : 6.20 [11:28:18]line НДС 12% : 74.38 [11:28:18]line Наличными: 700.00 [11:28:18]line Безнал.: 0.00 [11:28:18]line Место: АЗС № 78 "Партнер Нефть" [11:28:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:28:18]line СНО: Общий режим [11:28:18]line Чек 81 23.10.2024 11:28 [11:28:18]line Смена: 117 ФФД: 1.0 [11:28:18]line ЗНМ: 0300000137 [11:28:18]line РНМ: 0000000000186857 [11:28:18]line Версия ККМ: v1.0 [11:28:18]line ФМ: 0000000002094219 [11:28:18]line ФД: 31137 [11:28:18]line ФПД: 108974010435592 [11:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112822&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31137&fm=108974010435592&tin=02508201610067®Number=0000000000186857&sum=70000 [11:28:18]OFD Sender: Processing packet 31137 [packets to send 11, broken 10] [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00031137 [11:28:18]OFD Sender: To server: pG, [11:28:18]CommunicateWithHost lk.salyk.kg:30040 [11:28:18]ConnectInit lk.salyk.kg [11:28:18]written 0, free lines is 4095 [11:28:18]Connected sock=10 [11:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 56 81 07 01 6A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 D6 DD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 79 00 00 35 04 06 00 63 1C 7D 2E 88 08 4D 57 65 DB 73 78 D0 FE [11:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 82 47 00 6B 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 32 30 39 34 32 31 39 10 04 04 00 A1 79 00 00 F4 03 04 00 50 88 18 67 B6 04 01 00 00 0A B1 A8 9A 78 D7 3C B2 [11:28:18]CommunicateWithHost err = 0 [11:28:18]CheckOFDResponse [11:28:18]1017 (14) - 77093643461234 [11:28:18]1041 (16) - 0000000002094219 [11:28:18]1040 (4) - 31137 [11:28:18]1012 (4) - 23.10.2024 05:23 [11:28:18]1206 (1) - 0 [11:28:18]OFD Sender: Remove packet 31137 [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00031137 [11:28:18]NVStorageDeleteData [11:28:18]Write to MH i2c: 01 00 00 4F 45 94 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 4F 45 00 00 00 00 00 F8 0C 9F [11:28:18]RasterBufferAndPrint [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]line [11:28:18]written 0, free lines is 3330 [11:28:18]MH_Cut [11:28:18]Write to MH i2c: D1 01 00 56 45 01 6D [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 01 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: D1 01 00 56 45 00 6C [11:28:18]Write to MH i2c: 01 00 00 57 45 9C [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:19]OFD Sender: No OFD packet to send [11:28:19]*** Cut start [11:28:19]*** Partial cut [11:28:19]*** CUTSNS_PIN = 1 [11:28:19]*** CUTSNS_PIN = 0 [11:28:19]*** Brake cut motor [11:28:20]Read from MH i2c: 01 [11:28:20]MH_I2C_Read... [11:28:20]*** Stop cut motor [11:28:20]*** Cut end [11:28:20]Read from MH i2c: 01 07 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: 01 07 00 57 45 00 00 00 00 00 FF 0F B1 [11:28:20]process_action close_receipt done [11:28:20]requested_data is exist [11:28:20]produce_requested_data [11:28:20]requested_item fm.sn is exist - process it [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 11 00 00 [11:28:20]Write to MH i2c: E2 08 00 58 45 80 11 00 00 00 00 00 00 17 [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 58 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [11:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:28:20]wFMCommunicate OK [11:28:20]requested_item fd.num is exist - process it [11:28:20]SAM_PROTO_GetFieldsCounters [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 13 00 00 [11:28:20]Write to MH i2c: E2 08 00 59 45 80 13 00 00 00 00 00 00 1A [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 62 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 62 00 59 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [11:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:20]wFMCommunicate OK [11:28:20]SAM_PROTO_GetFieldsCounters done [11:28:20]requested_item shift.num is exist - process it [11:28:20]requested_item shift.opened is exist - process it [11:28:20]req_shift_opened [11:28:20]FM_GetShiftState [11:28:20]SAM_PROTO_GetShiftState [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 13 01 00 [11:28:20]Write to MH i2c: E2 08 00 5A 45 80 13 01 00 00 00 00 00 1C [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 0E 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 0E 00 5A 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D6 [11:28:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:28:20]wFMCommunicate OK [11:28:20]SAM_PROTO_GetShiftState done [11:28:20]FM_GetShiftState done [11:28:20]req_shift_opened done [11:28:20]requested_item shift.open_date is exist - process it [11:28:20]req_shift_open_date [11:28:20]req_shift_open_date done [11:28:20]produce_requested_data done [11:28:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31137,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:28:20]process_action_free close_receipt [11:28:20]json_value_free [11:28:20]json_value_free done [11:28:20]process_json_proto returns [11:28:20]Send response to host [11:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31137,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:28:20]free response buf [11:28:20]execute_script done [11:28:20]execute_script returns [11:28:20]free content buf [11:28:20]Sock 7.Close socket [11:28:20]Sock 7.Thread stoped [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:09]accept exits with 9 [11:33:09]New connection [11:33:09]New thread 3066899812 created [11:33:09]Thread 3067043172 joined [11:33:09]Waiting for new connection... [11:33:09] Sock 9.Parse request [11:33:09]Sock 9.Check first char [11:33:09]Sock 9.First char is OK [11:33:09]request: POST /json_proto HTTP/1.0 [11:33:09]Method: POST [11:33:09]URL: /json_proto [11:33:09]Method is POST - this is cgi request [11:33:09]url: /json_proto [11:33:09]query_string will be loaded in cgi processing [11:33:09]execute_cgi json_proto POST (null) [11:33:09]execute_cgi path=json_proto method=POST [11:33:09]POST find Content-Length [11:33:09]Host: 172.17.51.3:8080 [11:33:09]Content-Length: 678 [11:33:09]Content-Type: application/json [11:33:09] [11:33:09]POST finish read [11:33:09]Found Content-Length = 678 [11:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:09]execute_script... [11:33:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:09]POST & json_proto [11:33:09]process_json_proto [11:33:09]json parsed OK: [11:33:09]protocol is kg_v1.0 [11:33:09]action value=close_receipt [11:33:09]process_action close_receipt [11:33:09]cmd_close_receipt [11:33:09]MH_GetDate [11:33:09]Write to MH i2c: F0 00 00 5B 45 8F [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: F0 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: F0 09 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: F0 09 00 5B 45 00 FB DE 18 67 04 C1 95 66 B0 [11:33:09]GetLastDocTimeStamp 1729682902 [11:33:09]current date 1729683195 [11:33:09]FM_GetShiftState [11:33:09]SAM_PROTO_GetShiftState [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 01 00 [11:33:09]Write to MH i2c: E2 08 00 5C 45 80 13 01 00 00 00 00 00 1E [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 5C 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D8 [11:33:09]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetShiftState done [11:33:09]FM_GetShiftState done [11:33:09]opened in 1729643755 [11:33:09]opened+sec_in_day 1729730155 [11:33:09]quantity*price = 70044 [11:33:09]sum+1 = 70045 [11:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 82 23.10.2024 11:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31138 ФПД: 242120484934680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31138&fm=242120484934680&tin=02508201610067®Number=0000000000186857&sum=70000 [11:33:10]StoreToDocumentArchive [11:33:10]shift 117 fd 31138 [11:33:10]save to /storage/0117/doc_00031138 [11:33:10]save last doc name /storage/0117/doc_00031138 to /storage/kkm_last_doc_name [11:33:10]save OK [11:33:10]Clear old archive folders... [11:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:10]tlvbuf is 00D2BD80 [11:33:10]SAM_PROTO_ClearQueue [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 09 00 00 [11:33:10]Write to MH i2c: E2 08 00 69 45 80 09 00 00 00 00 00 00 20 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 69 45 00 90 00 22 [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]SAM_PROTO_ClearQueue done [11:33:10]KKMCreateOFDPacket [11:33:10]OFDProtocolAddRootSTLVToBuf [11:33:10]FM_MakeSignedData [11:33:10]FM_MakeSignedData [11:33:10]SAM_PROTO_SignData [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 0D 01 02 [11:33:10]Write to MH i2c: E2 08 00 6A 45 80 0D 01 02 00 00 00 00 28 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 6A 45 00 90 00 23 [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]wFMCommunicate request_size=255 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FB DE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 79 00 00 35 04 06 00 DC [11:33:10]Write to MH i2c: E2 02 01 6B 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FB DE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 79 00 00 35 04 06 00 DC 00 00 DF [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 6B 45 00 90 00 24 [11:33:11]RAPDU: 90 00 [11:33:11]wFMCommunicate OK [11:33:11]wFMCommunicate request_size=10 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 0D 02 02 05 35 11 7F 54 18 [11:33:11]Write to MH i2c: E2 0D 00 6C 45 80 0D 02 02 05 00 35 11 7F 54 18 00 00 66 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 03 00 6C 45 00 90 00 25 [11:33:11]RAPDU: 90 00 [11:33:11]wFMCommunicate OK [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 0D 03 02 [11:33:11]Write to MH i2c: E2 08 00 6D 45 80 0D 03 02 00 00 00 00 2D [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 0B 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 0B 00 6D 45 00 E4 27 F9 86 A6 5A 26 4C 90 00 2A [11:33:11]RAPDU: E4 27 F9 86 A6 5A 26 4C 90 00 [11:33:11]wFMCommunicate OK [11:33:11]SAM_PROTO_SignData done [11:33:11]FM_MakeSignedData done [11:33:11]CreateOFDProtocolMessage [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 11 00 00 [11:33:11]Write to MH i2c: E2 08 00 6E 45 80 11 00 00 00 00 00 00 2D [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 17 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 17 00 6E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [11:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:33:11]wFMCommunicate OK [11:33:11]CreateOFDProtocolMessage done [11:33:11]OFDSenderStorePacket 31138 [11:33:11]StoreOFDPacket docnum=31138 [11:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 75 07 01 25 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FB DE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 79 00 00 35 04 06 00 DC 35 11 7F 54 18 E4 27 F9 86 A6 5A 26 4C [11:33:11]CheckFolder [11:33:11]dirname=/storage/ofd_packets [11:33:11]CheckFolder done [11:33:11]ProducePacketName [11:33:11]name=ofd_packets/00031138 [11:33:11]NVStorageSaveData ofd_packets/00031138 [11:33:11]File name is /storage/ofd_packets/00031138 [11:33:11]Write 301 bytes [11:33:11]NVStorageSaveData done [11:33:11]OFDSenderStorePacket done [11:33:11]KKMCreateOFDPacket done [11:33:11]NVStorageSaveData kkm_last_timestamp [11:33:11]File name is /storage/kkm_last_timestamp [11:33:11]Write 4 bytes [11:33:11]NVStorageSaveData done [11:33:11]ExternCall_PrintAddStr [11:33:11]wPrintStart [11:33:11]Write to MH i2c: 01 00 00 6F 45 B4 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 07 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 07 00 6F 45 00 00 00 00 00 FF 0F C9 [11:33:11]RasterBufferAndPrint [11:33:11]line Счет N : (1)343579 [11:33:11]line ИНН: 02508201610067 [11:33:11]line Контрольно-Кассовый Чек [11:33:11]line ПРОДАЖА [11:33:11]line ТРК (МРК, ГНК) : 63 [11:33:11]line Товар: 2710124130 [11:33:11]line Аи-92-К-2 [11:33:11]line 10.470 * 66.90 [11:33:11]line = 700.44 [11:33:11]line НДС 12% НСП 1% [11:33:11]line > о реализуемом товаре [11:33:11]line ОКРУГЛЕНИЕ: -0.44 [11:33:11]line ИТОГО: 700.00 [11:33:11]line Внесено: 700.00 [11:33:11]line СДАЧА: 0.00 [11:33:11]line НСП 1% : 6.20 [11:33:11]line НДС 12% : 74.38 [11:33:11]line Наличными: 700.00 [11:33:11]line Безнал.: 0.00 [11:33:11]line Место: АЗС № 78 "Партнер Нефть" [11:33:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:33:11]line СНО: Общий режим [11:33:11]line Чек 82 23.10.2024 11:33 [11:33:11]line Смена: 117 ФФД: 1.0 [11:33:11]line ЗНМ: 0300000137 [11:33:11]line РНМ: 0000000000186857 [11:33:11]line Версия ККМ: v1.0 [11:33:11]line ФМ: 0000000002094219 [11:33:11]line ФД: 31138 [11:33:11]line ФПД: 242120484934680 [11:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31138&fm=242120484934680&tin=02508201610067®Number=0000000000186857&sum=70000 [11:33:11]OFD Sender: Processing packet 31138 [packets to send 11, broken 10] [11:33:11]ProducePacketName [11:33:11]name=ofd_packets/00031138 [11:33:11]OFD Sender: To server: pG, [11:33:11]CommunicateWithHost lk.salyk.kg:30040 [11:33:11]ConnectInit lk.salyk.kg [11:33:11]written 0, free lines is 4095 [11:33:11]Connected sock=11 [11:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 75 07 01 25 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FB DE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 79 00 00 35 04 06 00 DC 35 11 7F 54 18 E4 27 F9 86 A6 5A 26 4C [11:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 44 A3 47 00 D0 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 32 30 39 34 32 31 39 10 04 04 00 A2 79 00 00 F4 03 04 00 75 89 18 67 B6 04 01 00 00 CC B3 C4 E1 67 70 E4 CE [11:33:11]CommunicateWithHost err = 0 [11:33:11]CheckOFDResponse [11:33:11]1017 (14) - 77093643461234 [11:33:11]1041 (16) - 0000000002094219 [11:33:11]1040 (4) - 31138 [11:33:11]1012 (4) - 23.10.2024 05:28 [11:33:11]1206 (1) - 0 [11:33:11]OFD Sender: Remove packet 31138 [11:33:11]ProducePacketName [11:33:11]name=ofd_packets/00031138 [11:33:11]NVStorageDeleteData [11:33:12]Write to MH i2c: 01 00 00 9A 45 DF [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: 01 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: 01 07 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: 01 07 00 9A 45 00 00 00 00 00 E8 0C DA [11:33:12]RasterBufferAndPrint [11:33:12]line [11:33:12]line [11:33:12]line [11:33:12]line [11:33:12]line [11:33:12]written 0, free lines is 3311 [11:33:12]MH_Cut [11:33:12]Write to MH i2c: D1 01 00 A1 45 01 B8 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: D1 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: D1 01 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: D1 01 00 A1 45 00 B7 [11:33:12]Write to MH i2c: 01 00 00 A2 45 E7 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]OFD Sender: No OFD packet to send [11:33:12]*** Cut start [11:33:12]*** Partial cut [11:33:12]*** CUTSNS_PIN = 1 [11:33:12]*** CUTSNS_PIN = 0 [11:33:12]*** Brake cut motor [11:33:13]Read from MH i2c: 01 [11:33:13]MH_I2C_Read... [11:33:13]*** Stop cut motor [11:33:13]*** Cut end [11:33:13]Read from MH i2c: 01 07 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: 01 07 00 A2 45 00 00 00 00 00 FF 0F FC [11:33:13]process_action close_receipt done [11:33:13]requested_data is exist [11:33:13]produce_requested_data [11:33:13]requested_item fm.sn is exist - process it [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 11 00 00 [11:33:13]Write to MH i2c: E2 08 00 A3 45 80 11 00 00 00 00 00 00 62 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 17 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 17 00 A3 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [11:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:33:13]wFMCommunicate OK [11:33:13]requested_item fd.num is exist - process it [11:33:13]SAM_PROTO_GetFieldsCounters [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 13 00 00 [11:33:13]Write to MH i2c: E2 08 00 A4 45 80 13 00 00 00 00 00 00 65 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 62 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 62 00 A4 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:13]wFMCommunicate OK [11:33:13]SAM_PROTO_GetFieldsCounters done [11:33:13]requested_item shift.num is exist - process it [11:33:13]requested_item shift.opened is exist - process it [11:33:13]req_shift_opened [11:33:13]FM_GetShiftState [11:33:13]SAM_PROTO_GetShiftState [11:33:13]wFMCommunicate request_size=4 [11:33:13]MH_SAM_APDU [11:33:13]CAPDU: 80 13 01 00 [11:33:13]Write to MH i2c: E2 08 00 A5 45 80 13 01 00 00 00 00 00 67 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:13]Read from MH i2c: E2 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 0E 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: E2 0E 00 A5 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 21 [11:33:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:33:13]wFMCommunicate OK [11:33:13]SAM_PROTO_GetShiftState done [11:33:13]FM_GetShiftState done [11:33:13]req_shift_opened done [11:33:13]requested_item shift.open_date is exist - process it [11:33:13]req_shift_open_date [11:33:13]req_shift_open_date done [11:33:13]produce_requested_data done [11:33:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31138,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:33:13]process_action_free close_receipt [11:33:13]json_value_free [11:33:13]json_value_free done [11:33:13]process_json_proto returns [11:33:13]Send response to host [11:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31138,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:33:13]free response buf [11:33:13]execute_script done [11:33:13]execute_script returns [11:33:13]free content buf [11:33:13]Sock 9.Close socket [11:33:13]Sock 9.Thread stoped [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:26]accept exits with 7 [11:35:26]New connection [11:35:26]New thread 3067043172 created [11:35:26]Thread 3066899812 joined [11:35:26]Waiting for new connection... [11:35:26] Sock 7.Parse request [11:35:26]Sock 7.Check first char [11:35:26]Sock 7.First char is OK [11:35:26]request: POST /json_proto HTTP/1.0 [11:35:26]Method: POST [11:35:26]URL: /json_proto [11:35:26]Method is POST - this is cgi request [11:35:26]url: /json_proto [11:35:26]query_string will be loaded in cgi processing [11:35:26]execute_cgi json_proto POST (null) [11:35:26]execute_cgi path=json_proto method=POST [11:35:26]POST find Content-Length [11:35:26]Host: 172.17.51.3:8080 [11:35:26]Content-Length: 677 [11:35:26]Content-Type: application/json [11:35:26] [11:35:26]POST finish read [11:35:26]Found Content-Length = 677 [11:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:26]execute_script... [11:35:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:26]POST & json_proto [11:35:26]process_json_proto [11:35:26]json parsed OK: [11:35:26]protocol is kg_v1.0 [11:35:26]action value=close_receipt [11:35:26]process_action close_receipt [11:35:26]cmd_close_receipt [11:35:26]MH_GetDate [11:35:26]Write to MH i2c: F0 00 00 A6 45 DA [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 A6 45 00 84 DF 18 67 04 C1 95 66 85 [11:35:26]GetLastDocTimeStamp 1729683195 [11:35:26]current date 1729683332 [11:35:26]FM_GetShiftState [11:35:26]SAM_PROTO_GetShiftState [11:35:26]wFMCommunicate request_size=4 [11:35:26]MH_SAM_APDU [11:35:26]CAPDU: 80 13 01 00 [11:35:26]Write to MH i2c: E2 08 00 A7 45 80 13 01 00 00 00 00 00 69 [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:26]Read from MH i2c: E2 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 A7 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 23 [11:35:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:35:26]wFMCommunicate OK [11:35:26]SAM_PROTO_GetShiftState done [11:35:26]FM_GetShiftState done [11:35:26]opened in 1729643755 [11:35:26]opened+sec_in_day 1729730155 [11:35:26]quantity*price = 20003 [11:35:26]sum+1 = 20004 [11:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 83 23.10.2024 11:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31139 ФПД: 72137436243410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31139&fm=72137436243410&tin=02508201610067®Number=0000000000186857&sum=20000 [11:35:28]StoreToDocumentArchive [11:35:28]shift 117 fd 31139 [11:35:28]save to /storage/0117/doc_00031139 [11:35:28]save last doc name /storage/0117/doc_00031139 to /storage/kkm_last_doc_name [11:35:28]save OK [11:35:28]Clear old archive folders... [11:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:28]tlvbuf is 00DBB120 [11:35:28]SAM_PROTO_ClearQueue [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 09 00 00 [11:35:28]Write to MH i2c: E2 08 00 B4 45 80 09 00 00 00 00 00 00 6B [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 B4 45 00 90 00 6D [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_ClearQueue done [11:35:28]KKMCreateOFDPacket [11:35:28]OFDProtocolAddRootSTLVToBuf [11:35:28]FM_MakeSignedData [11:35:28]FM_MakeSignedData [11:35:28]SAM_PROTO_SignData [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 01 02 [11:35:28]Write to MH i2c: E2 08 00 B5 45 80 0D 01 02 00 00 00 00 73 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 B5 45 00 90 00 6E [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=255 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 DF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 79 00 00 35 04 06 00 41 [11:35:28]Write to MH i2c: E2 02 01 B6 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 DF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 79 00 00 35 04 06 00 41 00 00 CD [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 B6 45 00 90 00 6F [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=10 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 02 02 05 9B CE 43 25 D2 [11:35:28]Write to MH i2c: E2 0D 00 B7 45 80 0D 02 02 05 00 9B CE 43 25 D2 00 00 23 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 B7 45 00 90 00 70 [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 03 02 [11:35:28]Write to MH i2c: E2 08 00 B8 45 80 0D 03 02 00 00 00 00 78 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 B8 45 00 12 A4 5A 1B 7E 5A 0C 30 90 00 B8 [11:35:28]RAPDU: 12 A4 5A 1B 7E 5A 0C 30 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_SignData done [11:35:28]FM_MakeSignedData done [11:35:28]CreateOFDProtocolMessage [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 11 00 00 [11:35:28]Write to MH i2c: E2 08 00 B9 45 80 11 00 00 00 00 00 00 78 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 B9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [11:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:35:28]wFMCommunicate OK [11:35:28]CreateOFDProtocolMessage done [11:35:28]OFDSenderStorePacket 31139 [11:35:28]StoreOFDPacket docnum=31139 [11:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 3D 07 01 96 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 DF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 79 00 00 35 04 06 00 41 9B CE 43 25 D2 12 A4 5A 1B 7E 5A 0C 30 [11:35:28]CheckFolder [11:35:28]dirname=/storage/ofd_packets [11:35:28]CheckFolder done [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00031139 [11:35:28]NVStorageSaveData ofd_packets/00031139 [11:35:28]File name is /storage/ofd_packets/00031139 [11:35:28]Write 301 bytes [11:35:28]NVStorageSaveData done [11:35:28]OFDSenderStorePacket done [11:35:28]KKMCreateOFDPacket done [11:35:28]NVStorageSaveData kkm_last_timestamp [11:35:28]File name is /storage/kkm_last_timestamp [11:35:28]Write 4 bytes [11:35:28]NVStorageSaveData done [11:35:28]ExternCall_PrintAddStr [11:35:28]wPrintStart [11:35:28]Write to MH i2c: 01 00 00 BA 45 FF [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 BA 45 00 00 00 00 00 FF 0F 14 [11:35:28]RasterBufferAndPrint [11:35:28]line Счет N : (1)343580 [11:35:28]line ИНН: 02508201610067 [11:35:28]line Контрольно-Кассовый Чек [11:35:28]line ПРОДАЖА [11:35:28]line ТРК (МРК, ГНК) : 53 [11:35:28]line Товар: 2710124130 [11:35:28]line Аи-92-К-2 [11:35:28]line 2.990 * 66.90 [11:35:28]line = 200.03 [11:35:28]line НДС 12% НСП 1% [11:35:28]line > о реализуемом товаре [11:35:28]line ОКРУГЛЕНИЕ: -0.03 [11:35:28]line ИТОГО: 200.00 [11:35:28]line Внесено: 200.00 [11:35:28]line СДАЧА: 0.00 [11:35:28]line НСП 1% : 1.77 [11:35:28]line НДС 12% : 21.24 [11:35:28]line Наличными: 200.00 [11:35:28]line Безнал.: 0.00 [11:35:28]line Место: АЗС № 78 "Партнер Нефть" [11:35:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:35:28]line СНО: Общий режим [11:35:28]line Чек 83 23.10.2024 11:35 [11:35:28]line Смена: 117 ФФД: 1.0 [11:35:28]line ЗНМ: 0300000137 [11:35:28]line РНМ: 0000000000186857 [11:35:28]line Версия ККМ: v1.0 [11:35:28]line ФМ: 0000000002094219 [11:35:28]line ФД: 31139 [11:35:28]line ФПД: 72137436243410 [11:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31139&fm=72137436243410&tin=02508201610067®Number=0000000000186857&sum=20000 [11:35:28]OFD Sender: Processing packet 31139 [packets to send 11, broken 10] [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00031139 [11:35:28]OFD Sender: To server: pG, [11:35:28]CommunicateWithHost lk.salyk.kg:30040 [11:35:28]ConnectInit lk.salyk.kg [11:35:28]written 0, free lines is 4095 [11:35:28]Connected sock=10 [11:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 3D 07 01 96 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 84 DF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 79 00 00 35 04 06 00 41 9B CE 43 25 D2 12 A4 5A 1B 7E 5A 0C 30 [11:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 12 D1 47 00 03 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 79 00 00 F4 03 04 00 FF 89 18 67 B6 04 01 00 00 B6 3E FB 34 8C B1 32 56 [11:35:29]CommunicateWithHost err = 0 [11:35:29]CheckOFDResponse [11:35:29]1017 (14) - 77093643461234 [11:35:29]1041 (16) - 0000000002094219 [11:35:29]1040 (4) - 31139 [11:35:29]1012 (4) - 23.10.2024 05:30 [11:35:29]1206 (1) - 0 [11:35:29]OFD Sender: Remove packet 31139 [11:35:29]ProducePacketName [11:35:29]name=ofd_packets/00031139 [11:35:29]NVStorageDeleteData [11:35:29]Write to MH i2c: 01 00 00 E5 45 2A [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 E5 45 00 00 00 00 00 FA 0C 37 [11:35:29]RasterBufferAndPrint [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]written 0, free lines is 3328 [11:35:29]MH_Cut [11:35:29]Write to MH i2c: D1 01 00 EC 45 01 03 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 EC 45 00 02 [11:35:29]Write to MH i2c: 01 00 00 ED 45 32 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]OFD Sender: No OFD packet to send [11:35:30]*** Cut start [11:35:30]*** Partial cut [11:35:30]*** CUTSNS_PIN = 1 [11:35:30]*** CUTSNS_PIN = 0 [11:35:30]*** Brake cut motor [11:35:30]Read from MH i2c: 01 [11:35:30]MH_I2C_Read... [11:35:30]*** Stop cut motor [11:35:30]*** Cut end [11:35:30]Read from MH i2c: 01 07 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 07 00 ED 45 00 00 00 00 00 FF 0F 47 [11:35:30]process_action close_receipt done [11:35:30]requested_data is exist [11:35:30]produce_requested_data [11:35:30]requested_item fm.sn is exist - process it [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 11 00 00 [11:35:30]Write to MH i2c: E2 08 00 EE 45 80 11 00 00 00 00 00 00 AD [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 EE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [11:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:35:30]wFMCommunicate OK [11:35:30]requested_item fd.num is exist - process it [11:35:30]SAM_PROTO_GetFieldsCounters [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 00 00 [11:35:30]Write to MH i2c: E2 08 00 EF 45 80 13 00 00 00 00 00 00 B0 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 EF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetFieldsCounters done [11:35:30]requested_item shift.num is exist - process it [11:35:30]requested_item shift.opened is exist - process it [11:35:30]req_shift_opened [11:35:30]FM_GetShiftState [11:35:30]SAM_PROTO_GetShiftState [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 01 00 [11:35:30]Write to MH i2c: E2 08 00 F0 45 80 13 01 00 00 00 00 00 B2 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 F0 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6C [11:35:30]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetShiftState done [11:35:30]FM_GetShiftState done [11:35:30]req_shift_opened done [11:35:30]requested_item shift.open_date is exist - process it [11:35:30]req_shift_open_date [11:35:30]req_shift_open_date done [11:35:30]produce_requested_data done [11:35:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31139,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:35:30]process_action_free close_receipt [11:35:30]json_value_free [11:35:30]json_value_free done [11:35:30]process_json_proto returns [11:35:30]Send response to host [11:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31139,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:35:30]free response buf [11:35:30]execute_script done [11:35:30]execute_script returns [11:35:30]free content buf [11:35:30]Sock 7.Close socket [11:35:30]Sock 7.Thread stoped [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:08]accept exits with 9 [11:39:08]New connection [11:39:08]New thread 3066899812 created [11:39:08]Thread 3067043172 joined [11:39:08]Waiting for new connection... [11:39:08] Sock 9.Parse request [11:39:08]Sock 9.Check first char [11:39:08]Sock 9.First char is OK [11:39:08]request: POST /json_proto HTTP/1.0 [11:39:08]Method: POST [11:39:08]URL: /json_proto [11:39:08]Method is POST - this is cgi request [11:39:08]url: /json_proto [11:39:08]query_string will be loaded in cgi processing [11:39:08]execute_cgi json_proto POST (null) [11:39:08]execute_cgi path=json_proto method=POST [11:39:08]POST find Content-Length [11:39:08]Host: 172.17.51.3:8080 [11:39:08]Content-Length: 677 [11:39:08]Content-Type: application/json [11:39:08] [11:39:08]POST finish read [11:39:08]Found Content-Length = 677 [11:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]execute_script... [11:39:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]POST & json_proto [11:39:08]process_json_proto [11:39:08]json parsed OK: [11:39:08]protocol is kg_v1.0 [11:39:08]action value=close_receipt [11:39:08]process_action close_receipt [11:39:08]cmd_close_receipt [11:39:08]MH_GetDate [11:39:08]Write to MH i2c: F0 00 00 F1 45 25 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 09 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 09 00 F1 45 00 62 E0 18 67 04 C1 95 66 AF [11:39:08]GetLastDocTimeStamp 1729683332 [11:39:08]current date 1729683554 [11:39:08]FM_GetShiftState [11:39:08]SAM_PROTO_GetShiftState [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 13 01 00 [11:39:08]Write to MH i2c: E2 08 00 F2 45 80 13 01 00 00 00 00 00 B4 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:08]Read from MH i2c: E2 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 0E 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 0E 00 F2 45 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6E [11:39:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:39:08]wFMCommunicate OK [11:39:08]SAM_PROTO_GetShiftState done [11:39:08]FM_GetShiftState done [11:39:08]opened in 1729643755 [11:39:08]opened+sec_in_day 1729730155 [11:39:08]quantity*price = 50041 [11:39:08]sum+1 = 50042 [11:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 84 23.10.2024 11:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31140 ФПД: 7856602769704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31140&fm=7856602769704&tin=02508201610067®Number=0000000000186857&sum=50000 [11:39:09]StoreToDocumentArchive [11:39:09]shift 117 fd 31140 [11:39:09]save to /storage/0117/doc_00031140 [11:39:09]save last doc name /storage/0117/doc_00031140 to /storage/kkm_last_doc_name [11:39:09]save OK [11:39:09]Clear old archive folders... [11:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:09]tlvbuf is 00DB70C0 [11:39:09]SAM_PROTO_ClearQueue [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 09 00 00 [11:39:09]Write to MH i2c: E2 08 00 FF 45 80 09 00 00 00 00 00 00 B6 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 FF 45 00 90 00 B8 [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_ClearQueue done [11:39:09]KKMCreateOFDPacket [11:39:09]OFDProtocolAddRootSTLVToBuf [11:39:09]FM_MakeSignedData [11:39:09]FM_MakeSignedData [11:39:09]SAM_PROTO_SignData [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 01 02 [11:39:09]Write to MH i2c: E2 08 00 00 46 80 0D 01 02 00 00 00 00 BF [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 00 46 00 90 00 BA [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]wFMCommunicate request_size=255 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 E0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 79 00 00 35 04 06 00 07 [11:39:09]Write to MH i2c: E2 02 01 01 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 E0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 79 00 00 35 04 06 00 07 00 00 FE [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]OFD Sender: No OFD packet to send [11:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 01 46 00 90 00 BB [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]wFMCommunicate request_size=10 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 02 02 05 25 42 04 69 28 [11:39:09]Write to MH i2c: E2 0D 00 02 46 80 0D 02 02 05 00 25 42 04 69 28 00 00 C8 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 02 46 00 90 00 BC [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 03 02 [11:39:09]Write to MH i2c: E2 08 00 03 46 80 0D 03 02 00 00 00 00 C4 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 03 46 00 EB 68 2C 61 64 9E DB 4F 90 00 D1 [11:39:10]RAPDU: EB 68 2C 61 64 9E DB 4F 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_SignData done [11:39:10]FM_MakeSignedData done [11:39:10]CreateOFDProtocolMessage [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 11 00 00 [11:39:10]Write to MH i2c: E2 08 00 04 46 80 11 00 00 00 00 00 00 C4 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 04 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [11:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:39:10]wFMCommunicate OK [11:39:10]CreateOFDProtocolMessage done [11:39:10]OFDSenderStorePacket 31140 [11:39:10]StoreOFDPacket docnum=31140 [11:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC 69 07 01 F8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 E0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 79 00 00 35 04 06 00 07 25 42 04 69 28 EB 68 2C 61 64 9E DB 4F [11:39:10]CheckFolder [11:39:10]dirname=/storage/ofd_packets [11:39:10]CheckFolder done [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00031140 [11:39:10]NVStorageSaveData ofd_packets/00031140 [11:39:10]File name is /storage/ofd_packets/00031140 [11:39:10]Write 301 bytes [11:39:10]NVStorageSaveData done [11:39:10]OFDSenderStorePacket done [11:39:10]KKMCreateOFDPacket done [11:39:10]NVStorageSaveData kkm_last_timestamp [11:39:10]File name is /storage/kkm_last_timestamp [11:39:10]Write 4 bytes [11:39:10]NVStorageSaveData done [11:39:10]ExternCall_PrintAddStr [11:39:10]wPrintStart [11:39:10]Write to MH i2c: 01 00 00 05 46 4B [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 05 46 00 00 00 00 00 FF 0F 60 [11:39:10]RasterBufferAndPrint [11:39:10]line Счет N : (1)343581 [11:39:10]line ИНН: 02508201610067 [11:39:10]line Контрольно-Кассовый Чек [11:39:10]line ПРОДАЖА [11:39:10]line ТРК (МРК, ГНК) : 33 [11:39:10]line Товар: 2710124130 [11:39:10]line Аи-92-К-2 [11:39:10]line 7.480 * 66.90 [11:39:10]line = 500.41 [11:39:10]line НДС 12% НСП 1% [11:39:10]line > о реализуемом товаре [11:39:10]line ОКРУГЛЕНИЕ: -0.41 [11:39:10]line ИТОГО: 500.00 [11:39:10]line Внесено: 500.00 [11:39:10]line СДАЧА: 0.00 [11:39:10]line НСП 1% : 4.43 [11:39:10]line НДС 12% : 53.14 [11:39:10]line Наличными: 500.00 [11:39:10]line Безнал.: 0.00 [11:39:10]line Место: АЗС № 78 "Партнер Нефть" [11:39:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:39:10]line СНО: Общий режим [11:39:10]line Чек 84 23.10.2024 11:39 [11:39:10]line Смена: 117 ФФД: 1.0 [11:39:10]line ЗНМ: 0300000137 [11:39:10]line РНМ: 0000000000186857 [11:39:10]line Версия ККМ: v1.0 [11:39:10]line ФМ: 0000000002094219 [11:39:10]line ФД: 31140 [11:39:10]line ФПД: 7856602769704 [11:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31140&fm=7856602769704&tin=02508201610067®Number=0000000000186857&sum=50000 [11:39:10]OFD Sender: Processing packet 31140 [packets to send 11, broken 10] [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00031140 [11:39:10]OFD Sender: To server: pG, [11:39:10]CommunicateWithHost lk.salyk.kg:30040 [11:39:10]ConnectInit lk.salyk.kg [11:39:10]written 0, free lines is 4095 [11:39:10]Connected sock=10 [11:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC 69 07 01 F8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 62 E0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 79 00 00 35 04 06 00 07 25 42 04 69 28 EB 68 2C 61 64 9E DB 4F [11:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 36 47 00 E8 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 79 00 00 F4 03 04 00 DC 8A 18 67 B6 04 01 00 00 A0 61 87 9A 4B D8 37 A2 [11:39:10]CommunicateWithHost err = 0 [11:39:10]CheckOFDResponse [11:39:10]1017 (14) - 77093643461234 [11:39:10]1041 (16) - 0000000002094219 [11:39:10]1040 (4) - 31140 [11:39:10]1012 (4) - 23.10.2024 05:34 [11:39:10]1206 (1) - 0 [11:39:10]OFD Sender: Remove packet 31140 [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00031140 [11:39:10]NVStorageDeleteData [11:39:10]Write to MH i2c: 01 00 00 30 46 76 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 30 46 00 00 00 00 00 FC 0C 85 [11:39:10]RasterBufferAndPrint [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]written 0, free lines is 3333 [11:39:10]MH_Cut [11:39:10]Write to MH i2c: D1 01 00 37 46 01 4F [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: D1 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: D1 01 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: D1 01 00 37 46 00 4E [11:39:10]Write to MH i2c: 01 00 00 38 46 7E [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:11]OFD Sender: No OFD packet to send [11:39:11]*** Cut start [11:39:11]*** Partial cut [11:39:11]*** CUTSNS_PIN = 1 [11:39:11]*** CUTSNS_PIN = 0 [11:39:11]*** Brake cut motor [11:39:12]Read from MH i2c: 01 [11:39:12]MH_I2C_Read... [11:39:12]*** Stop cut motor [11:39:12]*** Cut end [11:39:12]Read from MH i2c: 01 07 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: 01 07 00 38 46 00 00 00 00 00 FF 0F 93 [11:39:12]process_action close_receipt done [11:39:12]requested_data is exist [11:39:12]produce_requested_data [11:39:12]requested_item fm.sn is exist - process it [11:39:12]wFMCommunicate request_size=4 [11:39:12]MH_SAM_APDU [11:39:12]CAPDU: 80 11 00 00 [11:39:12]Write to MH i2c: E2 08 00 39 46 80 11 00 00 00 00 00 00 F9 [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:12]Read from MH i2c: E2 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 17 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 17 00 39 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [11:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:39:12]wFMCommunicate OK [11:39:12]requested_item fd.num is exist - process it [11:39:12]SAM_PROTO_GetFieldsCounters [11:39:12]wFMCommunicate request_size=4 [11:39:12]MH_SAM_APDU [11:39:12]CAPDU: 80 13 00 00 [11:39:12]Write to MH i2c: E2 08 00 3A 46 80 13 00 00 00 00 00 00 FC [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:12]Read from MH i2c: E2 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 62 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 62 00 3A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:12]wFMCommunicate OK [11:39:12]SAM_PROTO_GetFieldsCounters done [11:39:12]requested_item shift.num is exist - process it [11:39:12]requested_item shift.opened is exist - process it [11:39:12]req_shift_opened [11:39:12]FM_GetShiftState [11:39:12]SAM_PROTO_GetShiftState [11:39:12]wFMCommunicate request_size=4 [11:39:12]MH_SAM_APDU [11:39:12]CAPDU: 80 13 01 00 [11:39:12]Write to MH i2c: E2 08 00 3B 46 80 13 01 00 00 00 00 00 FE [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:12]Read from MH i2c: E2 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 0E 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: E2 0E 00 3B 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B8 [11:39:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:39:12]wFMCommunicate OK [11:39:12]SAM_PROTO_GetShiftState done [11:39:12]FM_GetShiftState done [11:39:12]req_shift_opened done [11:39:12]requested_item shift.open_date is exist - process it [11:39:12]req_shift_open_date [11:39:12]req_shift_open_date done [11:39:12]produce_requested_data done [11:39:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31140,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:39:12]process_action_free close_receipt [11:39:12]json_value_free [11:39:12]json_value_free done [11:39:12]process_json_proto returns [11:39:12]Send response to host [11:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31140,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:39:12]free response buf [11:39:12]execute_script done [11:39:12]execute_script returns [11:39:12]free content buf [11:39:12]Sock 9.Close socket [11:39:12]Sock 9.Thread stoped [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:54]accept exits with 7 [11:43:54]New connection [11:43:54]New thread 3067043172 created [11:43:54]Thread 3066899812 joined [11:43:54]Waiting for new connection... [11:43:54] Sock 7.Parse request [11:43:54]Sock 7.Check first char [11:43:54]Sock 7.First char is OK [11:43:54]request: POST /json_proto HTTP/1.0 [11:43:54]Method: POST [11:43:54]URL: /json_proto [11:43:54]Method is POST - this is cgi request [11:43:54]url: /json_proto [11:43:54]query_string will be loaded in cgi processing [11:43:54]execute_cgi json_proto POST (null) [11:43:54]execute_cgi path=json_proto method=POST [11:43:54]POST find Content-Length [11:43:54]Host: 172.17.51.3:8080 [11:43:54]Content-Length: 688 [11:43:54]Content-Type: application/json [11:43:54] [11:43:54]POST finish read [11:43:54]Found Content-Length = 688 [11:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:54]execute_script... [11:43:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:54]POST & json_proto [11:43:54]process_json_proto [11:43:54]json parsed OK: [11:43:54]protocol is kg_v1.0 [11:43:54]action value=close_receipt [11:43:54]process_action close_receipt [11:43:54]cmd_close_receipt [11:43:54]MH_GetDate [11:43:54]Write to MH i2c: F0 00 00 3C 46 71 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: F0 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: F0 09 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: F0 09 00 3C 46 00 80 E1 18 67 04 C1 95 66 1A [11:43:54]GetLastDocTimeStamp 1729683554 [11:43:54]current date 1729683840 [11:43:54]FM_GetShiftState [11:43:54]SAM_PROTO_GetShiftState [11:43:54]wFMCommunicate request_size=4 [11:43:54]MH_SAM_APDU [11:43:54]CAPDU: 80 13 01 00 [11:43:54]Write to MH i2c: E2 08 00 3D 46 80 13 01 00 00 00 00 00 00 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:54]Read from MH i2c: E2 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 0E 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 0E 00 3D 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BA [11:43:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:43:54]wFMCommunicate OK [11:43:54]SAM_PROTO_GetShiftState done [11:43:54]FM_GetShiftState done [11:43:54]opened in 1729643755 [11:43:54]opened+sec_in_day 1729730155 [11:43:54]quantity*price = 100051 [11:43:54]sum+1 = 100052 [11:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 85 23.10.2024 11:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31141 ФПД: 204559988935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114400&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31141&fm=204559988935&tin=02508201610067®Number=0000000000186857&sum=100000 [11:43:55]StoreToDocumentArchive [11:43:55]shift 117 fd 31141 [11:43:55]save to /storage/0117/doc_00031141 [11:43:55]save last doc name /storage/0117/doc_00031141 to /storage/kkm_last_doc_name [11:43:55]save OK [11:43:55]Clear old archive folders... [11:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:43:55]tlvbuf is 00D54880 [11:43:55]SAM_PROTO_ClearQueue [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 09 00 00 [11:43:55]Write to MH i2c: E2 08 00 4A 46 80 09 00 00 00 00 00 00 02 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 4A 46 00 90 00 04 [11:43:55]RAPDU: 90 00 [11:43:55]wFMCommunicate OK [11:43:55]SAM_PROTO_ClearQueue done [11:43:55]KKMCreateOFDPacket [11:43:55]OFDProtocolAddRootSTLVToBuf [11:43:55]FM_MakeSignedData [11:43:55]FM_MakeSignedData [11:43:55]SAM_PROTO_SignData [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 0D 01 02 [11:43:55]Write to MH i2c: E2 08 00 4B 46 80 0D 01 02 00 00 00 00 0A [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 4B 46 00 90 00 05 [11:43:55]RAPDU: 90 00 [11:43:55]wFMCommunicate OK [11:43:55]wFMCommunicate request_size=255 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 80 E1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 79 00 [11:43:55]Write to MH i2c: E2 02 01 4C 46 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 80 E1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 79 00 00 00 2C [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 4C 46 00 90 00 06 [11:43:55]RAPDU: 90 00 [11:43:55]wFMCommunicate OK [11:43:55]wFMCommunicate request_size=16 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 00 2F A0 B9 B8 C7 [11:43:55]Write to MH i2c: E2 13 00 4D 46 80 0D 02 02 0B 00 00 35 04 06 00 00 2F A0 B9 B8 C7 00 00 69 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 03 00 4D 46 00 90 00 07 [11:43:55]RAPDU: 90 00 [11:43:55]wFMCommunicate OK [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 0D 03 02 [11:43:55]Write to MH i2c: E2 08 00 4E 46 80 0D 03 02 00 00 00 00 0F [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 0B 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 0B 00 4E 46 00 03 AA 03 1D 67 D2 68 76 90 00 F4 [11:43:55]RAPDU: 03 AA 03 1D 67 D2 68 76 90 00 [11:43:55]wFMCommunicate OK [11:43:55]SAM_PROTO_SignData done [11:43:55]FM_MakeSignedData done [11:43:55]CreateOFDProtocolMessage [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 11 00 00 [11:43:55]Write to MH i2c: E2 08 00 4F 46 80 11 00 00 00 00 00 00 0F [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 4F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [11:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:43:55]wFMCommunicate OK [11:43:55]CreateOFDProtocolMessage done [11:43:55]OFDSenderStorePacket 31141 [11:43:55]StoreOFDPacket docnum=31141 [11:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 10 28 0D 01 A0 0D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 80 E1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 79 00 00 35 04 06 00 00 2F A0 B9 B8 C7 03 AA 03 1D 67 D2 68 76 [11:43:55]CheckFolder [11:43:55]dirname=/storage/ofd_packets [11:43:55]CheckFolder done [11:43:55]ProducePacketName [11:43:55]name=ofd_packets/00031141 [11:43:55]NVStorageSaveData ofd_packets/00031141 [11:43:55]File name is /storage/ofd_packets/00031141 [11:43:55]Write 307 bytes [11:43:55]NVStorageSaveData done [11:43:55]OFDSenderStorePacket done [11:43:55]KKMCreateOFDPacket done [11:43:55]NVStorageSaveData kkm_last_timestamp [11:43:55]File name is /storage/kkm_last_timestamp [11:43:55]Write 4 bytes [11:43:55]NVStorageSaveData done [11:43:55]ExternCall_PrintAddStr [11:43:55]wPrintStart [11:43:55]Write to MH i2c: 01 00 00 50 46 96 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: 01 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: 01 07 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: 01 07 00 50 46 00 00 00 00 00 FF 0F AB [11:43:55]RasterBufferAndPrint [11:43:55]line Счет N : (1)343582 [11:43:55]line ИНН: 02508201610067 [11:43:55]line Контрольно-Кассовый Чек [11:43:55]line ПРОДАЖА [11:43:55]line ТРК (МРК, ГНК) : 61 [11:43:55]line Товар: 2710194210 [11:43:55]line D-ENERGY Дт-К-2 [11:43:55]line 12.960 * 77.20 [11:43:55]line = 1000.51 [11:43:55]line НДС 12% НСП 1% [11:43:55]line > о реализуемом товаре [11:43:55]line ОКРУГЛЕНИЕ: -0.51 [11:43:55]line ИТОГО: 1000.00 [11:43:55]line Внесено: 1000.00 [11:43:55]line СДАЧА: 0.00 [11:43:55]line НСП 1% : 8.85 [11:43:55]line НДС 12% : 106.25 [11:43:55]line Наличными: 1000.00 [11:43:55]line Безнал.: 0.00 [11:43:55]line Место: АЗС № 78 "Партнер Нефть" [11:43:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:43:55]line СНО: Общий режим [11:43:55]line Чек 85 23.10.2024 11:44 [11:43:55]line Смена: 117 ФФД: 1.0 [11:43:55]line ЗНМ: 0300000137 [11:43:55]line РНМ: 0000000000186857 [11:43:55]line Версия ККМ: v1.0 [11:43:55]line ФМ: 0000000002094219 [11:43:55]line ФД: 31141 [11:43:55]line ФПД: 204559988935 [11:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114400&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31141&fm=204559988935&tin=02508201610067®Number=0000000000186857&sum=100000 [11:43:56]OFD Sender: Processing packet 31141 [packets to send 11, broken 10] [11:43:56]ProducePacketName [11:43:56]name=ofd_packets/00031141 [11:43:56]OFD Sender: To server: pG, [11:43:56]CommunicateWithHost lk.salyk.kg:30040 [11:43:56]ConnectInit lk.salyk.kg [11:43:56]written 0, free lines is 4095 [11:43:56]Connected sock=10 [11:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 10 28 0D 01 A0 0D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 80 E1 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 79 00 00 35 04 06 00 00 2F A0 B9 B8 C7 03 AA 03 1D 67 D2 68 76 [11:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 73 1C 47 00 40 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 79 00 00 F4 03 04 00 FA 8B 18 67 B6 04 01 00 00 6F 43 72 51 53 D9 5D F8 [11:43:56]CommunicateWithHost err = 0 [11:43:56]CheckOFDResponse [11:43:56]1017 (14) - 77093643461234 [11:43:56]1041 (16) - 0000000002094219 [11:43:56]1040 (4) - 31141 [11:43:56]1012 (4) - 23.10.2024 05:39 [11:43:56]1206 (1) - 0 [11:43:56]OFD Sender: Remove packet 31141 [11:43:56]ProducePacketName [11:43:56]name=ofd_packets/00031141 [11:43:56]NVStorageDeleteData [11:43:56]Write to MH i2c: 01 00 00 7B 46 C1 [11:43:56]Write i2c OK [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: 01 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: 01 07 00 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: 01 07 00 7B 46 00 00 00 00 00 FD 0C D1 [11:43:56]RasterBufferAndPrint [11:43:56]line [11:43:56]line [11:43:56]line [11:43:56]line [11:43:56]line [11:43:56]written 0, free lines is 3334 [11:43:56]MH_Cut [11:43:56]Write to MH i2c: D1 01 00 82 46 01 9A [11:43:56]Write i2c OK [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: D1 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: D1 01 00 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: D1 01 00 82 46 00 99 [11:43:56]Write to MH i2c: 01 00 00 83 46 C9 [11:43:56]Write i2c OK [11:43:56]MH_I2C_Read... [11:43:57]OFD Sender: No OFD packet to send [11:43:57]*** Cut start [11:43:57]*** Partial cut [11:43:57]*** CUTSNS_PIN = 1 [11:43:57]*** CUTSNS_PIN = 0 [11:43:57]*** Brake cut motor [11:43:57]Read from MH i2c: 01 [11:43:57]MH_I2C_Read... [11:43:57]*** Stop cut motor [11:43:57]*** Cut end [11:43:57]Read from MH i2c: 01 07 00 [11:43:57]MH_I2C_Read... [11:43:57]Read from MH i2c: 01 07 00 83 46 00 00 00 00 00 FF 0F DE [11:43:57]process_action close_receipt done [11:43:57]requested_data is exist [11:43:57]produce_requested_data [11:43:57]requested_item fm.sn is exist - process it [11:43:57]wFMCommunicate request_size=4 [11:43:57]MH_SAM_APDU [11:43:57]CAPDU: 80 11 00 00 [11:43:57]Write to MH i2c: E2 08 00 84 46 80 11 00 00 00 00 00 00 44 [11:43:57]Write i2c OK [11:43:57]MH_I2C_Read... [11:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:57]Read from MH i2c: E2 [11:43:57]MH_I2C_Read... [11:43:57]Read from MH i2c: E2 17 00 [11:43:57]MH_I2C_Read... [11:43:57]Read from MH i2c: E2 17 00 84 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [11:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:43:57]wFMCommunicate OK [11:43:57]requested_item fd.num is exist - process it [11:43:57]SAM_PROTO_GetFieldsCounters [11:43:57]wFMCommunicate request_size=4 [11:43:57]MH_SAM_APDU [11:43:57]CAPDU: 80 13 00 00 [11:43:57]Write to MH i2c: E2 08 00 85 46 80 13 00 00 00 00 00 00 47 [11:43:57]Write i2c OK [11:43:57]MH_I2C_Read... [11:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:58]Read from MH i2c: E2 [11:43:58]MH_I2C_Read... [11:43:58]Read from MH i2c: E2 62 00 [11:43:58]MH_I2C_Read... [11:43:58]Read from MH i2c: E2 62 00 85 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:58]wFMCommunicate OK [11:43:58]SAM_PROTO_GetFieldsCounters done [11:43:58]requested_item shift.num is exist - process it [11:43:58]requested_item shift.opened is exist - process it [11:43:58]req_shift_opened [11:43:58]FM_GetShiftState [11:43:58]SAM_PROTO_GetShiftState [11:43:58]wFMCommunicate request_size=4 [11:43:58]MH_SAM_APDU [11:43:58]CAPDU: 80 13 01 00 [11:43:58]Write to MH i2c: E2 08 00 86 46 80 13 01 00 00 00 00 00 49 [11:43:58]Write i2c OK [11:43:58]MH_I2C_Read... [11:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:58]Read from MH i2c: E2 [11:43:58]MH_I2C_Read... [11:43:58]Read from MH i2c: E2 0E 00 [11:43:58]MH_I2C_Read... [11:43:58]Read from MH i2c: E2 0E 00 86 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 03 [11:43:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:43:58]wFMCommunicate OK [11:43:58]SAM_PROTO_GetShiftState done [11:43:58]FM_GetShiftState done [11:43:58]req_shift_opened done [11:43:58]requested_item shift.open_date is exist - process it [11:43:58]req_shift_open_date [11:43:58]req_shift_open_date done [11:43:58]produce_requested_data done [11:43:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31141,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:43:58]process_action_free close_receipt [11:43:58]json_value_free [11:43:58]json_value_free done [11:43:58]process_json_proto returns [11:43:58]Send response to host [11:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31141,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:43:58]free response buf [11:43:58]execute_script done [11:43:58]execute_script returns [11:43:58]free content buf [11:43:58]Sock 7.Close socket [11:43:58]Sock 7.Thread stoped [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:51]accept exits with 9 [11:48:51]New connection [11:48:51]New thread 3066899812 created [11:48:51]Thread 3067043172 joined [11:48:51]Waiting for new connection... [11:48:51] Sock 9.Parse request [11:48:51]Sock 9.Check first char [11:48:51]Sock 9.First char is OK [11:48:51]request: POST /json_proto HTTP/1.0 [11:48:51]Method: POST [11:48:51]URL: /json_proto [11:48:51]Method is POST - this is cgi request [11:48:51]url: /json_proto [11:48:51]query_string will be loaded in cgi processing [11:48:51]execute_cgi json_proto POST (null) [11:48:51]execute_cgi path=json_proto method=POST [11:48:51]POST find Content-Length [11:48:51]Host: 172.17.51.3:8080 [11:48:51]Content-Length: 677 [11:48:51]Content-Type: application/json [11:48:51] [11:48:51]POST finish read [11:48:51]Found Content-Length = 677 [11:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:51]execute_script... [11:48:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:51]POST & json_proto [11:48:51]process_json_proto [11:48:51]json parsed OK: [11:48:51]protocol is kg_v1.0 [11:48:51]action value=close_receipt [11:48:51]process_action close_receipt [11:48:51]cmd_close_receipt [11:48:51]MH_GetDate [11:48:51]Write to MH i2c: F0 00 00 87 46 BC [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: F0 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: F0 09 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: F0 09 00 87 46 00 A9 E2 18 67 04 C1 95 66 8F [11:48:51]GetLastDocTimeStamp 1729683840 [11:48:51]current date 1729684137 [11:48:51]FM_GetShiftState [11:48:51]SAM_PROTO_GetShiftState [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 01 00 [11:48:51]Write to MH i2c: E2 08 00 88 46 80 13 01 00 00 00 00 00 4B [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 88 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 05 [11:48:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetShiftState done [11:48:51]FM_GetShiftState done [11:48:51]opened in 1729643755 [11:48:51]opened+sec_in_day 1729730155 [11:48:51]quantity*price = 50010 [11:48:51]sum+1 = 50012 [11:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 86 23.10.2024 11:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31142 ФПД: 53066568720536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31142&fm=53066568720536&tin=02508201610067®Number=0000000000186857&sum=50000 [11:48:53]StoreToDocumentArchive [11:48:53]shift 117 fd 31142 [11:48:53]save to /storage/0117/doc_00031142 [11:48:53]save last doc name /storage/0117/doc_00031142 to /storage/kkm_last_doc_name [11:48:53]save OK [11:48:53]Clear old archive folders... [11:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:53]tlvbuf is 00D548D0 [11:48:53]SAM_PROTO_ClearQueue [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 09 00 00 [11:48:53]Write to MH i2c: E2 08 00 95 46 80 09 00 00 00 00 00 00 4D [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 95 46 00 90 00 4F [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]SAM_PROTO_ClearQueue done [11:48:53]KKMCreateOFDPacket [11:48:53]OFDProtocolAddRootSTLVToBuf [11:48:53]FM_MakeSignedData [11:48:53]FM_MakeSignedData [11:48:53]SAM_PROTO_SignData [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 01 02 [11:48:53]Write to MH i2c: E2 08 00 96 46 80 0D 01 02 00 00 00 00 55 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 96 46 00 90 00 50 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=255 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A9 E2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 79 00 00 35 04 06 00 30 [11:48:53]Write to MH i2c: E2 02 01 97 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A9 E2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 79 00 00 35 04 06 00 30 00 00 E3 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 97 46 00 90 00 51 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=10 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 02 02 05 43 85 FA 60 98 [11:48:53]Write to MH i2c: E2 0D 00 98 46 80 0D 02 02 05 00 43 85 FA 60 98 00 00 1C [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 98 46 00 90 00 52 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 03 02 [11:48:53]Write to MH i2c: E2 08 00 99 46 80 0D 03 02 00 00 00 00 5A [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0B 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0B 00 99 46 00 A0 4E 72 94 3C 3B 20 3B 90 00 21 [11:48:53]RAPDU: A0 4E 72 94 3C 3B 20 3B 90 00 [11:48:53]wFMCommunicate OK [11:48:53]SAM_PROTO_SignData done [11:48:53]FM_MakeSignedData done [11:48:53]CreateOFDProtocolMessage [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 11 00 00 [11:48:53]Write to MH i2c: E2 08 00 9A 46 80 11 00 00 00 00 00 00 5A [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 17 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 17 00 9A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [11:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:48:53]wFMCommunicate OK [11:48:53]CreateOFDProtocolMessage done [11:48:53]OFDSenderStorePacket 31142 [11:48:53]StoreOFDPacket docnum=31142 [11:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 0E 07 01 08 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A9 E2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 79 00 00 35 04 06 00 30 43 85 FA 60 98 A0 4E 72 94 3C 3B 20 3B [11:48:53]CheckFolder [11:48:53]dirname=/storage/ofd_packets [11:48:53]CheckFolder done [11:48:53]ProducePacketName [11:48:53]name=ofd_packets/00031142 [11:48:53]NVStorageSaveData ofd_packets/00031142 [11:48:53]File name is /storage/ofd_packets/00031142 [11:48:53]Write 301 bytes [11:48:53]NVStorageSaveData done [11:48:53]OFDSenderStorePacket done [11:48:53]KKMCreateOFDPacket done [11:48:53]NVStorageSaveData kkm_last_timestamp [11:48:53]File name is /storage/kkm_last_timestamp [11:48:53]Write 4 bytes [11:48:53]NVStorageSaveData done [11:48:53]ExternCall_PrintAddStr [11:48:53]wPrintStart [11:48:53]Write to MH i2c: 01 00 00 9B 46 E1 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: 01 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: 01 07 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: 01 07 00 9B 46 00 00 00 00 00 FF 0F F6 [11:48:53]RasterBufferAndPrint [11:48:53]line Счет N : (1)343583 [11:48:53]line ИНН: 02508201610067 [11:48:53]line Контрольно-Кассовый Чек [11:48:53]line ПРОДАЖА [11:48:53]line ТРК (МРК, ГНК) : 62 [11:48:53]line Товар: 2710124500 [11:48:53]line Аи-95-К-3 [11:48:53]line 6.740 * 74.20 [11:48:53]line = 500.11 [11:48:53]line НДС 12% НСП 1% [11:48:53]line > о реализуемом товаре [11:48:53]line ОКРУГЛЕНИЕ: -0.11 [11:48:53]line ИТОГО: 500.00 [11:48:53]line Внесено: 500.00 [11:48:53]line СДАЧА: 0.00 [11:48:53]line НСП 1% : 4.43 [11:48:53]line НДС 12% : 53.11 [11:48:53]line Наличными: 500.00 [11:48:53]line Безнал.: 0.00 [11:48:53]line Место: АЗС № 78 "Партнер Нефть" [11:48:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:48:53]line СНО: Общий режим [11:48:53]line Чек 86 23.10.2024 11:48 [11:48:53]line Смена: 117 ФФД: 1.0 [11:48:53]line ЗНМ: 0300000137 [11:48:53]line РНМ: 0000000000186857 [11:48:53]line Версия ККМ: v1.0 [11:48:53]line ФМ: 0000000002094219 [11:48:53]line ФД: 31142 [11:48:53]line ФПД: 53066568720536 [11:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31142&fm=53066568720536&tin=02508201610067®Number=0000000000186857&sum=50000 [11:48:53]OFD Sender: Processing packet 31142 [packets to send 11, broken 10] [11:48:53]ProducePacketName [11:48:53]name=ofd_packets/00031142 [11:48:53]OFD Sender: To server: pG, [11:48:53]CommunicateWithHost lk.salyk.kg:30040 [11:48:53]ConnectInit lk.salyk.kg [11:48:53]written 0, free lines is 4095 [11:48:54]Connected sock=10 [11:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CB 0E 07 01 08 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A9 E2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 79 00 00 35 04 06 00 30 43 85 FA 60 98 A0 4E 72 94 3C 3B 20 3B [11:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 30 F3 47 00 82 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 79 00 00 F4 03 04 00 24 8D 18 67 B6 04 01 00 00 A9 8D C9 36 86 38 69 73 [11:48:54]CommunicateWithHost err = 0 [11:48:54]CheckOFDResponse [11:48:54]1017 (14) - 77093643461234 [11:48:54]1041 (16) - 0000000002094219 [11:48:54]1040 (4) - 31142 [11:48:54]1012 (4) - 23.10.2024 05:44 [11:48:54]1206 (1) - 0 [11:48:54]OFD Sender: Remove packet 31142 [11:48:54]ProducePacketName [11:48:54]name=ofd_packets/00031142 [11:48:54]NVStorageDeleteData [11:48:54]Write to MH i2c: 01 00 00 C6 46 0C [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 C6 46 00 00 00 00 00 FA 0C 19 [11:48:54]RasterBufferAndPrint [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]written 0, free lines is 3332 [11:48:54]MH_Cut [11:48:54]Write to MH i2c: D1 01 00 CD 46 01 E5 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 01 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 01 00 CD 46 00 E4 [11:48:54]Write to MH i2c: 01 00 00 CE 46 14 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]OFD Sender: No OFD packet to send [11:48:55]*** Cut start [11:48:55]*** Partial cut [11:48:55]*** CUTSNS_PIN = 1 [11:48:55]*** CUTSNS_PIN = 0 [11:48:55]*** Brake cut motor [11:48:55]Read from MH i2c: 01 [11:48:55]MH_I2C_Read... [11:48:55]*** Stop cut motor [11:48:55]*** Cut end [11:48:55]Read from MH i2c: 01 07 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 CE 46 00 00 00 00 00 FF 0F 29 [11:48:55]process_action close_receipt done [11:48:55]requested_data is exist [11:48:55]produce_requested_data [11:48:55]requested_item fm.sn is exist - process it [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 11 00 00 [11:48:55]Write to MH i2c: E2 08 00 CF 46 80 11 00 00 00 00 00 00 8F [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 CF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [11:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:48:55]wFMCommunicate OK [11:48:55]requested_item fd.num is exist - process it [11:48:55]SAM_PROTO_GetFieldsCounters [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 13 00 00 [11:48:55]Write to MH i2c: E2 08 00 D0 46 80 13 00 00 00 00 00 00 92 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 62 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 62 00 D0 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_GetFieldsCounters done [11:48:55]requested_item shift.num is exist - process it [11:48:55]requested_item shift.opened is exist - process it [11:48:55]req_shift_opened [11:48:55]FM_GetShiftState [11:48:55]SAM_PROTO_GetShiftState [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 13 01 00 [11:48:55]Write to MH i2c: E2 08 00 D1 46 80 13 01 00 00 00 00 00 94 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0E 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0E 00 D1 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4E [11:48:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_GetShiftState done [11:48:55]FM_GetShiftState done [11:48:55]req_shift_opened done [11:48:55]requested_item shift.open_date is exist - process it [11:48:55]req_shift_open_date [11:48:55]req_shift_open_date done [11:48:55]produce_requested_data done [11:48:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31142,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:48:55]process_action_free close_receipt [11:48:55]json_value_free [11:48:55]json_value_free done [11:48:55]process_json_proto returns [11:48:55]Send response to host [11:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31142,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:48:55]free response buf [11:48:55]execute_script done [11:48:55]execute_script returns [11:48:55]free content buf [11:48:55]Sock 9.Close socket [11:48:55]Sock 9.Thread stoped [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:07]accept exits with 7 [11:55:07]New connection [11:55:07]New thread 3067043172 created [11:55:07]Thread 3066899812 joined [11:55:07]Waiting for new connection... [11:55:07] Sock 7.Parse request [11:55:07]Sock 7.Check first char [11:55:07]Sock 7.First char is OK [11:55:07]request: POST /json_proto HTTP/1.0 [11:55:07]Method: POST [11:55:07]URL: /json_proto [11:55:07]Method is POST - this is cgi request [11:55:07]url: /json_proto [11:55:07]query_string will be loaded in cgi processing [11:55:07]execute_cgi json_proto POST (null) [11:55:07]execute_cgi path=json_proto method=POST [11:55:07]POST find Content-Length [11:55:07]Host: 172.17.51.3:8080 [11:55:07]Content-Length: 753 [11:55:07]Content-Type: application/json [11:55:07] [11:55:07]POST finish read [11:55:07]Found Content-Length = 753 [11:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:07]execute_script... [11:55:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:07]POST & json_proto [11:55:07]process_json_proto [11:55:07]json parsed OK: [11:55:07]protocol is kg_v1.0 [11:55:07]action value=close_receipt [11:55:07]process_action close_receipt [11:55:07]cmd_close_receipt [11:55:07]MH_GetDate [11:55:07]Write to MH i2c: F0 00 00 D2 46 07 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: F0 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: F0 09 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: F0 09 00 D2 46 00 21 E4 18 67 04 C1 95 66 54 [11:55:07]GetLastDocTimeStamp 1729684137 [11:55:07]current date 1729684513 [11:55:07]FM_GetShiftState [11:55:07]SAM_PROTO_GetShiftState [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 13 01 00 [11:55:07]Write to MH i2c: E2 08 00 D3 46 80 13 01 00 00 00 00 00 96 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0E 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0E 00 D3 46 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 50 [11:55:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_GetShiftState done [11:55:07]FM_GetShiftState done [11:55:07]opened in 1729643755 [11:55:07]opened+sec_in_day 1729730155 [11:55:07]quantity*price = 0 [11:55:07]sum+1 = 1 [11:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 87 23.10.2024 11:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31143 ФПД: 116706366854317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31143&fm=116706366854317&tin=02508201610067®Number=0000000000186857&sum=0 [11:55:08]StoreToDocumentArchive [11:55:08]shift 117 fd 31143 [11:55:08]save to /storage/0117/doc_00031143 [11:55:08]save last doc name /storage/0117/doc_00031143 to /storage/kkm_last_doc_name [11:55:08]save OK [11:55:08]Clear old archive folders... [11:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:08]tlvbuf is 00CD6BA0 [11:55:08]SAM_PROTO_ClearQueue [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 09 00 00 [11:55:08]Write to MH i2c: E2 08 00 E0 46 80 09 00 00 00 00 00 00 98 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 E0 46 00 90 00 9A [11:55:09]RAPDU: 90 00 [11:55:09]wFMCommunicate OK [11:55:09]SAM_PROTO_ClearQueue done [11:55:09]KKMCreateOFDPacket [11:55:09]OFDProtocolAddRootSTLVToBuf [11:55:09]FM_MakeSignedData [11:55:09]FM_MakeSignedData [11:55:09]SAM_PROTO_SignData [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 0D 01 02 [11:55:09]Write to MH i2c: E2 08 00 E1 46 80 0D 01 02 00 00 00 00 A0 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 E1 46 00 90 00 9B [11:55:09]RAPDU: 90 00 [11:55:09]wFMCommunicate OK [11:55:09]wFMCommunicate request_size=255 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 79 00 00 35 04 06 00 6A [11:55:09]Write to MH i2c: E2 02 01 E2 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 79 00 00 35 04 06 00 6A 00 00 DB [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 E2 46 00 90 00 9C [11:55:09]RAPDU: 90 00 [11:55:09]wFMCommunicate OK [11:55:09]wFMCommunicate request_size=10 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 0D 02 02 05 24 D1 8A 14 AD [11:55:09]Write to MH i2c: E2 0D 00 E3 46 80 0D 02 02 05 00 24 D1 8A 14 AD 00 00 ED [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 03 00 E3 46 00 90 00 9D [11:55:09]RAPDU: 90 00 [11:55:09]wFMCommunicate OK [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 0D 03 02 [11:55:09]Write to MH i2c: E2 08 00 E4 46 80 0D 03 02 00 00 00 00 A5 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0B 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0B 00 E4 46 00 D7 2B 9B 78 81 FB 60 59 90 00 F0 [11:55:09]RAPDU: D7 2B 9B 78 81 FB 60 59 90 00 [11:55:09]wFMCommunicate OK [11:55:09]SAM_PROTO_SignData done [11:55:09]FM_MakeSignedData done [11:55:09]CreateOFDProtocolMessage [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 11 00 00 [11:55:09]Write to MH i2c: E2 08 00 E5 46 80 11 00 00 00 00 00 00 A5 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 17 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 17 00 E5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [11:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:09]wFMCommunicate OK [11:55:09]CreateOFDProtocolMessage done [11:55:09]OFDSenderStorePacket 31143 [11:55:09]StoreOFDPacket docnum=31143 [11:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A9 77 07 01 80 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 79 00 00 35 04 06 00 6A 24 D1 8A 14 AD D7 2B 9B 78 81 FB 60 59 [11:55:09]CheckFolder [11:55:09]dirname=/storage/ofd_packets [11:55:09]CheckFolder done [11:55:09]ProducePacketName [11:55:09]name=ofd_packets/00031143 [11:55:09]NVStorageSaveData ofd_packets/00031143 [11:55:09]File name is /storage/ofd_packets/00031143 [11:55:09]Write 301 bytes [11:55:09]NVStorageSaveData done [11:55:09]OFDSenderStorePacket done [11:55:09]KKMCreateOFDPacket done [11:55:09]NVStorageSaveData kkm_last_timestamp [11:55:09]File name is /storage/kkm_last_timestamp [11:55:09]Write 4 bytes [11:55:09]NVStorageSaveData done [11:55:09]ExternCall_PrintAddStr [11:55:09]wPrintStart [11:55:09]Write to MH i2c: 01 00 00 E6 46 2C [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 E6 46 00 00 00 00 00 FF 0F 41 [11:55:09]RasterBufferAndPrint [11:55:09]line Счет N : (1)343585 [11:55:09]line ИНН: 02508201610067 [11:55:09]line Контрольно-Кассовый Чек [11:55:09]line ПРОДАЖА [11:55:09]line ТРК (МРК, ГНК) : 63 [11:55:09]line Товар: 2710124130 [11:55:09]line Аи-92-К-2 [11:55:09]line 7.480 * 0.00 [11:55:09]line = 0.00 [11:55:09]line НДС 12% НСП 1% [11:55:09]line > о реализуемом товаре [11:55:09]line ИТОГО: 0.00 [11:55:09]line НСП 1% : 0.00 [11:55:09]line НДС 12% : 0.00 [11:55:09]line Наличными: 0.00 [11:55:09]line Безнал.: 0.00 [11:55:09]line Место: АЗС № 78 "Партнер Нефть" [11:55:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:55:09]line СНО: Общий режим [11:55:09]line Чек 87 23.10.2024 11:55 [11:55:09]line Смена: 117 ФФД: 1.0 [11:55:09]line ЗНМ: 0300000137 [11:55:09]line РНМ: 0000000000186857 [11:55:09]line Версия ККМ: v1.0 [11:55:09]line Талоны: ТК ГПНА Online [11:55:09]line 30101093 [11:55:09]line ФМ: 0000000002094219 [11:55:09]line ФД: 31143 [11:55:09]line ФПД: 116706366854317 [11:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31143&fm=116706366854317&tin=02508201610067®Number=0000000000186857&sum=0 [11:55:09]OFD Sender: Processing packet 31143 [packets to send 11, broken 10] [11:55:09]ProducePacketName [11:55:09]name=ofd_packets/00031143 [11:55:09]OFD Sender: To server: pG, [11:55:09]CommunicateWithHost lk.salyk.kg:30040 [11:55:09]ConnectInit lk.salyk.kg [11:55:09]written 0, free lines is 4095 [11:55:10]Connected sock=10 [11:55:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A9 77 07 01 80 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 79 00 00 35 04 06 00 6A 24 D1 8A 14 AD D7 2B 9B 78 81 FB 60 59 [11:55:10]Write to MH i2c: 01 00 00 10 47 57 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 10 47 00 00 00 00 00 05 0D 70 [11:55:10]RasterBufferAndPrint [11:55:10]line [11:55:10]line [11:55:10]line [11:55:10]line [11:55:10]line [11:55:10]written 0, free lines is 3339 [11:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CA 78 47 00 DD 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 79 00 00 F4 03 04 00 9C 8E 18 67 B6 04 01 00 00 74 09 51 4C 83 57 FE 1B [11:55:10]CommunicateWithHost err = 0 [11:55:10]CheckOFDResponse [11:55:10]1017 (14) - 77093643461234 [11:55:10]1041 (16) - 0000000002094219 [11:55:10]1040 (4) - 31143 [11:55:10]1012 (4) - 23.10.2024 05:50 [11:55:10]1206 (1) - 0 [11:55:10]OFD Sender: Remove packet 31143 [11:55:10]ProducePacketName [11:55:10]name=ofd_packets/00031143 [11:55:10]NVStorageDeleteData [11:55:10]MH_Cut [11:55:10]Write to MH i2c: D1 01 00 17 47 01 30 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: D1 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: D1 01 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: D1 01 00 17 47 00 2F [11:55:10]Write to MH i2c: 01 00 00 18 47 5F [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]OFD Sender: No OFD packet to send [11:55:10]*** Cut start [11:55:10]*** Partial cut [11:55:10]*** CUTSNS_PIN = 1 [11:55:10]*** CUTSNS_PIN = 0 [11:55:11]*** Brake cut motor [11:55:11]Read from MH i2c: 01 [11:55:11]MH_I2C_Read... [11:55:11]*** Stop cut motor [11:55:11]*** Cut end [11:55:11]Read from MH i2c: 01 07 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: 01 07 00 18 47 00 00 00 00 00 FF 0F 74 [11:55:11]process_action close_receipt done [11:55:11]requested_data is exist [11:55:11]produce_requested_data [11:55:11]requested_item fm.sn is exist - process it [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 11 00 00 [11:55:11]Write to MH i2c: E2 08 00 19 47 80 11 00 00 00 00 00 00 DA [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 19 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [11:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:11]wFMCommunicate OK [11:55:11]requested_item fd.num is exist - process it [11:55:11]SAM_PROTO_GetFieldsCounters [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 13 00 00 [11:55:11]Write to MH i2c: E2 08 00 1A 47 80 13 00 00 00 00 00 00 DD [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 62 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 62 00 1A 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [11:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_GetFieldsCounters done [11:55:11]requested_item shift.num is exist - process it [11:55:11]requested_item shift.opened is exist - process it [11:55:11]req_shift_opened [11:55:11]FM_GetShiftState [11:55:11]SAM_PROTO_GetShiftState [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 13 01 00 [11:55:11]Write to MH i2c: E2 08 00 1B 47 80 13 01 00 00 00 00 00 DF [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0E 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0E 00 1B 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 99 [11:55:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_GetShiftState done [11:55:11]FM_GetShiftState done [11:55:11]req_shift_opened done [11:55:11]requested_item shift.open_date is exist - process it [11:55:11]req_shift_open_date [11:55:11]req_shift_open_date done [11:55:11]produce_requested_data done [11:55:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31143,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:55:11]process_action_free close_receipt [11:55:11]json_value_free [11:55:11]json_value_free done [11:55:11]process_json_proto returns [11:55:11]Send response to host [11:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31143,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:55:11]free response buf [11:55:11]execute_script done [11:55:11]execute_script returns [11:55:11]free content buf [11:55:11]Sock 7.Close socket [11:55:11]Sock 7.Thread stoped [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:38]accept exits with 9 [11:55:38]New connection [11:55:38]New thread 3066899812 created [11:55:38]Thread 3067043172 joined [11:55:38]Waiting for new connection... [11:55:38] Sock 9.Parse request [11:55:38]Sock 9.Check first char [11:55:38]Sock 9.First char is OK [11:55:38]request: POST /json_proto HTTP/1.0 [11:55:38]Method: POST [11:55:38]URL: /json_proto [11:55:38]Method is POST - this is cgi request [11:55:38]url: /json_proto [11:55:38]query_string will be loaded in cgi processing [11:55:38]execute_cgi json_proto POST (null) [11:55:38]execute_cgi path=json_proto method=POST [11:55:38]POST find Content-Length [11:55:38]Host: 172.17.51.3:8080 [11:55:38]Content-Length: 843 [11:55:38]Content-Type: application/json [11:55:38] [11:55:38]POST finish read [11:55:38]Found Content-Length = 843 [11:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:38]execute_script... [11:55:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:38]POST & json_proto [11:55:38]process_json_proto [11:55:38]json parsed OK: [11:55:38]protocol is kg_v1.0 [11:55:38]action value=close_receipt [11:55:38]process_action close_receipt [11:55:38]cmd_close_receipt [11:55:38]MH_GetDate [11:55:38]Write to MH i2c: F0 00 00 1C 47 52 [11:55:38]Write i2c OK [11:55:38]MH_I2C_Read... [11:55:38]Read from MH i2c: F0 [11:55:38]MH_I2C_Read... [11:55:38]Read from MH i2c: F0 09 00 [11:55:38]MH_I2C_Read... [11:55:38]Read from MH i2c: F0 09 00 1C 47 00 40 E4 18 67 04 C1 95 66 BE [11:55:38]GetLastDocTimeStamp 1729684513 [11:55:38]current date 1729684544 [11:55:38]FM_GetShiftState [11:55:38]SAM_PROTO_GetShiftState [11:55:38]wFMCommunicate request_size=4 [11:55:38]MH_SAM_APDU [11:55:38]CAPDU: 80 13 01 00 [11:55:38]Write to MH i2c: E2 08 00 1D 47 80 13 01 00 00 00 00 00 E1 [11:55:38]Write i2c OK [11:55:38]MH_I2C_Read... [11:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:38]Read from MH i2c: E2 [11:55:38]MH_I2C_Read... [11:55:38]Read from MH i2c: E2 0E 00 [11:55:38]MH_I2C_Read... [11:55:38]Read from MH i2c: E2 0E 00 1D 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9B [11:55:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:55:38]wFMCommunicate OK [11:55:38]SAM_PROTO_GetShiftState done [11:55:38]FM_GetShiftState done [11:55:38]opened in 1729643755 [11:55:38]opened+sec_in_day 1729730155 [11:55:38]quantity*price = 250054 [11:55:38]sum+1 = 250055 [11:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.54 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.54 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 88 23.10.2024 11:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31144 ФПД: 71263476795736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115544&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31144&fm=71263476795736&tin=02508201610067®Number=0000000000186857&sum=250054 [11:55:40]StoreToDocumentArchive [11:55:40]shift 117 fd 31144 [11:55:40]save to /storage/0117/doc_00031144 [11:55:40]save last doc name /storage/0117/doc_00031144 to /storage/kkm_last_doc_name [11:55:40]save OK [11:55:40]Clear old archive folders... [11:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:40]tlvbuf is 00D2BBA0 [11:55:40]SAM_PROTO_ClearQueue [11:55:40]wFMCommunicate request_size=4 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 09 00 00 [11:55:40]Write to MH i2c: E2 08 00 2A 47 80 09 00 00 00 00 00 00 E3 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 2A 47 00 90 00 E5 [11:55:40]RAPDU: 90 00 [11:55:40]wFMCommunicate OK [11:55:40]SAM_PROTO_ClearQueue done [11:55:40]KKMCreateOFDPacket [11:55:40]OFDProtocolAddRootSTLVToBuf [11:55:40]FM_MakeSignedData [11:55:40]FM_MakeSignedData [11:55:40]SAM_PROTO_SignData [11:55:40]wFMCommunicate request_size=4 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 0D 01 02 [11:55:40]Write to MH i2c: E2 08 00 2B 47 80 0D 01 02 00 00 00 00 EB [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 2B 47 00 90 00 E6 [11:55:40]RAPDU: 90 00 [11:55:40]wFMCommunicate OK [11:55:40]wFMCommunicate request_size=255 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 79 00 00 35 04 06 00 40 [11:55:40]Write to MH i2c: E2 02 01 2C 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 79 00 00 35 04 06 00 40 00 00 A5 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 2C 47 00 90 00 E7 [11:55:40]RAPDU: 90 00 [11:55:40]wFMCommunicate OK [11:55:40]wFMCommunicate request_size=10 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 0D 02 02 05 D0 52 38 49 58 [11:55:40]Write to MH i2c: E2 0D 00 2D 47 80 0D 02 02 05 00 D0 52 38 49 58 00 00 F3 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 03 00 2D 47 00 90 00 E8 [11:55:40]RAPDU: 90 00 [11:55:40]wFMCommunicate OK [11:55:40]wFMCommunicate request_size=4 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 0D 03 02 [11:55:40]Write to MH i2c: E2 08 00 2E 47 80 0D 03 02 00 00 00 00 F0 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 0B 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 0B 00 2E 47 00 88 70 AD E3 31 68 8F 7C 90 00 1D [11:55:40]RAPDU: 88 70 AD E3 31 68 8F 7C 90 00 [11:55:40]wFMCommunicate OK [11:55:40]SAM_PROTO_SignData done [11:55:40]FM_MakeSignedData done [11:55:40]CreateOFDProtocolMessage [11:55:40]wFMCommunicate request_size=4 [11:55:40]MH_SAM_APDU [11:55:40]CAPDU: 80 11 00 00 [11:55:40]Write to MH i2c: E2 08 00 2F 47 80 11 00 00 00 00 00 00 F0 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:40]Read from MH i2c: E2 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 17 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: E2 17 00 2F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [11:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:40]wFMCommunicate OK [11:55:40]CreateOFDProtocolMessage done [11:55:40]OFDSenderStorePacket 31144 [11:55:40]StoreOFDPacket docnum=31144 [11:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 0A 07 01 FA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 79 00 00 35 04 06 00 40 D0 52 38 49 58 88 70 AD E3 31 68 8F 7C [11:55:40]CheckFolder [11:55:40]dirname=/storage/ofd_packets [11:55:40]CheckFolder done [11:55:40]ProducePacketName [11:55:40]name=ofd_packets/00031144 [11:55:40]NVStorageSaveData ofd_packets/00031144 [11:55:40]File name is /storage/ofd_packets/00031144 [11:55:40]Write 301 bytes [11:55:40]NVStorageSaveData done [11:55:40]OFDSenderStorePacket done [11:55:40]KKMCreateOFDPacket done [11:55:40]NVStorageSaveData kkm_last_timestamp [11:55:40]File name is /storage/kkm_last_timestamp [11:55:40]Write 4 bytes [11:55:40]NVStorageSaveData done [11:55:40]ExternCall_PrintAddStr [11:55:40]wPrintStart [11:55:40]Write to MH i2c: 01 00 00 30 47 77 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 30 47 00 00 00 00 00 FF 0F 8C [11:55:40]RasterBufferAndPrint [11:55:40]line Счет N : (1)343584 [11:55:40]line ИНН: 02508201610067 [11:55:40]line Контрольно-Кассовый Чек [11:55:40]line ПРОДАЖА [11:55:40]line ТРК (МРК, ГНК) : 52 [11:55:40]line Товар: 2710124500 [11:55:40]line Аи-95-К-3 [11:55:40]line 33.700 * 74.20 [11:55:40]line = 2500.54 [11:55:40]line НДС 12% НСП 1% [11:55:40]line > о реализуемом товаре [11:55:40]line ИТОГО: 2500.54 [11:55:40]line НСП 1% : 22.13 [11:55:40]line НДС 12% : 265.54 [11:55:40]line Наличными: 0.00 [11:55:40]line Безнал.: 2500.54 [11:55:40]line Место: АЗС № 78 "Партнер Нефть" [11:55:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:55:40]line СНО: Общий режим [11:55:40]line Чек 88 23.10.2024 11:55 [11:55:40]line Смена: 117 ФФД: 1.0 [11:55:40]line ЗНМ: 0300000137 [11:55:40]line РНМ: 0000000000186857 [11:55:40]line Версия ККМ: v1.0 [11:55:40]line Платежная система: АКБ Кыргызстан [11:55:40]line ФМ: 0000000002094219 [11:55:40]line ФД: 31144 [11:55:40]line ФПД: 71263476795736 [11:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115544&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31144&fm=71263476795736&tin=02508201610067®Number=0000000000186857&sum=250054 [11:55:40]OFD Sender: Processing packet 31144 [packets to send 11, broken 10] [11:55:40]ProducePacketName [11:55:40]name=ofd_packets/00031144 [11:55:40]OFD Sender: To server: pG, [11:55:40]CommunicateWithHost lk.salyk.kg:30040 [11:55:40]ConnectInit lk.salyk.kg [11:55:40]written 0, free lines is 4095 [11:55:41]Connected sock=10 [11:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 0A 07 01 FA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 79 00 00 35 04 06 00 40 D0 52 38 49 58 88 70 AD E3 31 68 8F 7C [11:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 95 AF 47 00 24 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 79 00 00 F4 03 04 00 BB 8E 18 67 B6 04 01 00 00 08 AE 29 D9 22 8C F4 B4 [11:55:41]CommunicateWithHost err = 0 [11:55:41]CheckOFDResponse [11:55:41]1017 (14) - 77093643461234 [11:55:41]1041 (16) - 0000000002094219 [11:55:41]1040 (4) - 31144 [11:55:41]1012 (4) - 23.10.2024 05:50 [11:55:41]1206 (1) - 0 [11:55:41]OFD Sender: Remove packet 31144 [11:55:41]ProducePacketName [11:55:41]name=ofd_packets/00031144 [11:55:41]NVStorageDeleteData [11:55:41]Write to MH i2c: 01 00 00 5A 47 A1 [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: 01 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: 01 07 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: 01 07 00 5A 47 00 00 00 00 00 10 0D C5 [11:55:41]RasterBufferAndPrint [11:55:41]line [11:55:41]line [11:55:41]line [11:55:41]line [11:55:41]line [11:55:41]written 0, free lines is 3354 [11:55:41]MH_Cut [11:55:41]Write to MH i2c: D1 01 00 61 47 01 7A [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: D1 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: D1 01 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: D1 01 00 61 47 00 79 [11:55:41]Write to MH i2c: 01 00 00 62 47 A9 [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]OFD Sender: No OFD packet to send [11:55:42]*** Cut start [11:55:42]*** Partial cut [11:55:42]*** CUTSNS_PIN = 1 [11:55:42]*** CUTSNS_PIN = 0 [11:55:42]*** Brake cut motor [11:55:42]Read from MH i2c: 01 [11:55:42]MH_I2C_Read... [11:55:42]*** Stop cut motor [11:55:42]*** Cut end [11:55:42]Read from MH i2c: 01 07 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: 01 07 00 62 47 00 00 00 00 00 FF 0F BE [11:55:42]process_action close_receipt done [11:55:42]requested_data is exist [11:55:42]produce_requested_data [11:55:42]requested_item fm.sn is exist - process it [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 11 00 00 [11:55:42]Write to MH i2c: E2 08 00 63 47 80 11 00 00 00 00 00 00 24 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 17 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 17 00 63 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [11:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:42]wFMCommunicate OK [11:55:42]requested_item fd.num is exist - process it [11:55:42]SAM_PROTO_GetFieldsCounters [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 13 00 00 [11:55:42]Write to MH i2c: E2 08 00 64 47 80 13 00 00 00 00 00 00 27 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 62 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 62 00 64 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [11:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_GetFieldsCounters done [11:55:42]requested_item shift.num is exist - process it [11:55:42]requested_item shift.opened is exist - process it [11:55:42]req_shift_opened [11:55:42]FM_GetShiftState [11:55:42]SAM_PROTO_GetShiftState [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 13 01 00 [11:55:42]Write to MH i2c: E2 08 00 65 47 80 13 01 00 00 00 00 00 29 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 65 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E3 [11:55:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_GetShiftState done [11:55:42]FM_GetShiftState done [11:55:42]req_shift_opened done [11:55:42]requested_item shift.open_date is exist - process it [11:55:42]req_shift_open_date [11:55:42]req_shift_open_date done [11:55:42]produce_requested_data done [11:55:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31144,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:55:42]process_action_free close_receipt [11:55:42]json_value_free [11:55:42]json_value_free done [11:55:42]process_json_proto returns [11:55:42]Send response to host [11:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31144,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:55:42]free response buf [11:55:42]execute_script done [11:55:42]execute_script returns [11:55:42]free content buf [11:55:42]Sock 9.Close socket [11:55:42]Sock 9.Thread stoped [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:12]accept exits with 7 [11:57:12]New connection [11:57:12]New thread 3067043172 created [11:57:12]Thread 3066899812 joined [11:57:12]Waiting for new connection... [11:57:12] Sock 7.Parse request [11:57:12]Sock 7.Check first char [11:57:12]Sock 7.First char is OK [11:57:12]request: POST /json_proto HTTP/1.0 [11:57:12]Method: POST [11:57:12]URL: /json_proto [11:57:12]Method is POST - this is cgi request [11:57:12]url: /json_proto [11:57:12]query_string will be loaded in cgi processing [11:57:12]execute_cgi json_proto POST (null) [11:57:12]execute_cgi path=json_proto method=POST [11:57:12]POST find Content-Length [11:57:12]Host: 172.17.51.3:8080 [11:57:12]Content-Length: 682 [11:57:12]Content-Type: application/json [11:57:12] [11:57:12]POST finish read [11:57:12]Found Content-Length = 682 [11:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:12]execute_script... [11:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:12]POST & json_proto [11:57:12]process_json_proto [11:57:12]json parsed OK: [11:57:12]protocol is kg_v1.0 [11:57:12]action value=close_receipt [11:57:12]process_action close_receipt [11:57:12]cmd_close_receipt [11:57:12]MH_GetDate [11:57:12]Write to MH i2c: F0 00 00 66 47 9C [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: F0 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: F0 09 00 [11:57:12]MH_I2C_Read... [11:57:12]Read from MH i2c: F0 09 00 66 47 00 9E E4 18 67 04 C1 95 66 66 [11:57:12]GetLastDocTimeStamp 1729684544 [11:57:12]current date 1729684638 [11:57:12]FM_GetShiftState [11:57:12]SAM_PROTO_GetShiftState [11:57:12]wFMCommunicate request_size=4 [11:57:12]MH_SAM_APDU [11:57:12]CAPDU: 80 13 01 00 [11:57:12]Write to MH i2c: E2 08 00 67 47 80 13 01 00 00 00 00 00 2B [11:57:12]Write i2c OK [11:57:12]MH_I2C_Read... [11:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:13]Read from MH i2c: E2 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: E2 0E 00 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: E2 0E 00 67 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E5 [11:57:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:57:13]wFMCommunicate OK [11:57:13]SAM_PROTO_GetShiftState done [11:57:13]FM_GetShiftState done [11:57:13]opened in 1729643755 [11:57:13]opened+sec_in_day 1729730155 [11:57:13]quantity*price = 200043 [11:57:13]sum+1 = 200044 [11:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 89 23.10.2024 11:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31145 ФПД: 280128527332344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31145&fm=280128527332344&tin=02508201610067®Number=0000000000186857&sum=200000 [11:57:14]StoreToDocumentArchive [11:57:14]shift 117 fd 31145 [11:57:14]save to /storage/0117/doc_00031145 [11:57:14]save last doc name /storage/0117/doc_00031145 to /storage/kkm_last_doc_name [11:57:14]save OK [11:57:14]Clear old archive folders... [11:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:14]tlvbuf is 00DA1D00 [11:57:14]SAM_PROTO_ClearQueue [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 09 00 00 [11:57:14]Write to MH i2c: E2 08 00 74 47 80 09 00 00 00 00 00 00 2D [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 74 47 00 90 00 2F [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_ClearQueue done [11:57:14]KKMCreateOFDPacket [11:57:14]OFDProtocolAddRootSTLVToBuf [11:57:14]FM_MakeSignedData [11:57:14]FM_MakeSignedData [11:57:14]SAM_PROTO_SignData [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 0D 01 02 [11:57:14]Write to MH i2c: E2 08 00 75 47 80 0D 01 02 00 00 00 00 35 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 75 47 00 90 00 30 [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]wFMCommunicate request_size=255 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9F E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 79 00 00 35 04 06 00 FE [11:57:14]Write to MH i2c: E2 02 01 76 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9F E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 79 00 00 35 04 06 00 FE 00 00 5F [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]wFMCommunicate request_size=10 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 0D 02 02 05 C6 81 5C F3 F8 [11:57:14]Write to MH i2c: E2 0D 00 77 47 80 0D 02 02 05 00 C6 81 5C F3 F8 00 00 D0 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 77 47 00 90 00 32 [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 0D 03 02 [11:57:14]Write to MH i2c: E2 08 00 78 47 80 0D 03 02 00 00 00 00 3A [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0B 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 0B 00 78 47 00 78 2F DF F4 BD 46 99 A1 90 00 F2 [11:57:14]RAPDU: 78 2F DF F4 BD 46 99 A1 90 00 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_SignData done [11:57:14]FM_MakeSignedData done [11:57:14]CreateOFDProtocolMessage [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 11 00 00 [11:57:14]Write to MH i2c: E2 08 00 79 47 80 11 00 00 00 00 00 00 3A [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 17 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 17 00 79 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [11:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:57:14]wFMCommunicate OK [11:57:14]CreateOFDProtocolMessage done [11:57:14]OFDSenderStorePacket 31145 [11:57:14]StoreOFDPacket docnum=31145 [11:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 2C 07 01 74 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9F E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 79 00 00 35 04 06 00 FE C6 81 5C F3 F8 78 2F DF F4 BD 46 99 A1 [11:57:14]CheckFolder [11:57:14]dirname=/storage/ofd_packets [11:57:14]CheckFolder done [11:57:14]ProducePacketName [11:57:14]name=ofd_packets/00031145 [11:57:14]NVStorageSaveData ofd_packets/00031145 [11:57:14]File name is /storage/ofd_packets/00031145 [11:57:14]Write 301 bytes [11:57:14]NVStorageSaveData done [11:57:14]OFDSenderStorePacket done [11:57:14]KKMCreateOFDPacket done [11:57:14]NVStorageSaveData kkm_last_timestamp [11:57:14]File name is /storage/kkm_last_timestamp [11:57:14]Write 4 bytes [11:57:14]NVStorageSaveData done [11:57:14]ExternCall_PrintAddStr [11:57:14]wPrintStart [11:57:14]Write to MH i2c: 01 00 00 7A 47 C1 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: 01 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: 01 07 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: 01 07 00 7A 47 00 00 00 00 00 FF 0F D6 [11:57:14]RasterBufferAndPrint [11:57:14]line Счет N : (1)343586 [11:57:14]line ИНН: 02508201610067 [11:57:14]line Контрольно-Кассовый Чек [11:57:14]line ПРОДАЖА [11:57:14]line ТРК (МРК, ГНК) : 32 [11:57:14]line Товар: 2710124500 [11:57:14]line Аи-95-К-3 [11:57:14]line 26.960 * 74.20 [11:57:14]line = 2000.43 [11:57:14]line НДС 12% НСП 1% [11:57:14]line > о реализуемом товаре [11:57:14]line ОКРУГЛЕНИЕ: -0.43 [11:57:14]line ИТОГО: 2000.00 [11:57:14]line Внесено: 2000.00 [11:57:14]line СДАЧА: 0.00 [11:57:14]line НСП 1% : 17.70 [11:57:14]line НДС 12% : 212.43 [11:57:14]line Наличными: 2000.00 [11:57:14]line Безнал.: 0.00 [11:57:14]line Место: АЗС № 78 "Партнер Нефть" [11:57:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:57:14]line СНО: Общий режим [11:57:14]line Чек 89 23.10.2024 11:57 [11:57:14]line Смена: 117 ФФД: 1.0 [11:57:14]line ЗНМ: 0300000137 [11:57:14]line РНМ: 0000000000186857 [11:57:14]line Версия ККМ: v1.0 [11:57:14]line ФМ: 0000000002094219 [11:57:14]line ФД: 31145 [11:57:14]line ФПД: 280128527332344 [11:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31145&fm=280128527332344&tin=02508201610067®Number=0000000000186857&sum=200000 [11:57:14]OFD Sender: Processing packet 31145 [packets to send 11, broken 10] [11:57:14]ProducePacketName [11:57:14]name=ofd_packets/00031145 [11:57:14]OFD Sender: To server: pG, [11:57:14]CommunicateWithHost lk.salyk.kg:30040 [11:57:15]ConnectInit lk.salyk.kg [11:57:15]written 0, free lines is 4095 [11:57:15]Connected sock=10 [11:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 2C 07 01 74 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9F E4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 79 00 00 35 04 06 00 FE C6 81 5C F3 F8 78 2F DF F4 BD 46 99 A1 [11:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 35 1B 47 00 C2 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 79 00 00 F4 03 04 00 19 8F 18 67 B6 04 01 00 00 22 99 80 84 6D 18 A6 2C [11:57:15]CommunicateWithHost err = 0 [11:57:15]CheckOFDResponse [11:57:15]1017 (14) - 77093643461234 [11:57:15]1041 (16) - 0000000002094219 [11:57:15]1040 (4) - 31145 [11:57:15]1012 (4) - 23.10.2024 05:52 [11:57:15]1206 (1) - 0 [11:57:15]OFD Sender: Remove packet 31145 [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00031145 [11:57:15]NVStorageDeleteData [11:57:15]Write to MH i2c: 01 00 00 A5 47 EC [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 07 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 07 00 A5 47 00 00 00 00 00 FB 0C FA [11:57:15]RasterBufferAndPrint [11:57:15]line [11:57:15]line [11:57:15]line [11:57:15]line [11:57:15]line [11:57:15]written 0, free lines is 3332 [11:57:15]MH_Cut [11:57:15]Write to MH i2c: D1 01 00 AC 47 01 C5 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: D1 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: D1 01 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: D1 01 00 AC 47 00 C4 [11:57:15]Write to MH i2c: 01 00 00 AD 47 F4 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]OFD Sender: No OFD packet to send [11:57:16]*** Cut start [11:57:16]*** Partial cut [11:57:16]*** CUTSNS_PIN = 1 [11:57:16]*** CUTSNS_PIN = 0 [11:57:16]*** Brake cut motor [11:57:16]Read from MH i2c: 01 [11:57:16]MH_I2C_Read... [11:57:16]*** Stop cut motor [11:57:16]*** Cut end [11:57:16]Read from MH i2c: 01 07 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 AD 47 00 00 00 00 00 FF 0F 09 [11:57:16]process_action close_receipt done [11:57:16]requested_data is exist [11:57:16]produce_requested_data [11:57:16]requested_item fm.sn is exist - process it [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 11 00 00 [11:57:16]Write to MH i2c: E2 08 00 AE 47 80 11 00 00 00 00 00 00 6F [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 AE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BD [11:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:57:16]wFMCommunicate OK [11:57:16]requested_item fd.num is exist - process it [11:57:16]SAM_PROTO_GetFieldsCounters [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 13 00 00 [11:57:16]Write to MH i2c: E2 08 00 AF 47 80 13 00 00 00 00 00 00 72 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 62 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 62 00 AF 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:57:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_GetFieldsCounters done [11:57:16]requested_item shift.num is exist - process it [11:57:16]requested_item shift.opened is exist - process it [11:57:16]req_shift_opened [11:57:16]FM_GetShiftState [11:57:16]SAM_PROTO_GetShiftState [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 13 01 00 [11:57:16]Write to MH i2c: E2 08 00 B0 47 80 13 01 00 00 00 00 00 74 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 B0 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2E [11:57:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_GetShiftState done [11:57:16]FM_GetShiftState done [11:57:16]req_shift_opened done [11:57:16]requested_item shift.open_date is exist - process it [11:57:16]req_shift_open_date [11:57:16]req_shift_open_date done [11:57:16]produce_requested_data done [11:57:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31145,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:57:16]process_action_free close_receipt [11:57:16]json_value_free [11:57:16]json_value_free done [11:57:16]process_json_proto returns [11:57:16]Send response to host [11:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31145,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:57:16]free response buf [11:57:16]execute_script done [11:57:16]execute_script returns [11:57:16]free content buf [11:57:16]Sock 7.Close socket [11:57:16]Sock 7.Thread stoped [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]accept exits with 9 [11:59:00]New connection [11:59:00]New thread 3066899812 created [11:59:00]Thread 3067043172 joined [11:59:00]Waiting for new connection... [11:59:00] Sock 9.Parse request [11:59:00]Sock 9.Check first char [11:59:00]Sock 9.First char is OK [11:59:00]request: POST /json_proto HTTP/1.0 [11:59:00]Method: POST [11:59:00]URL: /json_proto [11:59:00]Method is POST - this is cgi request [11:59:00]url: /json_proto [11:59:00]query_string will be loaded in cgi processing [11:59:00]execute_cgi json_proto POST (null) [11:59:00]execute_cgi path=json_proto method=POST [11:59:00]POST find Content-Length [11:59:00]Host: 172.17.51.3:8080 [11:59:00]Content-Length: 754 [11:59:00]Content-Type: application/json [11:59:00] [11:59:00]POST finish read [11:59:00]Found Content-Length = 754 [11:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 13.460, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:00]execute_script... [11:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 13.460, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:00]POST & json_proto [11:59:00]process_json_proto [11:59:00]json parsed OK: [11:59:00]protocol is kg_v1.0 [11:59:00]action value=close_receipt [11:59:00]process_action close_receipt [11:59:00]cmd_close_receipt [11:59:00]MH_GetDate [11:59:00]Write to MH i2c: F0 00 00 B1 47 E7 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: F0 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: F0 09 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: F0 09 00 B1 47 00 0A E5 18 67 04 C1 95 66 1E [11:59:00]GetLastDocTimeStamp 1729684639 [11:59:00]current date 1729684746 [11:59:00]FM_GetShiftState [11:59:00]SAM_PROTO_GetShiftState [11:59:00]wFMCommunicate request_size=4 [11:59:00]MH_SAM_APDU [11:59:00]CAPDU: 80 13 01 00 [11:59:00]Write to MH i2c: E2 08 00 B2 47 80 13 01 00 00 00 00 00 76 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:00]Read from MH i2c: E2 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 0E 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 0E 00 B2 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 30 [11:59:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:59:00]wFMCommunicate OK [11:59:00]SAM_PROTO_GetShiftState done [11:59:00]FM_GetShiftState done [11:59:00]opened in 1729643755 [11:59:00]opened+sec_in_day 1729730155 [11:59:00]quantity*price = 0 [11:59:00]sum+1 = 1 [11:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 90 23.10.2024 11:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31146 ФПД: 89196722310032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115906&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31146&fm=89196722310032&tin=02508201610067®Number=0000000000186857&sum=0 [11:59:01]StoreToDocumentArchive [11:59:01]shift 117 fd 31146 [11:59:01]save to /storage/0117/doc_00031146 [11:59:01]save last doc name /storage/0117/doc_00031146 to /storage/kkm_last_doc_name [11:59:01]save OK [11:59:01]Clear old archive folders... [11:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:01]tlvbuf is 00CEB020 [11:59:01]SAM_PROTO_ClearQueue [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 09 00 00 [11:59:01]Write to MH i2c: E2 08 00 BF 47 80 09 00 00 00 00 00 00 78 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 BF 47 00 90 00 7A [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]SAM_PROTO_ClearQueue done [11:59:01]KKMCreateOFDPacket [11:59:01]OFDProtocolAddRootSTLVToBuf [11:59:01]FM_MakeSignedData [11:59:01]FM_MakeSignedData [11:59:01]SAM_PROTO_SignData [11:59:01]wFMCommunicate request_size=4 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 01 02 [11:59:01]Write to MH i2c: E2 08 00 C0 47 80 0D 01 02 00 00 00 00 80 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:01]Read from MH i2c: E2 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 [11:59:01]MH_I2C_Read... [11:59:01]Read from MH i2c: E2 03 00 C0 47 00 90 00 7B [11:59:01]RAPDU: 90 00 [11:59:01]wFMCommunicate OK [11:59:01]wFMCommunicate request_size=255 [11:59:01]MH_SAM_APDU [11:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 79 00 00 35 04 06 00 51 [11:59:01]Write to MH i2c: E2 02 01 C1 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 79 00 00 35 04 06 00 51 00 00 05 [11:59:01]Write i2c OK [11:59:01]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 03 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 03 00 C1 47 00 90 00 7C [11:59:02]RAPDU: 90 00 [11:59:02]wFMCommunicate OK [11:59:02]wFMCommunicate request_size=10 [11:59:02]MH_SAM_APDU [11:59:02]CAPDU: 80 0D 02 02 05 1F BA F2 CB 90 [11:59:02]Write to MH i2c: E2 0D 00 C2 47 80 0D 02 02 05 00 1F BA F2 CB 90 00 00 B3 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 03 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 03 00 C2 47 00 90 00 7D [11:59:02]RAPDU: 90 00 [11:59:02]wFMCommunicate OK [11:59:02]wFMCommunicate request_size=4 [11:59:02]MH_SAM_APDU [11:59:02]CAPDU: 80 0D 03 02 [11:59:02]Write to MH i2c: E2 08 00 C3 47 80 0D 03 02 00 00 00 00 85 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 0B 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 0B 00 C3 47 00 9A B8 12 D7 CF BE 2A 81 90 00 F9 [11:59:02]RAPDU: 9A B8 12 D7 CF BE 2A 81 90 00 [11:59:02]wFMCommunicate OK [11:59:02]SAM_PROTO_SignData done [11:59:02]FM_MakeSignedData done [11:59:02]CreateOFDProtocolMessage [11:59:02]wFMCommunicate request_size=4 [11:59:02]MH_SAM_APDU [11:59:02]CAPDU: 80 11 00 00 [11:59:02]Write to MH i2c: E2 08 00 C4 47 80 11 00 00 00 00 00 00 85 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 17 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 17 00 C4 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D3 [11:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:59:02]wFMCommunicate OK [11:59:02]CreateOFDProtocolMessage done [11:59:02]OFDSenderStorePacket 31146 [11:59:02]StoreOFDPacket docnum=31146 [11:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA 92 07 01 F5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 79 00 00 35 04 06 00 51 1F BA F2 CB 90 9A B8 12 D7 CF BE 2A 81 [11:59:02]CheckFolder [11:59:02]dirname=/storage/ofd_packets [11:59:02]CheckFolder done [11:59:02]ProducePacketName [11:59:02]name=ofd_packets/00031146 [11:59:02]NVStorageSaveData ofd_packets/00031146 [11:59:02]File name is /storage/ofd_packets/00031146 [11:59:02]Write 301 bytes [11:59:02]NVStorageSaveData done [11:59:02]OFDSenderStorePacket done [11:59:02]KKMCreateOFDPacket done [11:59:02]NVStorageSaveData kkm_last_timestamp [11:59:02]File name is /storage/kkm_last_timestamp [11:59:02]Write 4 bytes [11:59:02]NVStorageSaveData done [11:59:02]ExternCall_PrintAddStr [11:59:02]wPrintStart [11:59:02]Write to MH i2c: 01 00 00 C5 47 0C [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 C5 47 00 00 00 00 00 FF 0F 21 [11:59:02]RasterBufferAndPrint [11:59:02]line Счет N : (1)343587 [11:59:02]line ИНН: 02508201610067 [11:59:02]line Контрольно-Кассовый Чек [11:59:02]line ПРОДАЖА [11:59:02]line ТРК (МРК, ГНК) : 43 [11:59:02]line Товар: 2710124130 [11:59:02]line Аи-92-К-2 [11:59:02]line 13.460 * 0.00 [11:59:02]line = 0.00 [11:59:02]line НДС 12% НСП 1% [11:59:02]line > о реализуемом товаре [11:59:02]line ИТОГО: 0.00 [11:59:02]line НСП 1% : 0.00 [11:59:02]line НДС 12% : 0.00 [11:59:02]line Наличными: 0.00 [11:59:02]line Безнал.: 0.00 [11:59:02]line Место: АЗС № 78 "Партнер Нефть" [11:59:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:59:02]line СНО: Общий режим [11:59:02]line Чек 90 23.10.2024 11:59 [11:59:02]line Смена: 117 ФФД: 1.0 [11:59:02]line ЗНМ: 0300000137 [11:59:02]line РНМ: 0000000000186857 [11:59:02]line Версия ККМ: v1.0 [11:59:02]line Талоны: ТК ГПНА Online [11:59:02]line 30101093 [11:59:02]line ФМ: 0000000002094219 [11:59:02]line ФД: 31146 [11:59:02]line ФПД: 89196722310032 [11:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115906&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31146&fm=89196722310032&tin=02508201610067®Number=0000000000186857&sum=0 [11:59:02]OFD Sender: Processing packet 31146 [packets to send 11, broken 10] [11:59:02]ProducePacketName [11:59:02]name=ofd_packets/00031146 [11:59:02]OFD Sender: To server: pG, [11:59:02]CommunicateWithHost lk.salyk.kg:30040 [11:59:02]ConnectInit lk.salyk.kg [11:59:02]written 0, free lines is 4095 [11:59:02]Connected sock=10 [11:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BA 92 07 01 F5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 79 00 00 35 04 06 00 51 1F BA F2 CB 90 9A B8 12 D7 CF BE 2A 81 [11:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B4 3C 47 00 1E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 79 00 00 F4 03 04 00 84 8F 18 67 B6 04 01 00 00 ED 8B 8D D4 0E A9 66 31 [11:59:02]CommunicateWithHost err = 0 [11:59:02]CheckOFDResponse [11:59:02]1017 (14) - 77093643461234 [11:59:02]1041 (16) - 0000000002094219 [11:59:02]1040 (4) - 31146 [11:59:02]1012 (4) - 23.10.2024 05:54 [11:59:02]1206 (1) - 0 [11:59:02]OFD Sender: Remove packet 31146 [11:59:02]ProducePacketName [11:59:02]name=ofd_packets/00031146 [11:59:02]NVStorageDeleteData [11:59:02]Write to MH i2c: 01 00 00 EF 47 36 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: 01 07 00 EF 47 00 00 00 00 00 08 0D 52 [11:59:02]RasterBufferAndPrint [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]line [11:59:02]written 0, free lines is 3346 [11:59:02]MH_Cut [11:59:02]Write to MH i2c: D1 01 00 F6 47 01 0F [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: D1 01 00 F6 47 00 0E [11:59:02]Write to MH i2c: 01 00 00 F7 47 3E [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:03]OFD Sender: No OFD packet to send [11:59:03]*** Cut start [11:59:03]*** Partial cut [11:59:03]*** CUTSNS_PIN = 1 [11:59:03]*** CUTSNS_PIN = 0 [11:59:03]*** Brake cut motor [11:59:04]Read from MH i2c: 01 [11:59:04]MH_I2C_Read... [11:59:04]*** Stop cut motor [11:59:04]*** Cut end [11:59:04]Read from MH i2c: 01 07 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: 01 07 00 F7 47 00 00 00 00 00 FF 0F 53 [11:59:04]process_action close_receipt done [11:59:04]requested_data is exist [11:59:04]produce_requested_data [11:59:04]requested_item fm.sn is exist - process it [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 11 00 00 [11:59:04]Write to MH i2c: E2 08 00 F8 47 80 11 00 00 00 00 00 00 B9 [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 17 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 17 00 F8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [11:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:59:04]wFMCommunicate OK [11:59:04]requested_item fd.num is exist - process it [11:59:04]SAM_PROTO_GetFieldsCounters [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 00 00 [11:59:04]Write to MH i2c: E2 08 00 F9 47 80 13 00 00 00 00 00 00 BC [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 62 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 62 00 F9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [11:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetFieldsCounters done [11:59:04]requested_item shift.num is exist - process it [11:59:04]requested_item shift.opened is exist - process it [11:59:04]req_shift_opened [11:59:04]FM_GetShiftState [11:59:04]SAM_PROTO_GetShiftState [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 01 00 [11:59:04]Write to MH i2c: E2 08 00 FA 47 80 13 01 00 00 00 00 00 BE [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 FA 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 78 [11:59:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetShiftState done [11:59:04]FM_GetShiftState done [11:59:04]req_shift_opened done [11:59:04]requested_item shift.open_date is exist - process it [11:59:04]req_shift_open_date [11:59:04]req_shift_open_date done [11:59:04]produce_requested_data done [11:59:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31146,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [11:59:04]process_action_free close_receipt [11:59:04]json_value_free [11:59:04]json_value_free done [11:59:04]process_json_proto returns [11:59:04]Send response to host [11:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31146,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [11:59:04]free response buf [11:59:04]execute_script done [11:59:04]execute_script returns [11:59:04]free content buf [11:59:04]Sock 9.Close socket [11:59:04]Sock 9.Thread stoped [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:48]accept exits with 7 [12:01:48]New connection [12:01:48]New thread 3067043172 created [12:01:48]Thread 3066899812 joined [12:01:48]Waiting for new connection... [12:01:48] Sock 7.Parse request [12:01:48]Sock 7.Check first char [12:01:48]Sock 7.First char is OK [12:01:48]request: POST /json_proto HTTP/1.0 [12:01:48]Method: POST [12:01:48]URL: /json_proto [12:01:48]Method is POST - this is cgi request [12:01:48]url: /json_proto [12:01:48]query_string will be loaded in cgi processing [12:01:48]execute_cgi json_proto POST (null) [12:01:48]execute_cgi path=json_proto method=POST [12:01:48]POST find Content-Length [12:01:48]Host: 172.17.51.3:8080 [12:01:48]Content-Length: 754 [12:01:48]Content-Type: application/json [12:01:48] [12:01:48]POST finish read [12:01:48]Found Content-Length = 754 [12:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:48]execute_script... [12:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:48]POST & json_proto [12:01:48]process_json_proto [12:01:48]json parsed OK: [12:01:48]protocol is kg_v1.0 [12:01:48]action value=close_receipt [12:01:48]process_action close_receipt [12:01:48]cmd_close_receipt [12:01:48]MH_GetDate [12:01:48]Write to MH i2c: F0 00 00 FB 47 31 [12:01:48]Write i2c OK [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: F0 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: F0 09 00 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: F0 09 00 FB 47 00 B2 E5 18 67 04 C1 95 66 10 [12:01:48]GetLastDocTimeStamp 1729684746 [12:01:48]current date 1729684914 [12:01:48]FM_GetShiftState [12:01:48]SAM_PROTO_GetShiftState [12:01:48]wFMCommunicate request_size=4 [12:01:48]MH_SAM_APDU [12:01:48]CAPDU: 80 13 01 00 [12:01:48]Write to MH i2c: E2 08 00 FC 47 80 13 01 00 00 00 00 00 C0 [12:01:48]Write i2c OK [12:01:48]MH_I2C_Read... [12:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:48]Read from MH i2c: E2 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 FC 47 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7A [12:01:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:01:48]wFMCommunicate OK [12:01:48]SAM_PROTO_GetShiftState done [12:01:48]FM_GetShiftState done [12:01:48]opened in 1729643755 [12:01:48]opened+sec_in_day 1729730155 [12:01:48]quantity*price = 0 [12:01:48]sum+1 = 1 [12:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 91 23.10.2024 12:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31147 ФПД: 183145648607806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120154&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31147&fm=183145648607806&tin=02508201610067®Number=0000000000186857&sum=0 [12:01:50]StoreToDocumentArchive [12:01:50]shift 117 fd 31147 [12:01:50]save to /storage/0117/doc_00031147 [12:01:50]save last doc name /storage/0117/doc_00031147 to /storage/kkm_last_doc_name [12:01:50]save OK [12:01:50]Clear old archive folders... [12:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:50]tlvbuf is B6F6E3B0 [12:01:50]SAM_PROTO_ClearQueue [12:01:50]wFMCommunicate request_size=4 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 09 00 00 [12:01:50]Write to MH i2c: E2 08 00 09 48 80 09 00 00 00 00 00 00 C3 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 09 48 00 90 00 C5 [12:01:50]RAPDU: 90 00 [12:01:50]wFMCommunicate OK [12:01:50]SAM_PROTO_ClearQueue done [12:01:50]KKMCreateOFDPacket [12:01:50]OFDProtocolAddRootSTLVToBuf [12:01:50]FM_MakeSignedData [12:01:50]FM_MakeSignedData [12:01:50]SAM_PROTO_SignData [12:01:50]wFMCommunicate request_size=4 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 0D 01 02 [12:01:50]Write to MH i2c: E2 08 00 0A 48 80 0D 01 02 00 00 00 00 CB [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 0A 48 00 90 00 C6 [12:01:50]RAPDU: 90 00 [12:01:50]wFMCommunicate OK [12:01:50]wFMCommunicate request_size=255 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B2 E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 79 00 00 35 04 06 00 A6 [12:01:50]Write to MH i2c: E2 02 01 0B 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B2 E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 79 00 00 35 04 06 00 A6 00 00 27 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 0B 48 00 90 00 C7 [12:01:50]RAPDU: 90 00 [12:01:50]wFMCommunicate OK [12:01:50]wFMCommunicate request_size=10 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 0D 02 02 05 91 EB 53 D2 3E [12:01:50]Write to MH i2c: E2 0D 00 0C 48 80 0D 02 02 05 00 91 EB 53 D2 3E 00 00 B7 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 03 00 0C 48 00 90 00 C8 [12:01:50]RAPDU: 90 00 [12:01:50]wFMCommunicate OK [12:01:50]wFMCommunicate request_size=4 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 0D 03 02 [12:01:50]Write to MH i2c: E2 08 00 0D 48 80 0D 03 02 00 00 00 00 D0 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 0B 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 0B 00 0D 48 00 08 81 64 93 1B 51 BB 43 90 00 BB [12:01:50]RAPDU: 08 81 64 93 1B 51 BB 43 90 00 [12:01:50]wFMCommunicate OK [12:01:50]SAM_PROTO_SignData done [12:01:50]FM_MakeSignedData done [12:01:50]CreateOFDProtocolMessage [12:01:50]wFMCommunicate request_size=4 [12:01:50]MH_SAM_APDU [12:01:50]CAPDU: 80 11 00 00 [12:01:50]Write to MH i2c: E2 08 00 0E 48 80 11 00 00 00 00 00 00 D0 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:50]Read from MH i2c: E2 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 17 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: E2 17 00 0E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [12:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:50]wFMCommunicate OK [12:01:50]CreateOFDProtocolMessage done [12:01:50]OFDSenderStorePacket 31147 [12:01:50]StoreOFDPacket docnum=31147 [12:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9B 61 07 01 E2 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B2 E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 79 00 00 35 04 06 00 A6 91 EB 53 D2 3E 08 81 64 93 1B 51 BB 43 [12:01:50]CheckFolder [12:01:50]dirname=/storage/ofd_packets [12:01:50]CheckFolder done [12:01:50]ProducePacketName [12:01:50]name=ofd_packets/00031147 [12:01:50]NVStorageSaveData ofd_packets/00031147 [12:01:50]File name is /storage/ofd_packets/00031147 [12:01:50]Write 301 bytes [12:01:50]NVStorageSaveData done [12:01:50]OFDSenderStorePacket done [12:01:50]KKMCreateOFDPacket done [12:01:50]NVStorageSaveData kkm_last_timestamp [12:01:50]File name is /storage/kkm_last_timestamp [12:01:50]Write 4 bytes [12:01:50]NVStorageSaveData done [12:01:50]ExternCall_PrintAddStr [12:01:50]wPrintStart [12:01:50]Write to MH i2c: 01 00 00 0F 48 57 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 0F 48 00 00 00 00 00 FF 0F 6C [12:01:50]RasterBufferAndPrint [12:01:50]line Счет N : (1)343589 [12:01:50]line ИНН: 02508201610067 [12:01:50]line Контрольно-Кассовый Чек [12:01:50]line ПРОДАЖА [12:01:50]line ТРК (МРК, ГНК) : 63 [12:01:50]line Товар: 2710124130 [12:01:50]line Аи-92-К-2 [12:01:50]line 14.950 * 0.00 [12:01:50]line = 0.00 [12:01:50]line НДС 12% НСП 1% [12:01:50]line > о реализуемом товаре [12:01:50]line ИТОГО: 0.00 [12:01:50]line НСП 1% : 0.00 [12:01:50]line НДС 12% : 0.00 [12:01:50]line Наличными: 0.00 [12:01:50]line Безнал.: 0.00 [12:01:50]line Место: АЗС № 78 "Партнер Нефть" [12:01:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:01:50]line СНО: Общий режим [12:01:50]line Чек 91 23.10.2024 12:01 [12:01:50]line Смена: 117 ФФД: 1.0 [12:01:50]line ЗНМ: 0300000137 [12:01:50]line РНМ: 0000000000186857 [12:01:50]line Версия ККМ: v1.0 [12:01:50]line Талоны: ТК ГПНА Online [12:01:50]line 30101093 [12:01:50]line ФМ: 0000000002094219 [12:01:50]line ФД: 31147 [12:01:50]line ФПД: 183145648607806 [12:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120154&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31147&fm=183145648607806&tin=02508201610067®Number=0000000000186857&sum=0 [12:01:50]OFD Sender: Processing packet 31147 [packets to send 11, broken 10] [12:01:50]ProducePacketName [12:01:50]name=ofd_packets/00031147 [12:01:50]OFD Sender: To server: pG, [12:01:50]CommunicateWithHost lk.salyk.kg:30040 [12:01:50]ConnectInit lk.salyk.kg [12:01:50]written 0, free lines is 4095 [12:01:51]Connected sock=9 [12:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9B 61 07 01 E2 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B2 E5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 79 00 00 35 04 06 00 A6 91 EB 53 D2 3E 08 81 64 93 1B 51 BB 43 [12:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 64 61 47 00 6E 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 32 30 39 34 32 31 39 10 04 04 00 AB 79 00 00 F4 03 04 00 2D 90 18 67 B6 04 01 00 00 51 BE 49 C3 03 0B 93 2D [12:01:51]CommunicateWithHost err = 0 [12:01:51]CheckOFDResponse [12:01:51]1017 (14) - 77093643461234 [12:01:51]1041 (16) - 0000000002094219 [12:01:51]1040 (4) - 31147 [12:01:51]1012 (4) - 23.10.2024 05:57 [12:01:51]1206 (1) - 0 [12:01:51]OFD Sender: Remove packet 31147 [12:01:51]ProducePacketName [12:01:51]name=ofd_packets/00031147 [12:01:51]NVStorageDeleteData [12:01:51]Write to MH i2c: 01 00 00 39 48 81 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: 01 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: 01 07 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: 01 07 00 39 48 00 00 00 00 00 14 0D A9 [12:01:51]RasterBufferAndPrint [12:01:51]line [12:01:51]line [12:01:51]line [12:01:51]line [12:01:51]line [12:01:51]written 0, free lines is 3357 [12:01:51]MH_Cut [12:01:51]Write to MH i2c: D1 01 00 40 48 01 5A [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: D1 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: D1 01 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: D1 01 00 40 48 00 59 [12:01:51]Write to MH i2c: 01 00 00 41 48 89 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]OFD Sender: No OFD packet to send [12:01:52]*** Cut start [12:01:52]*** Partial cut [12:01:52]*** CUTSNS_PIN = 1 [12:01:52]*** CUTSNS_PIN = 0 [12:01:52]*** Brake cut motor [12:01:52]Read from MH i2c: 01 [12:01:52]MH_I2C_Read... [12:01:52]*** Stop cut motor [12:01:52]*** Cut end [12:01:52]Read from MH i2c: 01 07 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 41 48 00 00 00 00 00 FF 0F 9E [12:01:52]process_action close_receipt done [12:01:52]requested_data is exist [12:01:52]produce_requested_data [12:01:52]requested_item fm.sn is exist - process it [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 11 00 00 [12:01:52]Write to MH i2c: E2 08 00 42 48 80 11 00 00 00 00 00 00 04 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 42 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [12:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:52]wFMCommunicate OK [12:01:52]requested_item fd.num is exist - process it [12:01:52]SAM_PROTO_GetFieldsCounters [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 13 00 00 [12:01:52]Write to MH i2c: E2 08 00 43 48 80 13 00 00 00 00 00 00 07 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 62 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 62 00 43 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_GetFieldsCounters done [12:01:52]requested_item shift.num is exist - process it [12:01:52]requested_item shift.opened is exist - process it [12:01:52]req_shift_opened [12:01:52]FM_GetShiftState [12:01:52]SAM_PROTO_GetShiftState [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 13 01 00 [12:01:52]Write to MH i2c: E2 08 00 44 48 80 13 01 00 00 00 00 00 09 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 44 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C3 [12:01:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_GetShiftState done [12:01:52]FM_GetShiftState done [12:01:52]req_shift_opened done [12:01:52]requested_item shift.open_date is exist - process it [12:01:52]req_shift_open_date [12:01:52]req_shift_open_date done [12:01:52]produce_requested_data done [12:01:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31147,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:01:52]process_action_free close_receipt [12:01:52]json_value_free [12:01:52]json_value_free done [12:01:52]process_json_proto returns [12:01:52]Send response to host [12:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31147,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:01:52]free response buf [12:01:52]execute_script done [12:01:52]execute_script returns [12:01:52]free content buf [12:01:52]Sock 7.Close socket [12:01:52]Sock 7.Thread stoped [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:25]accept exits with 10 [12:03:25]New connection [12:03:25]New thread 3066899812 created [12:03:25]Thread 3067043172 joined [12:03:25]Waiting for new connection... [12:03:25] Sock 10.Parse request [12:03:25]Sock 10.Check first char [12:03:25]Sock 10.First char is OK [12:03:25]request: POST /json_proto HTTP/1.0 [12:03:25]Method: POST [12:03:25]URL: /json_proto [12:03:25]Method is POST - this is cgi request [12:03:25]url: /json_proto [12:03:25]query_string will be loaded in cgi processing [12:03:25]execute_cgi json_proto POST (null) [12:03:25]execute_cgi path=json_proto method=POST [12:03:25]POST find Content-Length [12:03:25]Host: 172.17.51.3:8080 [12:03:25]Content-Length: 674 [12:03:25]Content-Type: application/json [12:03:25] [12:03:25]POST finish read [12:03:25]Found Content-Length = 674 [12:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:25]execute_script... [12:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:25]POST & json_proto [12:03:25]process_json_proto [12:03:25]json parsed OK: [12:03:25]protocol is kg_v1.0 [12:03:25]action value=close_receipt [12:03:25]process_action close_receipt [12:03:25]cmd_close_receipt [12:03:25]MH_GetDate [12:03:25]Write to MH i2c: F0 00 00 45 48 7C [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: F0 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: F0 09 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: F0 09 00 45 48 00 13 E6 18 67 04 C1 95 66 BD [12:03:25]GetLastDocTimeStamp 1729684914 [12:03:25]current date 1729685011 [12:03:25]FM_GetShiftState [12:03:25]SAM_PROTO_GetShiftState [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 13 01 00 [12:03:25]Write to MH i2c: E2 08 00 46 48 80 13 01 00 00 00 00 00 0B [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0E 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0E 00 46 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C5 [12:03:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:03:25]wFMCommunicate OK [12:03:25]SAM_PROTO_GetShiftState done [12:03:25]FM_GetShiftState done [12:03:25]opened in 1729643755 [12:03:25]opened+sec_in_day 1729730155 [12:03:25]quantity*price = 10058 [12:03:25]sum+1 = 10059 [12:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 92 23.10.2024 12:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31148 ФПД: 119641707470942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31148&fm=119641707470942&tin=02508201610067®Number=0000000000186857&sum=10000 [12:03:26]StoreToDocumentArchive [12:03:26]shift 117 fd 31148 [12:03:26]save to /storage/0117/doc_00031148 [12:03:26]save last doc name /storage/0117/doc_00031148 to /storage/kkm_last_doc_name [12:03:26]save OK [12:03:26]Clear old archive folders... [12:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:26]tlvbuf is 00E84EC0 [12:03:26]SAM_PROTO_ClearQueue [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 09 00 00 [12:03:26]Write to MH i2c: E2 08 00 53 48 80 09 00 00 00 00 00 00 0D [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 53 48 00 90 00 0F [12:03:26]RAPDU: 90 00 [12:03:26]wFMCommunicate OK [12:03:26]SAM_PROTO_ClearQueue done [12:03:26]KKMCreateOFDPacket [12:03:26]OFDProtocolAddRootSTLVToBuf [12:03:26]FM_MakeSignedData [12:03:26]FM_MakeSignedData [12:03:26]SAM_PROTO_SignData [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 0D 01 02 [12:03:26]Write to MH i2c: E2 08 00 54 48 80 0D 01 02 00 00 00 00 15 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 54 48 00 90 00 10 [12:03:26]RAPDU: 90 00 [12:03:26]wFMCommunicate OK [12:03:26]wFMCommunicate request_size=255 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 5C 00 00 00 F4 03 04 00 13 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 79 00 00 35 04 06 00 6C D0 41 79 [12:03:26]Write to MH i2c: E2 02 01 55 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 5C 00 00 00 F4 03 04 00 13 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 79 00 00 35 04 06 00 6C D0 41 79 00 00 4E [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 55 48 00 90 00 11 [12:03:26]RAPDU: 90 00 [12:03:26]wFMCommunicate OK [12:03:26]wFMCommunicate request_size=7 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 0D 02 02 02 60 5E [12:03:26]Write to MH i2c: E2 0A 00 56 48 80 0D 02 02 02 00 60 5E 00 00 DA [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 03 00 56 48 00 90 00 12 [12:03:26]RAPDU: 90 00 [12:03:26]wFMCommunicate OK [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 0D 03 02 [12:03:26]Write to MH i2c: E2 08 00 57 48 80 0D 03 02 00 00 00 00 1A [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 0B 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 0B 00 57 48 00 A0 C7 1B 00 4C 61 09 25 90 00 78 [12:03:26]RAPDU: A0 C7 1B 00 4C 61 09 25 90 00 [12:03:26]wFMCommunicate OK [12:03:26]SAM_PROTO_SignData done [12:03:26]FM_MakeSignedData done [12:03:26]CreateOFDProtocolMessage [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 11 00 00 [12:03:26]Write to MH i2c: E2 08 00 58 48 80 11 00 00 00 00 00 00 1A [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 17 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 17 00 58 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [12:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:03:26]wFMCommunicate OK [12:03:26]CreateOFDProtocolMessage done [12:03:26]OFDSenderStorePacket 31148 [12:03:26]StoreOFDPacket docnum=31148 [12:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 38 76 04 01 03 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 5C 00 00 00 F4 03 04 00 13 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 79 00 00 35 04 06 00 6C D0 41 79 60 5E A0 C7 1B 00 4C 61 09 25 [12:03:26]CheckFolder [12:03:26]dirname=/storage/ofd_packets [12:03:26]CheckFolder done [12:03:26]ProducePacketName [12:03:26]name=ofd_packets/00031148 [12:03:26]NVStorageSaveData ofd_packets/00031148 [12:03:26]File name is /storage/ofd_packets/00031148 [12:03:26]Write 298 bytes [12:03:26]NVStorageSaveData done [12:03:26]OFDSenderStorePacket done [12:03:26]KKMCreateOFDPacket done [12:03:26]NVStorageSaveData kkm_last_timestamp [12:03:26]File name is /storage/kkm_last_timestamp [12:03:26]OFD Sender: Processing packet 31148 [packets to send 11, broken 10] [12:03:26]ProducePacketName [12:03:26]name=ofd_packets/00031148 [12:03:26]OFD Sender: To server: pG, [12:03:26]CommunicateWithHost lk.salyk.kg:30040 [12:03:26]ConnectInit lk.salyk.kg [12:03:26]Write 4 bytes [12:03:26]NVStorageSaveData done [12:03:26]ExternCall_PrintAddStr [12:03:26]wPrintStart [12:03:26]Write to MH i2c: 01 00 00 59 48 A1 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 07 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 07 00 59 48 00 00 00 00 00 FF 0F B6 [12:03:26]RasterBufferAndPrint [12:03:26]line Счет N : (1)343590 [12:03:26]line ИНН: 02508201610067 [12:03:26]line Контрольно-Кассовый Чек [12:03:26]line ПРОДАЖА [12:03:26]line ТРК (МРК, ГНК) : 64 [12:03:26]line Товар: 2710194210 [12:03:26]line ДТ-К-2 [12:03:26]line 1.320 * 76.20 [12:03:26]line = 100.58 [12:03:26]line НДС 12% НСП 1% [12:03:26]line > о реализуемом товаре [12:03:26]line ОКРУГЛЕНИЕ: -0.58 [12:03:26]line ИТОГО: 100.00 [12:03:26]line Внесено: 100.00 [12:03:26]line СДАЧА: 0.00 [12:03:26]line НСП 1% : 0.89 [12:03:26]line НДС 12% : 10.68 [12:03:26]line Наличными: 100.00 [12:03:26]line Безнал.: 0.00 [12:03:26]line Место: АЗС № 78 "Партнер Нефть" [12:03:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:03:26]line СНО: Общий режим [12:03:26]line Чек 92 23.10.2024 12:03 [12:03:26]line Смена: 117 ФФД: 1.0 [12:03:26]line ЗНМ: 0300000137 [12:03:26]line РНМ: 0000000000186857 [12:03:27]line Версия ККМ: v1.0 [12:03:27]line ФМ: 0000000002094219 [12:03:27]line ФД: 31148 [12:03:27]line ФПД: 119641707470942 [12:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120331&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31148&fm=119641707470942&tin=02508201610067®Number=0000000000186857&sum=10000 [12:03:27]Connected sock=11 [12:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 38 76 04 01 03 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 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 5C 00 00 00 F4 03 04 00 13 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 79 00 00 35 04 06 00 6C D0 41 79 60 5E A0 C7 1B 00 4C 61 09 25 [12:03:27]written 0, free lines is 4095 [12:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D6 AE 47 00 C7 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 32 30 39 34 32 31 39 10 04 04 00 AC 79 00 00 F4 03 04 00 8D 90 18 67 B6 04 01 00 00 F4 40 75 CB 86 81 A1 FA [12:03:27]CommunicateWithHost err = 0 [12:03:27]CheckOFDResponse [12:03:27]1017 (14) - 77093643461234 [12:03:27]1041 (16) - 0000000002094219 [12:03:27]1040 (4) - 31148 [12:03:27]1012 (4) - 23.10.2024 05:58 [12:03:27]1206 (1) - 0 [12:03:27]OFD Sender: Remove packet 31148 [12:03:27]ProducePacketName [12:03:27]name=ofd_packets/00031148 [12:03:27]NVStorageDeleteData [12:03:27]Write to MH i2c: 01 00 00 84 48 CC [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: 01 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: 01 07 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: 01 07 00 84 48 00 00 00 00 00 EE 0C CD [12:03:27]RasterBufferAndPrint [12:03:27]line [12:03:27]line [12:03:27]line [12:03:27]line [12:03:27]line [12:03:27]written 0, free lines is 3319 [12:03:27]MH_Cut [12:03:27]Write to MH i2c: D1 01 00 8B 48 01 A5 [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: D1 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: D1 01 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: D1 01 00 8B 48 00 A4 [12:03:27]Write to MH i2c: 01 00 00 8C 48 D4 [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]OFD Sender: No OFD packet to send [12:03:28]*** Cut start [12:03:28]*** Partial cut [12:03:28]*** CUTSNS_PIN = 1 [12:03:28]*** CUTSNS_PIN = 0 [12:03:28]*** Brake cut motor [12:03:28]Read from MH i2c: 01 [12:03:28]MH_I2C_Read... [12:03:28]*** Stop cut motor [12:03:28]*** Cut end [12:03:28]Read from MH i2c: 01 07 00 [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: 01 07 00 8C 48 00 00 00 00 00 FF 0F E9 [12:03:28]process_action close_receipt done [12:03:28]requested_data is exist [12:03:28]produce_requested_data [12:03:28]requested_item fm.sn is exist - process it [12:03:28]wFMCommunicate request_size=4 [12:03:28]MH_SAM_APDU [12:03:28]CAPDU: 80 11 00 00 [12:03:28]Write to MH i2c: E2 08 00 8D 48 80 11 00 00 00 00 00 00 4F [12:03:28]Write i2c OK [12:03:28]MH_I2C_Read... [12:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:28]Read from MH i2c: E2 [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: E2 17 00 [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: E2 17 00 8D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [12:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:03:28]wFMCommunicate OK [12:03:28]requested_item fd.num is exist - process it [12:03:28]SAM_PROTO_GetFieldsCounters [12:03:28]wFMCommunicate request_size=4 [12:03:28]MH_SAM_APDU [12:03:28]CAPDU: 80 13 00 00 [12:03:28]Write to MH i2c: E2 08 00 8E 48 80 13 00 00 00 00 00 00 52 [12:03:28]Write i2c OK [12:03:28]MH_I2C_Read... [12:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:29]Read from MH i2c: E2 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: E2 62 00 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: E2 62 00 8E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:29]wFMCommunicate OK [12:03:29]SAM_PROTO_GetFieldsCounters done [12:03:29]requested_item shift.num is exist - process it [12:03:29]requested_item shift.opened is exist - process it [12:03:29]req_shift_opened [12:03:29]FM_GetShiftState [12:03:29]SAM_PROTO_GetShiftState [12:03:29]wFMCommunicate request_size=4 [12:03:29]MH_SAM_APDU [12:03:29]CAPDU: 80 13 01 00 [12:03:29]Write to MH i2c: E2 08 00 8F 48 80 13 01 00 00 00 00 00 54 [12:03:29]Write i2c OK [12:03:29]MH_I2C_Read... [12:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:29]Read from MH i2c: E2 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: E2 0E 00 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: E2 0E 00 8F 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0E [12:03:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:03:29]wFMCommunicate OK [12:03:29]SAM_PROTO_GetShiftState done [12:03:29]FM_GetShiftState done [12:03:29]req_shift_opened done [12:03:29]requested_item shift.open_date is exist - process it [12:03:29]req_shift_open_date [12:03:29]req_shift_open_date done [12:03:29]produce_requested_data done [12:03:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31148,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:03:29]process_action_free close_receipt [12:03:29]json_value_free [12:03:29]json_value_free done [12:03:29]process_json_proto returns [12:03:29]Send response to host [12:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31148,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:03:29]free response buf [12:03:29]execute_script done [12:03:29]execute_script returns [12:03:29]free content buf [12:03:29]Sock 10.Close socket [12:03:29]Sock 10.Thread stoped [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:23]accept exits with 7 [12:05:23]New connection [12:05:23]New thread 3067043172 created [12:05:23]Thread 3066899812 joined [12:05:23]Waiting for new connection... [12:05:23] Sock 7.Parse request [12:05:23]Sock 7.Check first char [12:05:23]Sock 7.First char is OK [12:05:23]request: POST /json_proto HTTP/1.0 [12:05:23]Method: POST [12:05:23]URL: /json_proto [12:05:23]Method is POST - this is cgi request [12:05:23]url: /json_proto [12:05:23]query_string will be loaded in cgi processing [12:05:23]execute_cgi json_proto POST (null) [12:05:23]execute_cgi path=json_proto method=POST [12:05:23]POST find Content-Length [12:05:23]Host: 172.17.51.3:8080 [12:05:23]Content-Length: 753 [12:05:23]Content-Type: application/json [12:05:23] [12:05:23]POST finish read [12:05:23]Found Content-Length = 753 [12:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:23]execute_script... [12:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:23]POST & json_proto [12:05:23]process_json_proto [12:05:23]json parsed OK: [12:05:23]protocol is kg_v1.0 [12:05:23]action value=close_receipt [12:05:23]process_action close_receipt [12:05:23]cmd_close_receipt [12:05:23]MH_GetDate [12:05:23]Write to MH i2c: F0 00 00 90 48 C7 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 90 48 00 89 E6 18 67 04 C1 95 66 7E [12:05:23]GetLastDocTimeStamp 1729685011 [12:05:23]current date 1729685129 [12:05:23]FM_GetShiftState [12:05:23]SAM_PROTO_GetShiftState [12:05:23]wFMCommunicate request_size=4 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 13 01 00 [12:05:23]Write to MH i2c: E2 08 00 91 48 80 13 01 00 00 00 00 00 56 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:23]Read from MH i2c: E2 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 91 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 10 [12:05:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:05:23]wFMCommunicate OK [12:05:23]SAM_PROTO_GetShiftState done [12:05:23]FM_GetShiftState done [12:05:23]opened in 1729643755 [12:05:23]opened+sec_in_day 1729730155 [12:05:23]quantity*price = 0 [12:05:23]sum+1 = 1 [12:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 93 23.10.2024 12:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31149 ФПД: 248271189173067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120529&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31149&fm=248271189173067&tin=02508201610067®Number=0000000000186857&sum=0 [12:05:24]StoreToDocumentArchive [12:05:24]shift 117 fd 31149 [12:05:24]save to /storage/0117/doc_00031149 [12:05:24]save last doc name /storage/0117/doc_00031149 to /storage/kkm_last_doc_name [12:05:24]save OK [12:05:24]Clear old archive folders... [12:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:24]tlvbuf is 00CC5220 [12:05:24]SAM_PROTO_ClearQueue [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 09 00 00 [12:05:24]Write to MH i2c: E2 08 00 9E 48 80 09 00 00 00 00 00 00 58 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 9E 48 00 90 00 5A [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]SAM_PROTO_ClearQueue done [12:05:24]KKMCreateOFDPacket [12:05:24]OFDProtocolAddRootSTLVToBuf [12:05:24]FM_MakeSignedData [12:05:24]FM_MakeSignedData [12:05:24]SAM_PROTO_SignData [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 01 02 [12:05:24]Write to MH i2c: E2 08 00 9F 48 80 0D 01 02 00 00 00 00 60 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 9F 48 00 90 00 5B [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=255 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 89 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 79 00 00 35 04 06 00 E1 [12:05:24]Write to MH i2c: E2 02 01 A0 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 89 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 79 00 00 35 04 06 00 E1 00 00 88 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 A0 48 00 90 00 5C [12:05:25]RAPDU: 90 00 [12:05:25]wFMCommunicate OK [12:05:25]wFMCommunicate request_size=10 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 0D 02 02 05 CD 24 09 E3 4B [12:05:25]Write to MH i2c: E2 0D 00 A1 48 80 0D 02 02 05 00 CD 24 09 E3 4B 00 00 95 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 A1 48 00 90 00 5D [12:05:25]RAPDU: 90 00 [12:05:25]wFMCommunicate OK [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 0D 03 02 [12:05:25]Write to MH i2c: E2 08 00 A2 48 80 0D 03 02 00 00 00 00 65 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 A2 48 00 67 4D AC C7 EB 5B 1B AB 90 00 99 [12:05:25]RAPDU: 67 4D AC C7 EB 5B 1B AB 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_SignData done [12:05:25]FM_MakeSignedData done [12:05:25]CreateOFDProtocolMessage [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 11 00 00 [12:05:25]Write to MH i2c: E2 08 00 A3 48 80 11 00 00 00 00 00 00 65 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 A3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [12:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:05:25]wFMCommunicate OK [12:05:25]CreateOFDProtocolMessage done [12:05:25]OFDSenderStorePacket 31149 [12:05:25]StoreOFDPacket docnum=31149 [12:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC 95 07 01 EB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 89 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 79 00 00 35 04 06 00 E1 CD 24 09 E3 4B 67 4D AC C7 EB 5B 1B AB [12:05:25]CheckFolder [12:05:25]dirname=/storage/ofd_packets [12:05:25]CheckFolder done [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00031149 [12:05:25]NVStorageSaveData ofd_packets/00031149 [12:05:25]File name is /storage/ofd_packets/00031149 [12:05:25]Write 301 bytes [12:05:25]NVStorageSaveData done [12:05:25]OFDSenderStorePacket done [12:05:25]KKMCreateOFDPacket done [12:05:25]NVStorageSaveData kkm_last_timestamp [12:05:25]File name is /storage/kkm_last_timestamp [12:05:25]Write 4 bytes [12:05:25]NVStorageSaveData done [12:05:25]ExternCall_PrintAddStr [12:05:25]wPrintStart [12:05:25]Write to MH i2c: 01 00 00 A4 48 EC [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 A4 48 00 00 00 00 00 FF 0F 01 [12:05:25]RasterBufferAndPrint [12:05:25]line Счет N : (1)343591 [12:05:25]line ИНН: 02508201610067 [12:05:25]line Контрольно-Кассовый Чек [12:05:25]line ПРОДАЖА [12:05:25]line ТРК (МРК, ГНК) : 43 [12:05:25]line Товар: 2710124130 [12:05:25]line Аи-92-К-2 [12:05:25]line 7.480 * 0.00 [12:05:25]line = 0.00 [12:05:25]line НДС 12% НСП 1% [12:05:25]line > о реализуемом товаре [12:05:25]line ИТОГО: 0.00 [12:05:25]line НСП 1% : 0.00 [12:05:25]line НДС 12% : 0.00 [12:05:25]line Наличными: 0.00 [12:05:25]line Безнал.: 0.00 [12:05:25]line Место: АЗС № 78 "Партнер Нефть" [12:05:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:05:25]line СНО: Общий режим [12:05:25]line Чек 93 23.10.2024 12:05 [12:05:25]line Смена: 117 ФФД: 1.0 [12:05:25]line ЗНМ: 0300000137 [12:05:25]line РНМ: 0000000000186857 [12:05:25]line Версия ККМ: v1.0 [12:05:25]line Талоны: ТК ГПНА Online [12:05:25]line 30101093 [12:05:25]line ФМ: 0000000002094219 [12:05:25]line ФД: 31149 [12:05:25]line ФПД: 248271189173067 [12:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120529&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31149&fm=248271189173067&tin=02508201610067®Number=0000000000186857&sum=0 [12:05:25]OFD Sender: Processing packet 31149 [packets to send 11, broken 10] [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00031149 [12:05:25]OFD Sender: To server: pG, [12:05:25]CommunicateWithHost lk.salyk.kg:30040 [12:05:25]ConnectInit lk.salyk.kg [12:05:25]written 0, free lines is 4095 [12:05:25]Connected sock=10 [12:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC 95 07 01 EB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 89 E6 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 79 00 00 35 04 06 00 E1 CD 24 09 E3 4B 67 4D AC C7 EB 5B 1B AB [12:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9C D8 47 00 3D 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 79 00 00 F4 03 04 00 04 91 18 67 B6 04 01 00 00 62 9B 56 0F 02 90 A8 E0 [12:05:25]CommunicateWithHost err = 0 [12:05:25]CheckOFDResponse [12:05:25]1017 (14) - 77093643461234 [12:05:25]1041 (16) - 0000000002094219 [12:05:25]1040 (4) - 31149 [12:05:25]1012 (4) - 23.10.2024 06:00 [12:05:25]1206 (1) - 0 [12:05:25]OFD Sender: Remove packet 31149 [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00031149 [12:05:25]NVStorageDeleteData [12:05:25]Write to MH i2c: 01 00 00 CE 48 16 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 CE 48 00 00 00 00 00 05 0D 2F [12:05:25]RasterBufferAndPrint [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]line [12:05:25]written 0, free lines is 3339 [12:05:25]MH_Cut [12:05:25]Write to MH i2c: D1 01 00 D5 48 01 EF [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: D1 [12:05:25]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 D5 48 00 EE [12:05:26]Write to MH i2c: 01 00 00 D6 48 1E [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]OFD Sender: No OFD packet to send [12:05:26]*** Cut start [12:05:26]*** Partial cut [12:05:26]*** CUTSNS_PIN = 1 [12:05:26]*** CUTSNS_PIN = 0 [12:05:26]*** Brake cut motor [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]*** Stop cut motor [12:05:27]*** Cut end [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 D6 48 00 00 00 00 00 FF 0F 33 [12:05:27]process_action close_receipt done [12:05:27]requested_data is exist [12:05:27]produce_requested_data [12:05:27]requested_item fm.sn is exist - process it [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 11 00 00 [12:05:27]Write to MH i2c: E2 08 00 D7 48 80 11 00 00 00 00 00 00 99 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 D7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [12:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:05:27]wFMCommunicate OK [12:05:27]requested_item fd.num is exist - process it [12:05:27]SAM_PROTO_GetFieldsCounters [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 00 00 [12:05:27]Write to MH i2c: E2 08 00 D8 48 80 13 00 00 00 00 00 00 9C [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 D8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetFieldsCounters done [12:05:27]requested_item shift.num is exist - process it [12:05:27]requested_item shift.opened is exist - process it [12:05:27]req_shift_opened [12:05:27]FM_GetShiftState [12:05:27]SAM_PROTO_GetShiftState [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 01 00 [12:05:27]Write to MH i2c: E2 08 00 D9 48 80 13 01 00 00 00 00 00 9E [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 D9 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 58 [12:05:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetShiftState done [12:05:27]FM_GetShiftState done [12:05:27]req_shift_opened done [12:05:27]requested_item shift.open_date is exist - process it [12:05:27]req_shift_open_date [12:05:27]req_shift_open_date done [12:05:27]produce_requested_data done [12:05:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31149,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:05:27]process_action_free close_receipt [12:05:27]json_value_free [12:05:27]json_value_free done [12:05:27]process_json_proto returns [12:05:27]Send response to host [12:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31149,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:05:27]free response buf [12:05:27]execute_script done [12:05:27]execute_script returns [12:05:27]free content buf [12:05:27]Sock 7.Close socket [12:05:27]Sock 7.Thread stoped [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]accept exits with 9 [12:08:11]New connection [12:08:11]New thread 3066899812 created [12:08:11]Thread 3067043172 joined [12:08:11]Waiting for new connection... [12:08:11] Sock 9.Parse request [12:08:11]Sock 9.Check first char [12:08:11]Sock 9.First char is OK [12:08:11]request: POST /json_proto HTTP/1.0 [12:08:11]Method: POST [12:08:11]URL: /json_proto [12:08:11]Method is POST - this is cgi request [12:08:11]url: /json_proto [12:08:11]query_string will be loaded in cgi processing [12:08:11]execute_cgi json_proto POST (null) [12:08:11]execute_cgi path=json_proto method=POST [12:08:11]POST find Content-Length [12:08:11]Host: 172.17.51.3:8080 [12:08:11]Content-Length: 688 [12:08:11]Content-Type: application/json [12:08:11] [12:08:11]POST finish read [12:08:11]Found Content-Length = 688 [12:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:11]execute_script... [12:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:11]POST & json_proto [12:08:11]process_json_proto [12:08:11]json parsed OK: [12:08:11]protocol is kg_v1.0 [12:08:11]action value=close_receipt [12:08:11]process_action close_receipt [12:08:11]cmd_close_receipt [12:08:11]MH_GetDate [12:08:11]Write to MH i2c: F0 00 00 DA 48 11 [12:08:11]Write i2c OK [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: F0 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: F0 09 00 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: F0 09 00 DA 48 00 31 E7 18 67 04 C1 95 66 71 [12:08:11]GetLastDocTimeStamp 1729685129 [12:08:11]current date 1729685297 [12:08:11]FM_GetShiftState [12:08:11]SAM_PROTO_GetShiftState [12:08:11]wFMCommunicate request_size=4 [12:08:11]MH_SAM_APDU [12:08:11]CAPDU: 80 13 01 00 [12:08:11]Write to MH i2c: E2 08 00 DB 48 80 13 01 00 00 00 00 00 A0 [12:08:11]Write i2c OK [12:08:11]MH_I2C_Read... [12:08:11]OFD Sender: No OFD packet to send [12:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:11]Read from MH i2c: E2 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: E2 0E 00 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: E2 0E 00 DB 48 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5A [12:08:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:08:11]wFMCommunicate OK [12:08:11]SAM_PROTO_GetShiftState done [12:08:11]FM_GetShiftState done [12:08:11]opened in 1729643755 [12:08:11]opened+sec_in_day 1729730155 [12:08:11]quantity*price = 100051 [12:08:11]sum+1 = 100052 [12:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 94 23.10.2024 12:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31150 ФПД: 108441447098238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120817&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31150&fm=108441447098238&tin=02508201610067®Number=0000000000186857&sum=100000 [12:08:12]StoreToDocumentArchive [12:08:12]shift 117 fd 31150 [12:08:12]save to /storage/0117/doc_00031150 [12:08:12]save last doc name /storage/0117/doc_00031150 to /storage/kkm_last_doc_name [12:08:12]save OK [12:08:12]Clear old archive folders... [12:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:08:12]tlvbuf is 00E4AD20 [12:08:12]SAM_PROTO_ClearQueue [12:08:12]wFMCommunicate request_size=4 [12:08:12]MH_SAM_APDU [12:08:12]CAPDU: 80 09 00 00 [12:08:12]Write to MH i2c: E2 08 00 E8 48 80 09 00 00 00 00 00 00 A2 [12:08:12]Write i2c OK [12:08:12]MH_I2C_Read... [12:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:12]Read from MH i2c: E2 [12:08:12]MH_I2C_Read... [12:08:12]Read from MH i2c: E2 03 00 [12:08:12]MH_I2C_Read... [12:08:12]Read from MH i2c: E2 03 00 E8 48 00 90 00 A4 [12:08:12]RAPDU: 90 00 [12:08:12]wFMCommunicate OK [12:08:12]SAM_PROTO_ClearQueue done [12:08:12]KKMCreateOFDPacket [12:08:12]OFDProtocolAddRootSTLVToBuf [12:08:12]FM_MakeSignedData [12:08:12]FM_MakeSignedData [12:08:12]SAM_PROTO_SignData [12:08:12]wFMCommunicate request_size=4 [12:08:12]MH_SAM_APDU [12:08:12]CAPDU: 80 0D 01 02 [12:08:12]Write to MH i2c: E2 08 00 E9 48 80 0D 01 02 00 00 00 00 AA [12:08:12]Write i2c OK [12:08:12]MH_I2C_Read... [12:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:12]Read from MH i2c: E2 [12:08:12]MH_I2C_Read... [12:08:12]Read from MH i2c: E2 03 00 [12:08:12]MH_I2C_Read... [12:08:12]Read from MH i2c: E2 03 00 E9 48 00 90 00 A5 [12:08:12]RAPDU: 90 00 [12:08:12]wFMCommunicate OK [12:08:12]wFMCommunicate request_size=255 [12:08:12]MH_SAM_APDU [12:08:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 31 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 79 00 [12:08:12]Write to MH i2c: E2 02 01 EA 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 31 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 79 00 00 00 95 [12:08:12]Write i2c OK [12:08:12]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 03 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [12:08:13]RAPDU: 90 00 [12:08:13]wFMCommunicate OK [12:08:13]wFMCommunicate request_size=16 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 62 A0 7D EE E7 7E [12:08:13]Write to MH i2c: E2 13 00 EB 48 80 0D 02 02 0B 00 00 35 04 06 00 62 A0 7D EE E7 7E 00 00 D4 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 03 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [12:08:13]RAPDU: 90 00 [12:08:13]wFMCommunicate OK [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 0D 03 02 [12:08:13]Write to MH i2c: E2 08 00 EC 48 80 0D 03 02 00 00 00 00 AF [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0B 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0B 00 EC 48 00 7F 5E 9A 70 61 AC 63 2C 90 00 33 [12:08:13]RAPDU: 7F 5E 9A 70 61 AC 63 2C 90 00 [12:08:13]wFMCommunicate OK [12:08:13]SAM_PROTO_SignData done [12:08:13]FM_MakeSignedData done [12:08:13]CreateOFDProtocolMessage [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 11 00 00 [12:08:13]Write to MH i2c: E2 08 00 ED 48 80 11 00 00 00 00 00 00 AF [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 17 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 17 00 ED 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [12:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:08:13]wFMCommunicate OK [12:08:13]CreateOFDProtocolMessage done [12:08:13]OFDSenderStorePacket 31150 [12:08:13]StoreOFDPacket docnum=31150 [12:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 AC B3 0D 01 C8 CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 31 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 79 00 00 35 04 06 00 62 A0 7D EE E7 7E 7F 5E 9A 70 61 AC 63 2C [12:08:13]CheckFolder [12:08:13]dirname=/storage/ofd_packets [12:08:13]CheckFolder done [12:08:13]ProducePacketName [12:08:13]name=ofd_packets/00031150 [12:08:13]NVStorageSaveData ofd_packets/00031150 [12:08:13]File name is /storage/ofd_packets/00031150 [12:08:13]Write 307 bytes [12:08:13]NVStorageSaveData done [12:08:13]OFDSenderStorePacket done [12:08:13]KKMCreateOFDPacket done [12:08:13]NVStorageSaveData kkm_last_timestamp [12:08:13]File name is /storage/kkm_last_timestamp [12:08:13]Write 4 bytes [12:08:13]NVStorageSaveData done [12:08:13]ExternCall_PrintAddStr [12:08:13]wPrintStart [12:08:13]Write to MH i2c: 01 00 00 EE 48 36 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: 01 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: 01 07 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: 01 07 00 EE 48 00 00 00 00 00 FF 0F 4B [12:08:13]RasterBufferAndPrint [12:08:13]line Счет N : (1)343592 [12:08:13]line ИНН: 02508201610067 [12:08:13]line Контрольно-Кассовый Чек [12:08:13]line ПРОДАЖА [12:08:13]line ТРК (МРК, ГНК) : 61 [12:08:13]line Товар: 2710194210 [12:08:13]line D-ENERGY Дт-К-2 [12:08:13]line 12.960 * 77.20 [12:08:13]line = 1000.51 [12:08:13]line НДС 12% НСП 1% [12:08:13]line > о реализуемом товаре [12:08:13]line ОКРУГЛЕНИЕ: -0.51 [12:08:13]line ИТОГО: 1000.00 [12:08:13]line Внесено: 1000.00 [12:08:13]line СДАЧА: 0.00 [12:08:13]line НСП 1% : 8.85 [12:08:13]line НДС 12% : 106.25 [12:08:13]line Наличными: 1000.00 [12:08:13]line Безнал.: 0.00 [12:08:13]line Место: АЗС № 78 "Партнер Нефть" [12:08:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:08:13]line СНО: Общий режим [12:08:13]line Чек 94 23.10.2024 12:08 [12:08:13]line Смена: 117 ФФД: 1.0 [12:08:13]line ЗНМ: 0300000137 [12:08:13]line РНМ: 0000000000186857 [12:08:13]line Версия ККМ: v1.0 [12:08:13]line ФМ: 0000000002094219 [12:08:13]line ФД: 31150 [12:08:13]line ФПД: 108441447098238 [12:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120817&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31150&fm=108441447098238&tin=02508201610067®Number=0000000000186857&sum=100000 [12:08:13]OFD Sender: Processing packet 31150 [packets to send 11, broken 10] [12:08:13]ProducePacketName [12:08:13]name=ofd_packets/00031150 [12:08:13]OFD Sender: To server: pG, [12:08:13]CommunicateWithHost lk.salyk.kg:30040 [12:08:13]ConnectInit lk.salyk.kg [12:08:13]written 0, free lines is 4095 [12:08:13]Connected sock=10 [12:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 AC B3 0D 01 C8 CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 31 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 79 00 00 35 04 06 00 62 A0 7D EE E7 7E 7F 5E 9A 70 61 AC 63 2C [12:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 47 47 00 A2 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 79 00 00 F4 03 04 00 AC 91 18 67 B6 04 01 00 00 91 4E 88 2C 26 EA 0E B2 [12:08:13]CommunicateWithHost err = 0 [12:08:13]CheckOFDResponse [12:08:13]1017 (14) - 77093643461234 [12:08:13]1041 (16) - 0000000002094219 [12:08:13]1040 (4) - 31150 [12:08:13]1012 (4) - 23.10.2024 06:03 [12:08:13]1206 (1) - 0 [12:08:13]OFD Sender: Remove packet 31150 [12:08:13]ProducePacketName [12:08:13]name=ofd_packets/00031150 [12:08:13]NVStorageDeleteData [12:08:13]Write to MH i2c: 01 00 00 19 49 62 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: 01 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: 01 07 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: 01 07 00 19 49 00 00 00 00 00 F4 0C 69 [12:08:14]RasterBufferAndPrint [12:08:14]line [12:08:14]line [12:08:14]line [12:08:14]line [12:08:14]line [12:08:14]written 0, free lines is 3323 [12:08:14]MH_Cut [12:08:14]Write to MH i2c: D1 01 00 20 49 01 3B [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: D1 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: D1 01 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: D1 01 00 20 49 00 3A [12:08:14]Write to MH i2c: 01 00 00 21 49 6A [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]OFD Sender: No OFD packet to send [12:08:14]*** Cut start [12:08:14]*** Partial cut [12:08:14]*** CUTSNS_PIN = 1 [12:08:14]*** CUTSNS_PIN = 0 [12:08:14]*** Brake cut motor [12:08:15]Read from MH i2c: 01 [12:08:15]MH_I2C_Read... [12:08:15]*** Stop cut motor [12:08:15]*** Cut end [12:08:15]Read from MH i2c: 01 07 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: 01 07 00 21 49 00 00 00 00 00 FF 0F 7F [12:08:15]process_action close_receipt done [12:08:15]requested_data is exist [12:08:15]produce_requested_data [12:08:15]requested_item fm.sn is exist - process it [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 11 00 00 [12:08:15]Write to MH i2c: E2 08 00 22 49 80 11 00 00 00 00 00 00 E5 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 17 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 17 00 22 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [12:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:08:15]wFMCommunicate OK [12:08:15]requested_item fd.num is exist - process it [12:08:15]SAM_PROTO_GetFieldsCounters [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 13 00 00 [12:08:15]Write to MH i2c: E2 08 00 23 49 80 13 00 00 00 00 00 00 E8 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 62 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 62 00 23 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:15]wFMCommunicate OK [12:08:15]SAM_PROTO_GetFieldsCounters done [12:08:15]requested_item shift.num is exist - process it [12:08:15]requested_item shift.opened is exist - process it [12:08:15]req_shift_opened [12:08:15]FM_GetShiftState [12:08:15]SAM_PROTO_GetShiftState [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 13 01 00 [12:08:15]Write to MH i2c: E2 08 00 24 49 80 13 01 00 00 00 00 00 EA [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 0E 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 0E 00 24 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A4 [12:08:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:08:15]wFMCommunicate OK [12:08:15]SAM_PROTO_GetShiftState done [12:08:15]FM_GetShiftState done [12:08:15]req_shift_opened done [12:08:15]requested_item shift.open_date is exist - process it [12:08:15]req_shift_open_date [12:08:15]req_shift_open_date done [12:08:15]produce_requested_data done [12:08:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31150,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:08:15]process_action_free close_receipt [12:08:15]json_value_free [12:08:15]json_value_free done [12:08:15]process_json_proto returns [12:08:15]Send response to host [12:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31150,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:08:15]free response buf [12:08:15]execute_script done [12:08:15]execute_script returns [12:08:15]free content buf [12:08:15]Sock 9.Close socket [12:08:15]Sock 9.Thread stoped [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:08]accept exits with 7 [12:10:08]New connection [12:10:08]New thread 3067043172 created [12:10:08]Thread 3066899812 joined [12:10:08]Waiting for new connection... [12:10:08] Sock 7.Parse request [12:10:08]Sock 7.Check first char [12:10:08]Sock 7.First char is OK [12:10:08]request: POST /json_proto HTTP/1.0 [12:10:08]Method: POST [12:10:08]URL: /json_proto [12:10:08]Method is POST - this is cgi request [12:10:08]url: /json_proto [12:10:08]query_string will be loaded in cgi processing [12:10:08]execute_cgi json_proto POST (null) [12:10:08]execute_cgi path=json_proto method=POST [12:10:08]POST find Content-Length [12:10:08]Host: 172.17.51.3:8080 [12:10:08]Content-Length: 753 [12:10:08]Content-Type: application/json [12:10:08] [12:10:08]POST finish read [12:10:08]Found Content-Length = 753 [12:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:08]execute_script... [12:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:08]POST & json_proto [12:10:08]process_json_proto [12:10:08]json parsed OK: [12:10:08]protocol is kg_v1.0 [12:10:08]action value=close_receipt [12:10:08]process_action close_receipt [12:10:08]cmd_close_receipt [12:10:08]MH_GetDate [12:10:08]Write to MH i2c: F0 00 00 25 49 5D [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: F0 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: F0 09 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: F0 09 00 25 49 00 A6 E7 18 67 04 C1 95 66 32 [12:10:08]GetLastDocTimeStamp 1729685297 [12:10:08]current date 1729685414 [12:10:08]FM_GetShiftState [12:10:08]SAM_PROTO_GetShiftState [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 13 01 00 [12:10:08]Write to MH i2c: E2 08 00 26 49 80 13 01 00 00 00 00 00 EC [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0E 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0E 00 26 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A6 [12:10:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_GetShiftState done [12:10:08]FM_GetShiftState done [12:10:08]opened in 1729643755 [12:10:08]opened+sec_in_day 1729730155 [12:10:08]quantity*price = 0 [12:10:08]sum+1 = 1 [12:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 95 23.10.2024 12:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31151 ФПД: 49171315454033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121014&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31151&fm=49171315454033&tin=02508201610067®Number=0000000000186857&sum=0 [12:10:09]StoreToDocumentArchive [12:10:09]shift 117 fd 31151 [12:10:09]save to /storage/0117/doc_00031151 [12:10:09]save last doc name /storage/0117/doc_00031151 to /storage/kkm_last_doc_name [12:10:09]save OK [12:10:09]Clear old archive folders... [12:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:09]tlvbuf is 00CEAA80 [12:10:09]SAM_PROTO_ClearQueue [12:10:09]wFMCommunicate request_size=4 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 09 00 00 [12:10:09]Write to MH i2c: E2 08 00 33 49 80 09 00 00 00 00 00 00 EE [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 33 49 00 90 00 F0 [12:10:09]RAPDU: 90 00 [12:10:09]wFMCommunicate OK [12:10:09]SAM_PROTO_ClearQueue done [12:10:09]KKMCreateOFDPacket [12:10:09]OFDProtocolAddRootSTLVToBuf [12:10:09]FM_MakeSignedData [12:10:09]FM_MakeSignedData [12:10:09]SAM_PROTO_SignData [12:10:09]wFMCommunicate request_size=4 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 0D 01 02 [12:10:09]Write to MH i2c: E2 08 00 34 49 80 0D 01 02 00 00 00 00 F6 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 34 49 00 90 00 F1 [12:10:09]RAPDU: 90 00 [12:10:09]wFMCommunicate OK [12:10:09]wFMCommunicate request_size=255 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 79 00 00 35 04 06 00 2C [12:10:09]Write to MH i2c: E2 02 01 35 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 79 00 00 35 04 06 00 2C 00 00 8B [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]OFD Sender: No OFD packet to send [12:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 35 49 00 90 00 F2 [12:10:09]RAPDU: 90 00 [12:10:09]wFMCommunicate OK [12:10:09]wFMCommunicate request_size=10 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 0D 02 02 05 B8 96 CA 70 51 [12:10:09]Write to MH i2c: E2 0D 00 36 49 80 0D 02 02 05 00 B8 96 CA 70 51 00 00 DC [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 03 00 36 49 00 90 00 F3 [12:10:09]RAPDU: 90 00 [12:10:09]wFMCommunicate OK [12:10:09]wFMCommunicate request_size=4 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 0D 03 02 [12:10:09]Write to MH i2c: E2 08 00 37 49 80 0D 03 02 00 00 00 00 FB [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 0B 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 0B 00 37 49 00 59 D5 A6 2B E2 90 E1 61 90 00 AF [12:10:09]RAPDU: 59 D5 A6 2B E2 90 E1 61 90 00 [12:10:09]wFMCommunicate OK [12:10:09]SAM_PROTO_SignData done [12:10:09]FM_MakeSignedData done [12:10:09]CreateOFDProtocolMessage [12:10:09]wFMCommunicate request_size=4 [12:10:09]MH_SAM_APDU [12:10:09]CAPDU: 80 11 00 00 [12:10:09]Write to MH i2c: E2 08 00 38 49 80 11 00 00 00 00 00 00 FB [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:09]Read from MH i2c: E2 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 17 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: E2 17 00 38 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [12:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:10:09]wFMCommunicate OK [12:10:09]CreateOFDProtocolMessage done [12:10:09]OFDSenderStorePacket 31151 [12:10:09]StoreOFDPacket docnum=31151 [12:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 90 77 07 01 BB 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 79 00 00 35 04 06 00 2C B8 96 CA 70 51 59 D5 A6 2B E2 90 E1 61 [12:10:09]CheckFolder [12:10:09]dirname=/storage/ofd_packets [12:10:09]CheckFolder done [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00031151 [12:10:09]NVStorageSaveData ofd_packets/00031151 [12:10:09]File name is /storage/ofd_packets/00031151 [12:10:09]Write 301 bytes [12:10:09]NVStorageSaveData done [12:10:09]OFDSenderStorePacket done [12:10:09]KKMCreateOFDPacket done [12:10:09]NVStorageSaveData kkm_last_timestamp [12:10:09]File name is /storage/kkm_last_timestamp [12:10:09]Write 4 bytes [12:10:09]NVStorageSaveData done [12:10:09]ExternCall_PrintAddStr [12:10:09]wPrintStart [12:10:09]Write to MH i2c: 01 00 00 39 49 82 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 39 49 00 00 00 00 00 FF 0F 97 [12:10:09]RasterBufferAndPrint [12:10:09]line Счет N : (1)343593 [12:10:09]line ИНН: 02508201610067 [12:10:09]line Контрольно-Кассовый Чек [12:10:09]line ПРОДАЖА [12:10:09]line ТРК (МРК, ГНК) : 53 [12:10:09]line Товар: 2710124130 [12:10:09]line Аи-92-К-2 [12:10:09]line 7.480 * 0.00 [12:10:09]line = 0.00 [12:10:09]line НДС 12% НСП 1% [12:10:09]line > о реализуемом товаре [12:10:09]line ИТОГО: 0.00 [12:10:09]line НСП 1% : 0.00 [12:10:09]line НДС 12% : 0.00 [12:10:09]line Наличными: 0.00 [12:10:09]line Безнал.: 0.00 [12:10:09]line Место: АЗС № 78 "Партнер Нефть" [12:10:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:10:09]line СНО: Общий режим [12:10:09]line Чек 95 23.10.2024 12:10 [12:10:09]line Смена: 117 ФФД: 1.0 [12:10:09]line ЗНМ: 0300000137 [12:10:09]line РНМ: 0000000000186857 [12:10:09]line Версия ККМ: v1.0 [12:10:09]line Талоны: ТК ГПНА Online [12:10:09]line 30101093 [12:10:09]line ФМ: 0000000002094219 [12:10:09]line ФД: 31151 [12:10:09]line ФПД: 49171315454033 [12:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121014&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31151&fm=49171315454033&tin=02508201610067®Number=0000000000186857&sum=0 [12:10:10]OFD Sender: Processing packet 31151 [packets to send 11, broken 10] [12:10:10]ProducePacketName [12:10:10]name=ofd_packets/00031151 [12:10:10]OFD Sender: To server: pG, [12:10:10]CommunicateWithHost lk.salyk.kg:30040 [12:10:10]ConnectInit lk.salyk.kg [12:10:10]written 0, free lines is 4095 [12:10:10]Connected sock=10 [12:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 90 77 07 01 BB 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A6 E7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 79 00 00 35 04 06 00 2C B8 96 CA 70 51 59 D5 A6 2B E2 90 E1 61 [12:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4C BA 47 00 AB EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 79 00 00 F4 03 04 00 20 92 18 67 B6 04 01 00 00 26 70 36 F2 7F 2D D8 9F [12:10:10]CommunicateWithHost err = 0 [12:10:10]CheckOFDResponse [12:10:10]1017 (14) - 77093643461234 [12:10:10]1041 (16) - 0000000002094219 [12:10:10]1040 (4) - 31151 [12:10:10]1012 (4) - 23.10.2024 06:05 [12:10:10]1206 (1) - 0 [12:10:10]OFD Sender: Remove packet 31151 [12:10:10]ProducePacketName [12:10:10]name=ofd_packets/00031151 [12:10:10]NVStorageDeleteData [12:10:10]Write to MH i2c: 01 00 00 63 49 AC [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 07 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: 01 07 00 63 49 00 00 00 00 00 F5 0C B4 [12:10:10]RasterBufferAndPrint [12:10:10]line [12:10:10]line [12:10:10]line [12:10:10]line [12:10:10]line [12:10:10]written 0, free lines is 3326 [12:10:10]MH_Cut [12:10:10]Write to MH i2c: D1 01 00 6A 49 01 85 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: D1 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: D1 01 00 [12:10:10]MH_I2C_Read... [12:10:10]Read from MH i2c: D1 01 00 6A 49 00 84 [12:10:10]Write to MH i2c: 01 00 00 6B 49 B4 [12:10:10]Write i2c OK [12:10:10]MH_I2C_Read... [12:10:10]OFD Sender: No OFD packet to send [12:10:11]*** Cut start [12:10:11]*** Partial cut [12:10:11]*** CUTSNS_PIN = 1 [12:10:11]*** CUTSNS_PIN = 0 [12:10:11]*** Brake cut motor [12:10:11]Read from MH i2c: 01 [12:10:11]MH_I2C_Read... [12:10:11]*** Stop cut motor [12:10:11]*** Cut end [12:10:11]Read from MH i2c: 01 07 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: 01 07 00 6B 49 00 00 00 00 00 FF 0F C9 [12:10:11]process_action close_receipt done [12:10:11]requested_data is exist [12:10:11]produce_requested_data [12:10:11]requested_item fm.sn is exist - process it [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 11 00 00 [12:10:11]Write to MH i2c: E2 08 00 6C 49 80 11 00 00 00 00 00 00 2F [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 17 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 17 00 6C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [12:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:10:11]wFMCommunicate OK [12:10:11]requested_item fd.num is exist - process it [12:10:11]SAM_PROTO_GetFieldsCounters [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 13 00 00 [12:10:11]Write to MH i2c: E2 08 00 6D 49 80 13 00 00 00 00 00 00 32 [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 6D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:11]wFMCommunicate OK [12:10:11]SAM_PROTO_GetFieldsCounters done [12:10:11]requested_item shift.num is exist - process it [12:10:11]requested_item shift.opened is exist - process it [12:10:11]req_shift_opened [12:10:11]FM_GetShiftState [12:10:11]SAM_PROTO_GetShiftState [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 13 01 00 [12:10:11]Write to MH i2c: E2 08 00 6E 49 80 13 01 00 00 00 00 00 34 [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 6E 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EE [12:10:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:10:12]wFMCommunicate OK [12:10:12]SAM_PROTO_GetShiftState done [12:10:12]FM_GetShiftState done [12:10:12]req_shift_opened done [12:10:12]requested_item shift.open_date is exist - process it [12:10:12]req_shift_open_date [12:10:12]req_shift_open_date done [12:10:12]produce_requested_data done [12:10:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31151,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:10:12]process_action_free close_receipt [12:10:12]json_value_free [12:10:12]json_value_free done [12:10:12]process_json_proto returns [12:10:12]Send response to host [12:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31151,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:10:12]free response buf [12:10:12]execute_script done [12:10:12]execute_script returns [12:10:12]free content buf [12:10:12]Sock 7.Close socket [12:10:12]Sock 7.Thread stoped [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]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:24]accept exits with 9 [12:19:24]New connection [12:19:24]New thread 3066899812 created [12:19:24]Thread 3067043172 joined [12:19:24]Waiting for new connection... [12:19:24] Sock 9.Parse request [12:19:24]Sock 9.Check first char [12:19:24]Sock 9.First char is OK [12:19:24]request: POST /json_proto HTTP/1.0 [12:19:24]Method: POST [12:19:24]URL: /json_proto [12:19:24]Method is POST - this is cgi request [12:19:24]url: /json_proto [12:19:24]query_string will be loaded in cgi processing [12:19:24]execute_cgi json_proto POST (null) [12:19:24]execute_cgi path=json_proto method=POST [12:19:24]POST find Content-Length [12:19:24]Host: 172.17.51.3:8080 [12:19:24]Content-Length: 751 [12:19:24]Content-Type: application/json [12:19:24] [12:19:24]POST finish read [12:19:24]Found Content-Length = 751 [12:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30028627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:24]execute_script... [12:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30028627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:24]POST & json_proto [12:19:24]process_json_proto [12:19:24]json parsed OK: [12:19:24]protocol is kg_v1.0 [12:19:24]action value=close_receipt [12:19:24]process_action close_receipt [12:19:24]cmd_close_receipt [12:19:24]MH_GetDate [12:19:24]Write to MH i2c: F0 00 00 6F 49 A7 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: F0 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: F0 09 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: F0 09 00 6F 49 00 D2 E9 18 67 04 C1 95 66 AA [12:19:24]GetLastDocTimeStamp 1729685414 [12:19:24]current date 1729685970 [12:19:24]FM_GetShiftState [12:19:24]SAM_PROTO_GetShiftState [12:19:24]wFMCommunicate request_size=4 [12:19:24]MH_SAM_APDU [12:19:24]CAPDU: 80 13 01 00 [12:19:24]Write to MH i2c: E2 08 00 70 49 80 13 01 00 00 00 00 00 36 [12:19:24]Write i2c OK [12:19:24]MH_I2C_Read... [12:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:24]Read from MH i2c: E2 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0E 00 [12:19:24]MH_I2C_Read... [12:19:24]Read from MH i2c: E2 0E 00 70 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F0 [12:19:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:19:24]wFMCommunicate OK [12:19:24]SAM_PROTO_GetShiftState done [12:19:24]FM_GetShiftState done [12:19:24]opened in 1729643755 [12:19:24]opened+sec_in_day 1729730155 [12:19:24]quantity*price = 0 [12:19:24]sum+1 = 1 [12:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 96 23.10.2024 12:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30028627 ФМ: 0000000002094219 ФД: 31152 ФПД: 157822163422873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121930&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31152&fm=157822163422873&tin=02508201610067®Number=0000000000186857&sum=0 [12:19:25]StoreToDocumentArchive [12:19:25]shift 117 fd 31152 [12:19:25]save to /storage/0117/doc_00031152 [12:19:25]save last doc name /storage/0117/doc_00031152 to /storage/kkm_last_doc_name [12:19:25]save OK [12:19:25]Clear old archive folders... [12:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:25]tlvbuf is 00E85650 [12:19:25]SAM_PROTO_ClearQueue [12:19:25]wFMCommunicate request_size=4 [12:19:25]MH_SAM_APDU [12:19:25]CAPDU: 80 09 00 00 [12:19:25]Write to MH i2c: E2 08 00 7D 49 80 09 00 00 00 00 00 00 38 [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:25]Read from MH i2c: E2 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 03 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 03 00 7D 49 00 90 00 3A [12:19:25]RAPDU: 90 00 [12:19:25]wFMCommunicate OK [12:19:25]SAM_PROTO_ClearQueue done [12:19:25]KKMCreateOFDPacket [12:19:25]OFDProtocolAddRootSTLVToBuf [12:19:25]FM_MakeSignedData [12:19:25]FM_MakeSignedData [12:19:25]SAM_PROTO_SignData [12:19:25]wFMCommunicate request_size=4 [12:19:25]MH_SAM_APDU [12:19:25]CAPDU: 80 0D 01 02 [12:19:25]Write to MH i2c: E2 08 00 7E 49 80 0D 01 02 00 00 00 00 40 [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:25]Read from MH i2c: E2 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 03 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 03 00 7E 49 00 90 00 3B [12:19:25]RAPDU: 90 00 [12:19:25]wFMCommunicate OK [12:19:25]wFMCommunicate request_size=255 [12:19:25]MH_SAM_APDU [12:19:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D2 E9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 79 00 00 35 04 06 00 8F 89 D5 FD [12:19:25]Write to MH i2c: E2 02 01 7F 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D2 E9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 79 00 00 35 04 06 00 8F 89 D5 FD 00 00 9D [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 7F 49 00 90 00 3C [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=7 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 02 02 02 0E 99 [12:19:26]Write to MH i2c: E2 0A 00 80 49 80 0D 02 02 02 00 0E 99 00 00 EE [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 80 49 00 90 00 3D [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 03 02 [12:19:26]Write to MH i2c: E2 08 00 81 49 80 0D 03 02 00 00 00 00 45 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 81 49 00 14 50 5C FF A2 75 22 E9 90 00 27 [12:19:26]RAPDU: 14 50 5C FF A2 75 22 E9 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_SignData done [12:19:26]FM_MakeSignedData done [12:19:26]CreateOFDProtocolMessage [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 11 00 00 [12:19:26]Write to MH i2c: E2 08 00 82 49 80 11 00 00 00 00 00 00 45 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 82 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [12:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:19:26]wFMCommunicate OK [12:19:26]CreateOFDProtocolMessage done [12:19:26]OFDSenderStorePacket 31152 [12:19:26]StoreOFDPacket docnum=31152 [12:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 18 04 01 67 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D2 E9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 79 00 00 35 04 06 00 8F 89 D5 FD 0E 99 14 50 5C FF A2 75 22 E9 [12:19:26]CheckFolder [12:19:26]dirname=/storage/ofd_packets [12:19:26]CheckFolder done [12:19:26]ProducePacketName [12:19:26]name=ofd_packets/00031152 [12:19:26]NVStorageSaveData ofd_packets/00031152 [12:19:26]File name is /storage/ofd_packets/00031152 [12:19:26]Write 298 bytes [12:19:26]NVStorageSaveData done [12:19:26]OFDSenderStorePacket done [12:19:26]KKMCreateOFDPacket done [12:19:26]NVStorageSaveData kkm_last_timestamp [12:19:26]File name is /storage/kkm_last_timestamp [12:19:26]Write 4 bytes [12:19:26]NVStorageSaveData done [12:19:26]ExternCall_PrintAddStr [12:19:26]wPrintStart [12:19:26]Write to MH i2c: 01 00 00 83 49 CC [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 83 49 00 00 00 00 00 FF 0F E1 [12:19:26]RasterBufferAndPrint [12:19:26]line Счет N : (1)343594 [12:19:26]line ИНН: 02508201610067 [12:19:26]line Контрольно-Кассовый Чек [12:19:26]line ПРОДАЖА [12:19:26]line ТРК (МРК, ГНК) : 54 [12:19:26]line Товар: 2710194210 [12:19:26]line ДТ-К-2 [12:19:26]line 40.000 * 0.00 [12:19:26]line = 0.00 [12:19:26]line НДС 12% НСП 1% [12:19:26]line > о реализуемом товаре [12:19:26]line ИТОГО: 0.00 [12:19:26]line НСП 1% : 0.00 [12:19:26]line НДС 12% : 0.00 [12:19:26]line Наличными: 0.00 [12:19:26]line Безнал.: 0.00 [12:19:26]line Место: АЗС № 78 "Партнер Нефть" [12:19:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:19:26]line СНО: Общий режим [12:19:26]line Чек 96 23.10.2024 12:19 [12:19:26]line Смена: 117 ФФД: 1.0 [12:19:26]line ЗНМ: 0300000137 [12:19:26]line РНМ: 0000000000186857 [12:19:26]line Версия ККМ: v1.0 [12:19:26]line Талоны: ТК ГПНА Online [12:19:26]line 30028627 [12:19:26]line ФМ: 0000000002094219 [12:19:26]line ФД: 31152 [12:19:26]line ФПД: 157822163422873 [12:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121930&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31152&fm=157822163422873&tin=02508201610067®Number=0000000000186857&sum=0 [12:19:26]OFD Sender: Processing packet 31152 [packets to send 11, broken 10] [12:19:26]ProducePacketName [12:19:26]name=ofd_packets/00031152 [12:19:26]OFD Sender: To server: pG, [12:19:26]CommunicateWithHost lk.salyk.kg:30040 [12:19:26]ConnectInit lk.salyk.kg [12:19:26]written 0, free lines is 4095 [12:19:26]Connected sock=10 [12:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 18 04 01 67 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D2 E9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 79 00 00 35 04 06 00 8F 89 D5 FD 0E 99 14 50 5C FF A2 75 22 E9 [12:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B5 45 47 00 C0 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 32 30 39 34 32 31 39 10 04 04 00 B0 79 00 00 F4 03 04 00 4C 94 18 67 B6 04 01 00 00 7E 19 46 13 D0 82 B8 05 [12:19:26]CommunicateWithHost err = 0 [12:19:26]CheckOFDResponse [12:19:26]1017 (14) - 77093643461234 [12:19:26]1041 (16) - 0000000002094219 [12:19:26]1040 (4) - 31152 [12:19:26]1012 (4) - 23.10.2024 06:14 [12:19:26]1206 (1) - 0 [12:19:26]OFD Sender: Remove packet 31152 [12:19:26]ProducePacketName [12:19:26]name=ofd_packets/00031152 [12:19:26]NVStorageDeleteData [12:19:26]Write to MH i2c: 01 00 00 AD 49 F6 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 AD 49 00 00 00 00 00 05 0D 0F [12:19:26]RasterBufferAndPrint [12:19:26]line [12:19:26]line [12:19:26]line [12:19:26]line [12:19:26]line [12:19:26]written 0, free lines is 3343 [12:19:26]MH_Cut [12:19:26]Write to MH i2c: D1 01 00 B4 49 01 CF [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: D1 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: D1 01 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: D1 01 00 B4 49 00 CE [12:19:26]Write to MH i2c: 01 00 00 B5 49 FE [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:27]OFD Sender: No OFD packet to send [12:19:27]*** Cut start [12:19:27]*** Partial cut [12:19:27]*** CUTSNS_PIN = 1 [12:19:27]*** CUTSNS_PIN = 0 [12:19:27]*** Brake cut motor [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]*** Stop cut motor [12:19:28]*** Cut end [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 B5 49 00 00 00 00 00 FF 0F 13 [12:19:28]process_action close_receipt done [12:19:28]requested_data is exist [12:19:28]produce_requested_data [12:19:28]requested_item fm.sn is exist - process it [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 B6 49 80 11 00 00 00 00 00 00 79 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 B6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:19:28]wFMCommunicate OK [12:19:28]requested_item fd.num is exist - process it [12:19:28]SAM_PROTO_GetFieldsCounters [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 13 00 00 [12:19:28]Write to MH i2c: E2 08 00 B7 49 80 13 00 00 00 00 00 00 7C [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 62 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 62 00 B7 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_GetFieldsCounters done [12:19:28]requested_item shift.num is exist - process it [12:19:28]requested_item shift.opened is exist - process it [12:19:28]req_shift_opened [12:19:28]FM_GetShiftState [12:19:28]SAM_PROTO_GetShiftState [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 13 01 00 [12:19:28]Write to MH i2c: E2 08 00 B8 49 80 13 01 00 00 00 00 00 7E [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0E 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0E 00 B8 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 38 [12:19:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_GetShiftState done [12:19:28]FM_GetShiftState done [12:19:28]req_shift_opened done [12:19:28]requested_item shift.open_date is exist - process it [12:19:28]req_shift_open_date [12:19:28]req_shift_open_date done [12:19:28]produce_requested_data done [12:19:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31152,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:19:28]process_action_free close_receipt [12:19:28]json_value_free [12:19:28]json_value_free done [12:19:28]process_json_proto returns [12:19:28]Send response to host [12:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31152,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:19:28]free response buf [12:19:28]execute_script done [12:19:28]execute_script returns [12:19:28]free content buf [12:19:28]Sock 9.Close socket [12:19:28]Sock 9.Thread stoped [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:21]accept exits with 7 [12:21:21]New connection [12:21:21]New thread 3067043172 created [12:21:21]Thread 3066899812 joined [12:21:21]Waiting for new connection... [12:21:21] Sock 7.Parse request [12:21:21]Sock 7.Check first char [12:21:21]Sock 7.First char is OK [12:21:21]request: POST /json_proto HTTP/1.0 [12:21:21]Method: POST [12:21:21]URL: /json_proto [12:21:21]Method is POST - this is cgi request [12:21:21]url: /json_proto [12:21:21]query_string will be loaded in cgi processing [12:21:21]execute_cgi json_proto POST (null) [12:21:21]execute_cgi path=json_proto method=POST [12:21:21]POST find Content-Length [12:21:21]Host: 172.17.51.3:8080 [12:21:21]Content-Length: 751 [12:21:21]Content-Type: application/json [12:21:21] [12:21:21]POST finish read [12:21:21]Found Content-Length = 751 [12:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30028627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:21]execute_script... [12:21:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30028627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:21]POST & json_proto [12:21:21]process_json_proto [12:21:21]json parsed OK: [12:21:21]protocol is kg_v1.0 [12:21:21]action value=close_receipt [12:21:21]process_action close_receipt [12:21:21]cmd_close_receipt [12:21:21]MH_GetDate [12:21:21]Write to MH i2c: F0 00 00 B9 49 F1 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: F0 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: F0 09 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: F0 09 00 B9 49 00 47 EA 18 67 04 C1 95 66 6A [12:21:21]GetLastDocTimeStamp 1729685970 [12:21:21]current date 1729686087 [12:21:21]FM_GetShiftState [12:21:21]SAM_PROTO_GetShiftState [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 13 01 00 [12:21:21]Write to MH i2c: E2 08 00 BA 49 80 13 01 00 00 00 00 00 80 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 BA 49 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3A [12:21:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_GetShiftState done [12:21:21]FM_GetShiftState done [12:21:21]opened in 1729643755 [12:21:21]opened+sec_in_day 1729730155 [12:21:21]quantity*price = 0 [12:21:21]sum+1 = 1 [12:21:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 97 23.10.2024 12:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30028627 ФМ: 0000000002094219 ФД: 31153 ФПД: 277823881724028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31153&fm=277823881724028&tin=02508201610067®Number=0000000000186857&sum=0 [12:21:22]StoreToDocumentArchive [12:21:22]shift 117 fd 31153 [12:21:22]save to /storage/0117/doc_00031153 [12:21:22]save last doc name /storage/0117/doc_00031153 to /storage/kkm_last_doc_name [12:21:22]save OK [12:21:22]Clear old archive folders... [12:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:22]tlvbuf is 00CD3F90 [12:21:22]SAM_PROTO_ClearQueue [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 09 00 00 [12:21:22]Write to MH i2c: E2 08 00 C7 49 80 09 00 00 00 00 00 00 82 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 C7 49 00 90 00 84 [12:21:22]RAPDU: 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_ClearQueue done [12:21:22]KKMCreateOFDPacket [12:21:22]OFDProtocolAddRootSTLVToBuf [12:21:22]FM_MakeSignedData [12:21:22]FM_MakeSignedData [12:21:22]SAM_PROTO_SignData [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 0D 01 02 [12:21:22]Write to MH i2c: E2 08 00 C8 49 80 0D 01 02 00 00 00 00 8A [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 C8 49 00 90 00 85 [12:21:22]RAPDU: 90 00 [12:21:22]wFMCommunicate OK [12:21:22]wFMCommunicate request_size=255 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 79 00 00 35 04 06 00 FC AD E9 C7 [12:21:22]Write to MH i2c: E2 02 01 C9 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 79 00 00 35 04 06 00 FC AD E9 C7 00 00 29 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 C9 49 00 90 00 86 [12:21:22]RAPDU: 90 00 [12:21:22]wFMCommunicate OK [12:21:22]wFMCommunicate request_size=7 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 0D 02 02 02 C0 7C [12:21:22]Write to MH i2c: E2 0A 00 CA 49 80 0D 02 02 02 00 C0 7C 00 00 CD [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 CA 49 00 90 00 87 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 0D 03 02 [12:21:23]Write to MH i2c: E2 08 00 CB 49 80 0D 03 02 00 00 00 00 8F [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0B 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0B 00 CB 49 00 75 61 3C BB 23 59 FC 91 90 00 66 [12:21:23]RAPDU: 75 61 3C BB 23 59 FC 91 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_SignData done [12:21:23]FM_MakeSignedData done [12:21:23]CreateOFDProtocolMessage [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 11 00 00 [12:21:23]Write to MH i2c: E2 08 00 CC 49 80 11 00 00 00 00 00 00 8F [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 17 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 17 00 CC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [12:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:21:23]wFMCommunicate OK [12:21:23]CreateOFDProtocolMessage done [12:21:23]OFDSenderStorePacket 31153 [12:21:23]StoreOFDPacket docnum=31153 [12:21:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 67 7A 04 01 07 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 79 00 00 35 04 06 00 FC AD E9 C7 C0 7C 75 61 3C BB 23 59 FC 91 [12:21:23]CheckFolder [12:21:23]dirname=/storage/ofd_packets [12:21:23]CheckFolder done [12:21:23]ProducePacketName [12:21:23]name=ofd_packets/00031153 [12:21:23]NVStorageSaveData ofd_packets/00031153 [12:21:23]File name is /storage/ofd_packets/00031153 [12:21:23]Write 298 bytes [12:21:23]NVStorageSaveData done [12:21:23]OFDSenderStorePacket done [12:21:23]KKMCreateOFDPacket done [12:21:23]NVStorageSaveData kkm_last_timestamp [12:21:23]File name is /storage/kkm_last_timestamp [12:21:23]Write 4 bytes [12:21:23]NVStorageSaveData done [12:21:23]ExternCall_PrintAddStr [12:21:23]wPrintStart [12:21:23]Write to MH i2c: 01 00 00 CD 49 16 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 07 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 07 00 CD 49 00 00 00 00 00 FF 0F 2B [12:21:23]RasterBufferAndPrint [12:21:23]line Счет N : (1)343595 [12:21:23]line ИНН: 02508201610067 [12:21:23]line Контрольно-Кассовый Чек [12:21:23]line ПРОДАЖА [12:21:23]line ТРК (МРК, ГНК) : 54 [12:21:23]line Товар: 2710194210 [12:21:23]line ДТ-К-2 [12:21:23]line 10.000 * 0.00 [12:21:23]line = 0.00 [12:21:23]line НДС 12% НСП 1% [12:21:23]line > о реализуемом товаре [12:21:23]line ИТОГО: 0.00 [12:21:23]line НСП 1% : 0.00 [12:21:23]line НДС 12% : 0.00 [12:21:23]line Наличными: 0.00 [12:21:23]line Безнал.: 0.00 [12:21:23]line Место: АЗС № 78 "Партнер Нефть" [12:21:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:21:23]line СНО: Общий режим [12:21:23]line Чек 97 23.10.2024 12:21 [12:21:23]line Смена: 117 ФФД: 1.0 [12:21:23]line ЗНМ: 0300000137 [12:21:23]line РНМ: 0000000000186857 [12:21:23]line Версия ККМ: v1.0 [12:21:23]line Талоны: ТК ГПНА Online [12:21:23]line 30028627 [12:21:23]line ФМ: 0000000002094219 [12:21:23]line ФД: 31153 [12:21:23]line ФПД: 277823881724028 [12:21:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31153&fm=277823881724028&tin=02508201610067®Number=0000000000186857&sum=0 [12:21:23]OFD Sender: Processing packet 31153 [packets to send 11, broken 10] [12:21:23]ProducePacketName [12:21:23]name=ofd_packets/00031153 [12:21:23]OFD Sender: To server: pG, [12:21:23]CommunicateWithHost lk.salyk.kg:30040 [12:21:23]ConnectInit lk.salyk.kg [12:21:23]written 0, free lines is 4095 [12:21:23]Connected sock=10 [12:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 67 7A 04 01 07 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 79 00 00 35 04 06 00 FC AD E9 C7 C0 7C 75 61 3C BB 23 59 FC 91 [12:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 49 8C 47 00 E0 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 79 00 00 F4 03 04 00 C1 94 18 67 B6 04 01 00 00 9D 5B A9 18 DD D7 CB BD [12:21:23]CommunicateWithHost err = 0 [12:21:23]CheckOFDResponse [12:21:23]1017 (14) - 77093643461234 [12:21:23]1041 (16) - 0000000002094219 [12:21:23]1040 (4) - 31153 [12:21:23]1012 (4) - 23.10.2024 06:16 [12:21:23]1206 (1) - 0 [12:21:23]OFD Sender: Remove packet 31153 [12:21:23]ProducePacketName [12:21:23]name=ofd_packets/00031153 [12:21:23]NVStorageDeleteData [12:21:23]Write to MH i2c: 01 00 00 F7 49 40 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 07 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 07 00 F7 49 00 00 00 00 00 03 0D 57 [12:21:23]RasterBufferAndPrint [12:21:23]line [12:21:23]line [12:21:23]line [12:21:23]line [12:21:23]line [12:21:23]written 0, free lines is 3340 [12:21:23]MH_Cut [12:21:23]Write to MH i2c: D1 01 00 FE 49 01 19 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 01 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 01 00 FE 49 00 18 [12:21:23]Write to MH i2c: 01 00 00 FF 49 48 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:24]OFD Sender: No OFD packet to send [12:21:24]*** Cut start [12:21:24]*** Partial cut [12:21:24]*** CUTSNS_PIN = 1 [12:21:24]*** CUTSNS_PIN = 0 [12:21:24]*** Brake cut motor [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]*** Stop cut motor [12:21:25]*** Cut end [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 FF 49 00 00 00 00 00 FF 0F 5D [12:21:25]process_action close_receipt done [12:21:25]requested_data is exist [12:21:25]produce_requested_data [12:21:25]requested_item fm.sn is exist - process it [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 11 00 00 [12:21:25]Write to MH i2c: E2 08 00 00 4A 80 11 00 00 00 00 00 00 C4 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 17 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 17 00 00 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [12:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:21:25]wFMCommunicate OK [12:21:25]requested_item fd.num is exist - process it [12:21:25]SAM_PROTO_GetFieldsCounters [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 13 00 00 [12:21:25]Write to MH i2c: E2 08 00 01 4A 80 13 00 00 00 00 00 00 C7 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 62 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 62 00 01 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:25]wFMCommunicate OK [12:21:25]SAM_PROTO_GetFieldsCounters done [12:21:25]requested_item shift.num is exist - process it [12:21:25]requested_item shift.opened is exist - process it [12:21:25]req_shift_opened [12:21:25]FM_GetShiftState [12:21:25]SAM_PROTO_GetShiftState [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 13 01 00 [12:21:25]Write to MH i2c: E2 08 00 02 4A 80 13 01 00 00 00 00 00 C9 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0E 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0E 00 02 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 83 [12:21:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:21:25]wFMCommunicate OK [12:21:25]SAM_PROTO_GetShiftState done [12:21:25]FM_GetShiftState done [12:21:25]req_shift_opened done [12:21:25]requested_item shift.open_date is exist - process it [12:21:25]req_shift_open_date [12:21:25]req_shift_open_date done [12:21:25]produce_requested_data done [12:21:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31153,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:21:25]process_action_free close_receipt [12:21:25]json_value_free [12:21:25]json_value_free done [12:21:25]process_json_proto returns [12:21:25]Send response to host [12:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31153,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:21:25]free response buf [12:21:25]execute_script done [12:21:25]execute_script returns [12:21:25]free content buf [12:21:25]Sock 7.Close socket [12:21:25]Sock 7.Thread stoped [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:32]accept exits with 9 [12:29:32]New connection [12:29:32]New thread 3066899812 created [12:29:32]Thread 3067043172 joined [12:29:32]Waiting for new connection... [12:29:32] Sock 9.Parse request [12:29:32]Sock 9.Check first char [12:29:32]Sock 9.First char is OK [12:29:32]request: POST /json_proto HTTP/1.0 [12:29:32]Method: POST [12:29:32]URL: /json_proto [12:29:32]Method is POST - this is cgi request [12:29:32]url: /json_proto [12:29:32]query_string will be loaded in cgi processing [12:29:32]execute_cgi json_proto POST (null) [12:29:32]execute_cgi path=json_proto method=POST [12:29:32]POST find Content-Length [12:29:32]Host: 172.17.51.3:8080 [12:29:32]Content-Length: 679 [12:29:32]Content-Type: application/json [12:29:32] [12:29:32]POST finish read [12:29:32]Found Content-Length = 679 [12:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:32]execute_script... [12:29:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:32]POST & json_proto [12:29:32]process_json_proto [12:29:32]json parsed OK: [12:29:32]protocol is kg_v1.0 [12:29:32]action value=close_receipt [12:29:32]process_action close_receipt [12:29:32]cmd_close_receipt [12:29:32]MH_GetDate [12:29:32]Write to MH i2c: F0 00 00 03 4A 3C [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 03 4A 00 32 EC 18 67 04 C1 95 66 A2 [12:29:32]GetLastDocTimeStamp 1729686087 [12:29:32]current date 1729686578 [12:29:32]FM_GetShiftState [12:29:32]SAM_PROTO_GetShiftState [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 13 01 00 [12:29:32]Write to MH i2c: E2 08 00 04 4A 80 13 01 00 00 00 00 00 CB [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 04 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 85 [12:29:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetShiftState done [12:29:32]FM_GetShiftState done [12:29:32]opened in 1729643755 [12:29:32]opened+sec_in_day 1729730155 [12:29:32]quantity*price = 200025 [12:29:32]sum+1 = 200026 [12:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 98 23.10.2024 12:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31154 ФПД: 159418436419650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31154&fm=159418436419650&tin=02508201610067®Number=0000000000186857&sum=200000 [12:29:33]StoreToDocumentArchive [12:29:33]shift 117 fd 31154 [12:29:33]save to /storage/0117/doc_00031154 [12:29:33]save last doc name /storage/0117/doc_00031154 to /storage/kkm_last_doc_name [12:29:33]save OK [12:29:33]Clear old archive folders... [12:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:33]tlvbuf is 00E476B0 [12:29:33]SAM_PROTO_ClearQueue [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 09 00 00 [12:29:33]Write to MH i2c: E2 08 00 11 4A 80 09 00 00 00 00 00 00 CD [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 11 4A 00 90 00 CF [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]SAM_PROTO_ClearQueue done [12:29:33]KKMCreateOFDPacket [12:29:33]OFDProtocolAddRootSTLVToBuf [12:29:33]FM_MakeSignedData [12:29:33]FM_MakeSignedData [12:29:33]SAM_PROTO_SignData [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 01 02 [12:29:33]Write to MH i2c: E2 08 00 12 4A 80 0D 01 02 00 00 00 00 D5 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 12 4A 00 90 00 D0 [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=255 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 32 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 79 00 00 35 04 06 00 90 FD 7F 46 [12:29:33]Write to MH i2c: E2 02 01 13 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 32 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 79 00 00 35 04 06 00 90 FD 7F 46 00 00 3B [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 13 4A 00 90 00 D1 [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=7 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 02 02 02 00 42 [12:29:33]Write to MH i2c: E2 0A 00 14 4A 80 0D 02 02 02 00 00 42 00 00 1E [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 03 00 14 4A 00 90 00 D2 [12:29:33]RAPDU: 90 00 [12:29:33]wFMCommunicate OK [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 0D 03 02 [12:29:33]Write to MH i2c: E2 08 00 15 4A 80 0D 03 02 00 00 00 00 DA [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0B 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0B 00 15 4A 00 84 8F 8C 5E 00 38 E2 B3 90 00 A5 [12:29:33]RAPDU: 84 8F 8C 5E 00 38 E2 B3 90 00 [12:29:33]wFMCommunicate OK [12:29:33]SAM_PROTO_SignData done [12:29:33]FM_MakeSignedData done [12:29:33]CreateOFDProtocolMessage [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 11 00 00 [12:29:33]Write to MH i2c: E2 08 00 16 4A 80 11 00 00 00 00 00 00 DA [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 17 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 17 00 16 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [12:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:29:33]wFMCommunicate OK [12:29:33]CreateOFDProtocolMessage done [12:29:33]OFDSenderStorePacket 31154 [12:29:33]StoreOFDPacket docnum=31154 [12:29:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 16 DF 04 01 EE 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 32 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 79 00 00 35 04 06 00 90 FD 7F 46 00 42 84 8F 8C 5E 00 38 E2 B3 [12:29:33]CheckFolder [12:29:33]dirname=/storage/ofd_packets [12:29:33]CheckFolder done [12:29:33]ProducePacketName [12:29:33]name=ofd_packets/00031154 [12:29:33]NVStorageSaveData ofd_packets/00031154 [12:29:33]File name is /storage/ofd_packets/00031154 [12:29:33]Write 298 bytes [12:29:33]NVStorageSaveData done [12:29:33]OFDSenderStorePacket done [12:29:33]KKMCreateOFDPacket done [12:29:33]NVStorageSaveData kkm_last_timestamp [12:29:33]File name is /storage/kkm_last_timestamp [12:29:33]Write 4 bytes [12:29:33]NVStorageSaveData done [12:29:33]ExternCall_PrintAddStr [12:29:33]wPrintStart [12:29:33]Write to MH i2c: 01 00 00 17 4A 61 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 07 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: 01 07 00 17 4A 00 00 00 00 00 FF 0F 76 [12:29:33]RasterBufferAndPrint [12:29:33]line Счет N : (1)343596 [12:29:33]line ИНН: 02508201610067 [12:29:33]line Контрольно-Кассовый Чек [12:29:33]line ПРОДАЖА [12:29:33]line ТРК (МРК, ГНК) : 34 [12:29:33]line Товар: 2710194210 [12:29:33]line ДТ-К-2 [12:29:33]line 26.250 * 76.20 [12:29:33]line = 2000.25 [12:29:33]line НДС 12% НСП 1% [12:29:33]line > о реализуемом товаре [12:29:33]line ОКРУГЛЕНИЕ: -0.25 [12:29:33]line ИТОГО: 2000.00 [12:29:33]line Внесено: 2000.00 [12:29:33]line СДАЧА: 0.00 [12:29:33]line НСП 1% : 17.70 [12:29:33]line НДС 12% : 212.42 [12:29:33]line Наличными: 2000.00 [12:29:33]line Безнал.: 0.00 [12:29:33]line Место: АЗС № 78 "Партнер Нефть" [12:29:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:29:34]line СНО: Общий режим [12:29:34]line Чек 98 23.10.2024 12:29 [12:29:34]line Смена: 117 ФФД: 1.0 [12:29:34]line ЗНМ: 0300000137 [12:29:34]line РНМ: 0000000000186857 [12:29:34]line Версия ККМ: v1.0 [12:29:34]line ФМ: 0000000002094219 [12:29:34]line ФД: 31154 [12:29:34]line ФПД: 159418436419650 [12:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31154&fm=159418436419650&tin=02508201610067®Number=0000000000186857&sum=200000 [12:29:34]OFD Sender: Processing packet 31154 [packets to send 11, broken 10] [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00031154 [12:29:34]OFD Sender: To server: pG, [12:29:34]CommunicateWithHost lk.salyk.kg:30040 [12:29:34]ConnectInit lk.salyk.kg [12:29:34]written 0, free lines is 4095 [12:29:34]Connected sock=10 [12:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 16 DF 04 01 EE 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 32 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 79 00 00 35 04 06 00 90 FD 7F 46 00 42 84 8F 8C 5E 00 38 E2 B3 [12:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E9 73 47 00 15 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 79 00 00 F4 03 04 00 AC 96 18 67 B6 04 01 00 00 2D 4A DC 4E ED BA D7 A0 [12:29:34]CommunicateWithHost err = 0 [12:29:34]CheckOFDResponse [12:29:34]1017 (14) - 77093643461234 [12:29:34]1041 (16) - 0000000002094219 [12:29:34]1040 (4) - 31154 [12:29:34]1012 (4) - 23.10.2024 06:24 [12:29:34]1206 (1) - 0 [12:29:34]OFD Sender: Remove packet 31154 [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00031154 [12:29:34]NVStorageDeleteData [12:29:34]Write to MH i2c: 01 00 00 42 4A 8C [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 42 4A 00 00 00 00 00 F9 0C 98 [12:29:34]RasterBufferAndPrint [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]line [12:29:34]written 0, free lines is 3327 [12:29:34]MH_Cut [12:29:34]Write to MH i2c: D1 01 00 49 4A 01 65 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 01 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: D1 01 00 49 4A 00 64 [12:29:34]Write to MH i2c: 01 00 00 4A 4A 94 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]OFD Sender: No OFD packet to send [12:29:35]*** Cut start [12:29:35]*** Partial cut [12:29:35]*** CUTSNS_PIN = 1 [12:29:35]*** CUTSNS_PIN = 0 [12:29:35]*** Brake cut motor [12:29:35]Read from MH i2c: 01 [12:29:35]MH_I2C_Read... [12:29:35]*** Stop cut motor [12:29:35]*** Cut end [12:29:35]Read from MH i2c: 01 07 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 4A 4A 00 00 00 00 00 FF 0F A9 [12:29:35]process_action close_receipt done [12:29:35]requested_data is exist [12:29:35]produce_requested_data [12:29:35]requested_item fm.sn is exist - process it [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 11 00 00 [12:29:35]Write to MH i2c: E2 08 00 4B 4A 80 11 00 00 00 00 00 00 0F [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 17 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 17 00 4B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [12:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:29:35]wFMCommunicate OK [12:29:35]requested_item fd.num is exist - process it [12:29:35]SAM_PROTO_GetFieldsCounters [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 13 00 00 [12:29:35]Write to MH i2c: E2 08 00 4C 4A 80 13 00 00 00 00 00 00 12 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 4C 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetFieldsCounters done [12:29:36]requested_item shift.num is exist - process it [12:29:36]requested_item shift.opened is exist - process it [12:29:36]req_shift_opened [12:29:36]FM_GetShiftState [12:29:36]SAM_PROTO_GetShiftState [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 13 01 00 [12:29:36]Write to MH i2c: E2 08 00 4D 4A 80 13 01 00 00 00 00 00 14 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 4D 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CE [12:29:36]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetShiftState done [12:29:36]FM_GetShiftState done [12:29:36]req_shift_opened done [12:29:36]requested_item shift.open_date is exist - process it [12:29:36]req_shift_open_date [12:29:36]req_shift_open_date done [12:29:36]produce_requested_data done [12:29:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31154,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:29:36]process_action_free close_receipt [12:29:36]json_value_free [12:29:36]json_value_free done [12:29:36]process_json_proto returns [12:29:36]Send response to host [12:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31154,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:29:36]free response buf [12:29:36]execute_script done [12:29:36]execute_script returns [12:29:36]free content buf [12:29:36]Sock 9.Close socket [12:29:36]Sock 9.Thread stoped [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:20]accept exits with 7 [12:30:20]New connection [12:30:20]New thread 3067043172 created [12:30:20]Thread 3066899812 joined [12:30:20]Waiting for new connection... [12:30:20] Sock 7.Parse request [12:30:20]Sock 7.Check first char [12:30:20]Sock 7.First char is OK [12:30:20]request: POST /json_proto HTTP/1.0 [12:30:20]Method: POST [12:30:20]URL: /json_proto [12:30:20]Method is POST - this is cgi request [12:30:20]url: /json_proto [12:30:20]query_string will be loaded in cgi processing [12:30:20]execute_cgi json_proto POST (null) [12:30:20]execute_cgi path=json_proto method=POST [12:30:20]POST find Content-Length [12:30:20]Host: 172.17.51.3:8080 [12:30:20]Content-Length: 754 [12:30:20]Content-Type: application/json [12:30:20] [12:30:20]POST finish read [12:30:20]Found Content-Length = 754 [12:30:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:20]execute_script... [12:30:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:20]POST & json_proto [12:30:20]process_json_proto [12:30:20]json parsed OK: [12:30:20]protocol is kg_v1.0 [12:30:20]action value=close_receipt [12:30:20]process_action close_receipt [12:30:20]cmd_close_receipt [12:30:20]MH_GetDate [12:30:20]Write to MH i2c: F0 00 00 4E 4A 87 [12:30:20]Write i2c OK [12:30:20]MH_I2C_Read... [12:30:20]Read from MH i2c: F0 [12:30:20]MH_I2C_Read... [12:30:20]Read from MH i2c: F0 09 00 [12:30:20]MH_I2C_Read... [12:30:20]Read from MH i2c: F0 09 00 4E 4A 00 62 EC 18 67 04 C1 95 66 1D [12:30:20]GetLastDocTimeStamp 1729686578 [12:30:20]current date 1729686626 [12:30:20]FM_GetShiftState [12:30:20]SAM_PROTO_GetShiftState [12:30:20]wFMCommunicate request_size=4 [12:30:20]MH_SAM_APDU [12:30:20]CAPDU: 80 13 01 00 [12:30:20]Write to MH i2c: E2 08 00 4F 4A 80 13 01 00 00 00 00 00 16 [12:30:20]Write i2c OK [12:30:20]MH_I2C_Read... [12:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:20]Read from MH i2c: E2 [12:30:20]MH_I2C_Read... [12:30:20]Read from MH i2c: E2 0E 00 [12:30:20]MH_I2C_Read... [12:30:20]Read from MH i2c: E2 0E 00 4F 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D0 [12:30:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:30:20]wFMCommunicate OK [12:30:20]SAM_PROTO_GetShiftState done [12:30:20]FM_GetShiftState done [12:30:20]opened in 1729643755 [12:30:20]opened+sec_in_day 1729730155 [12:30:20]quantity*price = 0 [12:30:20]sum+1 = 1 [12:30:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 99 23.10.2024 12:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30035879 ФМ: 0000000002094219 ФД: 31155 ФПД: 110829181350898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31155&fm=110829181350898&tin=02508201610067®Number=0000000000186857&sum=0 [12:30:21]StoreToDocumentArchive [12:30:21]shift 117 fd 31155 [12:30:21]save to /storage/0117/doc_00031155 [12:30:21]save last doc name /storage/0117/doc_00031155 to /storage/kkm_last_doc_name [12:30:21]save OK [12:30:21]Clear old archive folders... [12:30:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:21]tlvbuf is 00CC9C30 [12:30:21]SAM_PROTO_ClearQueue [12:30:21]wFMCommunicate request_size=4 [12:30:21]MH_SAM_APDU [12:30:21]CAPDU: 80 09 00 00 [12:30:21]Write to MH i2c: E2 08 00 5C 4A 80 09 00 00 00 00 00 00 18 [12:30:21]Write i2c OK [12:30:21]MH_I2C_Read... [12:30:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:21]Read from MH i2c: E2 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 03 00 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 03 00 5C 4A 00 90 00 1A [12:30:21]RAPDU: 90 00 [12:30:21]wFMCommunicate OK [12:30:21]SAM_PROTO_ClearQueue done [12:30:21]KKMCreateOFDPacket [12:30:21]OFDProtocolAddRootSTLVToBuf [12:30:21]FM_MakeSignedData [12:30:21]FM_MakeSignedData [12:30:21]SAM_PROTO_SignData [12:30:21]wFMCommunicate request_size=4 [12:30:21]MH_SAM_APDU [12:30:21]CAPDU: 80 0D 01 02 [12:30:21]Write to MH i2c: E2 08 00 5D 4A 80 0D 01 02 00 00 00 00 20 [12:30:21]Write i2c OK [12:30:21]MH_I2C_Read... [12:30:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:21]Read from MH i2c: E2 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 03 00 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 03 00 5D 4A 00 90 00 1B [12:30:21]RAPDU: 90 00 [12:30:21]wFMCommunicate OK [12:30:21]wFMCommunicate request_size=255 [12:30:21]MH_SAM_APDU [12:30:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 79 00 00 35 04 06 00 64 [12:30:21]Write to MH i2c: E2 02 01 5E 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 79 00 00 35 04 06 00 64 00 00 38 [12:30:21]Write i2c OK [12:30:21]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 5E 4A 00 90 00 1C [12:30:22]RAPDU: 90 00 [12:30:22]wFMCommunicate OK [12:30:22]wFMCommunicate request_size=10 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 0D 02 02 05 CC 6D FC 33 F2 [12:30:22]Write to MH i2c: E2 0D 00 5F 4A 80 0D 02 02 05 00 CC 6D FC 33 F2 00 00 87 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 5F 4A 00 90 00 1D [12:30:22]RAPDU: 90 00 [12:30:22]wFMCommunicate OK [12:30:22]wFMCommunicate request_size=4 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 0D 03 02 [12:30:22]Write to MH i2c: E2 08 00 60 4A 80 0D 03 02 00 00 00 00 25 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 0B 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 0B 00 60 4A 00 16 D1 92 C7 95 91 2A C4 90 00 7A [12:30:22]RAPDU: 16 D1 92 C7 95 91 2A C4 90 00 [12:30:22]wFMCommunicate OK [12:30:22]SAM_PROTO_SignData done [12:30:22]FM_MakeSignedData done [12:30:22]CreateOFDProtocolMessage [12:30:22]wFMCommunicate request_size=4 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 11 00 00 [12:30:22]Write to MH i2c: E2 08 00 61 4A 80 11 00 00 00 00 00 00 25 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 17 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 17 00 61 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 73 [12:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:30:22]wFMCommunicate OK [12:30:22]CreateOFDProtocolMessage done [12:30:22]OFDSenderStorePacket 31155 [12:30:22]StoreOFDPacket docnum=31155 [12:30:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 2D 07 01 21 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 79 00 00 35 04 06 00 64 CC 6D FC 33 F2 16 D1 92 C7 95 91 2A C4 [12:30:22]CheckFolder [12:30:22]dirname=/storage/ofd_packets [12:30:22]CheckFolder done [12:30:22]ProducePacketName [12:30:22]name=ofd_packets/00031155 [12:30:22]NVStorageSaveData ofd_packets/00031155 [12:30:22]File name is /storage/ofd_packets/00031155 [12:30:22]Write 301 bytes [12:30:22]NVStorageSaveData done [12:30:22]OFDSenderStorePacket done [12:30:22]KKMCreateOFDPacket done [12:30:22]NVStorageSaveData kkm_last_timestamp [12:30:22]File name is /storage/kkm_last_timestamp [12:30:22]Write 4 bytes [12:30:22]NVStorageSaveData done [12:30:22]OFD Sender: Processing packet 31155 [packets to send 11, broken 10] [12:30:22]ProducePacketName [12:30:22]name=ofd_packets/00031155 [12:30:22]OFD Sender: To server: pG, [12:30:22]CommunicateWithHost lk.salyk.kg:30040 [12:30:22]ConnectInit lk.salyk.kg [12:30:22]ExternCall_PrintAddStr [12:30:22]wPrintStart [12:30:22]Write to MH i2c: 01 00 00 62 4A AC [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: 01 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: 01 07 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: 01 07 00 62 4A 00 00 00 00 00 FF 0F C1 [12:30:22]RasterBufferAndPrint [12:30:22]line Счет N : (1)343597 [12:30:22]line ИНН: 02508201610067 [12:30:22]line Контрольно-Кассовый Чек [12:30:22]line ПРОДАЖА [12:30:22]line ТРК (МРК, ГНК) : 62 [12:30:22]line Товар: 2710124500 [12:30:22]line Аи-95-К-3 [12:30:22]line 15.000 * 0.00 [12:30:22]line = 0.00 [12:30:22]line НДС 12% НСП 1% [12:30:22]line > о реализуемом товаре [12:30:22]line ИТОГО: 0.00 [12:30:22]line НСП 1% : 0.00 [12:30:22]line НДС 12% : 0.00 [12:30:22]line Наличными: 0.00 [12:30:22]line Безнал.: 0.00 [12:30:22]line Место: АЗС № 78 "Партнер Нефть" [12:30:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:30:22]line СНО: Общий режим [12:30:22]line Чек 99 23.10.2024 12:30 [12:30:22]line Смена: 117 ФФД: 1.0 [12:30:22]line ЗНМ: 0300000137 [12:30:22]line РНМ: 0000000000186857 [12:30:22]line Версия ККМ: v1.0 [12:30:22]line Талоны: ТК ГПНА Online [12:30:22]line 30035879 [12:30:22]line ФМ: 0000000002094219 [12:30:22]line ФД: 31155 [12:30:22]line ФПД: 110829181350898 [12:30:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31155&fm=110829181350898&tin=02508201610067®Number=0000000000186857&sum=0 [12:30:22]Connected sock=11 [12:30:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 2D 07 01 21 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 79 00 00 35 04 06 00 64 CC 6D FC 33 F2 16 D1 92 C7 95 91 2A C4 [12:30:22]written 0, free lines is 4095 [12:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4E E4 47 00 22 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 79 00 00 F4 03 04 00 DD 96 18 67 B6 04 01 00 00 A5 EC 8A 56 DB D9 3C 7B [12:30:22]CommunicateWithHost err = 0 [12:30:22]CheckOFDResponse [12:30:22]1017 (14) - 77093643461234 [12:30:22]1041 (16) - 0000000002094219 [12:30:22]1040 (4) - 31155 [12:30:22]1012 (4) - 23.10.2024 06:25 [12:30:22]1206 (1) - 0 [12:30:22]OFD Sender: Remove packet 31155 [12:30:22]ProducePacketName [12:30:22]name=ofd_packets/00031155 [12:30:22]NVStorageDeleteData [12:30:23]Write to MH i2c: 01 00 00 8C 4A D6 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 8C 4A 00 00 00 00 00 00 0D EA [12:30:23]RasterBufferAndPrint [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]written 0, free lines is 3334 [12:30:23]MH_Cut [12:30:23]Write to MH i2c: D1 01 00 93 4A 01 AF [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 01 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 01 00 93 4A 00 AE [12:30:23]Write to MH i2c: 01 00 00 94 4A DE [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]OFD Sender: No OFD packet to send [12:30:23]*** Cut start [12:30:23]*** Partial cut [12:30:23]*** CUTSNS_PIN = 1 [12:30:23]*** CUTSNS_PIN = 0 [12:30:24]*** Brake cut motor [12:30:24]Read from MH i2c: 01 [12:30:24]MH_I2C_Read... [12:30:24]*** Stop cut motor [12:30:24]*** Cut end [12:30:24]Read from MH i2c: 01 07 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: 01 07 00 94 4A 00 00 00 00 00 FF 0F F3 [12:30:24]process_action close_receipt done [12:30:24]requested_data is exist [12:30:24]produce_requested_data [12:30:24]requested_item fm.sn is exist - process it [12:30:24]wFMCommunicate request_size=4 [12:30:24]MH_SAM_APDU [12:30:24]CAPDU: 80 11 00 00 [12:30:24]Write to MH i2c: E2 08 00 95 4A 80 11 00 00 00 00 00 00 59 [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:24]Read from MH i2c: E2 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 17 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 17 00 95 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A7 [12:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:30:24]wFMCommunicate OK [12:30:24]requested_item fd.num is exist - process it [12:30:24]SAM_PROTO_GetFieldsCounters [12:30:24]wFMCommunicate request_size=4 [12:30:24]MH_SAM_APDU [12:30:24]CAPDU: 80 13 00 00 [12:30:24]Write to MH i2c: E2 08 00 96 4A 80 13 00 00 00 00 00 00 5C [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:24]Read from MH i2c: E2 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 62 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 62 00 96 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:24]wFMCommunicate OK [12:30:24]SAM_PROTO_GetFieldsCounters done [12:30:24]requested_item shift.num is exist - process it [12:30:24]requested_item shift.opened is exist - process it [12:30:24]req_shift_opened [12:30:24]FM_GetShiftState [12:30:24]SAM_PROTO_GetShiftState [12:30:24]wFMCommunicate request_size=4 [12:30:24]MH_SAM_APDU [12:30:24]CAPDU: 80 13 01 00 [12:30:24]Write to MH i2c: E2 08 00 97 4A 80 13 01 00 00 00 00 00 5E [12:30:24]Write i2c OK [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 [12:30:24]MH_I2C_Read... [12:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:24]Read from MH i2c: E2 0E 00 [12:30:24]MH_I2C_Read... [12:30:24]Read from MH i2c: E2 0E 00 97 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 18 [12:30:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:30:24]wFMCommunicate OK [12:30:24]SAM_PROTO_GetShiftState done [12:30:24]FM_GetShiftState done [12:30:24]req_shift_opened done [12:30:24]requested_item shift.open_date is exist - process it [12:30:24]req_shift_open_date [12:30:24]req_shift_open_date done [12:30:24]produce_requested_data done [12:30:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31155,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:30:24]process_action_free close_receipt [12:30:24]json_value_free [12:30:24]json_value_free done [12:30:24]process_json_proto returns [12:30:24]Send response to host [12:30:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31155,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:30:24]free response buf [12:30:24]execute_script done [12:30:24]execute_script returns [12:30:24]free content buf [12:30:24]Sock 7.Close socket [12:30:24]Sock 7.Thread stoped [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:02]accept exits with 9 [12:31:02]New connection [12:31:02]New thread 3066899812 created [12:31:02]Thread 3067043172 joined [12:31:02]Waiting for new connection... [12:31:02] Sock 9.Parse request [12:31:02]Sock 9.Check first char [12:31:02]Sock 9.First char is OK [12:31:02]request: POST /json_proto HTTP/1.0 [12:31:02]Method: POST [12:31:02]URL: /json_proto [12:31:02]Method is POST - this is cgi request [12:31:02]url: /json_proto [12:31:02]query_string will be loaded in cgi processing [12:31:02]execute_cgi json_proto POST (null) [12:31:02]execute_cgi path=json_proto method=POST [12:31:02]POST find Content-Length [12:31:02]Host: 172.17.51.3:8080 [12:31:02]Content-Length: 679 [12:31:02]Content-Type: application/json [12:31:02] [12:31:02]POST finish read [12:31:02]Found Content-Length = 679 [12:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.800, "sum" : 1051.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1051.00, "payments": [ { "type": 0, "sum" : 1051.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:02]execute_script... [12:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.800, "sum" : 1051.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1051.00, "payments": [ { "type": 0, "sum" : 1051.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:02]POST & json_proto [12:31:02]process_json_proto [12:31:02]json parsed OK: [12:31:02]protocol is kg_v1.0 [12:31:02]action value=close_receipt [12:31:02]process_action close_receipt [12:31:02]cmd_close_receipt [12:31:02]MH_GetDate [12:31:02]Write to MH i2c: F0 00 00 98 4A D1 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 98 4A 00 8C EC 18 67 04 C1 95 66 91 [12:31:02]GetLastDocTimeStamp 1729686626 [12:31:02]current date 1729686668 [12:31:02]FM_GetShiftState [12:31:02]SAM_PROTO_GetShiftState [12:31:02]wFMCommunicate request_size=4 [12:31:02]MH_SAM_APDU [12:31:02]CAPDU: 80 13 01 00 [12:31:02]Write to MH i2c: E2 08 00 99 4A 80 13 01 00 00 00 00 00 60 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:02]Read from MH i2c: E2 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 99 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1A [12:31:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:31:02]wFMCommunicate OK [12:31:02]SAM_PROTO_GetShiftState done [12:31:02]FM_GetShiftState done [12:31:02]opened in 1729643755 [12:31:02]opened+sec_in_day 1729730155 [12:31:02]quantity*price = 105156 [12:31:02]sum+1 = 105157 [12:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1051.00 Внесено: 1300.00 СДАЧА: 249.00 НСП 1% : 9.31 НДС 12% : 111.67 Наличными: 1051.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 100 23.10.2024 12:31 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31156 ФПД: 130871322243613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31156&fm=130871322243613&tin=02508201610067®Number=0000000000186857&sum=105100 [12:31:03]StoreToDocumentArchive [12:31:03]shift 117 fd 31156 [12:31:03]save to /storage/0117/doc_00031156 [12:31:03]save last doc name /storage/0117/doc_00031156 to /storage/kkm_last_doc_name [12:31:03]save OK [12:31:03]Clear old archive folders... [12:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:31:03]tlvbuf is 00CD4AF0 [12:31:03]SAM_PROTO_ClearQueue [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 09 00 00 [12:31:03]Write to MH i2c: E2 08 00 A6 4A 80 09 00 00 00 00 00 00 62 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 A6 4A 00 90 00 64 [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]SAM_PROTO_ClearQueue done [12:31:03]KKMCreateOFDPacket [12:31:03]OFDProtocolAddRootSTLVToBuf [12:31:03]FM_MakeSignedData [12:31:03]FM_MakeSignedData [12:31:03]SAM_PROTO_SignData [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 01 02 [12:31:03]Write to MH i2c: E2 08 00 A7 4A 80 0D 01 02 00 00 00 00 6A [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 A7 4A 00 90 00 65 [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]wFMCommunicate request_size=255 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C4 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 2B 00 00 00 00 07 04 06 00 8C 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8C EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 79 00 00 35 04 06 00 77 06 DA AC [12:31:03]Write to MH i2c: E2 02 01 A8 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C4 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 2B 00 00 00 00 07 04 06 00 8C 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8C EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 79 00 00 35 04 06 00 77 06 DA AC 00 00 E4 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]OFD Sender: No OFD packet to send [12:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 A8 4A 00 90 00 66 [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]wFMCommunicate request_size=7 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 02 02 02 72 1D [12:31:03]Write to MH i2c: E2 0A 00 A9 4A 80 0D 02 02 02 00 72 1D 00 00 00 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 A9 4A 00 90 00 67 [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 03 02 [12:31:03]Write to MH i2c: E2 08 00 AA 4A 80 0D 03 02 00 00 00 00 6F [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 0B 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 0B 00 AA 4A 00 24 16 19 34 1A 23 7D DD 90 00 8E [12:31:03]RAPDU: 24 16 19 34 1A 23 7D DD 90 00 [12:31:03]wFMCommunicate OK [12:31:03]SAM_PROTO_SignData done [12:31:03]FM_MakeSignedData done [12:31:03]CreateOFDProtocolMessage [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 11 00 00 [12:31:03]Write to MH i2c: E2 08 00 AB 4A 80 11 00 00 00 00 00 00 6F [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 17 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 17 00 AB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BD [12:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:31:03]wFMCommunicate OK [12:31:03]CreateOFDProtocolMessage done [12:31:03]OFDSenderStorePacket 31156 [12:31:03]StoreOFDPacket docnum=31156 [12:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 32 DC 04 01 1E 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C4 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 2B 00 00 00 00 07 04 06 00 8C 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8C EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 79 00 00 35 04 06 00 77 06 DA AC 72 1D 24 16 19 34 1A 23 7D DD [12:31:03]CheckFolder [12:31:03]dirname=/storage/ofd_packets [12:31:03]CheckFolder done [12:31:03]ProducePacketName [12:31:03]name=ofd_packets/00031156 [12:31:03]NVStorageSaveData ofd_packets/00031156 [12:31:03]File name is /storage/ofd_packets/00031156 [12:31:03]Write 298 bytes [12:31:03]NVStorageSaveData done [12:31:03]OFDSenderStorePacket done [12:31:03]KKMCreateOFDPacket done [12:31:03]NVStorageSaveData kkm_last_timestamp [12:31:03]File name is /storage/kkm_last_timestamp [12:31:03]Write 4 bytes [12:31:03]NVStorageSaveData done [12:31:03]ExternCall_PrintAddStr [12:31:03]wPrintStart [12:31:03]Write to MH i2c: 01 00 00 AC 4A F6 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: 01 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: 01 07 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: 01 07 00 AC 4A 00 00 00 00 00 FF 0F 0B [12:31:03]RasterBufferAndPrint [12:31:03]line Счет N : (1)343598 [12:31:03]line ИНН: 02508201610067 [12:31:03]line Контрольно-Кассовый Чек [12:31:03]line ПРОДАЖА [12:31:03]line ТРК (МРК, ГНК) : 44 [12:31:03]line Товар: 2710194210 [12:31:03]line ДТ-К-2 [12:31:03]line 13.800 * 76.20 [12:31:03]line = 1051.56 [12:31:03]line НДС 12% НСП 1% [12:31:03]line > о реализуемом товаре [12:31:03]line ОКРУГЛЕНИЕ: -0.56 [12:31:03]line ИТОГО: 1051.00 [12:31:03]line Внесено: 1300.00 [12:31:03]line СДАЧА: 249.00 [12:31:03]line НСП 1% : 9.31 [12:31:03]line НДС 12% : 111.67 [12:31:03]line Наличными: 1051.00 [12:31:03]line Безнал.: 0.00 [12:31:03]line Место: АЗС № 78 "Партнер Нефть" [12:31:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:31:03]line СНО: Общий режим [12:31:03]line Чек 100 23.10.2024 12:31 [12:31:03]line Смена: 117 ФФД: 1.0 [12:31:03]line ЗНМ: 0300000137 [12:31:03]line РНМ: 0000000000186857 [12:31:03]line Версия ККМ: v1.0 [12:31:03]line ФМ: 0000000002094219 [12:31:04]line ФД: 31156 [12:31:04]line ФПД: 130871322243613 [12:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31156&fm=130871322243613&tin=02508201610067®Number=0000000000186857&sum=105100 [12:31:04]OFD Sender: Processing packet 31156 [packets to send 11, broken 10] [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00031156 [12:31:04]OFD Sender: To server: pG, [12:31:04]CommunicateWithHost lk.salyk.kg:30040 [12:31:04]ConnectInit lk.salyk.kg [12:31:04]written 0, free lines is 4095 [12:31:04]Connected sock=10 [12:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 32 DC 04 01 1E 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C4 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 2B 00 00 00 00 07 04 06 00 8C 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8C EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 79 00 00 35 04 06 00 77 06 DA AC 72 1D 24 16 19 34 1A 23 7D DD [12:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F4 E3 47 00 14 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 79 00 00 F4 03 04 00 06 97 18 67 B6 04 01 00 00 3A 37 AE D5 06 DE A9 2C [12:31:04]CommunicateWithHost err = 0 [12:31:04]CheckOFDResponse [12:31:04]1017 (14) - 77093643461234 [12:31:04]1041 (16) - 0000000002094219 [12:31:04]1040 (4) - 31156 [12:31:04]1012 (4) - 23.10.2024 06:26 [12:31:04]1206 (1) - 0 [12:31:04]OFD Sender: Remove packet 31156 [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00031156 [12:31:04]NVStorageDeleteData [12:31:04]Write to MH i2c: 01 00 00 D7 4A 21 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 D7 4A 00 00 00 00 00 F7 0C 2B [12:31:04]RasterBufferAndPrint [12:31:04]line [12:31:04]line [12:31:04]line [12:31:04]line [12:31:04]line [12:31:04]written 0, free lines is 3326 [12:31:04]MH_Cut [12:31:04]Write to MH i2c: D1 01 00 DE 4A 01 FA [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: D1 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: D1 01 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: D1 01 00 DE 4A 00 F9 [12:31:04]Write to MH i2c: 01 00 00 DF 4A 29 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]OFD Sender: No OFD packet to send [12:31:05]*** Cut start [12:31:05]*** Partial cut [12:31:05]*** CUTSNS_PIN = 1 [12:31:05]*** CUTSNS_PIN = 0 [12:31:05]*** Brake cut motor [12:31:05]Read from MH i2c: 01 [12:31:05]MH_I2C_Read... [12:31:05]*** Stop cut motor [12:31:05]*** Cut end [12:31:05]Read from MH i2c: 01 07 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 07 00 DF 4A 00 00 00 00 00 FF 0F 3E [12:31:05]process_action close_receipt done [12:31:05]requested_data is exist [12:31:05]produce_requested_data [12:31:05]requested_item fm.sn is exist - process it [12:31:05]wFMCommunicate request_size=4 [12:31:05]MH_SAM_APDU [12:31:05]CAPDU: 80 11 00 00 [12:31:05]Write to MH i2c: E2 08 00 E0 4A 80 11 00 00 00 00 00 00 A4 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:05]Read from MH i2c: E2 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 17 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 17 00 E0 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F2 [12:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:31:05]wFMCommunicate OK [12:31:05]requested_item fd.num is exist - process it [12:31:05]SAM_PROTO_GetFieldsCounters [12:31:05]wFMCommunicate request_size=4 [12:31:05]MH_SAM_APDU [12:31:05]CAPDU: 80 13 00 00 [12:31:05]Write to MH i2c: E2 08 00 E1 4A 80 13 00 00 00 00 00 00 A7 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:05]Read from MH i2c: E2 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 62 00 [12:31:05]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 62 00 E1 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetFieldsCounters done [12:31:06]requested_item shift.num is exist - process it [12:31:06]requested_item shift.opened is exist - process it [12:31:06]req_shift_opened [12:31:06]FM_GetShiftState [12:31:06]SAM_PROTO_GetShiftState [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 13 01 00 [12:31:06]Write to MH i2c: E2 08 00 E2 4A 80 13 01 00 00 00 00 00 A9 [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 E2 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 63 [12:31:06]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetShiftState done [12:31:06]FM_GetShiftState done [12:31:06]req_shift_opened done [12:31:06]requested_item shift.open_date is exist - process it [12:31:06]req_shift_open_date [12:31:06]req_shift_open_date done [12:31:06]produce_requested_data done [12:31:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31156,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:31:06]process_action_free close_receipt [12:31:06]json_value_free [12:31:06]json_value_free done [12:31:06]process_json_proto returns [12:31:06]Send response to host [12:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31156,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:31:06]free response buf [12:31:06]execute_script done [12:31:06]execute_script returns [12:31:06]free content buf [12:31:06]Sock 9.Close socket [12:31:06]Sock 9.Thread stoped [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:19]accept exits with 7 [12:32:19]New connection [12:32:19]New thread 3067043172 created [12:32:19]Thread 3066899812 joined [12:32:19]Waiting for new connection... [12:32:19] Sock 7.Parse request [12:32:19]Sock 7.Check first char [12:32:19]Sock 7.First char is OK [12:32:19]request: POST /json_proto HTTP/1.0 [12:32:19]Method: POST [12:32:19]URL: /json_proto [12:32:19]Method is POST - this is cgi request [12:32:19]url: /json_proto [12:32:19]query_string will be loaded in cgi processing [12:32:19]execute_cgi json_proto POST (null) [12:32:19]execute_cgi path=json_proto method=POST [12:32:19]POST find Content-Length [12:32:19]Host: 172.17.51.3:8080 [12:32:19]Content-Length: 677 [12:32:19]Content-Type: application/json [12:32:19] [12:32:19]POST finish read [12:32:19]Found Content-Length = 677 [12:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]execute_script... [12:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]POST & json_proto [12:32:19]process_json_proto [12:32:19]json parsed OK: [12:32:19]protocol is kg_v1.0 [12:32:19]action value=close_receipt [12:32:19]process_action close_receipt [12:32:19]cmd_close_receipt [12:32:19]MH_GetDate [12:32:19]Write to MH i2c: F0 00 00 E3 4A 1C [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 E3 4A 00 DA EC 18 67 04 C1 95 66 2A [12:32:19]GetLastDocTimeStamp 1729686668 [12:32:19]current date 1729686746 [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 E4 4A 80 13 01 00 00 00 00 00 AB [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 E4 4A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 65 [12:32:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetShiftState done [12:32:20]FM_GetShiftState done [12:32:20]opened in 1729643755 [12:32:20]opened+sec_in_day 1729730155 [12:32:20]quantity*price = 30038 [12:32:20]sum+1 = 30039 [12:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 101 23.10.2024 12:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31157 ФПД: 274611847781845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123226&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31157&fm=274611847781845&tin=02508201610067®Number=0000000000186857&sum=30000 [12:32:21]StoreToDocumentArchive [12:32:21]shift 117 fd 31157 [12:32:21]save to /storage/0117/doc_00031157 [12:32:21]save last doc name /storage/0117/doc_00031157 to /storage/kkm_last_doc_name [12:32:21]save OK [12:32:21]Clear old archive folders... [12:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:21]tlvbuf is 00CCDC70 [12:32:21]SAM_PROTO_ClearQueue [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 09 00 00 [12:32:21]Write to MH i2c: E2 08 00 F1 4A 80 09 00 00 00 00 00 00 AD [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 F1 4A 00 90 00 AF [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_ClearQueue done [12:32:21]KKMCreateOFDPacket [12:32:21]OFDProtocolAddRootSTLVToBuf [12:32:21]FM_MakeSignedData [12:32:21]FM_MakeSignedData [12:32:21]SAM_PROTO_SignData [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 01 02 [12:32:21]Write to MH i2c: E2 08 00 F2 4A 80 0D 01 02 00 00 00 00 B5 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 F2 4A 00 90 00 B0 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=255 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 DA EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 79 00 00 35 04 06 00 F9 [12:32:21]Write to MH i2c: E2 02 01 F3 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 DA EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 79 00 00 35 04 06 00 F9 00 00 80 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 F3 4A 00 90 00 B1 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=10 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 05 C2 0D A3 5D D5 [12:32:21]Write to MH i2c: E2 0D 00 F4 4A 80 0D 02 02 05 00 C2 0D A3 5D D5 00 00 66 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 F4 4A 00 90 00 B2 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 03 02 [12:32:21]Write to MH i2c: E2 08 00 F5 4A 80 0D 03 02 00 00 00 00 BA [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 F5 4A 00 38 47 7B A4 F4 7B DA 00 90 00 A2 [12:32:21]RAPDU: 38 47 7B A4 F4 7B DA 00 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_SignData done [12:32:21]FM_MakeSignedData done [12:32:21]CreateOFDProtocolMessage [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 11 00 00 [12:32:21]Write to MH i2c: E2 08 00 F6 4A 80 11 00 00 00 00 00 00 BA [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 F6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [12:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:32:21]wFMCommunicate OK [12:32:21]CreateOFDProtocolMessage done [12:32:21]OFDSenderStorePacket 31157 [12:32:21]StoreOFDPacket docnum=31157 [12:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 66 07 01 A8 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 DA EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 79 00 00 35 04 06 00 F9 C2 0D A3 5D D5 38 47 7B A4 F4 7B DA 00 [12:32:21]CheckFolder [12:32:21]dirname=/storage/ofd_packets [12:32:21]CheckFolder done [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00031157 [12:32:21]NVStorageSaveData ofd_packets/00031157 [12:32:21]File name is /storage/ofd_packets/00031157 [12:32:21]Write 301 bytes [12:32:21]NVStorageSaveData done [12:32:21]OFDSenderStorePacket done [12:32:21]KKMCreateOFDPacket done [12:32:21]NVStorageSaveData kkm_last_timestamp [12:32:21]File name is /storage/kkm_last_timestamp [12:32:21]Write 4 bytes [12:32:21]NVStorageSaveData done [12:32:21]ExternCall_PrintAddStr [12:32:21]wPrintStart [12:32:21]Write to MH i2c: 01 00 00 F7 4A 41 [12:32:21]OFD Sender: Processing packet 31157 [packets to send 11, broken 10] [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00031157 [12:32:21]OFD Sender: To server: pG, [12:32:21]CommunicateWithHost lk.salyk.kg:30040 [12:32:21]ConnectInit lk.salyk.kg [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 F7 4A 00 00 00 00 00 FF 0F 56 [12:32:21]RasterBufferAndPrint [12:32:21]line Счет N : (1)343599 [12:32:21]line ИНН: 02508201610067 [12:32:21]line Контрольно-Кассовый Чек [12:32:21]line ПРОДАЖА [12:32:21]line ТРК (МРК, ГНК) : 43 [12:32:21]line Товар: 2710124130 [12:32:21]line Аи-92-К-2 [12:32:21]line 4.490 * 66.90 [12:32:21]line = 300.38 [12:32:21]line НДС 12% НСП 1% [12:32:21]line > о реализуемом товаре [12:32:21]line ОКРУГЛЕНИЕ: -0.38 [12:32:21]line ИТОГО: 300.00 [12:32:21]line Внесено: 300.00 [12:32:21]line СДАЧА: 0.00 [12:32:21]line НСП 1% : 2.66 [12:32:21]line НДС 12% : 31.90 [12:32:21]line Наличными: 300.00 [12:32:21]line Безнал.: 0.00 [12:32:21]line Место: АЗС № 78 "Партнер Нефть" [12:32:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:32:21]line СНО: Общий режим [12:32:21]line Чек 101 23.10.2024 12:32 [12:32:21]line Смена: 117 ФФД: 1.0 [12:32:21]line ЗНМ: 0300000137 [12:32:21]line РНМ: 0000000000186857 [12:32:21]line Версия ККМ: v1.0 [12:32:21]line ФМ: 0000000002094219 [12:32:21]line ФД: 31157 [12:32:21]line ФПД: 274611847781845 [12:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123226&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31157&fm=274611847781845&tin=02508201610067®Number=0000000000186857&sum=30000 [12:32:21]written 0, free lines is 4095 [12:32:21]Connected sock=10 [12:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 66 07 01 A8 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 DA EC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 79 00 00 35 04 06 00 F9 C2 0D A3 5D D5 38 47 7B A4 F4 7B DA 00 [12:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF E7 47 00 BF 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 79 00 00 F4 03 04 00 54 97 18 67 B6 04 01 00 00 DB 55 4D 96 0D BB 90 C4 [12:32:22]CommunicateWithHost err = 0 [12:32:22]CheckOFDResponse [12:32:22]1017 (14) - 77093643461234 [12:32:22]1041 (16) - 0000000002094219 [12:32:22]1040 (4) - 31157 [12:32:22]1012 (4) - 23.10.2024 06:27 [12:32:22]1206 (1) - 0 [12:32:22]OFD Sender: Remove packet 31157 [12:32:22]ProducePacketName [12:32:22]name=ofd_packets/00031157 [12:32:22]NVStorageDeleteData [12:32:22]Write to MH i2c: 01 00 00 22 4B 6D [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 22 4B 00 00 00 00 00 EC 0C 6C [12:32:22]RasterBufferAndPrint [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]written 0, free lines is 3317 [12:32:22]MH_Cut [12:32:22]Write to MH i2c: D1 01 00 29 4B 01 46 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 01 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 01 00 29 4B 00 45 [12:32:22]Write to MH i2c: 01 00 00 2A 4B 75 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]OFD Sender: No OFD packet to send [12:32:22]*** Cut start [12:32:22]*** Partial cut [12:32:22]*** CUTSNS_PIN = 1 [12:32:22]*** CUTSNS_PIN = 0 [12:32:23]*** Brake cut motor [12:32:23]Read from MH i2c: 01 [12:32:23]MH_I2C_Read... [12:32:23]*** Stop cut motor [12:32:23]*** Cut end [12:32:23]Read from MH i2c: 01 07 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: 01 07 00 2A 4B 00 00 00 00 00 FF 0F 8A [12:32:23]process_action close_receipt done [12:32:23]requested_data is exist [12:32:23]produce_requested_data [12:32:23]requested_item fm.sn is exist - process it [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 11 00 00 [12:32:23]Write to MH i2c: E2 08 00 2B 4B 80 11 00 00 00 00 00 00 F0 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 17 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 17 00 2B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [12:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:32:23]wFMCommunicate OK [12:32:23]requested_item fd.num is exist - process it [12:32:23]SAM_PROTO_GetFieldsCounters [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 13 00 00 [12:32:23]Write to MH i2c: E2 08 00 2C 4B 80 13 00 00 00 00 00 00 F3 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 62 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 62 00 2C 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:23]wFMCommunicate OK [12:32:23]SAM_PROTO_GetFieldsCounters done [12:32:23]requested_item shift.num is exist - process it [12:32:23]requested_item shift.opened is exist - process it [12:32:23]req_shift_opened [12:32:23]FM_GetShiftState [12:32:23]SAM_PROTO_GetShiftState [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 13 01 00 [12:32:23]Write to MH i2c: E2 08 00 2D 4B 80 13 01 00 00 00 00 00 F5 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 0E 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 0E 00 2D 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AF [12:32:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:32:23]wFMCommunicate OK [12:32:23]SAM_PROTO_GetShiftState done [12:32:23]FM_GetShiftState done [12:32:23]req_shift_opened done [12:32:23]requested_item shift.open_date is exist - process it [12:32:23]req_shift_open_date [12:32:23]req_shift_open_date done [12:32:23]produce_requested_data done [12:32:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31157,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:32:23]process_action_free close_receipt [12:32:23]json_value_free [12:32:23]json_value_free done [12:32:23]process_json_proto returns [12:32:23]Send response to host [12:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31157,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:32:23]free response buf [12:32:23]execute_script done [12:32:23]execute_script returns [12:32:23]free content buf [12:32:23]Sock 7.Close socket [12:32:23]Sock 7.Thread stoped [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]accept exits with 9 [12:36:27]New connection [12:36:27]New thread 3066899812 created [12:36:27]Thread 3067043172 joined [12:36:27]Waiting for new connection... [12:36:27] Sock 9.Parse request [12:36:27]Sock 9.Check first char [12:36:27]Sock 9.First char is OK [12:36:27]request: POST /json_proto HTTP/1.0 [12:36:27]Method: POST [12:36:27]URL: /json_proto [12:36:27]Method is POST - this is cgi request [12:36:27]url: /json_proto [12:36:27]query_string will be loaded in cgi processing [12:36:27]execute_cgi json_proto POST (null) [12:36:27]execute_cgi path=json_proto method=POST [12:36:27]POST find Content-Length [12:36:27]Host: 172.17.51.3:8080 [12:36:27]Content-Length: 679 [12:36:27]Content-Type: application/json [12:36:27] [12:36:27]POST finish read [12:36:27]Found Content-Length = 679 [12:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:27]execute_script... [12:36:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:27]POST & json_proto [12:36:27]process_json_proto [12:36:27]json parsed OK: [12:36:27]protocol is kg_v1.0 [12:36:27]action value=close_receipt [12:36:27]process_action close_receipt [12:36:27]cmd_close_receipt [12:36:27]MH_GetDate [12:36:27]Write to MH i2c: F0 00 00 2E 4B 68 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 09 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 09 00 2E 4B 00 D1 ED 18 67 04 C1 95 66 6E [12:36:27]GetLastDocTimeStamp 1729686746 [12:36:27]current date 1729686993 [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 2F 4B 80 13 01 00 00 00 00 00 F7 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 2F 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B1 [12:36:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]opened in 1729643755 [12:36:27]opened+sec_in_day 1729730155 [12:36:27]quantity*price = 400050 [12:36:27]sum+1 = 400051 [12:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 102 23.10.2024 12:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31158 ФПД: 146974763873640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31158&fm=146974763873640&tin=02508201610067®Number=0000000000186857&sum=400000 [12:36:28]StoreToDocumentArchive [12:36:28]shift 117 fd 31158 [12:36:28]save to /storage/0117/doc_00031158 [12:36:28]save last doc name /storage/0117/doc_00031158 to /storage/kkm_last_doc_name [12:36:28]save OK [12:36:28]Clear old archive folders... [12:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:28]tlvbuf is B6F6B7E0 [12:36:28]SAM_PROTO_ClearQueue [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 09 00 00 [12:36:28]Write to MH i2c: E2 08 00 3C 4B 80 09 00 00 00 00 00 00 F9 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 3C 4B 00 90 00 FB [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_ClearQueue done [12:36:28]KKMCreateOFDPacket [12:36:28]OFDProtocolAddRootSTLVToBuf [12:36:28]FM_MakeSignedData [12:36:28]FM_MakeSignedData [12:36:28]SAM_PROTO_SignData [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 01 02 [12:36:28]Write to MH i2c: E2 08 00 3D 4B 80 0D 01 02 00 00 00 00 01 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 3D 4B 00 90 00 FC [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]wFMCommunicate request_size=255 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D1 ED 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 79 00 00 35 04 06 00 85 AC 3A 97 [12:36:28]Write to MH i2c: E2 02 01 3E 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D1 ED 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 79 00 00 35 04 06 00 85 AC 3A 97 00 00 F6 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 3E 4B 00 90 00 FD [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=7 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 02 02 02 75 68 [12:36:29]Write to MH i2c: E2 0A 00 3F 4B 80 0D 02 02 02 00 75 68 00 00 E5 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 3F 4B 00 90 00 FE [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 03 02 [12:36:29]Write to MH i2c: E2 08 00 40 4B 80 0D 03 02 00 00 00 00 06 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0B 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0B 00 40 4B 00 09 DD 9C 3D 4C 89 D8 4E 90 00 C1 [12:36:29]RAPDU: 09 DD 9C 3D 4C 89 D8 4E 90 00 [12:36:29]wFMCommunicate OK [12:36:29]SAM_PROTO_SignData done [12:36:29]FM_MakeSignedData done [12:36:29]CreateOFDProtocolMessage [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 11 00 00 [12:36:29]Write to MH i2c: E2 08 00 41 4B 80 11 00 00 00 00 00 00 06 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 41 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 54 [12:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:36:29]wFMCommunicate OK [12:36:29]CreateOFDProtocolMessage done [12:36:29]OFDSenderStorePacket 31158 [12:36:29]StoreOFDPacket docnum=31158 [12:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 76 FE 04 01 F9 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D1 ED 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 79 00 00 35 04 06 00 85 AC 3A 97 75 68 09 DD 9C 3D 4C 89 D8 4E [12:36:29]CheckFolder [12:36:29]dirname=/storage/ofd_packets [12:36:29]CheckFolder done [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00031158 [12:36:29]NVStorageSaveData ofd_packets/00031158 [12:36:29]File name is /storage/ofd_packets/00031158 [12:36:29]Write 298 bytes [12:36:29]NVStorageSaveData done [12:36:29]OFDSenderStorePacket done [12:36:29]KKMCreateOFDPacket done [12:36:29]NVStorageSaveData kkm_last_timestamp [12:36:29]File name is /storage/kkm_last_timestamp [12:36:29]Write 4 bytes [12:36:29]NVStorageSaveData done [12:36:29]ExternCall_PrintAddStr [12:36:29]wPrintStart [12:36:29]Write to MH i2c: 01 00 00 42 4B 8D [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 42 4B 00 00 00 00 00 FF 0F A2 [12:36:29]RasterBufferAndPrint [12:36:29]line Счет N : (1)343600 [12:36:29]line ИНН: 02508201610067 [12:36:29]line Контрольно-Кассовый Чек [12:36:29]line ПРОДАЖА [12:36:29]line ТРК (МРК, ГНК) : 34 [12:36:29]line Товар: 2710194210 [12:36:29]line ДТ-К-2 [12:36:29]line 52.500 * 76.20 [12:36:29]line = 4000.50 [12:36:29]line НДС 12% НСП 1% [12:36:29]line > о реализуемом товаре [12:36:29]line ОКРУГЛЕНИЕ: -0.50 [12:36:29]line ИТОГО: 4000.00 [12:36:29]line Внесено: 4000.00 [12:36:29]line СДАЧА: 0.00 [12:36:29]line НСП 1% : 35.40 [12:36:29]line НДС 12% : 424.83 [12:36:29]line Наличными: 4000.00 [12:36:29]line Безнал.: 0.00 [12:36:29]line Место: АЗС № 78 "Партнер Нефть" [12:36:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:36:29]line СНО: Общий режим [12:36:29]line Чек 102 23.10.2024 12:36 [12:36:29]line Смена: 117 ФФД: 1.0 [12:36:29]line ЗНМ: 0300000137 [12:36:29]line РНМ: 0000000000186857 [12:36:29]line Версия ККМ: v1.0 [12:36:29]line ФМ: 0000000002094219 [12:36:29]line ФД: 31158 [12:36:29]line ФПД: 146974763873640 [12:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31158&fm=146974763873640&tin=02508201610067®Number=0000000000186857&sum=400000 [12:36:29]OFD Sender: Processing packet 31158 [packets to send 11, broken 10] [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00031158 [12:36:29]OFD Sender: To server: pG, [12:36:29]CommunicateWithHost lk.salyk.kg:30040 [12:36:29]ConnectInit lk.salyk.kg [12:36:29]written 0, free lines is 4095 [12:36:29]Connected sock=10 [12:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 76 FE 04 01 F9 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D1 ED 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 79 00 00 35 04 06 00 85 AC 3A 97 75 68 09 DD 9C 3D 4C 89 D8 4E [12:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E6 F4 47 00 FD 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 32 30 39 34 32 31 39 10 04 04 00 B6 79 00 00 F4 03 04 00 4C 98 18 67 B6 04 01 00 00 E3 14 8E 0E C8 86 B3 23 [12:36:29]CommunicateWithHost err = 0 [12:36:29]CheckOFDResponse [12:36:29]1017 (14) - 77093643461234 [12:36:29]1041 (16) - 0000000002094219 [12:36:29]1040 (4) - 31158 [12:36:29]1012 (4) - 23.10.2024 06:31 [12:36:29]1206 (1) - 0 [12:36:29]OFD Sender: Remove packet 31158 [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00031158 [12:36:29]NVStorageDeleteData [12:36:30]Write to MH i2c: 01 00 00 6D 4B B8 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 6D 4B 00 00 00 00 00 FA 0C C5 [12:36:30]RasterBufferAndPrint [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]written 0, free lines is 3332 [12:36:30]MH_Cut [12:36:30]Write to MH i2c: D1 01 00 74 4B 01 91 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 74 4B 00 90 [12:36:30]Write to MH i2c: 01 00 00 75 4B C0 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]OFD Sender: No OFD packet to send [12:36:30]*** Cut start [12:36:30]*** Partial cut [12:36:30]*** CUTSNS_PIN = 1 [12:36:30]*** CUTSNS_PIN = 0 [12:36:30]*** Brake cut motor [12:36:31]Read from MH i2c: 01 [12:36:31]MH_I2C_Read... [12:36:31]*** Stop cut motor [12:36:31]*** Cut end [12:36:31]Read from MH i2c: 01 07 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: 01 07 00 75 4B 00 00 00 00 00 FF 0F D5 [12:36:31]process_action close_receipt done [12:36:31]requested_data is exist [12:36:31]produce_requested_data [12:36:31]requested_item fm.sn is exist - process it [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 11 00 00 [12:36:31]Write to MH i2c: E2 08 00 76 4B 80 11 00 00 00 00 00 00 3B [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:31]Read from MH i2c: E2 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 17 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 17 00 76 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [12:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:36:31]wFMCommunicate OK [12:36:31]requested_item fd.num is exist - process it [12:36:31]SAM_PROTO_GetFieldsCounters [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 13 00 00 [12:36:31]Write to MH i2c: E2 08 00 77 4B 80 13 00 00 00 00 00 00 3E [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:31]Read from MH i2c: E2 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 62 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 62 00 77 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:31]wFMCommunicate OK [12:36:31]SAM_PROTO_GetFieldsCounters done [12:36:31]requested_item shift.num is exist - process it [12:36:31]requested_item shift.opened is exist - process it [12:36:31]req_shift_opened [12:36:31]FM_GetShiftState [12:36:31]SAM_PROTO_GetShiftState [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 13 01 00 [12:36:31]Write to MH i2c: E2 08 00 78 4B 80 13 01 00 00 00 00 00 40 [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:31]Read from MH i2c: E2 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 0E 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 0E 00 78 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FA [12:36:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:36:31]wFMCommunicate OK [12:36:31]SAM_PROTO_GetShiftState done [12:36:31]FM_GetShiftState done [12:36:31]req_shift_opened done [12:36:31]requested_item shift.open_date is exist - process it [12:36:31]req_shift_open_date [12:36:31]req_shift_open_date done [12:36:31]produce_requested_data done [12:36:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31158,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:36:31]process_action_free close_receipt [12:36:31]json_value_free [12:36:31]json_value_free done [12:36:31]process_json_proto returns [12:36:31]Send response to host [12:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31158,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:36:31]free response buf [12:36:31]execute_script done [12:36:31]execute_script returns [12:36:31]free content buf [12:36:31]Sock 9.Close socket [12:36:31]Sock 9.Thread stoped [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:39]accept exits with 7 [12:37:39]New connection [12:37:39]New thread 3067043172 created [12:37:39]Thread 3066899812 joined [12:37:39]Waiting for new connection... [12:37:39] Sock 7.Parse request [12:37:39]Sock 7.Check first char [12:37:39]Sock 7.First char is OK [12:37:39]request: POST /json_proto HTTP/1.0 [12:37:39]Method: POST [12:37:39]URL: /json_proto [12:37:39]Method is POST - this is cgi request [12:37:39]url: /json_proto [12:37:39]query_string will be loaded in cgi processing [12:37:39]execute_cgi json_proto POST (null) [12:37:39]execute_cgi path=json_proto method=POST [12:37:39]POST find Content-Length [12:37:39]Host: 172.17.51.3:8080 [12:37:39]Content-Length: 677 [12:37:39]Content-Type: application/json [12:37:39] [12:37:39]POST finish read [12:37:39]Found Content-Length = 677 [12:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:39]execute_script... [12:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:39]POST & json_proto [12:37:39]process_json_proto [12:37:39]json parsed OK: [12:37:39]protocol is kg_v1.0 [12:37:39]action value=close_receipt [12:37:39]process_action close_receipt [12:37:39]cmd_close_receipt [12:37:39]MH_GetDate [12:37:39]Write to MH i2c: F0 00 00 79 4B B3 [12:37:39]Write i2c OK [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: F0 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: F0 09 00 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: F0 09 00 79 4B 00 19 EE 18 67 04 C1 95 66 02 [12:37:39]GetLastDocTimeStamp 1729686993 [12:37:39]current date 1729687065 [12:37:39]FM_GetShiftState [12:37:39]SAM_PROTO_GetShiftState [12:37:39]wFMCommunicate request_size=4 [12:37:39]MH_SAM_APDU [12:37:39]CAPDU: 80 13 01 00 [12:37:39]Write to MH i2c: E2 08 00 7A 4B 80 13 01 00 00 00 00 00 42 [12:37:39]Write i2c OK [12:37:39]MH_I2C_Read... [12:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:39]Read from MH i2c: E2 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 0E 00 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 0E 00 7A 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FC [12:37:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:37:39]wFMCommunicate OK [12:37:39]SAM_PROTO_GetShiftState done [12:37:39]FM_GetShiftState done [12:37:39]opened in 1729643755 [12:37:39]opened+sec_in_day 1729730155 [12:37:39]quantity*price = 30038 [12:37:39]sum+1 = 30039 [12:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 103 23.10.2024 12:37 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31159 ФПД: 152878079609090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31159&fm=152878079609090&tin=02508201610067®Number=0000000000186857&sum=30000 [12:37:40]StoreToDocumentArchive [12:37:40]shift 117 fd 31159 [12:37:40]save to /storage/0117/doc_00031159 [12:37:40]save last doc name /storage/0117/doc_00031159 to /storage/kkm_last_doc_name [12:37:40]save OK [12:37:40]Clear old archive folders... [12:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:40]tlvbuf is B6F6E290 [12:37:40]SAM_PROTO_ClearQueue [12:37:40]wFMCommunicate request_size=4 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 09 00 00 [12:37:40]Write to MH i2c: E2 08 00 87 4B 80 09 00 00 00 00 00 00 44 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 87 4B 00 90 00 46 [12:37:40]RAPDU: 90 00 [12:37:40]wFMCommunicate OK [12:37:40]SAM_PROTO_ClearQueue done [12:37:40]KKMCreateOFDPacket [12:37:40]OFDProtocolAddRootSTLVToBuf [12:37:40]FM_MakeSignedData [12:37:40]FM_MakeSignedData [12:37:40]SAM_PROTO_SignData [12:37:40]wFMCommunicate request_size=4 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 0D 01 02 [12:37:40]Write to MH i2c: E2 08 00 88 4B 80 0D 01 02 00 00 00 00 4C [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 88 4B 00 90 00 47 [12:37:40]RAPDU: 90 00 [12:37:40]wFMCommunicate OK [12:37:40]wFMCommunicate request_size=255 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 79 00 00 35 04 06 00 8B [12:37:40]Write to MH i2c: E2 02 01 89 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 79 00 00 35 04 06 00 8B 00 00 EE [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]OFD Sender: No OFD packet to send [12:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 89 4B 00 90 00 48 [12:37:40]RAPDU: 90 00 [12:37:40]wFMCommunicate OK [12:37:40]wFMCommunicate request_size=10 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 0D 02 02 05 0A B3 A1 09 02 [12:37:40]Write to MH i2c: E2 0D 00 8A 4B 80 0D 02 02 05 00 0A B3 A1 09 02 00 00 C2 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 03 00 8A 4B 00 90 00 49 [12:37:40]RAPDU: 90 00 [12:37:40]wFMCommunicate OK [12:37:40]wFMCommunicate request_size=4 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 0D 03 02 [12:37:40]Write to MH i2c: E2 08 00 8B 4B 80 0D 03 02 00 00 00 00 51 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 0B 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 0B 00 8B 4B 00 C7 26 A5 65 A6 17 4C AA 90 00 FC [12:37:40]RAPDU: C7 26 A5 65 A6 17 4C AA 90 00 [12:37:40]wFMCommunicate OK [12:37:40]SAM_PROTO_SignData done [12:37:40]FM_MakeSignedData done [12:37:40]CreateOFDProtocolMessage [12:37:40]wFMCommunicate request_size=4 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 11 00 00 [12:37:40]Write to MH i2c: E2 08 00 8C 4B 80 11 00 00 00 00 00 00 51 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 17 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 17 00 8C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [12:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:37:40]wFMCommunicate OK [12:37:40]CreateOFDProtocolMessage done [12:37:40]OFDSenderStorePacket 31159 [12:37:40]StoreOFDPacket docnum=31159 [12:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 76 07 01 4A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 79 00 00 35 04 06 00 8B 0A B3 A1 09 02 C7 26 A5 65 A6 17 4C AA [12:37:40]CheckFolder [12:37:40]dirname=/storage/ofd_packets [12:37:40]CheckFolder done [12:37:40]ProducePacketName [12:37:40]name=ofd_packets/00031159 [12:37:40]NVStorageSaveData ofd_packets/00031159 [12:37:40]File name is /storage/ofd_packets/00031159 [12:37:40]Write 301 bytes [12:37:40]NVStorageSaveData done [12:37:40]OFDSenderStorePacket done [12:37:40]KKMCreateOFDPacket done [12:37:40]NVStorageSaveData kkm_last_timestamp [12:37:40]File name is /storage/kkm_last_timestamp [12:37:40]Write 4 bytes [12:37:40]NVStorageSaveData done [12:37:40]ExternCall_PrintAddStr [12:37:40]wPrintStart [12:37:40]Write to MH i2c: 01 00 00 8D 4B D8 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: 01 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: 01 07 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: 01 07 00 8D 4B 00 00 00 00 00 FF 0F ED [12:37:40]RasterBufferAndPrint [12:37:40]line Счет N : (1)343601 [12:37:40]line ИНН: 02508201610067 [12:37:40]line Контрольно-Кассовый Чек [12:37:40]line ПРОДАЖА [12:37:40]line ТРК (МРК, ГНК) : 43 [12:37:40]line Товар: 2710124130 [12:37:40]line Аи-92-К-2 [12:37:40]line 4.490 * 66.90 [12:37:40]line = 300.38 [12:37:40]line НДС 12% НСП 1% [12:37:40]line > о реализуемом товаре [12:37:40]line ОКРУГЛЕНИЕ: -0.38 [12:37:40]line ИТОГО: 300.00 [12:37:40]line Внесено: 300.00 [12:37:40]line СДАЧА: 0.00 [12:37:40]line НСП 1% : 2.66 [12:37:40]line НДС 12% : 31.90 [12:37:40]line Наличными: 300.00 [12:37:40]line Безнал.: 0.00 [12:37:40]line Место: АЗС № 78 "Партнер Нефть" [12:37:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:37:40]line СНО: Общий режим [12:37:40]line Чек 103 23.10.2024 12:37 [12:37:40]line Смена: 117 ФФД: 1.0 [12:37:40]line ЗНМ: 0300000137 [12:37:40]line РНМ: 0000000000186857 [12:37:40]line Версия ККМ: v1.0 [12:37:40]line ФМ: 0000000002094219 [12:37:40]line ФД: 31159 [12:37:40]line ФПД: 152878079609090 [12:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31159&fm=152878079609090&tin=02508201610067®Number=0000000000186857&sum=30000 [12:37:41]OFD Sender: Processing packet 31159 [packets to send 11, broken 10] [12:37:41]ProducePacketName [12:37:41]name=ofd_packets/00031159 [12:37:41]OFD Sender: To server: pG, [12:37:41]CommunicateWithHost lk.salyk.kg:30040 [12:37:41]ConnectInit lk.salyk.kg [12:37:41]written 0, free lines is 4095 [12:37:41]Connected sock=10 [12:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 76 07 01 4A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 19 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 79 00 00 35 04 06 00 8B 0A B3 A1 09 02 C7 26 A5 65 A6 17 4C AA [12:37:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 13 EC 47 00 21 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 79 00 00 F4 03 04 00 93 98 18 67 B6 04 01 00 00 74 4D 14 01 4D A7 66 E4 [12:37:41]CommunicateWithHost err = 0 [12:37:41]CheckOFDResponse [12:37:41]1017 (14) - 77093643461234 [12:37:41]1041 (16) - 0000000002094219 [12:37:41]1040 (4) - 31159 [12:37:41]1012 (4) - 23.10.2024 06:32 [12:37:41]1206 (1) - 0 [12:37:41]OFD Sender: Remove packet 31159 [12:37:41]ProducePacketName [12:37:41]name=ofd_packets/00031159 [12:37:41]NVStorageDeleteData [12:37:41]Write to MH i2c: 01 00 00 B8 4B 03 [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: 01 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: 01 07 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: 01 07 00 B8 4B 00 00 00 00 00 F0 0C 06 [12:37:41]RasterBufferAndPrint [12:37:41]line [12:37:41]line [12:37:41]line [12:37:41]line [12:37:41]line [12:37:41]written 0, free lines is 3318 [12:37:41]MH_Cut [12:37:41]Write to MH i2c: D1 01 00 BF 4B 01 DC [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: D1 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: D1 01 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: D1 01 00 BF 4B 00 DB [12:37:41]Write to MH i2c: 01 00 00 C0 4B 0B [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:42]OFD Sender: No OFD packet to send [12:37:42]*** Cut start [12:37:42]*** Partial cut [12:37:42]*** CUTSNS_PIN = 1 [12:37:42]*** CUTSNS_PIN = 0 [12:37:42]*** Brake cut motor [12:37:42]Read from MH i2c: 01 [12:37:42]MH_I2C_Read... [12:37:42]*** Stop cut motor [12:37:42]*** Cut end [12:37:42]Read from MH i2c: 01 07 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: 01 07 00 C0 4B 00 00 00 00 00 FF 0F 20 [12:37:42]process_action close_receipt done [12:37:42]requested_data is exist [12:37:42]produce_requested_data [12:37:42]requested_item fm.sn is exist - process it [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 11 00 00 [12:37:42]Write to MH i2c: E2 08 00 C1 4B 80 11 00 00 00 00 00 00 86 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 17 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 17 00 C1 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [12:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:37:42]wFMCommunicate OK [12:37:42]requested_item fd.num is exist - process it [12:37:42]SAM_PROTO_GetFieldsCounters [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 13 00 00 [12:37:42]Write to MH i2c: E2 08 00 C2 4B 80 13 00 00 00 00 00 00 89 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:43]Read from MH i2c: E2 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 62 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 62 00 C2 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:43]wFMCommunicate OK [12:37:43]SAM_PROTO_GetFieldsCounters done [12:37:43]requested_item shift.num is exist - process it [12:37:43]requested_item shift.opened is exist - process it [12:37:43]req_shift_opened [12:37:43]FM_GetShiftState [12:37:43]SAM_PROTO_GetShiftState [12:37:43]wFMCommunicate request_size=4 [12:37:43]MH_SAM_APDU [12:37:43]CAPDU: 80 13 01 00 [12:37:43]Write to MH i2c: E2 08 00 C3 4B 80 13 01 00 00 00 00 00 8B [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:43]Read from MH i2c: E2 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 0E 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 0E 00 C3 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 45 [12:37:43]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:37:43]wFMCommunicate OK [12:37:43]SAM_PROTO_GetShiftState done [12:37:43]FM_GetShiftState done [12:37:43]req_shift_opened done [12:37:43]requested_item shift.open_date is exist - process it [12:37:43]req_shift_open_date [12:37:43]req_shift_open_date done [12:37:43]produce_requested_data done [12:37:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31159,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:37:43]process_action_free close_receipt [12:37:43]json_value_free [12:37:43]json_value_free done [12:37:43]process_json_proto returns [12:37:43]Send response to host [12:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31159,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:37:43]free response buf [12:37:43]execute_script done [12:37:43]execute_script returns [12:37:43]free content buf [12:37:43]Sock 7.Close socket [12:37:43]Sock 7.Thread stoped [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:54]accept exits with 9 [12:37:54]New connection [12:37:54]New thread 3066899812 created [12:37:54]Thread 3067043172 joined [12:37:54]Waiting for new connection... [12:37:54] Sock 9.Parse request [12:37:54]Sock 9.Check first char [12:37:54]Sock 9.First char is OK [12:37:54]request: POST /json_proto HTTP/1.0 [12:37:54]Method: POST [12:37:54]URL: /json_proto [12:37:54]Method is POST - this is cgi request [12:37:54]url: /json_proto [12:37:54]query_string will be loaded in cgi processing [12:37:54]execute_cgi json_proto POST (null) [12:37:54]execute_cgi path=json_proto method=POST [12:37:54]POST find Content-Length [12:37:54]Host: 172.17.51.3:8080 [12:37:54]Content-Length: 677 [12:37:54]Content-Type: application/json [12:37:54] [12:37:54]POST finish read [12:37:54]Found Content-Length = 677 [12:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:54]execute_script... [12:37:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:54]POST & json_proto [12:37:54]process_json_proto [12:37:54]json parsed OK: [12:37:54]protocol is kg_v1.0 [12:37:54]action value=close_receipt [12:37:54]process_action close_receipt [12:37:54]cmd_close_receipt [12:37:54]MH_GetDate [12:37:54]Write to MH i2c: F0 00 00 C4 4B FE [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 09 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 09 00 C4 4B 00 28 EE 18 67 04 C1 95 66 5C [12:37:54]GetLastDocTimeStamp 1729687065 [12:37:54]current date 1729687080 [12:37:54]FM_GetShiftState [12:37:54]SAM_PROTO_GetShiftState [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 01 00 [12:37:54]Write to MH i2c: E2 08 00 C5 4B 80 13 01 00 00 00 00 00 8D [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 C5 4B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 47 [12:37:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:37:54]wFMCommunicate OK [12:37:54]SAM_PROTO_GetShiftState done [12:37:54]FM_GetShiftState done [12:37:54]opened in 1729643755 [12:37:54]opened+sec_in_day 1729730155 [12:37:54]quantity*price = 30038 [12:37:54]sum+1 = 30039 [12:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 104 23.10.2024 12:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31160 ФПД: 277198756457312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31160&fm=277198756457312&tin=02508201610067®Number=0000000000186857&sum=30000 [12:37:55]StoreToDocumentArchive [12:37:55]shift 117 fd 31160 [12:37:55]save to /storage/0117/doc_00031160 [12:37:55]save last doc name /storage/0117/doc_00031160 to /storage/kkm_last_doc_name [12:37:55]save OK [12:37:55]Clear old archive folders... [12:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:55]tlvbuf is 00CD48C0 [12:37:55]SAM_PROTO_ClearQueue [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 09 00 00 [12:37:55]Write to MH i2c: E2 08 00 D2 4B 80 09 00 00 00 00 00 00 8F [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 D2 4B 00 90 00 91 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]SAM_PROTO_ClearQueue done [12:37:55]KKMCreateOFDPacket [12:37:55]OFDProtocolAddRootSTLVToBuf [12:37:55]FM_MakeSignedData [12:37:55]FM_MakeSignedData [12:37:55]SAM_PROTO_SignData [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 01 02 [12:37:55]Write to MH i2c: E2 08 00 D3 4B 80 0D 01 02 00 00 00 00 97 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 D3 4B 00 90 00 92 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]wFMCommunicate request_size=255 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 79 00 00 35 04 06 00 FC [12:37:55]Write to MH i2c: E2 02 01 D4 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 79 00 00 35 04 06 00 FC 00 00 BB [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 D4 4B 00 90 00 93 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]wFMCommunicate request_size=10 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 02 02 05 1C 5D 69 2B 60 [12:37:55]Write to MH i2c: E2 0D 00 D5 4B 80 0D 02 02 05 00 1C 5D 69 2B 60 00 00 11 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 D5 4B 00 90 00 94 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 03 02 [12:37:55]Write to MH i2c: E2 08 00 D6 4B 80 0D 03 02 00 00 00 00 9C [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0B 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0B 00 D6 4B 00 A9 F6 7B 92 6A 38 88 22 90 00 95 [12:37:55]RAPDU: A9 F6 7B 92 6A 38 88 22 90 00 [12:37:55]wFMCommunicate OK [12:37:55]SAM_PROTO_SignData done [12:37:55]FM_MakeSignedData done [12:37:55]CreateOFDProtocolMessage [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 11 00 00 [12:37:55]Write to MH i2c: E2 08 00 D7 4B 80 11 00 00 00 00 00 00 9C [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 17 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 17 00 D7 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [12:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:37:55]wFMCommunicate OK [12:37:55]CreateOFDProtocolMessage done [12:37:55]OFDSenderStorePacket 31160 [12:37:55]StoreOFDPacket docnum=31160 [12:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 78 07 01 56 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 79 00 00 35 04 06 00 FC 1C 5D 69 2B 60 A9 F6 7B 92 6A 38 88 22 [12:37:55]CheckFolder [12:37:55]dirname=/storage/ofd_packets [12:37:55]CheckFolder done [12:37:55]ProducePacketName [12:37:55]name=ofd_packets/00031160 [12:37:55]NVStorageSaveData ofd_packets/00031160 [12:37:55]File name is /storage/ofd_packets/00031160 [12:37:55]Write 301 bytes [12:37:55]NVStorageSaveData done [12:37:55]OFDSenderStorePacket done [12:37:55]KKMCreateOFDPacket done [12:37:55]NVStorageSaveData kkm_last_timestamp [12:37:55]File name is /storage/kkm_last_timestamp [12:37:55]Write 4 bytes [12:37:55]NVStorageSaveData done [12:37:55]ExternCall_PrintAddStr [12:37:55]wPrintStart [12:37:55]Write to MH i2c: 01 00 00 D8 4B 23 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: 01 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: 01 07 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: 01 07 00 D8 4B 00 00 00 00 00 FF 0F 38 [12:37:55]RasterBufferAndPrint [12:37:55]line Счет N : (1)343602 [12:37:55]line ИНН: 02508201610067 [12:37:55]line Контрольно-Кассовый Чек [12:37:55]line ПРОДАЖА [12:37:55]line ТРК (МРК, ГНК) : 53 [12:37:55]line Товар: 2710124130 [12:37:55]line Аи-92-К-2 [12:37:55]line 4.490 * 66.90 [12:37:55]line = 300.38 [12:37:55]line НДС 12% НСП 1% [12:37:55]line > о реализуемом товаре [12:37:55]line ОКРУГЛЕНИЕ: -0.38 [12:37:55]line ИТОГО: 300.00 [12:37:55]line Внесено: 300.00 [12:37:55]line СДАЧА: 0.00 [12:37:55]line НСП 1% : 2.66 [12:37:55]line НДС 12% : 31.90 [12:37:55]line Наличными: 300.00 [12:37:55]line Безнал.: 0.00 [12:37:55]line Место: АЗС № 78 "Партнер Нефть" [12:37:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:37:55]line СНО: Общий режим [12:37:55]line Чек 104 23.10.2024 12:38 [12:37:55]line Смена: 117 ФФД: 1.0 [12:37:55]line ЗНМ: 0300000137 [12:37:55]line РНМ: 0000000000186857 [12:37:55]line Версия ККМ: v1.0 [12:37:55]line ФМ: 0000000002094219 [12:37:55]line ФД: 31160 [12:37:55]line ФПД: 277198756457312 [12:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123800&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31160&fm=277198756457312&tin=02508201610067®Number=0000000000186857&sum=30000 [12:37:56]OFD Sender: Processing packet 31160 [packets to send 11, broken 10] [12:37:56]ProducePacketName [12:37:56]name=ofd_packets/00031160 [12:37:56]OFD Sender: To server: pG, [12:37:56]CommunicateWithHost lk.salyk.kg:30040 [12:37:56]ConnectInit lk.salyk.kg [12:37:56]written 0, free lines is 4095 [12:37:56]Connected sock=10 [12:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 78 07 01 56 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 79 00 00 35 04 06 00 FC 1C 5D 69 2B 60 A9 F6 7B 92 6A 38 88 22 [12:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 08 B3 47 00 37 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 79 00 00 F4 03 04 00 A2 98 18 67 B6 04 01 00 00 FE 0F 08 C3 08 75 49 E7 [12:37:56]CommunicateWithHost err = 0 [12:37:56]CheckOFDResponse [12:37:56]1017 (14) - 77093643461234 [12:37:56]1041 (16) - 0000000002094219 [12:37:56]1040 (4) - 31160 [12:37:56]1012 (4) - 23.10.2024 06:33 [12:37:56]1206 (1) - 0 [12:37:56]OFD Sender: Remove packet 31160 [12:37:56]ProducePacketName [12:37:56]name=ofd_packets/00031160 [12:37:56]NVStorageDeleteData [12:37:56]Write to MH i2c: 01 00 00 03 4C 4F [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 03 4C 00 00 00 00 00 FE 0C 60 [12:37:56]RasterBufferAndPrint [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]written 0, free lines is 3332 [12:37:56]MH_Cut [12:37:56]Write to MH i2c: D1 01 00 0A 4C 01 28 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 01 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 01 00 0A 4C 00 27 [12:37:56]Write to MH i2c: 01 00 00 0B 4C 57 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:57]OFD Sender: No OFD packet to send [12:37:57]*** Cut start [12:37:57]*** Partial cut [12:37:57]*** CUTSNS_PIN = 1 [12:37:57]*** CUTSNS_PIN = 0 [12:37:57]*** Brake cut motor [12:37:58]Read from MH i2c: 01 [12:37:58]MH_I2C_Read... [12:37:58]*** Stop cut motor [12:37:58]*** Cut end [12:37:58]Read from MH i2c: 01 07 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: 01 07 00 0B 4C 00 00 00 00 00 FF 0F 6C [12:37:58]process_action close_receipt done [12:37:58]requested_data is exist [12:37:58]produce_requested_data [12:37:58]requested_item fm.sn is exist - process it [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 11 00 00 [12:37:58]Write to MH i2c: E2 08 00 0C 4C 80 11 00 00 00 00 00 00 D2 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 17 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 17 00 0C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [12:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:37:58]wFMCommunicate OK [12:37:58]requested_item fd.num is exist - process it [12:37:58]SAM_PROTO_GetFieldsCounters [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 13 00 00 [12:37:58]Write to MH i2c: E2 08 00 0D 4C 80 13 00 00 00 00 00 00 D5 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 62 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 62 00 0D 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:58]wFMCommunicate OK [12:37:58]SAM_PROTO_GetFieldsCounters done [12:37:58]requested_item shift.num is exist - process it [12:37:58]requested_item shift.opened is exist - process it [12:37:58]req_shift_opened [12:37:58]FM_GetShiftState [12:37:58]SAM_PROTO_GetShiftState [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 13 01 00 [12:37:58]Write to MH i2c: E2 08 00 0E 4C 80 13 01 00 00 00 00 00 D7 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 0E 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 91 [12:37:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:37:58]wFMCommunicate OK [12:37:58]SAM_PROTO_GetShiftState done [12:37:58]FM_GetShiftState done [12:37:58]req_shift_opened done [12:37:58]requested_item shift.open_date is exist - process it [12:37:58]req_shift_open_date [12:37:58]req_shift_open_date done [12:37:58]produce_requested_data done [12:37:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31160,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:37:58]process_action_free close_receipt [12:37:58]json_value_free [12:37:58]json_value_free done [12:37:58]process_json_proto returns [12:37:58]Send response to host [12:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31160,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:37:58]free response buf [12:37:58]execute_script done [12:37:58]execute_script returns [12:37:58]free content buf [12:37:58]Sock 9.Close socket [12:37:58]Sock 9.Thread stoped [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:56]accept exits with 7 [12:39:56]New connection [12:39:56]New thread 3067043172 created [12:39:56]Thread 3066899812 joined [12:39:56]Waiting for new connection... [12:39:56] Sock 7.Parse request [12:39:56]Sock 7.Check first char [12:39:56]Sock 7.First char is OK [12:39:56]request: POST /json_proto HTTP/1.0 [12:39:56]Method: POST [12:39:56]URL: /json_proto [12:39:56]Method is POST - this is cgi request [12:39:56]url: /json_proto [12:39:56]query_string will be loaded in cgi processing [12:39:56]execute_cgi json_proto POST (null) [12:39:56]execute_cgi path=json_proto method=POST [12:39:56]POST find Content-Length [12:39:56]Host: 172.17.51.3:8080 [12:39:56]Content-Length: 754 [12:39:56]Content-Type: application/json [12:39:56] [12:39:56]POST finish read [12:39:56]Found Content-Length = 754 [12:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:56]execute_script... [12:39:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:56]POST & json_proto [12:39:56]process_json_proto [12:39:56]json parsed OK: [12:39:56]protocol is kg_v1.0 [12:39:56]action value=close_receipt [12:39:56]process_action close_receipt [12:39:56]cmd_close_receipt [12:39:56]MH_GetDate [12:39:56]Write to MH i2c: F0 00 00 0F 4C 4A [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 09 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 09 00 0F 4C 00 A2 EE 18 67 04 C1 95 66 22 [12:39:56]GetLastDocTimeStamp 1729687080 [12:39:56]current date 1729687202 [12:39:56]FM_GetShiftState [12:39:56]SAM_PROTO_GetShiftState [12:39:56]wFMCommunicate request_size=4 [12:39:56]MH_SAM_APDU [12:39:56]CAPDU: 80 13 01 00 [12:39:56]Write to MH i2c: E2 08 00 10 4C 80 13 01 00 00 00 00 00 D9 [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:56]Read from MH i2c: E2 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 0E 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 0E 00 10 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 93 [12:39:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:39:56]wFMCommunicate OK [12:39:56]SAM_PROTO_GetShiftState done [12:39:56]FM_GetShiftState done [12:39:56]opened in 1729643755 [12:39:56]opened+sec_in_day 1729730155 [12:39:56]quantity*price = 0 [12:39:56]sum+1 = 1 [12:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 105 23.10.2024 12:40 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31161 ФПД: 81429227844769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31161&fm=81429227844769&tin=02508201610067®Number=0000000000186857&sum=0 [12:39:57]StoreToDocumentArchive [12:39:57]shift 117 fd 31161 [12:39:57]save to /storage/0117/doc_00031161 [12:39:57]save last doc name /storage/0117/doc_00031161 to /storage/kkm_last_doc_name [12:39:57]save OK [12:39:57]Clear old archive folders... [12:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:57]tlvbuf is 00D67E10 [12:39:57]SAM_PROTO_ClearQueue [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 09 00 00 [12:39:57]Write to MH i2c: E2 08 00 1D 4C 80 09 00 00 00 00 00 00 DB [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 03 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 03 00 1D 4C 00 90 00 DD [12:39:57]RAPDU: 90 00 [12:39:57]wFMCommunicate OK [12:39:57]SAM_PROTO_ClearQueue done [12:39:57]KKMCreateOFDPacket [12:39:57]OFDProtocolAddRootSTLVToBuf [12:39:57]FM_MakeSignedData [12:39:57]FM_MakeSignedData [12:39:57]SAM_PROTO_SignData [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 0D 01 02 [12:39:57]Write to MH i2c: E2 08 00 1E 4C 80 0D 01 02 00 00 00 00 E3 [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 03 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 03 00 1E 4C 00 90 00 DE [12:39:57]RAPDU: 90 00 [12:39:57]wFMCommunicate OK [12:39:57]wFMCommunicate request_size=255 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A2 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 79 00 00 35 04 06 00 4A [12:39:57]Write to MH i2c: E2 02 01 1F 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A2 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 79 00 00 35 04 06 00 4A 00 00 66 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 1F 4C 00 90 00 DF [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=10 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 02 02 05 0F 38 33 34 A1 [12:39:58]Write to MH i2c: E2 0D 00 20 4C 80 0D 02 02 05 00 0F 38 33 34 A1 00 00 3F [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 20 4C 00 90 00 E0 [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 03 02 [12:39:58]Write to MH i2c: E2 08 00 21 4C 80 0D 03 02 00 00 00 00 E8 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 21 4C 00 92 7F 23 47 51 5B 86 22 90 00 B8 [12:39:58]RAPDU: 92 7F 23 47 51 5B 86 22 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_SignData done [12:39:58]FM_MakeSignedData done [12:39:58]CreateOFDProtocolMessage [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 11 00 00 [12:39:58]Write to MH i2c: E2 08 00 22 4C 80 11 00 00 00 00 00 00 E8 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 22 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [12:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:39:58]wFMCommunicate OK [12:39:58]CreateOFDProtocolMessage done [12:39:58]OFDSenderStorePacket 31161 [12:39:58]StoreOFDPacket docnum=31161 [12:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6C 53 07 01 D8 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A2 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 79 00 00 35 04 06 00 4A 0F 38 33 34 A1 92 7F 23 47 51 5B 86 22 [12:39:58]CheckFolder [12:39:58]dirname=/storage/ofd_packets [12:39:58]CheckFolder done [12:39:58]ProducePacketName [12:39:58]name=ofd_packets/00031161 [12:39:58]NVStorageSaveData ofd_packets/00031161 [12:39:58]File name is /storage/ofd_packets/00031161 [12:39:58]Write 301 bytes [12:39:58]NVStorageSaveData done [12:39:58]OFDSenderStorePacket done [12:39:58]KKMCreateOFDPacket done [12:39:58]NVStorageSaveData kkm_last_timestamp [12:39:58]File name is /storage/kkm_last_timestamp [12:39:58]Write 4 bytes [12:39:58]NVStorageSaveData done [12:39:58]ExternCall_PrintAddStr [12:39:58]wPrintStart [12:39:58]Write to MH i2c: 01 00 00 23 4C 6F [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 23 4C 00 00 00 00 00 FF 0F 84 [12:39:58]RasterBufferAndPrint [12:39:58]line Счет N : (1)343604 [12:39:58]line ИНН: 02508201610067 [12:39:58]line Контрольно-Кассовый Чек [12:39:58]line ПРОДАЖА [12:39:58]line ТРК (МРК, ГНК) : 33 [12:39:58]line Товар: 2710124130 [12:39:58]line Аи-92-К-2 [12:39:58]line 10.470 * 0.00 [12:39:58]line = 0.00 [12:39:58]line НДС 12% НСП 1% [12:39:58]line > о реализуемом товаре [12:39:58]line ИТОГО: 0.00 [12:39:58]line НСП 1% : 0.00 [12:39:58]line НДС 12% : 0.00 [12:39:58]line Наличными: 0.00 [12:39:58]line Безнал.: 0.00 [12:39:58]line Место: АЗС № 78 "Партнер Нефть" [12:39:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:39:58]line СНО: Общий режим [12:39:58]line Чек 105 23.10.2024 12:40 [12:39:58]line Смена: 117 ФФД: 1.0 [12:39:58]line ЗНМ: 0300000137 [12:39:58]line РНМ: 0000000000186857 [12:39:58]line Версия ККМ: v1.0 [12:39:58]line Талоны: ТК ГПНА Online [12:39:58]line 30101093 [12:39:58]line ФМ: 0000000002094219 [12:39:58]line ФД: 31161 [12:39:58]line ФПД: 81429227844769 [12:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31161&fm=81429227844769&tin=02508201610067®Number=0000000000186857&sum=0 [12:39:58]OFD Sender: Processing packet 31161 [packets to send 11, broken 10] [12:39:58]ProducePacketName [12:39:58]name=ofd_packets/00031161 [12:39:58]OFD Sender: To server: pG, [12:39:58]CommunicateWithHost lk.salyk.kg:30040 [12:39:58]ConnectInit lk.salyk.kg [12:39:58]written 0, free lines is 4095 [12:39:58]Connected sock=11 [12:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6C 53 07 01 D8 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A2 EE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 79 00 00 35 04 06 00 4A 0F 38 33 34 A1 92 7F 23 47 51 5B 86 22 [12:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 72 3A 47 00 A0 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 79 00 00 F4 03 04 00 1D 99 18 67 B6 04 01 00 00 65 B8 F8 DD 26 C7 F2 8B [12:39:59]CommunicateWithHost err = 0 [12:39:59]CheckOFDResponse [12:39:59]1017 (14) - 77093643461234 [12:39:59]1041 (16) - 0000000002094219 [12:39:59]1040 (4) - 31161 [12:39:59]1012 (4) - 23.10.2024 06:35 [12:39:59]1206 (1) - 0 [12:39:59]OFD Sender: Remove packet 31161 [12:39:59]ProducePacketName [12:39:59]name=ofd_packets/00031161 [12:39:59]NVStorageDeleteData [12:39:59]Write to MH i2c: 01 00 00 4D 4C 99 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 4D 4C 00 00 00 00 00 FE 0C AA [12:39:59]RasterBufferAndPrint [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]written 0, free lines is 3332 [12:39:59]MH_Cut [12:39:59]Write to MH i2c: D1 01 00 54 4C 01 72 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 54 4C 00 71 [12:39:59]Write to MH i2c: 01 00 00 55 4C A1 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]OFD Sender: No OFD packet to send [12:39:59]*** Cut start [12:39:59]*** Partial cut [12:39:59]*** CUTSNS_PIN = 1 [12:39:59]*** CUTSNS_PIN = 0 [12:40:00]*** Brake cut motor [12:40:00]Read from MH i2c: 01 [12:40:00]MH_I2C_Read... [12:40:00]*** Stop cut motor [12:40:00]*** Cut end [12:40:00]Read from MH i2c: 01 07 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 07 00 55 4C 00 00 00 00 00 FF 0F B6 [12:40:00]process_action close_receipt done [12:40:00]requested_data is exist [12:40:00]produce_requested_data [12:40:00]requested_item fm.sn is exist - process it [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 11 00 00 [12:40:00]Write to MH i2c: E2 08 00 56 4C 80 11 00 00 00 00 00 00 1C [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 56 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6A [12:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:40:00]wFMCommunicate OK [12:40:00]requested_item fd.num is exist - process it [12:40:00]SAM_PROTO_GetFieldsCounters [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 13 00 00 [12:40:00]Write to MH i2c: E2 08 00 57 4C 80 13 00 00 00 00 00 00 1F [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 62 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 62 00 57 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:40:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:00]wFMCommunicate OK [12:40:00]SAM_PROTO_GetFieldsCounters done [12:40:00]requested_item shift.num is exist - process it [12:40:00]requested_item shift.opened is exist - process it [12:40:00]req_shift_opened [12:40:00]FM_GetShiftState [12:40:00]SAM_PROTO_GetShiftState [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 13 01 00 [12:40:00]Write to MH i2c: E2 08 00 58 4C 80 13 01 00 00 00 00 00 21 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 0E 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 0E 00 58 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DB [12:40:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:40:00]wFMCommunicate OK [12:40:00]SAM_PROTO_GetShiftState done [12:40:00]FM_GetShiftState done [12:40:00]req_shift_opened done [12:40:00]requested_item shift.open_date is exist - process it [12:40:00]req_shift_open_date [12:40:00]req_shift_open_date done [12:40:00]produce_requested_data done [12:40:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31161,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:40:00]process_action_free close_receipt [12:40:00]json_value_free [12:40:00]json_value_free done [12:40:00]process_json_proto returns [12:40:00]Send response to host [12:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31161,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:40:00]free response buf [12:40:00]execute_script done [12:40:00]execute_script returns [12:40:00]free content buf [12:40:00]Sock 7.Close socket [12:40:00]Sock 7.Thread stoped [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:53]accept exits with 9 [12:42:53]New connection [12:42:53]New thread 3066899812 created [12:42:53]Thread 3067043172 joined [12:42:53]Waiting for new connection... [12:42:53] Sock 9.Parse request [12:42:53]Sock 9.Check first char [12:42:53]Sock 9.First char is OK [12:42:53]request: POST /json_proto HTTP/1.0 [12:42:53]Method: POST [12:42:53]URL: /json_proto [12:42:53]Method is POST - this is cgi request [12:42:53]url: /json_proto [12:42:53]query_string will be loaded in cgi processing [12:42:53]execute_cgi json_proto POST (null) [12:42:53]execute_cgi path=json_proto method=POST [12:42:53]POST find Content-Length [12:42:53]Host: 172.17.51.3:8080 [12:42:53]Content-Length: 677 [12:42:53]Content-Type: application/json [12:42:53] [12:42:53]POST finish read [12:42:53]Found Content-Length = 677 [12:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:53]execute_script... [12:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:53]POST & json_proto [12:42:53]process_json_proto [12:42:53]json parsed OK: [12:42:53]protocol is kg_v1.0 [12:42:53]action value=close_receipt [12:42:53]process_action close_receipt [12:42:53]cmd_close_receipt [12:42:53]MH_GetDate [12:42:53]Write to MH i2c: F0 00 00 59 4C 94 [12:42:53]Write i2c OK [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: F0 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: F0 09 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: F0 09 00 59 4C 00 53 EF 18 67 04 C1 95 66 1E [12:42:53]GetLastDocTimeStamp 1729687202 [12:42:53]current date 1729687379 [12:42:53]FM_GetShiftState [12:42:53]SAM_PROTO_GetShiftState [12:42:53]wFMCommunicate request_size=4 [12:42:53]MH_SAM_APDU [12:42:53]CAPDU: 80 13 01 00 [12:42:53]Write to MH i2c: E2 08 00 5A 4C 80 13 01 00 00 00 00 00 23 [12:42:53]Write i2c OK [12:42:53]MH_I2C_Read... [12:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:53]Read from MH i2c: E2 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 0E 00 [12:42:53]MH_I2C_Read... [12:42:53]Read from MH i2c: E2 0E 00 5A 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DD [12:42:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:42:53]wFMCommunicate OK [12:42:53]SAM_PROTO_GetShiftState done [12:42:53]FM_GetShiftState done [12:42:53]opened in 1729643755 [12:42:53]opened+sec_in_day 1729730155 [12:42:53]quantity*price = 20003 [12:42:53]sum+1 = 20004 [12:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 106 23.10.2024 12:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31162 ФПД: 223938250306716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124259&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31162&fm=223938250306716&tin=02508201610067®Number=0000000000186857&sum=20000 [12:42:54]StoreToDocumentArchive [12:42:54]shift 117 fd 31162 [12:42:54]save to /storage/0117/doc_00031162 [12:42:54]save last doc name /storage/0117/doc_00031162 to /storage/kkm_last_doc_name [12:42:54]save OK [12:42:54]Clear old archive folders... [12:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:54]tlvbuf is 00F000D0 [12:42:54]SAM_PROTO_ClearQueue [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 09 00 00 [12:42:54]Write to MH i2c: E2 08 00 67 4C 80 09 00 00 00 00 00 00 25 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 67 4C 00 90 00 27 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]SAM_PROTO_ClearQueue done [12:42:54]KKMCreateOFDPacket [12:42:54]OFDProtocolAddRootSTLVToBuf [12:42:54]FM_MakeSignedData [12:42:54]FM_MakeSignedData [12:42:54]SAM_PROTO_SignData [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 01 02 [12:42:54]Write to MH i2c: E2 08 00 68 4C 80 0D 01 02 00 00 00 00 2D [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 68 4C 00 90 00 28 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=255 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 53 EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 79 00 00 35 04 06 00 CB [12:42:54]Write to MH i2c: E2 02 01 69 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 53 EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 79 00 00 35 04 06 00 CB 00 00 1E [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 69 4C 00 90 00 29 [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=10 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 02 02 05 AB AF DC 74 9C [12:42:54]Write to MH i2c: E2 0D 00 6A 4C 80 0D 02 02 05 00 AB AF DC 74 9C 00 00 80 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 03 00 6A 4C 00 90 00 2A [12:42:54]RAPDU: 90 00 [12:42:54]wFMCommunicate OK [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 0D 03 02 [12:42:54]Write to MH i2c: E2 08 00 6B 4C 80 0D 03 02 00 00 00 00 32 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:54]OFD Sender: No OFD packet to send [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 0B 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 0B 00 6B 4C 00 09 EE CF 4A 52 15 D4 EC 90 00 6A [12:42:54]RAPDU: 09 EE CF 4A 52 15 D4 EC 90 00 [12:42:54]wFMCommunicate OK [12:42:54]SAM_PROTO_SignData done [12:42:54]FM_MakeSignedData done [12:42:54]CreateOFDProtocolMessage [12:42:54]wFMCommunicate request_size=4 [12:42:54]MH_SAM_APDU [12:42:54]CAPDU: 80 11 00 00 [12:42:54]Write to MH i2c: E2 08 00 6C 4C 80 11 00 00 00 00 00 00 32 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:54]Read from MH i2c: E2 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 17 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: E2 17 00 6C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [12:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:42:54]wFMCommunicate OK [12:42:54]CreateOFDProtocolMessage done [12:42:54]OFDSenderStorePacket 31162 [12:42:54]StoreOFDPacket docnum=31162 [12:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 32 0B 07 01 43 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 53 EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 79 00 00 35 04 06 00 CB AB AF DC 74 9C 09 EE CF 4A 52 15 D4 EC [12:42:54]CheckFolder [12:42:54]dirname=/storage/ofd_packets [12:42:54]CheckFolder done [12:42:54]ProducePacketName [12:42:54]name=ofd_packets/00031162 [12:42:54]NVStorageSaveData ofd_packets/00031162 [12:42:54]File name is /storage/ofd_packets/00031162 [12:42:54]Write 301 bytes [12:42:54]NVStorageSaveData done [12:42:54]OFDSenderStorePacket done [12:42:54]KKMCreateOFDPacket done [12:42:54]NVStorageSaveData kkm_last_timestamp [12:42:54]File name is /storage/kkm_last_timestamp [12:42:54]Write 4 bytes [12:42:54]NVStorageSaveData done [12:42:54]ExternCall_PrintAddStr [12:42:54]wPrintStart [12:42:54]Write to MH i2c: 01 00 00 6D 4C B9 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 6D 4C 00 00 00 00 00 FF 0F CE [12:42:54]RasterBufferAndPrint [12:42:54]line Счет N : (1)343605 [12:42:54]line ИНН: 02508201610067 [12:42:54]line Контрольно-Кассовый Чек [12:42:54]line ПРОДАЖА [12:42:54]line ТРК (МРК, ГНК) : 63 [12:42:54]line Товар: 2710124130 [12:42:54]line Аи-92-К-2 [12:42:54]line 2.990 * 66.90 [12:42:54]line = 200.03 [12:42:54]line НДС 12% НСП 1% [12:42:54]line > о реализуемом товаре [12:42:54]line ОКРУГЛЕНИЕ: -0.03 [12:42:54]line ИТОГО: 200.00 [12:42:54]line Внесено: 200.00 [12:42:54]line СДАЧА: 0.00 [12:42:54]line НСП 1% : 1.77 [12:42:54]line НДС 12% : 21.24 [12:42:54]line Наличными: 200.00 [12:42:54]line Безнал.: 0.00 [12:42:54]line Место: АЗС № 78 "Партнер Нефть" [12:42:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:42:54]line СНО: Общий режим [12:42:54]line Чек 106 23.10.2024 12:42 [12:42:54]line Смена: 117 ФФД: 1.0 [12:42:54]line ЗНМ: 0300000137 [12:42:54]line РНМ: 0000000000186857 [12:42:54]line Версия ККМ: v1.0 [12:42:54]line ФМ: 0000000002094219 [12:42:54]line ФД: 31162 [12:42:54]line ФПД: 223938250306716 [12:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124259&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31162&fm=223938250306716&tin=02508201610067®Number=0000000000186857&sum=20000 [12:42:55]OFD Sender: Processing packet 31162 [packets to send 11, broken 10] [12:42:55]ProducePacketName [12:42:55]name=ofd_packets/00031162 [12:42:55]OFD Sender: To server: pG, [12:42:55]CommunicateWithHost lk.salyk.kg:30040 [12:42:55]ConnectInit lk.salyk.kg [12:42:55]written 0, free lines is 4095 [12:42:55]Connected sock=10 [12:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 32 0B 07 01 43 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 53 EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 79 00 00 35 04 06 00 CB AB AF DC 74 9C 09 EE CF 4A 52 15 D4 EC [12:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D0 E3 47 00 57 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 32 30 39 34 32 31 39 10 04 04 00 BA 79 00 00 F4 03 04 00 CD 99 18 67 B6 04 01 00 00 E2 48 E2 43 CC 1B 6E 13 [12:42:55]CommunicateWithHost err = 0 [12:42:55]CheckOFDResponse [12:42:55]1017 (14) - 77093643461234 [12:42:55]1041 (16) - 0000000002094219 [12:42:55]1040 (4) - 31162 [12:42:55]1012 (4) - 23.10.2024 06:38 [12:42:55]1206 (1) - 0 [12:42:55]OFD Sender: Remove packet 31162 [12:42:55]ProducePacketName [12:42:55]name=ofd_packets/00031162 [12:42:55]NVStorageDeleteData [12:42:55]Write to MH i2c: 01 00 00 98 4C E4 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 07 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 07 00 98 4C 00 00 00 00 00 F8 0C EF [12:42:55]RasterBufferAndPrint [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]line [12:42:55]written 0, free lines is 3326 [12:42:55]MH_Cut [12:42:55]Write to MH i2c: D1 01 00 9F 4C 01 BD [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 01 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: D1 01 00 9F 4C 00 BC [12:42:55]Write to MH i2c: 01 00 00 A0 4C EC [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]OFD Sender: No OFD packet to send [12:42:56]*** Cut start [12:42:56]*** Partial cut [12:42:56]*** CUTSNS_PIN = 1 [12:42:56]*** CUTSNS_PIN = 0 [12:42:56]*** Brake cut motor [12:42:56]Read from MH i2c: 01 [12:42:56]MH_I2C_Read... [12:42:56]*** Stop cut motor [12:42:56]*** Cut end [12:42:56]Read from MH i2c: 01 07 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: 01 07 00 A0 4C 00 00 00 00 00 FF 0F 01 [12:42:56]process_action close_receipt done [12:42:56]requested_data is exist [12:42:56]produce_requested_data [12:42:56]requested_item fm.sn is exist - process it [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 11 00 00 [12:42:56]Write to MH i2c: E2 08 00 A1 4C 80 11 00 00 00 00 00 00 67 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 A1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [12:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:42:56]wFMCommunicate OK [12:42:56]requested_item fd.num is exist - process it [12:42:56]SAM_PROTO_GetFieldsCounters [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 13 00 00 [12:42:56]Write to MH i2c: E2 08 00 A2 4C 80 13 00 00 00 00 00 00 6A [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 62 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 62 00 A2 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_GetFieldsCounters done [12:42:57]requested_item shift.num is exist - process it [12:42:57]requested_item shift.opened is exist - process it [12:42:57]req_shift_opened [12:42:57]FM_GetShiftState [12:42:57]SAM_PROTO_GetShiftState [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 13 01 00 [12:42:57]Write to MH i2c: E2 08 00 A3 4C 80 13 01 00 00 00 00 00 6C [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0E 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0E 00 A3 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 26 [12:42:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_GetShiftState done [12:42:57]FM_GetShiftState done [12:42:57]req_shift_opened done [12:42:57]requested_item shift.open_date is exist - process it [12:42:57]req_shift_open_date [12:42:57]req_shift_open_date done [12:42:57]produce_requested_data done [12:42:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31162,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:42:57]process_action_free close_receipt [12:42:57]json_value_free [12:42:57]json_value_free done [12:42:57]process_json_proto returns [12:42:57]Send response to host [12:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31162,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:42:57]free response buf [12:42:57]execute_script done [12:42:57]execute_script returns [12:42:57]free content buf [12:42:57]Sock 9.Close socket [12:42:57]Sock 9.Thread stoped [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]accept exits with 7 [12:43:20]New connection [12:43:20]New thread 3067043172 created [12:43:20]Thread 3066899812 joined [12:43:20]Waiting for new connection... [12:43:20] Sock 7.Parse request [12:43:20]Sock 7.Check first char [12:43:20]Sock 7.First char is OK [12:43:20]request: POST /json_proto HTTP/1.0 [12:43:20]Method: POST [12:43:20]URL: /json_proto [12:43:20]Method is POST - this is cgi request [12:43:20]url: /json_proto [12:43:20]query_string will be loaded in cgi processing [12:43:20]execute_cgi json_proto POST (null) [12:43:20]execute_cgi path=json_proto method=POST [12:43:20]POST find Content-Length [12:43:20]Host: 172.17.51.3:8080 [12:43:20]Content-Length: 753 [12:43:20]Content-Type: application/json [12:43:20] [12:43:20]POST finish read [12:43:20]Found Content-Length = 753 [12:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:20]execute_script... [12:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:20]POST & json_proto [12:43:20]process_json_proto [12:43:20]json parsed OK: [12:43:20]protocol is kg_v1.0 [12:43:20]action value=close_receipt [12:43:20]process_action close_receipt [12:43:20]cmd_close_receipt [12:43:20]MH_GetDate [12:43:20]Write to MH i2c: F0 00 00 A4 4C DF [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: F0 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: F0 09 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: F0 09 00 A4 4C 00 6E EF 18 67 04 C1 95 66 84 [12:43:20]GetLastDocTimeStamp 1729687379 [12:43:20]current date 1729687406 [12:43:20]FM_GetShiftState [12:43:20]SAM_PROTO_GetShiftState [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 13 01 00 [12:43:20]Write to MH i2c: E2 08 00 A5 4C 80 13 01 00 00 00 00 00 6E [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 A5 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 28 [12:43:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_GetShiftState done [12:43:20]FM_GetShiftState done [12:43:20]opened in 1729643755 [12:43:20]opened+sec_in_day 1729730155 [12:43:20]quantity*price = 0 [12:43:20]sum+1 = 1 [12:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 107 23.10.2024 12:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31163 ФПД: 206172136237906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31163&fm=206172136237906&tin=02508201610067®Number=0000000000186857&sum=0 [12:43:21]StoreToDocumentArchive [12:43:21]shift 117 fd 31163 [12:43:21]save to /storage/0117/doc_00031163 [12:43:21]save last doc name /storage/0117/doc_00031163 to /storage/kkm_last_doc_name [12:43:21]save OK [12:43:21]Clear old archive folders... [12:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:21]tlvbuf is 00D57010 [12:43:21]SAM_PROTO_ClearQueue [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 09 00 00 [12:43:21]Write to MH i2c: E2 08 00 B2 4C 80 09 00 00 00 00 00 00 70 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 B2 4C 00 90 00 72 [12:43:21]RAPDU: 90 00 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_ClearQueue done [12:43:21]KKMCreateOFDPacket [12:43:21]OFDProtocolAddRootSTLVToBuf [12:43:21]FM_MakeSignedData [12:43:21]FM_MakeSignedData [12:43:21]SAM_PROTO_SignData [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 0D 01 02 [12:43:21]Write to MH i2c: E2 08 00 B3 4C 80 0D 01 02 00 00 00 00 78 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 B3 4C 00 90 00 73 [12:43:21]RAPDU: 90 00 [12:43:21]wFMCommunicate OK [12:43:21]wFMCommunicate request_size=255 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6E EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 79 00 00 35 04 06 00 BB [12:43:21]Write to MH i2c: E2 02 01 B4 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6E EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 79 00 00 35 04 06 00 BB 00 00 84 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 B4 4C 00 90 00 74 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=10 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 02 02 05 83 30 F1 6B 52 [12:43:22]Write to MH i2c: E2 0D 00 B5 4C 80 0D 02 02 05 00 83 30 F1 6B 52 00 00 E6 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 B5 4C 00 90 00 75 [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 03 02 [12:43:22]Write to MH i2c: E2 08 00 B6 4C 80 0D 03 02 00 00 00 00 7D [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 0B 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 0B 00 B6 4C 00 BA A8 CF 64 FA C9 7A 32 90 00 82 [12:43:22]RAPDU: BA A8 CF 64 FA C9 7A 32 90 00 [12:43:22]wFMCommunicate OK [12:43:22]SAM_PROTO_SignData done [12:43:22]FM_MakeSignedData done [12:43:22]CreateOFDProtocolMessage [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 11 00 00 [12:43:22]Write to MH i2c: E2 08 00 B7 4C 80 11 00 00 00 00 00 00 7D [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 17 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 17 00 B7 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [12:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:43:22]wFMCommunicate OK [12:43:22]CreateOFDProtocolMessage done [12:43:22]OFDSenderStorePacket 31163 [12:43:22]StoreOFDPacket docnum=31163 [12:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 74 1B 07 01 38 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6E EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 79 00 00 35 04 06 00 BB 83 30 F1 6B 52 BA A8 CF 64 FA C9 7A 32 [12:43:22]CheckFolder [12:43:22]dirname=/storage/ofd_packets [12:43:22]CheckFolder done [12:43:22]ProducePacketName [12:43:22]name=ofd_packets/00031163 [12:43:22]NVStorageSaveData ofd_packets/00031163 [12:43:22]File name is /storage/ofd_packets/00031163 [12:43:22]Write 301 bytes [12:43:22]NVStorageSaveData done [12:43:22]OFDSenderStorePacket done [12:43:22]KKMCreateOFDPacket done [12:43:22]NVStorageSaveData kkm_last_timestamp [12:43:22]File name is /storage/kkm_last_timestamp [12:43:22]Write 4 bytes [12:43:22]NVStorageSaveData done [12:43:22]ExternCall_PrintAddStr [12:43:22]wPrintStart [12:43:22]Write to MH i2c: 01 00 00 B8 4C 04 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: 01 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: 01 07 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: 01 07 00 B8 4C 00 00 00 00 00 FF 0F 19 [12:43:22]RasterBufferAndPrint [12:43:22]line Счет N : (1)343606 [12:43:22]line ИНН: 02508201610067 [12:43:22]line Контрольно-Кассовый Чек [12:43:22]line ПРОДАЖА [12:43:22]line ТРК (МРК, ГНК) : 53 [12:43:22]line Товар: 2710124130 [12:43:22]line Аи-92-К-2 [12:43:22]line 7.480 * 0.00 [12:43:22]line = 0.00 [12:43:22]line НДС 12% НСП 1% [12:43:22]line > о реализуемом товаре [12:43:22]line ИТОГО: 0.00 [12:43:22]line НСП 1% : 0.00 [12:43:22]line НДС 12% : 0.00 [12:43:22]line Наличными: 0.00 [12:43:22]line Безнал.: 0.00 [12:43:22]line Место: АЗС № 78 "Партнер Нефть" [12:43:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:43:22]line СНО: Общий режим [12:43:22]line Чек 107 23.10.2024 12:43 [12:43:22]line Смена: 117 ФФД: 1.0 [12:43:22]line ЗНМ: 0300000137 [12:43:22]line РНМ: 0000000000186857 [12:43:22]line Версия ККМ: v1.0 [12:43:22]line Талоны: ТК ГПНА Online [12:43:22]line 30101093 [12:43:22]line ФМ: 0000000002094219 [12:43:22]line ФД: 31163 [12:43:22]line ФПД: 206172136237906 [12:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31163&fm=206172136237906&tin=02508201610067®Number=0000000000186857&sum=0 [12:43:22]OFD Sender: Processing packet 31163 [packets to send 11, broken 10] [12:43:22]ProducePacketName [12:43:22]name=ofd_packets/00031163 [12:43:22]OFD Sender: To server: pG, [12:43:22]CommunicateWithHost lk.salyk.kg:30040 [12:43:22]ConnectInit lk.salyk.kg [12:43:22]written 0, free lines is 4095 [12:43:22]Connected sock=9 [12:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 74 1B 07 01 38 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6E EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 79 00 00 35 04 06 00 BB 83 30 F1 6B 52 BA A8 CF 64 FA C9 7A 32 [12:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3D CB 47 00 6B D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 79 00 00 F4 03 04 00 E9 99 18 67 B6 04 01 00 00 DD 88 30 0B A0 C2 4C E5 [12:43:22]CommunicateWithHost err = 0 [12:43:22]CheckOFDResponse [12:43:22]1017 (14) - 77093643461234 [12:43:22]1041 (16) - 0000000002094219 [12:43:22]1040 (4) - 31163 [12:43:22]1012 (4) - 23.10.2024 06:38 [12:43:22]1206 (1) - 0 [12:43:22]OFD Sender: Remove packet 31163 [12:43:22]ProducePacketName [12:43:22]name=ofd_packets/00031163 [12:43:22]NVStorageDeleteData [12:43:23]Write to MH i2c: 01 00 00 E2 4C 2E [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 E2 4C 00 00 00 00 00 03 0D 45 [12:43:23]RasterBufferAndPrint [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]line [12:43:23]written 0, free lines is 3340 [12:43:23]MH_Cut [12:43:23]Write to MH i2c: D1 01 00 E9 4C 01 07 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 01 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: D1 01 00 E9 4C 00 06 [12:43:23]Write to MH i2c: 01 00 00 EA 4C 36 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]OFD Sender: No OFD packet to send [12:43:23]*** Cut start [12:43:23]*** Partial cut [12:43:23]*** CUTSNS_PIN = 1 [12:43:23]*** CUTSNS_PIN = 0 [12:43:23]*** Brake cut motor [12:43:24]Read from MH i2c: 01 [12:43:24]MH_I2C_Read... [12:43:24]*** Stop cut motor [12:43:24]*** Cut end [12:43:24]Read from MH i2c: 01 07 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: 01 07 00 EA 4C 00 00 00 00 00 FF 0F 4B [12:43:24]process_action close_receipt done [12:43:24]requested_data is exist [12:43:24]produce_requested_data [12:43:24]requested_item fm.sn is exist - process it [12:43:24]wFMCommunicate request_size=4 [12:43:24]MH_SAM_APDU [12:43:24]CAPDU: 80 11 00 00 [12:43:24]Write to MH i2c: E2 08 00 EB 4C 80 11 00 00 00 00 00 00 B1 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 17 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 17 00 EB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [12:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:43:24]wFMCommunicate OK [12:43:24]requested_item fd.num is exist - process it [12:43:24]SAM_PROTO_GetFieldsCounters [12:43:24]wFMCommunicate request_size=4 [12:43:24]MH_SAM_APDU [12:43:24]CAPDU: 80 13 00 00 [12:43:24]Write to MH i2c: E2 08 00 EC 4C 80 13 00 00 00 00 00 00 B4 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 62 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 62 00 EC 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:24]wFMCommunicate OK [12:43:24]SAM_PROTO_GetFieldsCounters done [12:43:24]requested_item shift.num is exist - process it [12:43:24]requested_item shift.opened is exist - process it [12:43:24]req_shift_opened [12:43:24]FM_GetShiftState [12:43:24]SAM_PROTO_GetShiftState [12:43:24]wFMCommunicate request_size=4 [12:43:24]MH_SAM_APDU [12:43:24]CAPDU: 80 13 01 00 [12:43:24]Write to MH i2c: E2 08 00 ED 4C 80 13 01 00 00 00 00 00 B6 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 0E 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 0E 00 ED 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 70 [12:43:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:43:24]wFMCommunicate OK [12:43:24]SAM_PROTO_GetShiftState done [12:43:24]FM_GetShiftState done [12:43:24]req_shift_opened done [12:43:24]requested_item shift.open_date is exist - process it [12:43:24]req_shift_open_date [12:43:24]req_shift_open_date done [12:43:24]produce_requested_data done [12:43:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31163,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:43:24]process_action_free close_receipt [12:43:24]json_value_free [12:43:24]json_value_free done [12:43:24]process_json_proto returns [12:43:24]Send response to host [12:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31163,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:43:24]free response buf [12:43:24]execute_script done [12:43:24]execute_script returns [12:43:24]free content buf [12:43:24]Sock 7.Close socket [12:43:24]Sock 7.Thread stoped [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:56]accept exits with 10 [12:44:56]New connection [12:44:56]New thread 3066899812 created [12:44:56]Thread 3067043172 joined [12:44:56]Waiting for new connection... [12:44:56] Sock 10.Parse request [12:44:56]Sock 10.Check first char [12:44:56]Sock 10.First char is OK [12:44:56]request: POST /json_proto HTTP/1.0 [12:44:56]Method: POST [12:44:56]URL: /json_proto [12:44:56]Method is POST - this is cgi request [12:44:56]url: /json_proto [12:44:56]query_string will be loaded in cgi processing [12:44:56]execute_cgi json_proto POST (null) [12:44:56]execute_cgi path=json_proto method=POST [12:44:56]POST find Content-Length [12:44:56]Host: 172.17.51.3:8080 [12:44:56]Content-Length: 682 [12:44:56]Content-Type: application/json [12:44:56] [12:44:56]POST finish read [12:44:56]Found Content-Length = 682 [12:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:56]execute_script... [12:44:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:56]POST & json_proto [12:44:56]process_json_proto [12:44:56]json parsed OK: [12:44:56]protocol is kg_v1.0 [12:44:56]action value=close_receipt [12:44:56]process_action close_receipt [12:44:56]cmd_close_receipt [12:44:56]MH_GetDate [12:44:56]Write to MH i2c: F0 00 00 EE 4C 29 [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: F0 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: F0 09 00 [12:44:56]MH_I2C_Read... [12:44:56]Read from MH i2c: F0 09 00 EE 4C 00 CF EF 18 67 04 C1 95 66 2F [12:44:56]GetLastDocTimeStamp 1729687406 [12:44:56]current date 1729687503 [12:44:56]FM_GetShiftState [12:44:56]SAM_PROTO_GetShiftState [12:44:56]wFMCommunicate request_size=4 [12:44:56]MH_SAM_APDU [12:44:56]CAPDU: 80 13 01 00 [12:44:56]Write to MH i2c: E2 08 00 EF 4C 80 13 01 00 00 00 00 00 B8 [12:44:56]Write i2c OK [12:44:56]MH_I2C_Read... [12:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:57]Read from MH i2c: E2 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 0E 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 0E 00 EF 4C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 72 [12:44:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:44:57]wFMCommunicate OK [12:44:57]SAM_PROTO_GetShiftState done [12:44:57]FM_GetShiftState done [12:44:57]opened in 1729643755 [12:44:57]opened+sec_in_day 1729730155 [12:44:57]quantity*price = 100021 [12:44:57]sum+1 = 100023 [12:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 108 23.10.2024 12:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31164 ФПД: 215675886617305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124503&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31164&fm=215675886617305&tin=02508201610067®Number=0000000000186857&sum=100000 [12:44:58]StoreToDocumentArchive [12:44:58]shift 117 fd 31164 [12:44:58]save to /storage/0117/doc_00031164 [12:44:58]save last doc name /storage/0117/doc_00031164 to /storage/kkm_last_doc_name [12:44:58]save OK [12:44:58]Clear old archive folders... [12:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:58]tlvbuf is 00CC9410 [12:44:58]SAM_PROTO_ClearQueue [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 09 00 00 [12:44:58]Write to MH i2c: E2 08 00 FC 4C 80 09 00 00 00 00 00 00 BA [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 FC 4C 00 90 00 BC [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_ClearQueue done [12:44:58]KKMCreateOFDPacket [12:44:58]OFDProtocolAddRootSTLVToBuf [12:44:58]FM_MakeSignedData [12:44:58]FM_MakeSignedData [12:44:58]SAM_PROTO_SignData [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 0D 01 02 [12:44:58]Write to MH i2c: E2 08 00 FD 4C 80 0D 01 02 00 00 00 00 C2 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 FD 4C 00 90 00 BD [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]wFMCommunicate request_size=255 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 79 00 00 35 04 06 00 C4 [12:44:58]Write to MH i2c: E2 02 01 FE 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 79 00 00 35 04 06 00 C4 00 00 88 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 FE 4C 00 90 00 BE [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]wFMCommunicate request_size=10 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 0D 02 02 05 27 F4 9B C2 D9 [12:44:58]Write to MH i2c: E2 0D 00 FF 4C 80 0D 02 02 05 00 27 F4 9B C2 D9 00 00 20 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]OFD Sender: No OFD packet to send [12:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 FF 4C 00 90 00 BF [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 0D 03 02 [12:44:58]Write to MH i2c: E2 08 00 00 4D 80 0D 03 02 00 00 00 00 C8 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0B 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0B 00 00 4D 00 F1 F3 38 21 BB 7F F7 D8 90 00 0F [12:44:58]RAPDU: F1 F3 38 21 BB 7F F7 D8 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_SignData done [12:44:58]FM_MakeSignedData done [12:44:58]CreateOFDProtocolMessage [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 11 00 00 [12:44:58]Write to MH i2c: E2 08 00 01 4D 80 11 00 00 00 00 00 00 C8 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 17 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 17 00 01 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [12:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:44:58]wFMCommunicate OK [12:44:58]CreateOFDProtocolMessage done [12:44:58]OFDSenderStorePacket 31164 [12:44:58]StoreOFDPacket docnum=31164 [12:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 2E 07 01 BC 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 79 00 00 35 04 06 00 C4 27 F4 9B C2 D9 F1 F3 38 21 BB 7F F7 D8 [12:44:58]CheckFolder [12:44:58]dirname=/storage/ofd_packets [12:44:58]CheckFolder done [12:44:58]ProducePacketName [12:44:58]name=ofd_packets/00031164 [12:44:58]NVStorageSaveData ofd_packets/00031164 [12:44:58]File name is /storage/ofd_packets/00031164 [12:44:58]Write 301 bytes [12:44:58]NVStorageSaveData done [12:44:58]OFDSenderStorePacket done [12:44:58]KKMCreateOFDPacket done [12:44:58]NVStorageSaveData kkm_last_timestamp [12:44:58]File name is /storage/kkm_last_timestamp [12:44:58]Write 4 bytes [12:44:58]NVStorageSaveData done [12:44:58]ExternCall_PrintAddStr [12:44:58]wPrintStart [12:44:58]Write to MH i2c: 01 00 00 02 4D 4F [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: 01 07 00 02 4D 00 00 00 00 00 FF 0F 64 [12:44:58]RasterBufferAndPrint [12:44:58]line Счет N : (1)343607 [12:44:58]line ИНН: 02508201610067 [12:44:58]line Контрольно-Кассовый Чек [12:44:58]line ПРОДАЖА [12:44:58]line ТРК (МРК, ГНК) : 62 [12:44:58]line Товар: 2710124500 [12:44:58]line Аи-95-К-3 [12:44:58]line 13.480 * 74.20 [12:44:58]line = 1000.22 [12:44:58]line НДС 12% НСП 1% [12:44:58]line > о реализуемом товаре [12:44:58]line ОКРУГЛЕНИЕ: -0.22 [12:44:58]line ИТОГО: 1000.00 [12:44:58]line Внесено: 1000.00 [12:44:58]line СДАЧА: 0.00 [12:44:58]line НСП 1% : 8.85 [12:44:58]line НДС 12% : 106.22 [12:44:58]line Наличными: 1000.00 [12:44:58]line Безнал.: 0.00 [12:44:58]line Место: АЗС № 78 "Партнер Нефть" [12:44:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:44:58]line СНО: Общий режим [12:44:58]line Чек 108 23.10.2024 12:45 [12:44:58]line Смена: 117 ФФД: 1.0 [12:44:58]line ЗНМ: 0300000137 [12:44:58]line РНМ: 0000000000186857 [12:44:58]line Версия ККМ: v1.0 [12:44:58]line ФМ: 0000000002094219 [12:44:58]line ФД: 31164 [12:44:58]line ФПД: 215675886617305 [12:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124503&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31164&fm=215675886617305&tin=02508201610067®Number=0000000000186857&sum=100000 [12:44:59]OFD Sender: Processing packet 31164 [packets to send 11, broken 10] [12:44:59]ProducePacketName [12:44:59]name=ofd_packets/00031164 [12:44:59]OFD Sender: To server: pG, [12:44:59]CommunicateWithHost lk.salyk.kg:30040 [12:44:59]ConnectInit lk.salyk.kg [12:44:59]written 0, free lines is 4095 [12:44:59]Connected sock=9 [12:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 2E 07 01 BC 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CF EF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 79 00 00 35 04 06 00 C4 27 F4 9B C2 D9 F1 F3 38 21 BB 7F F7 D8 [12:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF B8 47 00 C7 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 32 30 39 34 32 31 39 10 04 04 00 BC 79 00 00 F4 03 04 00 49 9A 18 67 B6 04 01 00 00 67 80 F6 CB D5 FC A1 9B [12:44:59]CommunicateWithHost err = 0 [12:44:59]CheckOFDResponse [12:44:59]1017 (14) - 77093643461234 [12:44:59]1041 (16) - 0000000002094219 [12:44:59]1040 (4) - 31164 [12:44:59]1012 (4) - 23.10.2024 06:40 [12:44:59]1206 (1) - 0 [12:44:59]OFD Sender: Remove packet 31164 [12:44:59]ProducePacketName [12:44:59]name=ofd_packets/00031164 [12:44:59]NVStorageDeleteData [12:44:59]Write to MH i2c: 01 00 00 2D 4D 7A [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 2D 4D 00 00 00 00 00 FB 0C 88 [12:44:59]RasterBufferAndPrint [12:44:59]line [12:44:59]line [12:44:59]line [12:44:59]line [12:44:59]line [12:44:59]written 0, free lines is 3332 [12:44:59]MH_Cut [12:44:59]Write to MH i2c: D1 01 00 34 4D 01 53 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: D1 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: D1 01 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: D1 01 00 34 4D 00 52 [12:44:59]Write to MH i2c: 01 00 00 35 4D 82 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]OFD Sender: No OFD packet to send [12:45:00]*** Cut start [12:45:00]*** Partial cut [12:45:00]*** CUTSNS_PIN = 1 [12:45:00]*** CUTSNS_PIN = 0 [12:45:00]*** Brake cut motor [12:45:00]Read from MH i2c: 01 [12:45:00]MH_I2C_Read... [12:45:00]*** Stop cut motor [12:45:00]*** Cut end [12:45:00]Read from MH i2c: 01 07 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 35 4D 00 00 00 00 00 FF 0F 97 [12:45:00]process_action close_receipt done [12:45:00]requested_data is exist [12:45:00]produce_requested_data [12:45:00]requested_item fm.sn is exist - process it [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 11 00 00 [12:45:00]Write to MH i2c: E2 08 00 36 4D 80 11 00 00 00 00 00 00 FD [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 36 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [12:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:45:00]wFMCommunicate OK [12:45:00]requested_item fd.num is exist - process it [12:45:00]SAM_PROTO_GetFieldsCounters [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 13 00 00 [12:45:00]Write to MH i2c: E2 08 00 37 4D 80 13 00 00 00 00 00 00 00 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 62 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 62 00 37 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:00]wFMCommunicate OK [12:45:00]SAM_PROTO_GetFieldsCounters done [12:45:00]requested_item shift.num is exist - process it [12:45:00]requested_item shift.opened is exist - process it [12:45:00]req_shift_opened [12:45:00]FM_GetShiftState [12:45:00]SAM_PROTO_GetShiftState [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 13 01 00 [12:45:00]Write to MH i2c: E2 08 00 38 4D 80 13 01 00 00 00 00 00 02 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 38 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BC [12:45:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:45:01]wFMCommunicate OK [12:45:01]SAM_PROTO_GetShiftState done [12:45:01]FM_GetShiftState done [12:45:01]req_shift_opened done [12:45:01]requested_item shift.open_date is exist - process it [12:45:01]req_shift_open_date [12:45:01]req_shift_open_date done [12:45:01]produce_requested_data done [12:45:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31164,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:45:01]process_action_free close_receipt [12:45:01]json_value_free [12:45:01]json_value_free done [12:45:01]process_json_proto returns [12:45:01]Send response to host [12:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31164,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:45:01]free response buf [12:45:01]execute_script done [12:45:01]execute_script returns [12:45:01]free content buf [12:45:01]Sock 10.Close socket [12:45:01]Sock 10.Thread stoped [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]accept exits with 7 [12:46:49]New connection [12:46:49]New thread 3067043172 created [12:46:49]Thread 3066899812 joined [12:46:49]Waiting for new connection... [12:46:49] Sock 7.Parse request [12:46:49]Sock 7.Check first char [12:46:49]Sock 7.First char is OK [12:46:49]request: POST /json_proto HTTP/1.0 [12:46:49]Method: POST [12:46:49]URL: /json_proto [12:46:49]Method is POST - this is cgi request [12:46:49]url: /json_proto [12:46:49]query_string will be loaded in cgi processing [12:46:49]execute_cgi json_proto POST (null) [12:46:49]execute_cgi path=json_proto method=POST [12:46:49]POST find Content-Length [12:46:49]Host: 172.17.51.3:8080 [12:46:49]Content-Length: 754 [12:46:49]Content-Type: application/json [12:46:49] [12:46:49]POST finish read [12:46:49]Found Content-Length = 754 [12:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:49]execute_script... [12: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 : (1)343608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:49]POST & json_proto [12:46:49]process_json_proto [12:46:49]json parsed OK: [12:46:49]protocol is kg_v1.0 [12:46:49]action value=close_receipt [12:46:49]process_action close_receipt [12:46:49]cmd_close_receipt [12:46:49]MH_GetDate [12:46:49]Write to MH i2c: F0 00 00 39 4D 75 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 09 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 09 00 39 4D 00 40 F0 18 67 04 C1 95 66 ED [12:46:49]GetLastDocTimeStamp 1729687503 [12:46:49]current date 1729687616 [12:46:49]FM_GetShiftState [12:46:49]SAM_PROTO_GetShiftState [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 13 01 00 [12:46:49]Write to MH i2c: E2 08 00 3A 4D 80 13 01 00 00 00 00 00 04 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]OFD Sender: No OFD packet to send [12:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 3A 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BE [12:46:50]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetShiftState done [12:46:50]FM_GetShiftState done [12:46:50]opened in 1729643755 [12:46:50]opened+sec_in_day 1729730155 [12:46:50]quantity*price = 0 [12:46:50]sum+1 = 1 [12:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 109 23.10.2024 12:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31165 ФПД: 200415042382629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31165&fm=200415042382629&tin=02508201610067®Number=0000000000186857&sum=0 [12:46:51]StoreToDocumentArchive [12:46:51]shift 117 fd 31165 [12:46:51]save to /storage/0117/doc_00031165 [12:46:51]save last doc name /storage/0117/doc_00031165 to /storage/kkm_last_doc_name [12:46:51]save OK [12:46:51]Clear old archive folders... [12:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:51]tlvbuf is 00DBAED0 [12:46:51]SAM_PROTO_ClearQueue [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 09 00 00 [12:46:51]Write to MH i2c: E2 08 00 47 4D 80 09 00 00 00 00 00 00 06 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 47 4D 00 90 00 08 [12:46:51]RAPDU: 90 00 [12:46:51]wFMCommunicate OK [12:46:51]SAM_PROTO_ClearQueue done [12:46:51]KKMCreateOFDPacket [12:46:51]OFDProtocolAddRootSTLVToBuf [12:46:51]FM_MakeSignedData [12:46:51]FM_MakeSignedData [12:46:51]SAM_PROTO_SignData [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 0D 01 02 [12:46:51]Write to MH i2c: E2 08 00 48 4D 80 0D 01 02 00 00 00 00 0E [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 48 4D 00 90 00 09 [12:46:51]RAPDU: 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=255 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 79 00 00 35 04 06 00 B6 [12:46:51]Write to MH i2c: E2 02 01 49 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 79 00 00 35 04 06 00 B6 00 00 37 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 49 4D 00 90 00 0A [12:46:51]RAPDU: 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=10 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 0D 02 02 05 46 C3 68 AB 25 [12:46:51]Write to MH i2c: E2 0D 00 4A 4D 80 0D 02 02 05 00 46 C3 68 AB 25 00 00 5C [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 03 00 4A 4D 00 90 00 0B [12:46:51]RAPDU: 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 0D 03 02 [12:46:51]Write to MH i2c: E2 08 00 4B 4D 80 0D 03 02 00 00 00 00 13 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0B 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0B 00 4B 4D 00 2E A6 78 95 6F B7 37 EE 90 00 40 [12:46:51]RAPDU: 2E A6 78 95 6F B7 37 EE 90 00 [12:46:51]wFMCommunicate OK [12:46:51]SAM_PROTO_SignData done [12:46:51]FM_MakeSignedData done [12:46:51]CreateOFDProtocolMessage [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 11 00 00 [12:46:51]Write to MH i2c: E2 08 00 4C 4D 80 11 00 00 00 00 00 00 13 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 17 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 17 00 4C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [12:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:46:51]wFMCommunicate OK [12:46:51]CreateOFDProtocolMessage done [12:46:51]OFDSenderStorePacket 31165 [12:46:51]StoreOFDPacket docnum=31165 [12:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 04 57 07 01 14 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 79 00 00 35 04 06 00 B6 46 C3 68 AB 25 2E A6 78 95 6F B7 37 EE [12:46:51]CheckFolder [12:46:51]dirname=/storage/ofd_packets [12:46:51]CheckFolder done [12:46:51]ProducePacketName [12:46:51]name=ofd_packets/00031165 [12:46:51]NVStorageSaveData ofd_packets/00031165 [12:46:51]File name is /storage/ofd_packets/00031165 [12:46:51]Write 301 bytes [12:46:51]NVStorageSaveData done [12:46:51]OFDSenderStorePacket done [12:46:51]KKMCreateOFDPacket done [12:46:51]NVStorageSaveData kkm_last_timestamp [12:46:51]File name is /storage/kkm_last_timestamp [12:46:51]Write 4 bytes [12:46:51]NVStorageSaveData done [12:46:51]ExternCall_PrintAddStr [12:46:51]wPrintStart [12:46:51]Write to MH i2c: 01 00 00 4D 4D 9A [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 4D 4D 00 00 00 00 00 FF 0F AF [12:46:51]RasterBufferAndPrint [12:46:51]line Счет N : (1)343608 [12:46:51]line ИНН: 02508201610067 [12:46:51]line Контрольно-Кассовый Чек [12:46:51]line ПРОДАЖА [12:46:51]line ТРК (МРК, ГНК) : 53 [12:46:51]line Товар: 2710124130 [12:46:51]line Аи-92-К-2 [12:46:51]line 14.950 * 0.00 [12:46:51]line = 0.00 [12:46:51]line НДС 12% НСП 1% [12:46:51]line > о реализуемом товаре [12:46:51]line ИТОГО: 0.00 [12:46:51]line НСП 1% : 0.00 [12:46:51]line НДС 12% : 0.00 [12:46:51]line Наличными: 0.00 [12:46:51]line Безнал.: 0.00 [12:46:51]line Место: АЗС № 78 "Партнер Нефть" [12:46:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:46:51]line СНО: Общий режим [12:46:51]line Чек 109 23.10.2024 12:46 [12:46:51]line Смена: 117 ФФД: 1.0 [12:46:51]line ЗНМ: 0300000137 [12:46:51]line РНМ: 0000000000186857 [12:46:51]line Версия ККМ: v1.0 [12:46:51]line Талоны: ТК ГПНА Online [12:46:51]line 30101093 [12:46:51]line ФМ: 0000000002094219 [12:46:51]line ФД: 31165 [12:46:51]line ФПД: 200415042382629 [12:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31165&fm=200415042382629&tin=02508201610067®Number=0000000000186857&sum=0 [12:46:51]OFD Sender: Processing packet 31165 [packets to send 11, broken 10] [12:46:51]ProducePacketName [12:46:51]name=ofd_packets/00031165 [12:46:51]OFD Sender: To server: pG, [12:46:51]CommunicateWithHost lk.salyk.kg:30040 [12:46:52]ConnectInit lk.salyk.kg [12:46:52]written 0, free lines is 4095 [12:46:52]Connected sock=10 [12:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 04 57 07 01 14 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 40 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 79 00 00 35 04 06 00 B6 46 C3 68 AB 25 2E A6 78 95 6F B7 37 EE [12:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 C3 47 00 5F FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 79 00 00 F4 03 04 00 BA 9A 18 67 B6 04 01 00 00 2C 5C 41 04 61 C4 25 5C [12:46:52]CommunicateWithHost err = 0 [12:46:52]CheckOFDResponse [12:46:52]1017 (14) - 77093643461234 [12:46:52]1041 (16) - 0000000002094219 [12:46:52]1040 (4) - 31165 [12:46:52]1012 (4) - 23.10.2024 06:42 [12:46:52]1206 (1) - 0 [12:46:52]OFD Sender: Remove packet 31165 [12:46:52]ProducePacketName [12:46:52]name=ofd_packets/00031165 [12:46:52]NVStorageDeleteData [12:46:52]Write to MH i2c: 01 00 00 77 4D C4 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 77 4D 00 00 00 00 00 04 0D DC [12:46:52]RasterBufferAndPrint [12:46:52]line [12:46:52]line [12:46:52]line [12:46:52]line [12:46:52]line [12:46:52]written 0, free lines is 3338 [12:46:52]MH_Cut [12:46:52]Write to MH i2c: D1 01 00 7E 4D 01 9D [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: D1 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: D1 01 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: D1 01 00 7E 4D 00 9C [12:46:52]Write to MH i2c: 01 00 00 7F 4D CC [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]OFD Sender: No OFD packet to send [12:46:53]*** Cut start [12:46:53]*** Partial cut [12:46:53]*** CUTSNS_PIN = 1 [12:46:53]*** CUTSNS_PIN = 0 [12:46:53]*** Brake cut motor [12:46:53]Read from MH i2c: 01 [12:46:53]MH_I2C_Read... [12:46:53]*** Stop cut motor [12:46:53]*** Cut end [12:46:53]Read from MH i2c: 01 07 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 07 00 7F 4D 00 00 00 00 00 FF 0F E1 [12:46:53]process_action close_receipt done [12:46:53]requested_data is exist [12:46:53]produce_requested_data [12:46:53]requested_item fm.sn is exist - process it [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 11 00 00 [12:46:53]Write to MH i2c: E2 08 00 80 4D 80 11 00 00 00 00 00 00 47 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 17 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 17 00 80 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [12:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:46:53]wFMCommunicate OK [12:46:53]requested_item fd.num is exist - process it [12:46:53]SAM_PROTO_GetFieldsCounters [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 00 00 [12:46:53]Write to MH i2c: E2 08 00 81 4D 80 13 00 00 00 00 00 00 4A [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 62 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 62 00 81 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetFieldsCounters done [12:46:53]requested_item shift.num is exist - process it [12:46:53]requested_item shift.opened is exist - process it [12:46:53]req_shift_opened [12:46:53]FM_GetShiftState [12:46:53]SAM_PROTO_GetShiftState [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 01 00 [12:46:53]Write to MH i2c: E2 08 00 82 4D 80 13 01 00 00 00 00 00 4C [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 82 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 06 [12:46:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetShiftState done [12:46:53]FM_GetShiftState done [12:46:53]req_shift_opened done [12:46:53]requested_item shift.open_date is exist - process it [12:46:53]req_shift_open_date [12:46:53]req_shift_open_date done [12:46:53]produce_requested_data done [12:46:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31165,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:46:53]process_action_free close_receipt [12:46:53]json_value_free [12:46:53]json_value_free done [12:46:53]process_json_proto returns [12:46:53]Send response to host [12:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31165,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:46:53]free response buf [12:46:53]execute_script done [12:46:53]execute_script returns [12:46:53]free content buf [12:46:53]Sock 7.Close socket [12:46:53]Sock 7.Thread stoped [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:51]accept exits with 9 [12:47:51]New connection [12:47:51]New thread 3066899812 created [12:47:51]Thread 3067043172 joined [12:47:51]Waiting for new connection... [12:47:51] Sock 9.Parse request [12:47:51]Sock 9.Check first char [12:47:51]Sock 9.First char is OK [12:47:51]request: POST /json_proto HTTP/1.0 [12:47:51]Method: POST [12:47:51]URL: /json_proto [12:47:51]Method is POST - this is cgi request [12:47:51]url: /json_proto [12:47:51]query_string will be loaded in cgi processing [12:47:51]execute_cgi json_proto POST (null) [12:47:51]execute_cgi path=json_proto method=POST [12:47:51]POST find Content-Length [12:47:51]Host: 172.17.51.3:8080 [12:47:51]Content-Length: 754 [12:47:51]Content-Type: application/json [12:47:51] [12:47:51]POST finish read [12:47:51]Found Content-Length = 754 [12:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:51]execute_script... [12:47:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:51]POST & json_proto [12:47:51]process_json_proto [12:47:51]json parsed OK: [12:47:51]protocol is kg_v1.0 [12:47:51]action value=close_receipt [12:47:51]process_action close_receipt [12:47:51]cmd_close_receipt [12:47:51]MH_GetDate [12:47:51]Write to MH i2c: F0 00 00 83 4D BF [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: F0 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: F0 09 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: F0 09 00 83 4D 00 7D F0 18 67 04 C1 95 66 74 [12:47:51]GetLastDocTimeStamp 1729687616 [12:47:51]current date 1729687677 [12:47:51]FM_GetShiftState [12:47:51]SAM_PROTO_GetShiftState [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 13 01 00 [12:47:51]Write to MH i2c: E2 08 00 84 4D 80 13 01 00 00 00 00 00 4E [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 0E 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 0E 00 84 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 08 [12:47:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:47:51]wFMCommunicate OK [12:47:51]SAM_PROTO_GetShiftState done [12:47:51]FM_GetShiftState done [12:47:51]opened in 1729643755 [12:47:51]opened+sec_in_day 1729730155 [12:47:51]quantity*price = 0 [12:47:51]sum+1 = 1 [12:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 110 23.10.2024 12:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31166 ФПД: 104028772536429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31166&fm=104028772536429&tin=02508201610067®Number=0000000000186857&sum=0 [12:47:52]StoreToDocumentArchive [12:47:52]shift 117 fd 31166 [12:47:52]save to /storage/0117/doc_00031166 [12:47:52]save last doc name /storage/0117/doc_00031166 to /storage/kkm_last_doc_name [12:47:52]save OK [12:47:52]Clear old archive folders... [12:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:52]tlvbuf is 00D334A0 [12:47:52]SAM_PROTO_ClearQueue [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 09 00 00 [12:47:52]Write to MH i2c: E2 08 00 91 4D 80 09 00 00 00 00 00 00 50 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 91 4D 00 90 00 52 [12:47:52]RAPDU: 90 00 [12:47:52]wFMCommunicate OK [12:47:52]SAM_PROTO_ClearQueue done [12:47:52]KKMCreateOFDPacket [12:47:52]OFDProtocolAddRootSTLVToBuf [12:47:52]FM_MakeSignedData [12:47:52]FM_MakeSignedData [12:47:52]SAM_PROTO_SignData [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 0D 01 02 [12:47:52]Write to MH i2c: E2 08 00 92 4D 80 0D 01 02 00 00 00 00 58 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 92 4D 00 90 00 53 [12:47:52]RAPDU: 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=255 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7D F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 79 00 00 35 04 06 00 5E [12:47:52]Write to MH i2c: E2 02 01 93 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7D F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 79 00 00 35 04 06 00 5E 00 00 68 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 93 4D 00 90 00 54 [12:47:52]RAPDU: 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=10 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 0D 02 02 05 9D 16 08 90 6D [12:47:52]Write to MH i2c: E2 0D 00 94 4D 80 0D 02 02 05 00 9D 16 08 90 6D 00 00 1D [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 03 00 94 4D 00 90 00 55 [12:47:52]RAPDU: 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 0D 03 02 [12:47:52]Write to MH i2c: E2 08 00 95 4D 80 0D 03 02 00 00 00 00 5D [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 0B 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 0B 00 95 4D 00 D1 A7 15 A2 0B F9 C0 26 90 00 77 [12:47:52]RAPDU: D1 A7 15 A2 0B F9 C0 26 90 00 [12:47:52]wFMCommunicate OK [12:47:52]SAM_PROTO_SignData done [12:47:52]FM_MakeSignedData done [12:47:52]CreateOFDProtocolMessage [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 11 00 00 [12:47:52]Write to MH i2c: E2 08 00 96 4D 80 11 00 00 00 00 00 00 5D [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 17 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 17 00 96 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [12:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:47:52]wFMCommunicate OK [12:47:52]CreateOFDProtocolMessage done [12:47:52]OFDSenderStorePacket 31166 [12:47:52]StoreOFDPacket docnum=31166 [12:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E 7C 07 01 FF 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7D F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 79 00 00 35 04 06 00 5E 9D 16 08 90 6D D1 A7 15 A2 0B F9 C0 26 [12:47:52]CheckFolder [12:47:52]dirname=/storage/ofd_packets [12:47:52]CheckFolder done [12:47:52]ProducePacketName [12:47:52]name=ofd_packets/00031166 [12:47:52]NVStorageSaveData ofd_packets/00031166 [12:47:52]File name is /storage/ofd_packets/00031166 [12:47:52]Write 301 bytes [12:47:52]NVStorageSaveData done [12:47:52]OFDSenderStorePacket done [12:47:52]KKMCreateOFDPacket done [12:47:52]NVStorageSaveData kkm_last_timestamp [12:47:52]File name is /storage/kkm_last_timestamp [12:47:52]Write 4 bytes [12:47:52]NVStorageSaveData done [12:47:52]ExternCall_PrintAddStr [12:47:52]wPrintStart [12:47:52]Write to MH i2c: 01 00 00 97 4D E4 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 97 4D 00 00 00 00 00 FF 0F F9 [12:47:52]RasterBufferAndPrint [12:47:52]line Счет N : (1)343609 [12:47:52]line ИНН: 02508201610067 [12:47:52]line Контрольно-Кассовый Чек [12:47:52]line ПРОДАЖА [12:47:52]line ТРК (МРК, ГНК) : 63 [12:47:52]line Товар: 2710124130 [12:47:52]line Аи-92-К-2 [12:47:52]line 14.950 * 0.00 [12:47:52]line = 0.00 [12:47:52]line НДС 12% НСП 1% [12:47:52]line > о реализуемом товаре [12:47:52]line ИТОГО: 0.00 [12:47:52]line НСП 1% : 0.00 [12:47:52]line НДС 12% : 0.00 [12:47:52]line Наличными: 0.00 [12:47:52]line Безнал.: 0.00 [12:47:52]line Место: АЗС № 78 "Партнер Нефть" [12:47:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:47:52]line СНО: Общий режим [12:47:52]line Чек 110 23.10.2024 12:47 [12:47:52]line Смена: 117 ФФД: 1.0 [12:47:52]line ЗНМ: 0300000137 [12:47:52]line РНМ: 0000000000186857 [12:47:52]line Версия ККМ: v1.0 [12:47:52]line Талоны: ТК ГПНА Online [12:47:52]line 30101093 [12:47:52]line ФМ: 0000000002094219 [12:47:52]line ФД: 31166 [12:47:52]line ФПД: 104028772536429 [12:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31166&fm=104028772536429&tin=02508201610067®Number=0000000000186857&sum=0 [12:47:53]OFD Sender: Processing packet 31166 [packets to send 11, broken 10] [12:47:53]ProducePacketName [12:47:53]name=ofd_packets/00031166 [12:47:53]OFD Sender: To server: pG, [12:47:53]CommunicateWithHost lk.salyk.kg:30040 [12:47:53]ConnectInit lk.salyk.kg [12:47:53]written 0, free lines is 4095 [12:47:53]Connected sock=10 [12:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E 7C 07 01 FF 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7D F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 79 00 00 35 04 06 00 5E 9D 16 08 90 6D D1 A7 15 A2 0B F9 C0 26 [12:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DE B4 47 00 48 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 32 30 39 34 32 31 39 10 04 04 00 BE 79 00 00 F4 03 04 00 F7 9A 18 67 B6 04 01 00 00 4F EB 73 44 5F E7 19 4C [12:47:53]CommunicateWithHost err = 0 [12:47:53]CheckOFDResponse [12:47:53]1017 (14) - 77093643461234 [12:47:53]1041 (16) - 0000000002094219 [12:47:53]1040 (4) - 31166 [12:47:53]1012 (4) - 23.10.2024 06:43 [12:47:53]1206 (1) - 0 [12:47:53]OFD Sender: Remove packet 31166 [12:47:53]ProducePacketName [12:47:53]name=ofd_packets/00031166 [12:47:53]NVStorageDeleteData [12:47:53]Write to MH i2c: 01 00 00 C1 4D 0E [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 07 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: 01 07 00 C1 4D 00 00 00 00 00 04 0D 26 [12:47:53]RasterBufferAndPrint [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]line [12:47:53]written 0, free lines is 3342 [12:47:53]MH_Cut [12:47:53]Write to MH i2c: D1 01 00 C8 4D 01 E7 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 01 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: D1 01 00 C8 4D 00 E6 [12:47:53]Write to MH i2c: 01 00 00 C9 4D 16 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]OFD Sender: No OFD packet to send [12:47:54]*** Cut start [12:47:54]*** Partial cut [12:47:54]*** CUTSNS_PIN = 1 [12:47:54]*** CUTSNS_PIN = 0 [12:47:54]*** Brake cut motor [12:47:54]Read from MH i2c: 01 [12:47:54]MH_I2C_Read... [12:47:54]*** Stop cut motor [12:47:54]*** Cut end [12:47:54]Read from MH i2c: 01 07 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 07 00 C9 4D 00 00 00 00 00 FF 0F 2B [12:47:54]process_action close_receipt done [12:47:54]requested_data is exist [12:47:54]produce_requested_data [12:47:54]requested_item fm.sn is exist - process it [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 11 00 00 [12:47:54]Write to MH i2c: E2 08 00 CA 4D 80 11 00 00 00 00 00 00 91 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 CA 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [12:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:47:54]wFMCommunicate OK [12:47:54]requested_item fd.num is exist - process it [12:47:54]SAM_PROTO_GetFieldsCounters [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 00 00 [12:47:54]Write to MH i2c: E2 08 00 CB 4D 80 13 00 00 00 00 00 00 94 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 62 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 62 00 CB 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [12:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetFieldsCounters done [12:47:54]requested_item shift.num is exist - process it [12:47:54]requested_item shift.opened is exist - process it [12:47:54]req_shift_opened [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 CC 4D 80 13 01 00 00 00 00 00 96 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 CC 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 50 [12:47:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_GetShiftState done [12:47:55]FM_GetShiftState done [12:47:55]req_shift_opened done [12:47:55]requested_item shift.open_date is exist - process it [12:47:55]req_shift_open_date [12:47:55]req_shift_open_date done [12:47:55]produce_requested_data done [12:47:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31166,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:47:55]process_action_free close_receipt [12:47:55]json_value_free [12:47:55]json_value_free done [12:47:55]process_json_proto returns [12:47:55]Send response to host [12:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31166,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:47:55]free response buf [12:47:55]execute_script done [12:47:55]execute_script returns [12:47:55]free content buf [12:47:55]Sock 9.Close socket [12:47:55]Sock 9.Thread stoped [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:07]accept exits with 7 [12:49:07]New connection [12:49:07]New thread 3067043172 created [12:49:07]Thread 3066899812 joined [12:49:07]Waiting for new connection... [12:49:07] Sock 7.Parse request [12:49:07]Sock 7.Check first char [12:49:07]Sock 7.First char is OK [12:49:07]request: POST /json_proto HTTP/1.0 [12:49:07]Method: POST [12:49:07]URL: /json_proto [12:49:07]Method is POST - this is cgi request [12:49:07]url: /json_proto [12:49:07]query_string will be loaded in cgi processing [12:49:07]execute_cgi json_proto POST (null) [12:49:07]execute_cgi path=json_proto method=POST [12:49:07]POST find Content-Length [12:49:07]Host: 172.17.51.3:8080 [12:49:07]Content-Length: 754 [12:49:07]Content-Type: application/json [12:49:07] [12:49:07]POST finish read [12:49:07]Found Content-Length = 754 [12:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:07]execute_script... [12:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.470, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:07]POST & json_proto [12:49:07]process_json_proto [12:49:07]json parsed OK: [12:49:07]protocol is kg_v1.0 [12:49:07]action value=close_receipt [12:49:07]process_action close_receipt [12:49:07]cmd_close_receipt [12:49:07]MH_GetDate [12:49:07]Write to MH i2c: F0 00 00 CD 4D 09 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 09 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 09 00 CD 4D 00 C9 F0 18 67 04 C1 95 66 0A [12:49:07]GetLastDocTimeStamp 1729687677 [12:49:07]current date 1729687753 [12:49:07]FM_GetShiftState [12:49:07]SAM_PROTO_GetShiftState [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 13 01 00 [12:49:07]Write to MH i2c: E2 08 00 CE 4D 80 13 01 00 00 00 00 00 98 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0E 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0E 00 CE 4D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 52 [12:49:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:49:07]wFMCommunicate OK [12:49:07]SAM_PROTO_GetShiftState done [12:49:07]FM_GetShiftState done [12:49:07]opened in 1729643755 [12:49:07]opened+sec_in_day 1729730155 [12:49:07]quantity*price = 0 [12:49:07]sum+1 = 1 [12:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 111 23.10.2024 12:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31167 ФПД: 63589827743116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31167&fm=63589827743116&tin=02508201610067®Number=0000000000186857&sum=0 [12:49:08]StoreToDocumentArchive [12:49:08]shift 117 fd 31167 [12:49:08]save to /storage/0117/doc_00031167 [12:49:08]save last doc name /storage/0117/doc_00031167 to /storage/kkm_last_doc_name [12:49:08]save OK [12:49:08]Clear old archive folders... [12:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:08]tlvbuf is 00D333B0 [12:49:08]SAM_PROTO_ClearQueue [12:49:08]wFMCommunicate request_size=4 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 09 00 00 [12:49:08]Write to MH i2c: E2 08 00 DB 4D 80 09 00 00 00 00 00 00 9A [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 DB 4D 00 90 00 9C [12:49:08]RAPDU: 90 00 [12:49:08]wFMCommunicate OK [12:49:08]SAM_PROTO_ClearQueue done [12:49:08]KKMCreateOFDPacket [12:49:08]OFDProtocolAddRootSTLVToBuf [12:49:08]FM_MakeSignedData [12:49:08]FM_MakeSignedData [12:49:08]SAM_PROTO_SignData [12:49:08]wFMCommunicate request_size=4 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 0D 01 02 [12:49:08]Write to MH i2c: E2 08 00 DC 4D 80 0D 01 02 00 00 00 00 A2 [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:08]Read from MH i2c: E2 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 [12:49:08]MH_I2C_Read... [12:49:08]Read from MH i2c: E2 03 00 DC 4D 00 90 00 9D [12:49:08]RAPDU: 90 00 [12:49:08]wFMCommunicate OK [12:49:08]wFMCommunicate request_size=255 [12:49:08]MH_SAM_APDU [12:49:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C9 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 79 00 00 35 04 06 00 39 [12:49:08]Write to MH i2c: E2 02 01 DD 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C9 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 79 00 00 35 04 06 00 39 00 00 49 [12:49:08]Write i2c OK [12:49:08]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:09]OFD Sender: No OFD packet to send [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 DD 4D 00 90 00 9E [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]wFMCommunicate request_size=10 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 02 02 05 D5 A9 18 0D 8C [12:49:09]Write to MH i2c: E2 0D 00 DE 4D 80 0D 02 02 05 00 D5 A9 18 0D 8C 00 00 DE [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 DE 4D 00 90 00 9F [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 03 02 [12:49:09]Write to MH i2c: E2 08 00 DF 4D 80 0D 03 02 00 00 00 00 A7 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0B 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0B 00 DF 4D 00 20 75 8F 03 0D 49 7E 9B 90 00 3E [12:49:09]RAPDU: 20 75 8F 03 0D 49 7E 9B 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_SignData done [12:49:09]FM_MakeSignedData done [12:49:09]CreateOFDProtocolMessage [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 11 00 00 [12:49:09]Write to MH i2c: E2 08 00 E0 4D 80 11 00 00 00 00 00 00 A7 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 E0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [12:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:49:09]wFMCommunicate OK [12:49:09]CreateOFDProtocolMessage done [12:49:09]OFDSenderStorePacket 31167 [12:49:09]StoreOFDPacket docnum=31167 [12:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 A4 07 01 74 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C9 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 79 00 00 35 04 06 00 39 D5 A9 18 0D 8C 20 75 8F 03 0D 49 7E 9B [12:49:09]CheckFolder [12:49:09]dirname=/storage/ofd_packets [12:49:09]CheckFolder done [12:49:09]ProducePacketName [12:49:09]name=ofd_packets/00031167 [12:49:09]NVStorageSaveData ofd_packets/00031167 [12:49:09]File name is /storage/ofd_packets/00031167 [12:49:09]Write 301 bytes [12:49:09]NVStorageSaveData done [12:49:09]OFDSenderStorePacket done [12:49:09]KKMCreateOFDPacket done [12:49:09]NVStorageSaveData kkm_last_timestamp [12:49:09]File name is /storage/kkm_last_timestamp [12:49:09]Write 4 bytes [12:49:09]NVStorageSaveData done [12:49:09]ExternCall_PrintAddStr [12:49:09]wPrintStart [12:49:09]Write to MH i2c: 01 00 00 E1 4D 2E [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 E1 4D 00 00 00 00 00 FF 0F 43 [12:49:09]RasterBufferAndPrint [12:49:09]line Счет N : (1)343611 [12:49:09]line ИНН: 02508201610067 [12:49:09]line Контрольно-Кассовый Чек [12:49:09]line ПРОДАЖА [12:49:09]line ТРК (МРК, ГНК) : 43 [12:49:09]line Товар: 2710124130 [12:49:09]line Аи-92-К-2 [12:49:09]line 10.470 * 0.00 [12:49:09]line = 0.00 [12:49:09]line НДС 12% НСП 1% [12:49:09]line > о реализуемом товаре [12:49:09]line ИТОГО: 0.00 [12:49:09]line НСП 1% : 0.00 [12:49:09]line НДС 12% : 0.00 [12:49:09]line Наличными: 0.00 [12:49:09]line Безнал.: 0.00 [12:49:09]line Место: АЗС № 78 "Партнер Нефть" [12:49:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:49:09]line СНО: Общий режим [12:49:09]line Чек 111 23.10.2024 12:49 [12:49:09]line Смена: 117 ФФД: 1.0 [12:49:09]line ЗНМ: 0300000137 [12:49:09]line РНМ: 0000000000186857 [12:49:09]line Версия ККМ: v1.0 [12:49:09]line Талоны: ТК ГПНА Online [12:49:09]line 30101093 [12:49:09]line ФМ: 0000000002094219 [12:49:09]line ФД: 31167 [12:49:09]line ФПД: 63589827743116 [12:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31167&fm=63589827743116&tin=02508201610067®Number=0000000000186857&sum=0 [12:49:09]OFD Sender: Processing packet 31167 [packets to send 11, broken 10] [12:49:09]ProducePacketName [12:49:09]name=ofd_packets/00031167 [12:49:09]OFD Sender: To server: pG, [12:49:09]CommunicateWithHost lk.salyk.kg:30040 [12:49:09]ConnectInit lk.salyk.kg [12:49:09]written 0, free lines is 4095 [12:49:09]Connected sock=10 [12:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 A4 07 01 74 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C9 F0 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 79 00 00 35 04 06 00 39 D5 A9 18 0D 8C 20 75 8F 03 0D 49 7E 9B [12:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 CA 47 00 18 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 79 00 00 F4 03 04 00 44 9B 18 67 B6 04 01 00 00 2E 1D 0F 23 08 86 94 2F [12:49:09]CommunicateWithHost err = 0 [12:49:09]CheckOFDResponse [12:49:09]1017 (14) - 77093643461234 [12:49:09]1041 (16) - 0000000002094219 [12:49:09]1040 (4) - 31167 [12:49:09]1012 (4) - 23.10.2024 06:44 [12:49:09]1206 (1) - 0 [12:49:09]OFD Sender: Remove packet 31167 [12:49:09]ProducePacketName [12:49:09]name=ofd_packets/00031167 [12:49:09]NVStorageDeleteData [12:49:09]Write to MH i2c: 01 00 00 0B 4E 59 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 0B 4E 00 00 00 00 00 FC 0C 68 [12:49:09]RasterBufferAndPrint [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]line [12:49:09]written 0, free lines is 3331 [12:49:09]MH_Cut [12:49:09]Write to MH i2c: D1 01 00 12 4E 01 32 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 01 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D1 01 00 12 4E 00 31 [12:49:09]Write to MH i2c: 01 00 00 13 4E 61 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:10]OFD Sender: No OFD packet to send [12:49:10]*** Cut start [12:49:10]*** Partial cut [12:49:10]*** CUTSNS_PIN = 1 [12:49:10]*** CUTSNS_PIN = 0 [12:49:10]*** Brake cut motor [12:49:11]Read from MH i2c: 01 [12:49:11]MH_I2C_Read... [12:49:11]*** Stop cut motor [12:49:11]*** Cut end [12:49:11]Read from MH i2c: 01 07 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: 01 07 00 13 4E 00 00 00 00 00 FF 0F 76 [12:49:11]process_action close_receipt done [12:49:11]requested_data is exist [12:49:11]produce_requested_data [12:49:11]requested_item fm.sn is exist - process it [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 11 00 00 [12:49:11]Write to MH i2c: E2 08 00 14 4E 80 11 00 00 00 00 00 00 DC [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:11]Read from MH i2c: E2 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 17 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 17 00 14 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [12:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:49:11]wFMCommunicate OK [12:49:11]requested_item fd.num is exist - process it [12:49:11]SAM_PROTO_GetFieldsCounters [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 13 00 00 [12:49:11]Write to MH i2c: E2 08 00 15 4E 80 13 00 00 00 00 00 00 DF [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:11]Read from MH i2c: E2 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 62 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 62 00 15 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:11]wFMCommunicate OK [12:49:11]SAM_PROTO_GetFieldsCounters done [12:49:11]requested_item shift.num is exist - process it [12:49:11]requested_item shift.opened is exist - process it [12:49:11]req_shift_opened [12:49:11]FM_GetShiftState [12:49:11]SAM_PROTO_GetShiftState [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 13 01 00 [12:49:11]Write to MH i2c: E2 08 00 16 4E 80 13 01 00 00 00 00 00 E1 [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:11]Read from MH i2c: E2 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 0E 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 0E 00 16 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9B [12:49:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:49:11]wFMCommunicate OK [12:49:11]SAM_PROTO_GetShiftState done [12:49:11]FM_GetShiftState done [12:49:11]req_shift_opened done [12:49:11]requested_item shift.open_date is exist - process it [12:49:11]req_shift_open_date [12:49:11]req_shift_open_date done [12:49:11]produce_requested_data done [12:49:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31167,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:49:11]process_action_free close_receipt [12:49:11]json_value_free [12:49:11]json_value_free done [12:49:11]process_json_proto returns [12:49:11]Send response to host [12:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31167,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:49:11]free response buf [12:49:11]execute_script done [12:49:11]execute_script returns [12:49:11]free content buf [12:49:11]Sock 7.Close socket [12:49:11]Sock 7.Thread stoped [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:02]accept exits with 9 [12:55:02]New connection [12:55:02]New thread 3066899812 created [12:55:02]Thread 3067043172 joined [12:55:02]Waiting for new connection... [12:55:02] Sock 9.Parse request [12:55:02]Sock 9.Check first char [12:55:02]Sock 9.First char is OK [12:55:02]request: POST /json_proto HTTP/1.0 [12:55:02]Method: POST [12:55:02]URL: /json_proto [12:55:02]Method is POST - this is cgi request [12:55:02]url: /json_proto [12:55:02]query_string will be loaded in cgi processing [12:55:02]execute_cgi json_proto POST (null) [12:55:02]execute_cgi path=json_proto method=POST [12:55:02]POST find Content-Length [12:55:02]Host: 172.17.51.3:8080 [12:55:02]Content-Length: 683 [12:55:02]Content-Type: application/json [12:55:02] [12:55:02]POST finish read [12:55:02]Found Content-Length = 683 [12:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]execute_script... [12:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]POST & json_proto [12:55:02]process_json_proto [12:55:02]json parsed OK: [12:55:02]protocol is kg_v1.0 [12:55:02]action value=close_receipt [12:55:02]process_action close_receipt [12:55:02]cmd_close_receipt [12:55:02]MH_GetDate [12:55:02]Write to MH i2c: F0 00 00 17 4E 54 [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 17 4E 00 2C F2 18 67 04 C1 95 66 BA [12:55:02]GetLastDocTimeStamp 1729687753 [12:55:02]current date 1729688108 [12:55:02]FM_GetShiftState [12:55:02]SAM_PROTO_GetShiftState [12:55:02]wFMCommunicate request_size=4 [12:55:02]MH_SAM_APDU [12:55:02]CAPDU: 80 13 01 00 [12:55:02]Write to MH i2c: E2 08 00 18 4E 80 13 01 00 00 00 00 00 E3 [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:02]Read from MH i2c: E2 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 18 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9D [12:55:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:55:02]wFMCommunicate OK [12:55:02]SAM_PROTO_GetShiftState done [12:55:02]FM_GetShiftState done [12:55:02]opened in 1729643755 [12:55:02]opened+sec_in_day 1729730155 [12:55:02]quantity*price = 40066 [12:55:02]sum+1 = 40068 [12:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 112 23.10.2024 12:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31168 ФПД: 262678912660523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31168&fm=262678912660523&tin=02508201610067®Number=0000000000186857&sum=40000 [12:55:03]StoreToDocumentArchive [12:55:03]shift 117 fd 31168 [12:55:03]save to /storage/0117/doc_00031168 [12:55:03]save last doc name /storage/0117/doc_00031168 to /storage/kkm_last_doc_name [12:55:03]save OK [12:55:03]Clear old archive folders... [12:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:55:03]tlvbuf is 00D334E0 [12:55:03]SAM_PROTO_ClearQueue [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 09 00 00 [12:55:03]Write to MH i2c: E2 08 00 25 4E 80 09 00 00 00 00 00 00 E5 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_ClearQueue done [12:55:03]KKMCreateOFDPacket [12:55:03]OFDProtocolAddRootSTLVToBuf [12:55:03]FM_MakeSignedData [12:55:03]FM_MakeSignedData [12:55:03]SAM_PROTO_SignData [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 01 02 [12:55:03]Write to MH i2c: E2 08 00 26 4E 80 0D 01 02 00 00 00 00 ED [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]wFMCommunicate request_size=255 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2C F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 79 00 [12:55:03]Write to MH i2c: E2 02 01 27 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2C F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 79 00 00 00 AA [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]wFMCommunicate request_size=16 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EE E7 B3 47 74 2B [12:55:03]Write to MH i2c: E2 13 00 28 4E 80 0D 02 02 0B 00 00 35 04 06 00 EE E7 B3 47 74 2B 00 00 B3 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 28 4E 00 90 00 EA [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 03 02 [12:55:03]Write to MH i2c: E2 08 00 29 4E 80 0D 03 02 00 00 00 00 F2 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 0B 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 0B 00 29 4E 00 F0 6F 82 F9 CD 9D 8D 38 90 00 FC [12:55:03]RAPDU: F0 6F 82 F9 CD 9D 8D 38 90 00 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_SignData done [12:55:03]FM_MakeSignedData done [12:55:03]CreateOFDProtocolMessage [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 11 00 00 [12:55:03]Write to MH i2c: E2 08 00 2A 4E 80 11 00 00 00 00 00 00 F2 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 17 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 17 00 2A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [12:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:03]wFMCommunicate OK [12:55:03]CreateOFDProtocolMessage done [12:55:03]OFDSenderStorePacket 31168 [12:55:03]StoreOFDPacket docnum=31168 [12:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D4 A1 0D 01 F7 A6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2C F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 79 00 00 35 04 06 00 EE E7 B3 47 74 2B F0 6F 82 F9 CD 9D 8D 38 [12:55:03]CheckFolder [12:55:03]dirname=/storage/ofd_packets [12:55:03]CheckFolder done [12:55:03]ProducePacketName [12:55:03]name=ofd_packets/00031168 [12:55:03]NVStorageSaveData ofd_packets/00031168 [12:55:03]File name is /storage/ofd_packets/00031168 [12:55:03]Write 307 bytes [12:55:03]NVStorageSaveData done [12:55:03]OFDSenderStorePacket done [12:55:03]KKMCreateOFDPacket done [12:55:03]NVStorageSaveData kkm_last_timestamp [12:55:03]File name is /storage/kkm_last_timestamp [12:55:03]Write 4 bytes [12:55:03]NVStorageSaveData done [12:55:03]ExternCall_PrintAddStr [12:55:03]wPrintStart [12:55:03]Write to MH i2c: 01 00 00 2B 4E 79 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: 01 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: 01 07 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: 01 07 00 2B 4E 00 00 00 00 00 FF 0F 8E [12:55:03]RasterBufferAndPrint [12:55:03]line Счет N : (1)343612 [12:55:03]line ИНН: 02508201610067 [12:55:03]line Контрольно-Кассовый Чек [12:55:03]line ПРОДАЖА [12:55:03]line ТРК (МРК, ГНК) : 51 [12:55:03]line Товар: 2710194210 [12:55:03]line D-ENERGY Дт-К-2 [12:55:03]line 5.190 * 77.20 [12:55:03]line = 400.67 [12:55:03]line НДС 12% НСП 1% [12:55:03]line > о реализуемом товаре [12:55:03]line ОКРУГЛЕНИЕ: -0.67 [12:55:03]line ИТОГО: 400.00 [12:55:03]line Внесено: 400.00 [12:55:03]line СДАЧА: 0.00 [12:55:03]line НСП 1% : 3.55 [12:55:03]line НДС 12% : 42.55 [12:55:03]line Наличными: 400.00 [12:55:03]line Безнал.: 0.00 [12:55:03]line Место: АЗС № 78 "Партнер Нефть" [12:55:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:55:03]line СНО: Общий режим [12:55:03]line Чек 112 23.10.2024 12:55 [12:55:03]line Смена: 117 ФФД: 1.0 [12:55:03]line ЗНМ: 0300000137 [12:55:03]line РНМ: 0000000000186857 [12:55:03]line Версия ККМ: v1.0 [12:55:03]line ФМ: 0000000002094219 [12:55:03]line ФД: 31168 [12:55:03]line ФПД: 262678912660523 [12:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31168&fm=262678912660523&tin=02508201610067®Number=0000000000186857&sum=40000 [12:55:04]OFD Sender: Processing packet 31168 [packets to send 11, broken 10] [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00031168 [12:55:04]OFD Sender: To server: pG, [12:55:04]CommunicateWithHost lk.salyk.kg:30040 [12:55:04]ConnectInit lk.salyk.kg [12:55:04]written 0, free lines is 4095 [12:55:04]Connected sock=10 [12:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D4 A1 0D 01 F7 A6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2C F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 79 00 00 35 04 06 00 EE E7 B3 47 74 2B F0 6F 82 F9 CD 9D 8D 38 [12:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 93 47 00 E9 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 79 00 00 F4 03 04 00 A6 9C 18 67 B6 04 01 00 00 07 D1 CF 5F 0D E3 3E 30 [12:55:04]CommunicateWithHost err = 0 [12:55:04]CheckOFDResponse [12:55:04]1017 (14) - 77093643461234 [12:55:04]1041 (16) - 0000000002094219 [12:55:04]1040 (4) - 31168 [12:55:04]1012 (4) - 23.10.2024 06:50 [12:55:04]1206 (1) - 0 [12:55:04]OFD Sender: Remove packet 31168 [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00031168 [12:55:04]NVStorageDeleteData [12:55:04]Write to MH i2c: 01 00 00 56 4E A4 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 56 4E 00 00 00 00 00 F5 0C AC [12:55:04]RasterBufferAndPrint [12:55:04]line [12:55:04]line [12:55:04]line [12:55:04]line [12:55:04]line [12:55:04]written 0, free lines is 3324 [12:55:04]MH_Cut [12:55:04]Write to MH i2c: D1 01 00 5D 4E 01 7D [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: D1 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: D1 01 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: D1 01 00 5D 4E 00 7C [12:55:04]Write to MH i2c: 01 00 00 5E 4E AC [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:05]OFD Sender: No OFD packet to send [12:55:05]*** Cut start [12:55:05]*** Partial cut [12:55:05]*** CUTSNS_PIN = 1 [12:55:05]*** CUTSNS_PIN = 0 [12:55:05]*** Brake cut motor [12:55:05]Read from MH i2c: 01 [12:55:05]MH_I2C_Read... [12:55:05]*** Stop cut motor [12:55:05]*** Cut end [12:55:05]Read from MH i2c: 01 07 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 5E 4E 00 00 00 00 00 FF 0F C1 [12:55:05]process_action close_receipt done [12:55:05]requested_data is exist [12:55:05]produce_requested_data [12:55:05]requested_item fm.sn is exist - process it [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 11 00 00 [12:55:05]Write to MH i2c: E2 08 00 5F 4E 80 11 00 00 00 00 00 00 27 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 17 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 17 00 5F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [12:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:06]wFMCommunicate OK [12:55:06]requested_item fd.num is exist - process it [12:55:06]SAM_PROTO_GetFieldsCounters [12:55:06]wFMCommunicate request_size=4 [12:55:06]MH_SAM_APDU [12:55:06]CAPDU: 80 13 00 00 [12:55:06]Write to MH i2c: E2 08 00 60 4E 80 13 00 00 00 00 00 00 2A [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 62 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 62 00 60 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:06]wFMCommunicate OK [12:55:06]SAM_PROTO_GetFieldsCounters done [12:55:06]requested_item shift.num is exist - process it [12:55:06]requested_item shift.opened is exist - process it [12:55:06]req_shift_opened [12:55:06]FM_GetShiftState [12:55:06]SAM_PROTO_GetShiftState [12:55:06]wFMCommunicate request_size=4 [12:55:06]MH_SAM_APDU [12:55:06]CAPDU: 80 13 01 00 [12:55:06]Write to MH i2c: E2 08 00 61 4E 80 13 01 00 00 00 00 00 2C [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 0E 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 0E 00 61 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E6 [12:55:06]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:55:06]wFMCommunicate OK [12:55:06]SAM_PROTO_GetShiftState done [12:55:06]FM_GetShiftState done [12:55:06]req_shift_opened done [12:55:06]requested_item shift.open_date is exist - process it [12:55:06]req_shift_open_date [12:55:06]req_shift_open_date done [12:55:06]produce_requested_data done [12:55:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31168,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:55:06]process_action_free close_receipt [12:55:06]json_value_free [12:55:06]json_value_free done [12:55:06]process_json_proto returns [12:55:06]Send response to host [12:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31168,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:55:06]free response buf [12:55:06]execute_script done [12:55:06]execute_script returns [12:55:06]free content buf [12:55:06]Sock 9.Close socket [12:55:06]Sock 9.Thread stoped [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:24]accept exits with 7 [12:55:24]New connection [12:55:24]New thread 3067043172 created [12:55:24]Thread 3066899812 joined [12:55:24]Waiting for new connection... [12:55:24] Sock 7.Parse request [12:55:24]Sock 7.Check first char [12:55:24]Sock 7.First char is OK [12:55:24]request: POST /json_proto HTTP/1.0 [12:55:24]Method: POST [12:55:24]URL: /json_proto [12:55:24]Method is POST - this is cgi request [12:55:24]url: /json_proto [12:55:24]query_string will be loaded in cgi processing [12:55:24]execute_cgi json_proto POST (null) [12:55:24]execute_cgi path=json_proto method=POST [12:55:24]POST find Content-Length [12:55:24]Host: 172.17.51.3:8080 [12:55:24]Content-Length: 677 [12:55:24]Content-Type: application/json [12:55:24] [12:55:24]POST finish read [12:55:24]Found Content-Length = 677 [12:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:24]execute_script... [12:55:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:24]POST & json_proto [12:55:24]process_json_proto [12:55:24]json parsed OK: [12:55:24]protocol is kg_v1.0 [12:55:24]action value=close_receipt [12:55:24]process_action close_receipt [12:55:24]cmd_close_receipt [12:55:24]MH_GetDate [12:55:24]Write to MH i2c: F0 00 00 62 4E 9F [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 09 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: F0 09 00 62 4E 00 43 F2 18 67 04 C1 95 66 1C [12:55:24]GetLastDocTimeStamp 1729688108 [12:55:24]current date 1729688131 [12:55:24]FM_GetShiftState [12:55:24]SAM_PROTO_GetShiftState [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 13 01 00 [12:55:24]Write to MH i2c: E2 08 00 63 4E 80 13 01 00 00 00 00 00 2E [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0E 00 63 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E8 [12:55:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_GetShiftState done [12:55:24]FM_GetShiftState done [12:55:24]opened in 1729643755 [12:55:24]opened+sec_in_day 1729730155 [12:55:24]quantity*price = 40006 [12:55:24]sum+1 = 40007 [12:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 113 23.10.2024 12:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31169 ФПД: 21221317234229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31169&fm=21221317234229&tin=02508201610067®Number=0000000000186857&sum=40000 [12:55:26]StoreToDocumentArchive [12:55:26]shift 117 fd 31169 [12:55:26]save to /storage/0117/doc_00031169 [12:55:26]save last doc name /storage/0117/doc_00031169 to /storage/kkm_last_doc_name [12:55:26]save OK [12:55:26]Clear old archive folders... [12:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:26]tlvbuf is 00D85F90 [12:55:26]SAM_PROTO_ClearQueue [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 09 00 00 [12:55:26]Write to MH i2c: E2 08 00 70 4E 80 09 00 00 00 00 00 00 30 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 70 4E 00 90 00 32 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_ClearQueue done [12:55:26]KKMCreateOFDPacket [12:55:26]OFDProtocolAddRootSTLVToBuf [12:55:26]FM_MakeSignedData [12:55:26]FM_MakeSignedData [12:55:26]SAM_PROTO_SignData [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 01 02 [12:55:26]Write to MH i2c: E2 08 00 71 4E 80 0D 01 02 00 00 00 00 38 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 71 4E 00 90 00 33 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]wFMCommunicate request_size=255 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 43 F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 79 00 00 35 04 06 00 13 [12:55:26]Write to MH i2c: E2 02 01 72 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 43 F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 79 00 00 35 04 06 00 13 00 00 7F [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 72 4E 00 90 00 34 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]wFMCommunicate request_size=10 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 02 02 05 4C F9 13 4E 35 [12:55:26]Write to MH i2c: E2 0D 00 73 4E 80 0D 02 02 05 00 4C F9 13 4E 35 00 00 20 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 03 00 73 4E 00 90 00 35 [12:55:26]RAPDU: 90 00 [12:55:26]wFMCommunicate OK [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 0D 03 02 [12:55:26]Write to MH i2c: E2 08 00 74 4E 80 0D 03 02 00 00 00 00 3D [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0B 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0B 00 74 4E 00 F9 10 46 0E 56 3D AC 33 90 00 0D [12:55:26]RAPDU: F9 10 46 0E 56 3D AC 33 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_SignData done [12:55:26]FM_MakeSignedData done [12:55:26]CreateOFDProtocolMessage [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 11 00 00 [12:55:26]Write to MH i2c: E2 08 00 75 4E 80 11 00 00 00 00 00 00 3D [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 75 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [12:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:26]wFMCommunicate OK [12:55:26]CreateOFDProtocolMessage done [12:55:26]OFDSenderStorePacket 31169 [12:55:26]StoreOFDPacket docnum=31169 [12:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 9E 07 01 F6 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 43 F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 79 00 00 35 04 06 00 13 4C F9 13 4E 35 F9 10 46 0E 56 3D AC 33 [12:55:26]CheckFolder [12:55:26]dirname=/storage/ofd_packets [12:55:26]CheckFolder done [12:55:26]ProducePacketName [12:55:26]name=ofd_packets/00031169 [12:55:26]NVStorageSaveData ofd_packets/00031169 [12:55:26]File name is /storage/ofd_packets/00031169 [12:55:26]Write 301 bytes [12:55:26]NVStorageSaveData done [12:55:26]OFDSenderStorePacket done [12:55:26]KKMCreateOFDPacket done [12:55:26]NVStorageSaveData kkm_last_timestamp [12:55:26]File name is /storage/kkm_last_timestamp [12:55:26]Write 4 bytes [12:55:26]NVStorageSaveData done [12:55:26]ExternCall_PrintAddStr [12:55:26]wPrintStart [12:55:26]Write to MH i2c: 01 00 00 76 4E C4 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 76 4E 00 00 00 00 00 FF 0F D9 [12:55:26]RasterBufferAndPrint [12:55:26]line Счет N : (1)343613 [12:55:26]line ИНН: 02508201610067 [12:55:26]line Контрольно-Кассовый Чек [12:55:26]line ПРОДАЖА [12:55:26]line ТРК (МРК, ГНК) : 63 [12:55:26]line Товар: 2710124130 [12:55:26]line Аи-92-К-2 [12:55:26]line 5.980 * 66.90 [12:55:26]line = 400.06 [12:55:26]line НДС 12% НСП 1% [12:55:26]line > о реализуемом товаре [12:55:26]line ОКРУГЛЕНИЕ: -0.06 [12:55:26]line ИТОГО: 400.00 [12:55:26]line Внесено: 400.00 [12:55:26]line СДАЧА: 0.00 [12:55:26]line НСП 1% : 3.54 [12:55:26]line НДС 12% : 42.48 [12:55:26]line Наличными: 400.00 [12:55:26]line Безнал.: 0.00 [12:55:26]line Место: АЗС № 78 "Партнер Нефть" [12:55:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:55:26]line СНО: Общий режим [12:55:26]line Чек 113 23.10.2024 12:55 [12:55:26]line Смена: 117 ФФД: 1.0 [12:55:26]line ЗНМ: 0300000137 [12:55:26]line РНМ: 0000000000186857 [12:55:26]line Версия ККМ: v1.0 [12:55:26]line ФМ: 0000000002094219 [12:55:26]line ФД: 31169 [12:55:26]line ФПД: 21221317234229 [12:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31169&fm=21221317234229&tin=02508201610067®Number=0000000000186857&sum=40000 [12:55:26]OFD Sender: Processing packet 31169 [packets to send 11, broken 10] [12:55:26]ProducePacketName [12:55:26]name=ofd_packets/00031169 [12:55:26]OFD Sender: To server: pG, [12:55:26]CommunicateWithHost lk.salyk.kg:30040 [12:55:26]ConnectInit lk.salyk.kg [12:55:26]written 0, free lines is 4095 [12:55:26]Connected sock=10 [12:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 9E 07 01 F6 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 43 F2 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 79 00 00 35 04 06 00 13 4C F9 13 4E 35 F9 10 46 0E 56 3D AC 33 [12:55:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B1 11 47 00 D1 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 32 30 39 34 32 31 39 10 04 04 00 C1 79 00 00 F4 03 04 00 BD 9C 18 67 B6 04 01 00 00 0F FA 43 D6 2C 60 53 46 [12:55:27]CommunicateWithHost err = 0 [12:55:27]CheckOFDResponse [12:55:27]1017 (14) - 77093643461234 [12:55:27]1041 (16) - 0000000002094219 [12:55:27]1040 (4) - 31169 [12:55:27]1012 (4) - 23.10.2024 06:50 [12:55:27]1206 (1) - 0 [12:55:27]OFD Sender: Remove packet 31169 [12:55:27]ProducePacketName [12:55:27]name=ofd_packets/00031169 [12:55:27]NVStorageDeleteData [12:55:27]Write to MH i2c: 01 00 00 A1 4E EF [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: 01 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: 01 07 00 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: 01 07 00 A1 4E 00 00 00 00 00 FA 0C FC [12:55:27]RasterBufferAndPrint [12:55:27]line [12:55:27]line [12:55:27]line [12:55:27]line [12:55:27]line [12:55:27]written 0, free lines is 3327 [12:55:27]MH_Cut [12:55:27]Write to MH i2c: D1 01 00 A8 4E 01 C8 [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 01 00 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: D1 01 00 A8 4E 00 C7 [12:55:27]Write to MH i2c: 01 00 00 A9 4E F7 [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]OFD Sender: No OFD packet to send [12:55:27]*** Cut start [12:55:27]*** Partial cut [12:55:27]*** CUTSNS_PIN = 1 [12:55:28]*** CUTSNS_PIN = 0 [12:55:28]*** Brake cut motor [12:55:28]Read from MH i2c: 01 [12:55:28]MH_I2C_Read... [12:55:28]*** Stop cut motor [12:55:28]*** Cut end [12:55:28]Read from MH i2c: 01 07 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 A9 4E 00 00 00 00 00 FF 0F 0C [12:55:28]process_action close_receipt done [12:55:28]requested_data is exist [12:55:28]produce_requested_data [12:55:28]requested_item fm.sn is exist - process it [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 11 00 00 [12:55:28]Write to MH i2c: E2 08 00 AA 4E 80 11 00 00 00 00 00 00 72 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 AA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [12:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:28]wFMCommunicate OK [12:55:28]requested_item fd.num is exist - process it [12:55:28]SAM_PROTO_GetFieldsCounters [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 13 00 00 [12:55:28]Write to MH i2c: E2 08 00 AB 4E 80 13 00 00 00 00 00 00 75 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 62 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 62 00 AB 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [12:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:28]wFMCommunicate OK [12:55:28]SAM_PROTO_GetFieldsCounters done [12:55:28]requested_item shift.num is exist - process it [12:55:28]requested_item shift.opened is exist - process it [12:55:28]req_shift_opened [12:55:28]FM_GetShiftState [12:55:28]SAM_PROTO_GetShiftState [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 13 01 00 [12:55:28]Write to MH i2c: E2 08 00 AC 4E 80 13 01 00 00 00 00 00 77 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0E 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0E 00 AC 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 31 [12:55:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:55:28]wFMCommunicate OK [12:55:28]SAM_PROTO_GetShiftState done [12:55:28]FM_GetShiftState done [12:55:28]req_shift_opened done [12:55:28]requested_item shift.open_date is exist - process it [12:55:28]req_shift_open_date [12:55:28]req_shift_open_date done [12:55:28]produce_requested_data done [12:55:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31169,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [12:55:28]process_action_free close_receipt [12:55:28]json_value_free [12:55:28]json_value_free done [12:55:28]process_json_proto returns [12:55:28]Send response to host [12:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31169,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [12:55:28]free response buf [12:55:28]execute_script done [12:55:28]execute_script returns [12:55:28]free content buf [12:55:28]Sock 7.Close socket [12:55:28]Sock 7.Thread stoped [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]accept exits with 9 [12:59:57]New connection [12:59:57]New thread 3066899812 created [12:59:57]Thread 3067043172 joined [12:59:57]Waiting for new connection... [12:59:57] Sock 9.Parse request [12:59:57]Sock 9.Check first char [12:59:57]Sock 9.First char is OK [12:59:57]request: POST /json_proto HTTP/1.0 [12:59:57]Method: POST [12:59:57]URL: /json_proto [12:59:57]Method is POST - this is cgi request [12:59:57]url: /json_proto [12:59:57]query_string will be loaded in cgi processing [12:59:57]execute_cgi json_proto POST (null) [12:59:57]execute_cgi path=json_proto method=POST [12:59:57]POST find Content-Length [12:59:57]Host: 172.17.51.3:8080 [12:59:57]Content-Length: 753 [12:59:57]Content-Type: application/json [12:59:57] [12:59:57]POST finish read [12:59:57]Found Content-Length = 753 [12:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 8.970, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:57]execute_script... [12:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 8.970, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:57]POST & json_proto [12:59:57]process_json_proto [12:59:57]json parsed OK: [12:59:57]protocol is kg_v1.0 [12:59:57]action value=close_receipt [12:59:57]process_action close_receipt [12:59:57]cmd_close_receipt [12:59:57]MH_GetDate [12:59:57]Write to MH i2c: F0 00 00 AD 4E EA [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: F0 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: F0 09 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: F0 09 00 AD 4E 00 53 F3 18 67 04 C1 95 66 78 [12:59:57]GetLastDocTimeStamp 1729688131 [12:59:57]current date 1729688403 [12:59:57]FM_GetShiftState [12:59:57]SAM_PROTO_GetShiftState [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 13 01 00 [12:59:57]Write to MH i2c: E2 08 00 AE 4E 80 13 01 00 00 00 00 00 79 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 AE 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 33 [12:59:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [12:59:57]wFMCommunicate OK [12:59:57]SAM_PROTO_GetShiftState done [12:59:57]FM_GetShiftState done [12:59:57]opened in 1729643755 [12:59:57]opened+sec_in_day 1729730155 [12:59:57]quantity*price = 0 [12:59:57]sum+1 = 1 [12:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 114 23.10.2024 13:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31170 ФПД: 108874555419286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130003&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31170&fm=108874555419286&tin=02508201610067®Number=0000000000186857&sum=0 [12:59:58]StoreToDocumentArchive [12:59:58]shift 117 fd 31170 [12:59:58]save to /storage/0117/doc_00031170 [12:59:58]save last doc name /storage/0117/doc_00031170 to /storage/kkm_last_doc_name [12:59:58]save OK [12:59:58]Clear old archive folders... [12:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:58]tlvbuf is 00D33350 [12:59:58]SAM_PROTO_ClearQueue [12:59:58]wFMCommunicate request_size=4 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 09 00 00 [12:59:58]Write to MH i2c: E2 08 00 BB 4E 80 09 00 00 00 00 00 00 7B [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 BB 4E 00 90 00 7D [12:59:58]RAPDU: 90 00 [12:59:58]wFMCommunicate OK [12:59:58]SAM_PROTO_ClearQueue done [12:59:58]KKMCreateOFDPacket [12:59:58]OFDProtocolAddRootSTLVToBuf [12:59:58]FM_MakeSignedData [12:59:58]FM_MakeSignedData [12:59:58]SAM_PROTO_SignData [12:59:58]wFMCommunicate request_size=4 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 0D 01 02 [12:59:58]Write to MH i2c: E2 08 00 BC 4E 80 0D 01 02 00 00 00 00 83 [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 BC 4E 00 90 00 7E [12:59:58]RAPDU: 90 00 [12:59:58]wFMCommunicate OK [12:59:58]wFMCommunicate request_size=255 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 53 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 79 00 00 35 04 06 00 63 [12:59:58]Write to MH i2c: E2 02 01 BD 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 53 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 79 00 00 35 04 06 00 63 00 00 06 [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 BD 4E 00 90 00 7F [12:59:58]RAPDU: 90 00 [12:59:58]wFMCommunicate OK [12:59:58]wFMCommunicate request_size=10 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 0D 02 02 05 05 55 33 6A 96 [12:59:58]Write to MH i2c: E2 0D 00 BE 4E 80 0D 02 02 05 00 05 55 33 6A 96 00 00 1D [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 03 00 BE 4E 00 90 00 80 [12:59:58]RAPDU: 90 00 [12:59:58]wFMCommunicate OK [12:59:58]wFMCommunicate request_size=4 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 0D 03 02 [12:59:58]Write to MH i2c: E2 08 00 BF 4E 80 0D 03 02 00 00 00 00 88 [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 0B 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 0B 00 BF 4E 00 58 0E 5B 6A 53 7E DD FE 90 00 60 [12:59:58]RAPDU: 58 0E 5B 6A 53 7E DD FE 90 00 [12:59:58]wFMCommunicate OK [12:59:58]SAM_PROTO_SignData done [12:59:58]FM_MakeSignedData done [12:59:58]CreateOFDProtocolMessage [12:59:58]wFMCommunicate request_size=4 [12:59:58]MH_SAM_APDU [12:59:58]CAPDU: 80 11 00 00 [12:59:58]Write to MH i2c: E2 08 00 C0 4E 80 11 00 00 00 00 00 00 88 [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:58]Read from MH i2c: E2 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 17 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: E2 17 00 C0 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [12:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:59:58]wFMCommunicate OK [12:59:58]CreateOFDProtocolMessage done [12:59:58]OFDSenderStorePacket 31170 [12:59:58]StoreOFDPacket docnum=31170 [12:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 86 07 01 B9 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 53 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 79 00 00 35 04 06 00 63 05 55 33 6A 96 58 0E 5B 6A 53 7E DD FE [12:59:58]CheckFolder [12:59:58]dirname=/storage/ofd_packets [12:59:58]CheckFolder done [12:59:58]ProducePacketName [12:59:58]name=ofd_packets/00031170 [12:59:58]NVStorageSaveData ofd_packets/00031170 [12:59:58]File name is /storage/ofd_packets/00031170 [12:59:58]Write 301 bytes [12:59:58]NVStorageSaveData done [12:59:58]OFDSenderStorePacket done [12:59:58]KKMCreateOFDPacket done [12:59:58]NVStorageSaveData kkm_last_timestamp [12:59:58]File name is /storage/kkm_last_timestamp [12:59:58]Write 4 bytes [12:59:58]NVStorageSaveData done [12:59:58]ExternCall_PrintAddStr [12:59:58]wPrintStart [12:59:58]Write to MH i2c: 01 00 00 C1 4E 0F [12:59:58]Write i2c OK [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: 01 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: 01 07 00 [12:59:58]MH_I2C_Read... [12:59:58]Read from MH i2c: 01 07 00 C1 4E 00 00 00 00 00 FF 0F 24 [12:59:58]RasterBufferAndPrint [12:59:58]line Счет N : (1)343614 [12:59:58]line ИНН: 02508201610067 [12:59:58]line Контрольно-Кассовый Чек [12:59:58]line ПРОДАЖА [12:59:58]line ТРК (МРК, ГНК) : 53 [12:59:58]line Товар: 2710124130 [12:59:58]line Аи-92-К-2 [12:59:58]line 8.970 * 0.00 [12:59:58]line = 0.00 [12:59:58]line НДС 12% НСП 1% [12:59:58]line > о реализуемом товаре [12:59:58]line ИТОГО: 0.00 [12:59:58]line НСП 1% : 0.00 [12:59:58]line НДС 12% : 0.00 [12:59:58]line Наличными: 0.00 [12:59:58]line Безнал.: 0.00 [12:59:58]line Место: АЗС № 78 "Партнер Нефть" [12:59:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:59:58]line СНО: Общий режим [12:59:58]line Чек 114 23.10.2024 13:00 [12:59:58]line Смена: 117 ФФД: 1.0 [12:59:58]line ЗНМ: 0300000137 [12:59:58]line РНМ: 0000000000186857 [12:59:58]line Версия ККМ: v1.0 [12:59:58]line Талоны: ТК ГПНА Online [12:59:58]line 30101093 [12:59:58]line ФМ: 0000000002094219 [12:59:58]line ФД: 31170 [12:59:58]line ФПД: 108874555419286 [12:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130003&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31170&fm=108874555419286&tin=02508201610067®Number=0000000000186857&sum=0 [12:59:59]OFD Sender: Processing packet 31170 [packets to send 11, broken 10] [12:59:59]ProducePacketName [12:59:59]name=ofd_packets/00031170 [12:59:59]OFD Sender: To server: pG, [12:59:59]CommunicateWithHost lk.salyk.kg:30040 [12:59:59]written 0, free lines is 4095 [12:59:59]ConnectInit lk.salyk.kg [12:59:59]Connected sock=10 [12:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 97 86 07 01 B9 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 53 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 79 00 00 35 04 06 00 63 05 55 33 6A 96 58 0E 5B 6A 53 7E DD FE [12:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2C 25 47 00 BB C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 79 00 00 F4 03 04 00 CD 9D 18 67 B6 04 01 00 00 E4 D0 1C 5C 37 C2 64 DB [12:59:59]CommunicateWithHost err = 0 [12:59:59]CheckOFDResponse [12:59:59]1017 (14) - 77093643461234 [12:59:59]1041 (16) - 0000000002094219 [12:59:59]1040 (4) - 31170 [12:59:59]1012 (4) - 23.10.2024 06:55 [12:59:59]1206 (1) - 0 [12:59:59]OFD Sender: Remove packet 31170 [12:59:59]ProducePacketName [12:59:59]name=ofd_packets/00031170 [12:59:59]NVStorageDeleteData [12:59:59]Write to MH i2c: 01 00 00 EB 4E 39 [12:59:59]Write i2c OK [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: 01 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: 01 07 00 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: 01 07 00 EB 4E 00 00 00 00 00 FF 0C 4B [12:59:59]RasterBufferAndPrint [12:59:59]line [12:59:59]line [12:59:59]line [12:59:59]line [12:59:59]line [12:59:59]written 0, free lines is 3336 [12:59:59]MH_Cut [12:59:59]Write to MH i2c: D1 01 00 F2 4E 01 12 [12:59:59]Write i2c OK [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: D1 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: D1 01 00 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: D1 01 00 F2 4E 00 11 [12:59:59]Write to MH i2c: 01 00 00 F3 4E 41 [12:59:59]Write i2c OK [12:59:59]MH_I2C_Read... [12:59:59]OFD Sender: No OFD packet to send [13:00:00]*** Cut start [13:00:00]*** Partial cut [13:00:00]*** CUTSNS_PIN = 1 [13:00:00]*** CUTSNS_PIN = 0 [13:00:00]*** Brake cut motor [13:00:00]Read from MH i2c: 01 [13:00:00]MH_I2C_Read... [13:00:00]*** Stop cut motor [13:00:00]*** Cut end [13:00:00]Read from MH i2c: 01 07 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: 01 07 00 F3 4E 00 00 00 00 00 FF 0F 56 [13:00:00]process_action close_receipt done [13:00:00]requested_data is exist [13:00:00]produce_requested_data [13:00:00]requested_item fm.sn is exist - process it [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 11 00 00 [13:00:00]Write to MH i2c: E2 08 00 F4 4E 80 11 00 00 00 00 00 00 BC [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 17 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 17 00 F4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [13:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:00:00]wFMCommunicate OK [13:00:00]requested_item fd.num is exist - process it [13:00:00]SAM_PROTO_GetFieldsCounters [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 13 00 00 [13:00:00]Write to MH i2c: E2 08 00 F5 4E 80 13 00 00 00 00 00 00 BF [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 62 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 62 00 F5 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:00]wFMCommunicate OK [13:00:00]SAM_PROTO_GetFieldsCounters done [13:00:00]requested_item shift.num is exist - process it [13:00:00]requested_item shift.opened is exist - process it [13:00:00]req_shift_opened [13:00:00]FM_GetShiftState [13:00:00]SAM_PROTO_GetShiftState [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 13 01 00 [13:00:00]Write to MH i2c: E2 08 00 F6 4E 80 13 01 00 00 00 00 00 C1 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:01]Read from MH i2c: E2 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 0E 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: E2 0E 00 F6 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7B [13:00:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:00:01]wFMCommunicate OK [13:00:01]SAM_PROTO_GetShiftState done [13:00:01]FM_GetShiftState done [13:00:01]req_shift_opened done [13:00:01]requested_item shift.open_date is exist - process it [13:00:01]req_shift_open_date [13:00:01]req_shift_open_date done [13:00:01]produce_requested_data done [13:00:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31170,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:00:01]process_action_free close_receipt [13:00:01]json_value_free [13:00:01]json_value_free done [13:00:01]process_json_proto returns [13:00:01]Send response to host [13:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31170,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:00:01]free response buf [13:00:01]execute_script done [13:00:01]execute_script returns [13:00:01]free content buf [13:00:01]Sock 9.Close socket [13:00:01]Sock 9.Thread stoped [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:11]accept exits with 7 [13:00:11]New connection [13:00:11]New thread 3067043172 created [13:00:11]Thread 3066899812 joined [13:00:11]Waiting for new connection... [13:00:11] Sock 7.Parse request [13:00:11]Sock 7.Check first char [13:00:11]Sock 7.First char is OK [13:00:11]request: POST /json_proto HTTP/1.0 [13:00:11]Method: POST [13:00:11]URL: /json_proto [13:00:11]Method is POST - this is cgi request [13:00:11]url: /json_proto [13:00:11]query_string will be loaded in cgi processing [13:00:11]execute_cgi json_proto POST (null) [13:00:11]execute_cgi path=json_proto method=POST [13:00:11]POST find Content-Length [13:00:11]Host: 172.17.51.3:8080 [13:00:11]Content-Length: 677 [13:00:11]Content-Type: application/json [13:00:11] [13:00:11]POST finish read [13:00:11]Found Content-Length = 677 [13:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:11]execute_script... [13:00:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:11]POST & json_proto [13:00:11]process_json_proto [13:00:11]json parsed OK: [13:00:11]protocol is kg_v1.0 [13:00:11]action value=close_receipt [13:00:11]process_action close_receipt [13:00:11]cmd_close_receipt [13:00:11]MH_GetDate [13:00:11]Write to MH i2c: F0 00 00 F7 4E 34 [13:00:11]Write i2c OK [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: F0 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: F0 09 00 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: F0 09 00 F7 4E 00 62 F3 18 67 04 C1 95 66 D1 [13:00:11]GetLastDocTimeStamp 1729688403 [13:00:11]current date 1729688418 [13:00:11]FM_GetShiftState [13:00:11]SAM_PROTO_GetShiftState [13:00:11]wFMCommunicate request_size=4 [13:00:11]MH_SAM_APDU [13:00:11]CAPDU: 80 13 01 00 [13:00:11]Write to MH i2c: E2 08 00 F8 4E 80 13 01 00 00 00 00 00 C3 [13:00:11]Write i2c OK [13:00:11]MH_I2C_Read... [13:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:11]Read from MH i2c: E2 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: E2 0E 00 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: E2 0E 00 F8 4E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7D [13:00:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:00:11]wFMCommunicate OK [13:00:11]SAM_PROTO_GetShiftState done [13:00:11]FM_GetShiftState done [13:00:11]opened in 1729643755 [13:00:11]opened+sec_in_day 1729730155 [13:00:11]quantity*price = 70044 [13:00:11]sum+1 = 70046 [13:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 115 23.10.2024 13:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31171 ФПД: 203957958708817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31171&fm=203957958708817&tin=02508201610067®Number=0000000000186857&sum=70000 [13:00:13]StoreToDocumentArchive [13:00:13]shift 117 fd 31171 [13:00:13]save to /storage/0117/doc_00031171 [13:00:13]save last doc name /storage/0117/doc_00031171 to /storage/kkm_last_doc_name [13:00:13]save OK [13:00:13]Clear old archive folders... [13:00:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:13]tlvbuf is 00CD0230 [13:00:13]SAM_PROTO_ClearQueue [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 09 00 00 [13:00:13]Write to MH i2c: E2 08 00 05 4F 80 09 00 00 00 00 00 00 C6 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 05 4F 00 90 00 C8 [13:00:13]RAPDU: 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_ClearQueue done [13:00:13]KKMCreateOFDPacket [13:00:13]OFDProtocolAddRootSTLVToBuf [13:00:13]FM_MakeSignedData [13:00:13]FM_MakeSignedData [13:00:13]SAM_PROTO_SignData [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 0D 01 02 [13:00:13]Write to MH i2c: E2 08 00 06 4F 80 0D 01 02 00 00 00 00 CE [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 06 4F 00 90 00 C9 [13:00:13]RAPDU: 90 00 [13:00:13]wFMCommunicate OK [13:00:13]wFMCommunicate request_size=255 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 62 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 79 00 00 35 04 06 00 B9 [13:00:13]Write to MH i2c: E2 02 01 07 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 62 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 79 00 00 35 04 06 00 B9 00 00 F8 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 07 4F 00 90 00 CA [13:00:13]RAPDU: 90 00 [13:00:13]wFMCommunicate OK [13:00:13]wFMCommunicate request_size=10 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 0D 02 02 05 7F A9 AD 8E 51 [13:00:13]Write to MH i2c: E2 0D 00 08 4F 80 0D 02 02 05 00 7F A9 AD 8E 51 00 00 8F [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 03 00 08 4F 00 90 00 CB [13:00:13]RAPDU: 90 00 [13:00:13]wFMCommunicate OK [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 0D 03 02 [13:00:13]Write to MH i2c: E2 08 00 09 4F 80 0D 03 02 00 00 00 00 D3 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0B 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0B 00 09 4F 00 CB A7 BF 36 59 34 2D A9 90 00 9E [13:00:13]RAPDU: CB A7 BF 36 59 34 2D A9 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_SignData done [13:00:13]FM_MakeSignedData done [13:00:13]CreateOFDProtocolMessage [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 11 00 00 [13:00:13]Write to MH i2c: E2 08 00 0A 4F 80 11 00 00 00 00 00 00 D3 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 0A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [13:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:00:13]wFMCommunicate OK [13:00:13]CreateOFDProtocolMessage done [13:00:13]OFDSenderStorePacket 31171 [13:00:13]StoreOFDPacket docnum=31171 [13:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 52 07 01 12 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 62 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 79 00 00 35 04 06 00 B9 7F A9 AD 8E 51 CB A7 BF 36 59 34 2D A9 [13:00:13]CheckFolder [13:00:13]dirname=/storage/ofd_packets [13:00:13]CheckFolder done [13:00:13]ProducePacketName [13:00:13]name=ofd_packets/00031171 [13:00:13]NVStorageSaveData ofd_packets/00031171 [13:00:13]File name is /storage/ofd_packets/00031171 [13:00:13]Write 301 bytes [13:00:13]NVStorageSaveData done [13:00:13]OFDSenderStorePacket done [13:00:13]KKMCreateOFDPacket done [13:00:13]NVStorageSaveData kkm_last_timestamp [13:00:13]File name is /storage/kkm_last_timestamp [13:00:13]Write 4 bytes [13:00:13]NVStorageSaveData done [13:00:13]ExternCall_PrintAddStr [13:00:13]wPrintStart [13:00:13]Write to MH i2c: 01 00 00 0B 4F 5A [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 07 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 07 00 0B 4F 00 00 00 00 00 FF 0F 6F [13:00:13]RasterBufferAndPrint [13:00:13]line Счет N : (1)343615 [13:00:13]line ИНН: 02508201610067 [13:00:13]line Контрольно-Кассовый Чек [13:00:13]line ПРОДАЖА [13:00:13]line ТРК (МРК, ГНК) : 62 [13:00:13]line Товар: 2710124500 [13:00:13]line Аи-95-К-3 [13:00:13]line 9.440 * 74.20 [13:00:13]line = 700.45 [13:00:13]line НДС 12% НСП 1% [13:00:13]line > о реализуемом товаре [13:00:13]line ОКРУГЛЕНИЕ: -0.45 [13:00:13]line ИТОГО: 700.00 [13:00:13]line Внесено: 700.00 [13:00:13]line СДАЧА: 0.00 [13:00:13]line НСП 1% : 6.20 [13:00:13]line НДС 12% : 74.38 [13:00:13]line Наличными: 700.00 [13:00:13]line Безнал.: 0.00 [13:00:13]line Место: АЗС № 78 "Партнер Нефть" [13:00:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:00:13]line СНО: Общий режим [13:00:13]line Чек 115 23.10.2024 13:00 [13:00:13]line Смена: 117 ФФД: 1.0 [13:00:13]line ЗНМ: 0300000137 [13:00:13]line РНМ: 0000000000186857 [13:00:13]line Версия ККМ: v1.0 [13:00:13]line ФМ: 0000000002094219 [13:00:13]line ФД: 31171 [13:00:13]line ФПД: 203957958708817 [13:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31171&fm=203957958708817&tin=02508201610067®Number=0000000000186857&sum=70000 [13:00:13]OFD Sender: Processing packet 31171 [packets to send 11, broken 10] [13:00:13]ProducePacketName [13:00:13]name=ofd_packets/00031171 [13:00:13]OFD Sender: To server: pG, [13:00:13]CommunicateWithHost lk.salyk.kg:30040 [13:00:13]ConnectInit lk.salyk.kg [13:00:13]written 0, free lines is 4095 [13:00:14]Connected sock=10 [13:00:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 52 07 01 12 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 62 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 79 00 00 35 04 06 00 B9 7F A9 AD 8E 51 CB A7 BF 36 59 34 2D A9 [13:00:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9A 17 47 00 2A 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 79 00 00 F4 03 04 00 DC 9D 18 67 B6 04 01 00 00 93 1A 96 3F 0D E1 A8 97 [13:00:14]CommunicateWithHost err = 0 [13:00:14]CheckOFDResponse [13:00:14]1017 (14) - 77093643461234 [13:00:14]1041 (16) - 0000000002094219 [13:00:14]1040 (4) - 31171 [13:00:14]1012 (4) - 23.10.2024 06:55 [13:00:14]1206 (1) - 0 [13:00:14]OFD Sender: Remove packet 31171 [13:00:14]ProducePacketName [13:00:14]name=ofd_packets/00031171 [13:00:14]NVStorageDeleteData [13:00:14]Write to MH i2c: 01 00 00 36 4F 85 [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: 01 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: 01 07 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: 01 07 00 36 4F 00 00 00 00 00 F3 0C 8B [13:00:14]RasterBufferAndPrint [13:00:14]line [13:00:14]line [13:00:14]line [13:00:14]line [13:00:14]line [13:00:14]written 0, free lines is 3324 [13:00:14]MH_Cut [13:00:14]Write to MH i2c: D1 01 00 3D 4F 01 5E [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: D1 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: D1 01 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: D1 01 00 3D 4F 00 5D [13:00:14]Write to MH i2c: 01 00 00 3E 4F 8D [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]OFD Sender: No OFD packet to send [13:00:15]*** Cut start [13:00:15]*** Partial cut [13:00:15]*** CUTSNS_PIN = 1 [13:00:15]*** CUTSNS_PIN = 0 [13:00:15]*** Brake cut motor [13:00:15]Read from MH i2c: 01 [13:00:15]MH_I2C_Read... [13:00:15]*** Stop cut motor [13:00:15]*** Cut end [13:00:15]Read from MH i2c: 01 07 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 3E 4F 00 00 00 00 00 FF 0F A2 [13:00:15]process_action close_receipt done [13:00:15]requested_data is exist [13:00:15]produce_requested_data [13:00:15]requested_item fm.sn is exist - process it [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 11 00 00 [13:00:15]Write to MH i2c: E2 08 00 3F 4F 80 11 00 00 00 00 00 00 08 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 3F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [13:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:00:15]wFMCommunicate OK [13:00:15]requested_item fd.num is exist - process it [13:00:15]SAM_PROTO_GetFieldsCounters [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 13 00 00 [13:00:15]Write to MH i2c: E2 08 00 40 4F 80 13 00 00 00 00 00 00 0B [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 62 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 62 00 40 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_GetFieldsCounters done [13:00:15]requested_item shift.num is exist - process it [13:00:15]requested_item shift.opened is exist - process it [13:00:15]req_shift_opened [13:00:15]FM_GetShiftState [13:00:15]SAM_PROTO_GetShiftState [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 13 01 00 [13:00:15]Write to MH i2c: E2 08 00 41 4F 80 13 01 00 00 00 00 00 0D [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0E 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0E 00 41 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C7 [13:00:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_GetShiftState done [13:00:15]FM_GetShiftState done [13:00:15]req_shift_opened done [13:00:15]requested_item shift.open_date is exist - process it [13:00:15]req_shift_open_date [13:00:15]req_shift_open_date done [13:00:15]produce_requested_data done [13:00:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31171,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:00:15]process_action_free close_receipt [13:00:15]json_value_free [13:00:15]json_value_free done [13:00:15]process_json_proto returns [13:00:15]Send response to host [13:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31171,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:00:15]free response buf [13:00:15]execute_script done [13:00:15]execute_script returns [13:00:15]free content buf [13:00:15]Sock 7.Close socket [13:00:15]Sock 7.Thread stoped [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:33]accept exits with 9 [13:01:33]New connection [13:01:33]New thread 3066899812 created [13:01:33]Thread 3067043172 joined [13:01:33]Waiting for new connection... [13:01:33] Sock 9.Parse request [13:01:33]Sock 9.Check first char [13:01:33]Sock 9.First char is OK [13:01:33]request: POST /json_proto HTTP/1.0 [13:01:33]Method: POST [13:01:33]URL: /json_proto [13:01:33]Method is POST - this is cgi request [13:01:33]url: /json_proto [13:01:33]query_string will be loaded in cgi processing [13:01:33]execute_cgi json_proto POST (null) [13:01:33]execute_cgi path=json_proto method=POST [13:01:33]POST find Content-Length [13:01:33]Host: 172.17.51.3:8080 [13:01:33]Content-Length: 753 [13:01:33]Content-Type: application/json [13:01:33] [13:01:33]POST finish read [13:01:33]Found Content-Length = 753 [13:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:33]execute_script... [13:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:33]POST & json_proto [13:01:33]process_json_proto [13:01:33]json parsed OK: [13:01:33]protocol is kg_v1.0 [13:01:33]action value=close_receipt [13:01:33]process_action close_receipt [13:01:33]cmd_close_receipt [13:01:33]MH_GetDate [13:01:33]Write to MH i2c: F0 00 00 42 4F 80 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 09 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: F0 09 00 42 4F 00 B3 F3 18 67 04 C1 95 66 6E [13:01:33]GetLastDocTimeStamp 1729688418 [13:01:33]current date 1729688499 [13:01:33]FM_GetShiftState [13:01:33]SAM_PROTO_GetShiftState [13:01:33]wFMCommunicate request_size=4 [13:01:33]MH_SAM_APDU [13:01:33]CAPDU: 80 13 01 00 [13:01:33]Write to MH i2c: E2 08 00 43 4F 80 13 01 00 00 00 00 00 0F [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0E 00 43 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C9 [13:01:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:01:33]wFMCommunicate OK [13:01:33]SAM_PROTO_GetShiftState done [13:01:33]FM_GetShiftState done [13:01:33]opened in 1729643755 [13:01:33]opened+sec_in_day 1729730155 [13:01:33]quantity*price = 0 [13:01:33]sum+1 = 1 [13:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 116 23.10.2024 13:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31172 ФПД: 128243160202959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130139&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31172&fm=128243160202959&tin=02508201610067®Number=0000000000186857&sum=0 [13:01:34]StoreToDocumentArchive [13:01:34]shift 117 fd 31172 [13:01:34]save to /storage/0117/doc_00031172 [13:01:34]save last doc name /storage/0117/doc_00031172 to /storage/kkm_last_doc_name [13:01:34]save OK [13:01:34]Clear old archive folders... [13:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:34]tlvbuf is 00E84DF0 [13:01:34]SAM_PROTO_ClearQueue [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 09 00 00 [13:01:34]Write to MH i2c: E2 08 00 50 4F 80 09 00 00 00 00 00 00 11 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 50 4F 00 90 00 13 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]SAM_PROTO_ClearQueue done [13:01:34]KKMCreateOFDPacket [13:01:34]OFDProtocolAddRootSTLVToBuf [13:01:34]FM_MakeSignedData [13:01:34]FM_MakeSignedData [13:01:34]SAM_PROTO_SignData [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 01 02 [13:01:34]Write to MH i2c: E2 08 00 51 4F 80 0D 01 02 00 00 00 00 19 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 03 00 51 4F 00 90 00 14 [13:01:34]RAPDU: 90 00 [13:01:34]wFMCommunicate OK [13:01:34]wFMCommunicate request_size=255 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B3 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 79 00 00 35 04 06 00 74 [13:01:34]Write to MH i2c: E2 02 01 52 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B3 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 79 00 00 35 04 06 00 74 00 00 39 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]OFD Sender: No OFD packet to send [13:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 03 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 03 00 52 4F 00 90 00 15 [13:01:35]RAPDU: 90 00 [13:01:35]wFMCommunicate OK [13:01:35]wFMCommunicate request_size=10 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 0D 02 02 05 A2 F0 02 3E CF [13:01:35]Write to MH i2c: E2 0D 00 53 4F 80 0D 02 02 05 00 A2 F0 02 3E CF 00 00 C7 [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 03 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 03 00 53 4F 00 90 00 16 [13:01:35]RAPDU: 90 00 [13:01:35]wFMCommunicate OK [13:01:35]wFMCommunicate request_size=4 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 0D 03 02 [13:01:35]Write to MH i2c: E2 08 00 54 4F 80 0D 03 02 00 00 00 00 1E [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0B 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0B 00 54 4F 00 C9 EB 33 59 CB 6B 0A 2B 90 00 CA [13:01:35]RAPDU: C9 EB 33 59 CB 6B 0A 2B 90 00 [13:01:35]wFMCommunicate OK [13:01:35]SAM_PROTO_SignData done [13:01:35]FM_MakeSignedData done [13:01:35]CreateOFDProtocolMessage [13:01:35]wFMCommunicate request_size=4 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 11 00 00 [13:01:35]Write to MH i2c: E2 08 00 55 4F 80 11 00 00 00 00 00 00 1E [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 17 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 17 00 55 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [13:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:01:35]wFMCommunicate OK [13:01:35]CreateOFDProtocolMessage done [13:01:35]OFDSenderStorePacket 31172 [13:01:35]StoreOFDPacket docnum=31172 [13:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BD 22 07 01 14 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B3 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 79 00 00 35 04 06 00 74 A2 F0 02 3E CF C9 EB 33 59 CB 6B 0A 2B [13:01:35]CheckFolder [13:01:35]dirname=/storage/ofd_packets [13:01:35]CheckFolder done [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00031172 [13:01:35]NVStorageSaveData ofd_packets/00031172 [13:01:35]File name is /storage/ofd_packets/00031172 [13:01:35]Write 301 bytes [13:01:35]NVStorageSaveData done [13:01:35]OFDSenderStorePacket done [13:01:35]KKMCreateOFDPacket done [13:01:35]NVStorageSaveData kkm_last_timestamp [13:01:35]File name is /storage/kkm_last_timestamp [13:01:35]Write 4 bytes [13:01:35]NVStorageSaveData done [13:01:35]ExternCall_PrintAddStr [13:01:35]wPrintStart [13:01:35]Write to MH i2c: 01 00 00 56 4F A5 [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: 01 07 00 56 4F 00 00 00 00 00 FF 0F BA [13:01:35]RasterBufferAndPrint [13:01:35]line Счет N : (1)343616 [13:01:35]line ИНН: 02508201610067 [13:01:35]line Контрольно-Кассовый Чек [13:01:35]line ПРОДАЖА [13:01:35]line ТРК (МРК, ГНК) : 63 [13:01:35]line Товар: 2710124130 [13:01:35]line Аи-92-К-2 [13:01:35]line 7.480 * 0.00 [13:01:35]line = 0.00 [13:01:35]line НДС 12% НСП 1% [13:01:35]line > о реализуемом товаре [13:01:35]line ИТОГО: 0.00 [13:01:35]line НСП 1% : 0.00 [13:01:35]line НДС 12% : 0.00 [13:01:35]line Наличными: 0.00 [13:01:35]line Безнал.: 0.00 [13:01:35]line Место: АЗС № 78 "Партнер Нефть" [13:01:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:01:35]line СНО: Общий режим [13:01:35]line Чек 116 23.10.2024 13:01 [13:01:35]line Смена: 117 ФФД: 1.0 [13:01:35]line ЗНМ: 0300000137 [13:01:35]line РНМ: 0000000000186857 [13:01:35]line Версия ККМ: v1.0 [13:01:35]line Талоны: ТК ГПНА Online [13:01:35]line 30101093 [13:01:35]line ФМ: 0000000002094219 [13:01:35]line ФД: 31172 [13:01:35]line ФПД: 128243160202959 [13:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130139&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31172&fm=128243160202959&tin=02508201610067®Number=0000000000186857&sum=0 [13:01:35]OFD Sender: Processing packet 31172 [packets to send 11, broken 10] [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00031172 [13:01:35]OFD Sender: To server: pG, [13:01:35]CommunicateWithHost lk.salyk.kg:30040 [13:01:35]ConnectInit lk.salyk.kg [13:01:35]written 0, free lines is 4095 [13:01:35]Connected sock=10 [13:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BD 22 07 01 14 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B3 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 79 00 00 35 04 06 00 74 A2 F0 02 3E CF C9 EB 33 59 CB 6B 0A 2B [13:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 77 24 47 00 92 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 79 00 00 F4 03 04 00 2E 9E 18 67 B6 04 01 00 00 58 60 7E 30 B8 8C B9 9A [13:01:35]CommunicateWithHost err = 0 [13:01:35]CheckOFDResponse [13:01:35]1017 (14) - 77093643461234 [13:01:35]1041 (16) - 0000000002094219 [13:01:35]1040 (4) - 31172 [13:01:35]1012 (4) - 23.10.2024 06:56 [13:01:35]1206 (1) - 0 [13:01:35]OFD Sender: Remove packet 31172 [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00031172 [13:01:35]NVStorageDeleteData [13:01:36]Write to MH i2c: 01 00 00 80 4F CF [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: 01 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: 01 07 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: 01 07 00 80 4F 00 00 00 00 00 06 0D E9 [13:01:36]RasterBufferAndPrint [13:01:36]line [13:01:36]line [13:01:36]line [13:01:36]line [13:01:36]line [13:01:36]written 0, free lines is 3344 [13:01:36]MH_Cut [13:01:36]Write to MH i2c: D1 01 00 87 4F 01 A8 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: D1 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: D1 01 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: D1 01 00 87 4F 00 A7 [13:01:36]Write to MH i2c: 01 00 00 88 4F D7 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]OFD Sender: No OFD packet to send [13:01:36]*** Cut start [13:01:36]*** Partial cut [13:01:36]*** CUTSNS_PIN = 1 [13:01:36]*** CUTSNS_PIN = 0 [13:01:36]*** Brake cut motor [13:01:37]*** Stop cut motor [13:01:37]*** Cut end [13:01:37]Read from MH i2c: 01 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 88 4F 00 00 00 00 00 FF 0F EC [13:01:37]process_action close_receipt done [13:01:37]requested_data is exist [13:01:37]produce_requested_data [13:01:37]requested_item fm.sn is exist - process it [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 11 00 00 [13:01:37]Write to MH i2c: E2 08 00 89 4F 80 11 00 00 00 00 00 00 52 [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 17 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 17 00 89 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [13:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:01:37]wFMCommunicate OK [13:01:37]requested_item fd.num is exist - process it [13:01:37]SAM_PROTO_GetFieldsCounters [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 13 00 00 [13:01:37]Write to MH i2c: E2 08 00 8A 4F 80 13 00 00 00 00 00 00 55 [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 62 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 62 00 8A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [13:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:37]wFMCommunicate OK [13:01:37]SAM_PROTO_GetFieldsCounters done [13:01:37]requested_item shift.num is exist - process it [13:01:37]requested_item shift.opened is exist - process it [13:01:37]req_shift_opened [13:01:37]FM_GetShiftState [13:01:37]SAM_PROTO_GetShiftState [13:01:37]wFMCommunicate request_size=4 [13:01:37]MH_SAM_APDU [13:01:37]CAPDU: 80 13 01 00 [13:01:37]Write to MH i2c: E2 08 00 8B 4F 80 13 01 00 00 00 00 00 57 [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:37]Read from MH i2c: E2 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 0E 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: E2 0E 00 8B 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 11 [13:01:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:01:37]wFMCommunicate OK [13:01:37]SAM_PROTO_GetShiftState done [13:01:37]FM_GetShiftState done [13:01:37]req_shift_opened done [13:01:37]requested_item shift.open_date is exist - process it [13:01:37]req_shift_open_date [13:01:37]req_shift_open_date done [13:01:37]produce_requested_data done [13:01:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31172,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:01:37]process_action_free close_receipt [13:01:37]json_value_free [13:01:37]json_value_free done [13:01:37]process_json_proto returns [13:01:37]Send response to host [13:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31172,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:01:37]free response buf [13:01:37]execute_script done [13:01:37]execute_script returns [13:01:37]free content buf [13:01:37]Sock 9.Close socket [13:01:37]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [13:02:10]accept exits with 7 [13:02:10]New connection [13:02:10]New thread 3067043172 created [13:02:10]Thread 3066899812 joined [13:02:10]Waiting for new connection... [13:02:10] Sock 7.Parse request [13:02:10]Sock 7.Check first char [13:02:10]Sock 7.First char is OK [13:02:10]request: POST /json_proto HTTP/1.0 [13:02:10]Method: POST [13:02:10]URL: /json_proto [13:02:10]Method is POST - this is cgi request [13:02:10]url: /json_proto [13:02:10]query_string will be loaded in cgi processing [13:02:10]execute_cgi json_proto POST (null) [13:02:10]execute_cgi path=json_proto method=POST [13:02:10]POST find Content-Length [13:02:10]Host: 172.17.51.3:8080 [13:02:10]Content-Length: 753 [13:02:10]Content-Type: application/json [13:02:10] [13:02:10]POST finish read [13:02:10]Found Content-Length = 753 [13:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:10]execute_script... [13:02:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:10]POST & json_proto [13:02:10]process_json_proto [13:02:10]json parsed OK: [13:02:10]protocol is kg_v1.0 [13:02:10]action value=close_receipt [13:02:10]process_action close_receipt [13:02:10]cmd_close_receipt [13:02:10]MH_GetDate [13:02:10]Write to MH i2c: F0 00 00 8C 4F CA [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 09 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 09 00 8C 4F 00 D9 F3 18 67 04 C1 95 66 DE [13:02:10]GetLastDocTimeStamp 1729688499 [13:02:10]current date 1729688537 [13:02:10]FM_GetShiftState [13:02:10]SAM_PROTO_GetShiftState [13:02:10]wFMCommunicate request_size=4 [13:02:10]MH_SAM_APDU [13:02:10]CAPDU: 80 13 01 00 [13:02:10]Write to MH i2c: E2 08 00 8D 4F 80 13 01 00 00 00 00 00 59 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:11]Read from MH i2c: E2 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: E2 0E 00 [13:02:11]MH_I2C_Read... [13:02:11]Read from MH i2c: E2 0E 00 8D 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 13 [13:02:11]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:02:11]wFMCommunicate OK [13:02:11]SAM_PROTO_GetShiftState done [13:02:11]FM_GetShiftState done [13:02:11]opened in 1729643755 [13:02:11]opened+sec_in_day 1729730155 [13:02:11]quantity*price = 0 [13:02:11]sum+1 = 1 [13:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 117 23.10.2024 13:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31173 ФПД: 119695510218543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31173&fm=119695510218543&tin=02508201610067®Number=0000000000186857&sum=0 [13:02:12]StoreToDocumentArchive [13:02:12]shift 117 fd 31173 [13:02:12]save to /storage/0117/doc_00031173 [13:02:12]save last doc name /storage/0117/doc_00031173 to /storage/kkm_last_doc_name [13:02:12]save OK [13:02:12]Clear old archive folders... [13:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:12]tlvbuf is 00E84F30 [13:02:12]SAM_PROTO_ClearQueue [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 09 00 00 [13:02:12]Write to MH i2c: E2 08 00 9A 4F 80 09 00 00 00 00 00 00 5B [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 9A 4F 00 90 00 5D [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_ClearQueue done [13:02:12]KKMCreateOFDPacket [13:02:12]OFDProtocolAddRootSTLVToBuf [13:02:12]FM_MakeSignedData [13:02:12]FM_MakeSignedData [13:02:12]SAM_PROTO_SignData [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 01 02 [13:02:12]Write to MH i2c: E2 08 00 9B 4F 80 0D 01 02 00 00 00 00 63 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 9B 4F 00 90 00 5E [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=255 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 79 00 00 35 04 06 00 6C [13:02:12]Write to MH i2c: E2 02 01 9C 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 79 00 00 35 04 06 00 6C 00 00 A3 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 9C 4F 00 90 00 5F [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=10 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 05 DC C8 5E 27 2F [13:02:12]Write to MH i2c: E2 0D 00 9D 4F 80 0D 02 02 05 00 DC C8 5E 27 2F 00 00 C8 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 9D 4F 00 90 00 60 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 03 02 [13:02:12]Write to MH i2c: E2 08 00 9E 4F 80 0D 03 02 00 00 00 00 68 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 9E 4F 00 32 86 84 D6 B3 67 89 6F 90 00 8D [13:02:12]RAPDU: 32 86 84 D6 B3 67 89 6F 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_SignData done [13:02:12]FM_MakeSignedData done [13:02:12]CreateOFDProtocolMessage [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 11 00 00 [13:02:12]Write to MH i2c: E2 08 00 9F 4F 80 11 00 00 00 00 00 00 68 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 17 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 17 00 9F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [13:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:02:12]wFMCommunicate OK [13:02:12]CreateOFDProtocolMessage done [13:02:12]OFDSenderStorePacket 31173 [13:02:12]StoreOFDPacket docnum=31173 [13:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 77 07 01 9B B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 79 00 00 35 04 06 00 6C DC C8 5E 27 2F 32 86 84 D6 B3 67 89 6F [13:02:12]CheckFolder [13:02:12]dirname=/storage/ofd_packets [13:02:12]CheckFolder done [13:02:12]ProducePacketName [13:02:12]name=ofd_packets/00031173 [13:02:12]NVStorageSaveData ofd_packets/00031173 [13:02:12]File name is /storage/ofd_packets/00031173 [13:02:12]Write 301 bytes [13:02:12]NVStorageSaveData done [13:02:12]OFDSenderStorePacket done [13:02:12]KKMCreateOFDPacket done [13:02:12]NVStorageSaveData kkm_last_timestamp [13:02:12]File name is /storage/kkm_last_timestamp [13:02:12]Write 4 bytes [13:02:12]NVStorageSaveData done [13:02:12]ExternCall_PrintAddStr [13:02:12]wPrintStart [13:02:12]Write to MH i2c: 01 00 00 A0 4F EF [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 A0 4F 00 00 00 00 00 FF 0F 04 [13:02:12]RasterBufferAndPrint [13:02:12]line Счет N : (1)343617 [13:02:12]line ИНН: 02508201610067 [13:02:12]line Контрольно-Кассовый Чек [13:02:12]line ПРОДАЖА [13:02:12]line ТРК (МРК, ГНК) : 43 [13:02:12]line Товар: 2710124130 [13:02:12]line Аи-92-К-2 [13:02:12]line 7.480 * 0.00 [13:02:12]line = 0.00 [13:02:12]line НДС 12% НСП 1% [13:02:12]line > о реализуемом товаре [13:02:12]line ИТОГО: 0.00 [13:02:12]line НСП 1% : 0.00 [13:02:12]line НДС 12% : 0.00 [13:02:12]line Наличными: 0.00 [13:02:12]line Безнал.: 0.00 [13:02:12]line Место: АЗС № 78 "Партнер Нефть" [13:02:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:02:12]line СНО: Общий режим [13:02:12]line Чек 117 23.10.2024 13:02 [13:02:12]line Смена: 117 ФФД: 1.0 [13:02:12]line ЗНМ: 0300000137 [13:02:12]line РНМ: 0000000000186857 [13:02:12]line Версия ККМ: v1.0 [13:02:12]line Талоны: ТК ГПНА Online [13:02:12]line 30101093 [13:02:12]line ФМ: 0000000002094219 [13:02:12]line ФД: 31173 [13:02:12]line ФПД: 119695510218543 [13:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31173&fm=119695510218543&tin=02508201610067®Number=0000000000186857&sum=0 [13:02:13]OFD Sender: Processing packet 31173 [packets to send 11, broken 10] [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00031173 [13:02:13]OFD Sender: To server: pG, [13:02:13]CommunicateWithHost lk.salyk.kg:30040 [13:02:13]ConnectInit lk.salyk.kg [13:02:13]written 0, free lines is 4095 [13:02:13]Connected sock=10 [13:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 77 07 01 9B B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 F3 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 79 00 00 35 04 06 00 6C DC C8 5E 27 2F 32 86 84 D6 B3 67 89 6F [13:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5D EA 47 00 EE 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 79 00 00 F4 03 04 00 53 9E 18 67 B6 04 01 00 00 4D 99 C9 85 33 54 D5 E7 [13:02:13]CommunicateWithHost err = 0 [13:02:13]CheckOFDResponse [13:02:13]1017 (14) - 77093643461234 [13:02:13]1041 (16) - 0000000002094219 [13:02:13]1040 (4) - 31173 [13:02:13]1012 (4) - 23.10.2024 06:57 [13:02:13]1206 (1) - 0 [13:02:13]OFD Sender: Remove packet 31173 [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00031173 [13:02:13]NVStorageDeleteData [13:02:13]Write to MH i2c: 01 00 00 CA 4F 19 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 CA 4F 00 00 00 00 00 0E 0D 3B [13:02:13]RasterBufferAndPrint [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]written 0, free lines is 3350 [13:02:13]MH_Cut [13:02:13]Write to MH i2c: D1 01 00 D1 4F 01 F2 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 D1 4F 00 F1 [13:02:13]Write to MH i2c: 01 00 00 D2 4F 21 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]OFD Sender: No OFD packet to send [13:02:14]*** Cut start [13:02:14]*** Partial cut [13:02:14]*** CUTSNS_PIN = 1 [13:02:14]*** CUTSNS_PIN = 0 [13:02:14]*** Brake cut motor [13:02:14]Read from MH i2c: 01 [13:02:14]MH_I2C_Read... [13:02:14]*** Stop cut motor [13:02:14]Read from MH i2c: 01 07 00 [13:02:14]MH_I2C_Read... [13:02:14]*** Cut end [13:02:14]Read from MH i2c: 01 07 00 D2 4F 00 00 00 00 00 FF 0F 36 [13:02:14]process_action close_receipt done [13:02:14]requested_data is exist [13:02:14]produce_requested_data [13:02:14]requested_item fm.sn is exist - process it [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 11 00 00 [13:02:14]Write to MH i2c: E2 08 00 D3 4F 80 11 00 00 00 00 00 00 9C [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 17 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 17 00 D3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [13:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:02:14]wFMCommunicate OK [13:02:14]requested_item fd.num is exist - process it [13:02:14]SAM_PROTO_GetFieldsCounters [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 00 00 [13:02:14]Write to MH i2c: E2 08 00 D4 4F 80 13 00 00 00 00 00 00 9F [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 62 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 62 00 D4 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [13:02:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetFieldsCounters done [13:02:14]requested_item shift.num is exist - process it [13:02:14]requested_item shift.opened is exist - process it [13:02:14]req_shift_opened [13:02:14]FM_GetShiftState [13:02:14]SAM_PROTO_GetShiftState [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 01 00 [13:02:14]Write to MH i2c: E2 08 00 D5 4F 80 13 01 00 00 00 00 00 A1 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 D5 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5B [13:02:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetShiftState done [13:02:14]FM_GetShiftState done [13:02:14]req_shift_opened done [13:02:14]requested_item shift.open_date is exist - process it [13:02:14]req_shift_open_date [13:02:14]req_shift_open_date done [13:02:14]produce_requested_data done [13:02:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31173,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:02:14]process_action_free close_receipt [13:02:14]json_value_free [13:02:14]json_value_free done [13:02:14]process_json_proto returns [13:02:14]Send response to host [13:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31173,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:02:14]free response buf [13:02:14]execute_script done [13:02:14]execute_script returns [13:02:14]free content buf [13:02:14]Sock 7.Close socket [13:02:14]Sock 7.Thread stoped [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:27]accept exits with 9 [13:04:27]New connection [13:04:27]New thread 3066899812 created [13:04:27]Thread 3067043172 joined [13:04:27]Waiting for new connection... [13:04:27] Sock 9.Parse request [13:04:27]Sock 9.Check first char [13:04:27]Sock 9.First char is OK [13:04:27]request: POST /json_proto HTTP/1.0 [13:04:27]Method: POST [13:04:27]URL: /json_proto [13:04:27]Method is POST - this is cgi request [13:04:27]url: /json_proto [13:04:27]query_string will be loaded in cgi processing [13:04:27]execute_cgi json_proto POST (null) [13:04:27]execute_cgi path=json_proto method=POST [13:04:27]POST find Content-Length [13:04:27]Host: 172.17.51.3:8080 [13:04:27]Content-Length: 843 [13:04:27]Content-Type: application/json [13:04:27] [13:04:27]POST finish read [13:04:27]Found Content-Length = 843 [13:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]execute_script... [13:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]POST & json_proto [13:04:27]process_json_proto [13:04:27]json parsed OK: [13:04:27]protocol is kg_v1.0 [13:04:27]action value=close_receipt [13:04:27]process_action close_receipt [13:04:27]cmd_close_receipt [13:04:27]MH_GetDate [13:04:27]Write to MH i2c: F0 00 00 D6 4F 14 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 D6 4F 00 61 F4 18 67 04 C1 95 66 B1 [13:04:27]GetLastDocTimeStamp 1729688537 [13:04:27]current date 1729688673 [13:04:27]FM_GetShiftState [13:04:27]SAM_PROTO_GetShiftState [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 13 01 00 [13:04:27]Write to MH i2c: E2 08 00 D7 4F 80 13 01 00 00 00 00 00 A3 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 D7 4F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5D [13:04:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:04:27]wFMCommunicate OK [13:04:27]SAM_PROTO_GetShiftState done [13:04:27]FM_GetShiftState done [13:04:27]opened in 1729643755 [13:04:27]opened+sec_in_day 1729730155 [13:04:27]quantity*price = 100015 [13:04:27]sum+1 = 100017 [13:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 118 23.10.2024 13:04 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31174 ФПД: 210633687691078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31174&fm=210633687691078&tin=02508201610067®Number=0000000000186857&sum=100016 [13:04:28]StoreToDocumentArchive [13:04:28]shift 117 fd 31174 [13:04:28]save to /storage/0117/doc_00031174 [13:04:28]save last doc name /storage/0117/doc_00031174 to /storage/kkm_last_doc_name [13:04:28]save OK [13:04:28]Clear old archive folders... [13:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:28]tlvbuf is 00E84DA0 [13:04:28]SAM_PROTO_ClearQueue [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 09 00 00 [13:04:28]Write to MH i2c: E2 08 00 E4 4F 80 09 00 00 00 00 00 00 A5 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 E4 4F 00 90 00 A7 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_ClearQueue done [13:04:28]KKMCreateOFDPacket [13:04:28]OFDProtocolAddRootSTLVToBuf [13:04:28]FM_MakeSignedData [13:04:28]FM_MakeSignedData [13:04:28]SAM_PROTO_SignData [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 01 02 [13:04:28]Write to MH i2c: E2 08 00 E5 4F 80 0D 01 02 00 00 00 00 AD [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 E5 4F 00 90 00 A8 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=255 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 79 00 00 35 04 06 00 BF [13:04:28]Write to MH i2c: E2 02 01 E6 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 79 00 00 35 04 06 00 BF 00 00 15 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:29]OFD Sender: No OFD packet to send [13:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [13:04:29]RAPDU: 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=10 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 0D 02 02 05 91 FA 21 EF 46 [13:04:29]Write to MH i2c: E2 0D 00 E7 4F 80 0D 02 02 05 00 91 FA 21 EF 46 00 00 9B [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [13:04:29]RAPDU: 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 0D 03 02 [13:04:29]Write to MH i2c: E2 08 00 E8 4F 80 0D 03 02 00 00 00 00 B2 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 0B 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 0B 00 E8 4F 00 01 CE 33 1F 96 AA 8D 80 90 00 21 [13:04:29]RAPDU: 01 CE 33 1F 96 AA 8D 80 90 00 [13:04:29]wFMCommunicate OK [13:04:29]SAM_PROTO_SignData done [13:04:29]FM_MakeSignedData done [13:04:29]CreateOFDProtocolMessage [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 11 00 00 [13:04:29]Write to MH i2c: E2 08 00 E9 4F 80 11 00 00 00 00 00 00 B2 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 17 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 17 00 E9 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [13:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:04:29]wFMCommunicate OK [13:04:29]CreateOFDProtocolMessage done [13:04:29]OFDSenderStorePacket 31174 [13:04:29]StoreOFDPacket docnum=31174 [13:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 63 07 01 09 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 79 00 00 35 04 06 00 BF 91 FA 21 EF 46 01 CE 33 1F 96 AA 8D 80 [13:04:29]CheckFolder [13:04:29]dirname=/storage/ofd_packets [13:04:29]CheckFolder done [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00031174 [13:04:29]NVStorageSaveData ofd_packets/00031174 [13:04:29]File name is /storage/ofd_packets/00031174 [13:04:29]Write 301 bytes [13:04:29]NVStorageSaveData done [13:04:29]OFDSenderStorePacket done [13:04:29]KKMCreateOFDPacket done [13:04:29]NVStorageSaveData kkm_last_timestamp [13:04:29]File name is /storage/kkm_last_timestamp [13:04:29]Write 4 bytes [13:04:29]NVStorageSaveData done [13:04:29]ExternCall_PrintAddStr [13:04:29]wPrintStart [13:04:29]Write to MH i2c: 01 00 00 EA 4F 39 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 EA 4F 00 00 00 00 00 FF 0F 4E [13:04:29]RasterBufferAndPrint [13:04:29]line Счет N : (1)343618 [13:04:29]line ИНН: 02508201610067 [13:04:29]line Контрольно-Кассовый Чек [13:04:29]line ПРОДАЖА [13:04:29]line ТРК (МРК, ГНК) : 63 [13:04:29]line Товар: 2710124130 [13:04:29]line Аи-92-К-2 [13:04:29]line 14.950 * 66.90 [13:04:29]line = 1000.16 [13:04:29]line НДС 12% НСП 1% [13:04:29]line > о реализуемом товаре [13:04:29]line ИТОГО: 1000.16 [13:04:29]line НСП 1% : 8.85 [13:04:29]line НДС 12% : 106.21 [13:04:29]line Наличными: 0.00 [13:04:29]line Безнал.: 1000.16 [13:04:29]line Место: АЗС № 78 "Партнер Нефть" [13:04:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:04:29]line СНО: Общий режим [13:04:29]line Чек 118 23.10.2024 13:04 [13:04:29]line Смена: 117 ФФД: 1.0 [13:04:29]line ЗНМ: 0300000137 [13:04:29]line РНМ: 0000000000186857 [13:04:29]line Версия ККМ: v1.0 [13:04:29]line Платежная система: АКБ Кыргызстан [13:04:29]line ФМ: 0000000002094219 [13:04:29]line ФД: 31174 [13:04:29]line ФПД: 210633687691078 [13:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31174&fm=210633687691078&tin=02508201610067®Number=0000000000186857&sum=100016 [13:04:29]OFD Sender: Processing packet 31174 [packets to send 11, broken 10] [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00031174 [13:04:29]OFD Sender: To server: pG, [13:04:29]CommunicateWithHost lk.salyk.kg:30040 [13:04:29]ConnectInit lk.salyk.kg [13:04:29]written 0, free lines is 4095 [13:04:29]Connected sock=10 [13:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B1 63 07 01 09 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 79 00 00 35 04 06 00 BF 91 FA 21 EF 46 01 CE 33 1F 96 AA 8D 80 [13:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C5 72 47 00 1B F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 79 00 00 F4 03 04 00 DC 9E 18 67 B6 04 01 00 00 FF D8 2A 69 7D 16 D1 11 [13:04:29]CommunicateWithHost err = 0 [13:04:29]CheckOFDResponse [13:04:29]1017 (14) - 77093643461234 [13:04:29]1041 (16) - 0000000002094219 [13:04:29]1040 (4) - 31174 [13:04:29]1012 (4) - 23.10.2024 06:59 [13:04:29]1206 (1) - 0 [13:04:29]OFD Sender: Remove packet 31174 [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00031174 [13:04:29]NVStorageDeleteData [13:04:29]Write to MH i2c: 01 00 00 14 50 64 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 14 50 00 00 00 00 00 F9 0C 70 [13:04:29]RasterBufferAndPrint [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]written 0, free lines is 3329 [13:04:29]MH_Cut [13:04:29]Write to MH i2c: D1 01 00 1B 50 01 3D [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 01 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 01 00 1B 50 00 3C [13:04:29]Write to MH i2c: 01 00 00 1C 50 6C [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:30]OFD Sender: No OFD packet to send [13:04:30]*** Cut start [13:04:30]*** Partial cut [13:04:30]*** CUTSNS_PIN = 1 [13:04:30]*** CUTSNS_PIN = 0 [13:04:30]*** Brake cut motor [13:04:31]Read from MH i2c: 01 [13:04:31]MH_I2C_Read... [13:04:31]*** Stop cut motor [13:04:31]*** Cut end [13:04:31]Read from MH i2c: 01 07 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: 01 07 00 1C 50 00 00 00 00 00 FF 0F 81 [13:04:31]process_action close_receipt done [13:04:31]requested_data is exist [13:04:31]produce_requested_data [13:04:31]requested_item fm.sn is exist - process it [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 11 00 00 [13:04:31]Write to MH i2c: E2 08 00 1D 50 80 11 00 00 00 00 00 00 E7 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 17 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 17 00 1D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [13:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:04:31]wFMCommunicate OK [13:04:31]requested_item fd.num is exist - process it [13:04:31]SAM_PROTO_GetFieldsCounters [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 13 00 00 [13:04:31]Write to MH i2c: E2 08 00 1E 50 80 13 00 00 00 00 00 00 EA [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 62 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 62 00 1E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [13:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_GetFieldsCounters done [13:04:31]requested_item shift.num is exist - process it [13:04:31]requested_item shift.opened is exist - process it [13:04:31]req_shift_opened [13:04:31]FM_GetShiftState [13:04:31]SAM_PROTO_GetShiftState [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 13 01 00 [13:04:31]Write to MH i2c: E2 08 00 1F 50 80 13 01 00 00 00 00 00 EC [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 1F 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A6 [13:04:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_GetShiftState done [13:04:31]FM_GetShiftState done [13:04:31]req_shift_opened done [13:04:31]requested_item shift.open_date is exist - process it [13:04:31]req_shift_open_date [13:04:31]req_shift_open_date done [13:04:31]produce_requested_data done [13:04:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31174,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:04:31]process_action_free close_receipt [13:04:31]json_value_free [13:04:31]json_value_free done [13:04:31]process_json_proto returns [13:04:31]Send response to host [13:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31174,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:04:31]free response buf [13:04:31]execute_script done [13:04:31]execute_script returns [13:04:31]free content buf [13:04:31]Sock 9.Close socket [13:04:31]Sock 9.Thread stoped [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]accept exits with 7 [13:05:25]New connection [13:05:25]New thread 3067043172 created [13:05:25]Thread 3066899812 joined [13:05:25]Waiting for new connection... [13:05:25] Sock 7.Parse request [13:05:25]Sock 7.Check first char [13:05:25]Sock 7.First char is OK [13:05:25]request: POST /json_proto HTTP/1.0 [13:05:25]Method: POST [13:05:25]URL: /json_proto [13:05:25]Method is POST - this is cgi request [13:05:25]url: /json_proto [13:05:25]query_string will be loaded in cgi processing [13:05:25]execute_cgi json_proto POST (null) [13:05:25]execute_cgi path=json_proto method=POST [13:05:25]POST find Content-Length [13:05:25]Host: 172.17.51.3:8080 [13:05:25]Content-Length: 754 [13:05:25]Content-Type: application/json [13:05:25] [13:05:25]POST finish read [13:05:25]Found Content-Length = 754 [13:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:25]execute_script... [13:05:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:25]POST & json_proto [13:05:25]process_json_proto [13:05:25]json parsed OK: [13:05:25]protocol is kg_v1.0 [13:05:25]action value=close_receipt [13:05:25]process_action close_receipt [13:05:25]cmd_close_receipt [13:05:25]MH_GetDate [13:05:25]Write to MH i2c: F0 00 00 20 50 5F [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: F0 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: F0 09 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: F0 09 00 20 50 00 9B F4 18 67 04 C1 95 66 36 [13:05:25]GetLastDocTimeStamp 1729688673 [13:05:25]current date 1729688731 [13:05:25]FM_GetShiftState [13:05:25]SAM_PROTO_GetShiftState [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 13 01 00 [13:05:25]Write to MH i2c: E2 08 00 21 50 80 13 01 00 00 00 00 00 EE [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0E 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0E 00 21 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A8 [13:05:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_GetShiftState done [13:05:25]FM_GetShiftState done [13:05:25]opened in 1729643755 [13:05:25]opened+sec_in_day 1729730155 [13:05:25]quantity*price = 0 [13:05:25]sum+1 = 1 [13:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 119 23.10.2024 13:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31175 ФПД: 131635155038311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31175&fm=131635155038311&tin=02508201610067®Number=0000000000186857&sum=0 [13:05:26]StoreToDocumentArchive [13:05:26]shift 117 fd 31175 [13:05:26]save to /storage/0117/doc_00031175 [13:05:26]save last doc name /storage/0117/doc_00031175 to /storage/kkm_last_doc_name [13:05:26]save OK [13:05:26]Clear old archive folders... [13:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:26]tlvbuf is 00F62230 [13:05:26]SAM_PROTO_ClearQueue [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 09 00 00 [13:05:26]Write to MH i2c: E2 08 00 2E 50 80 09 00 00 00 00 00 00 F0 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 2E 50 00 90 00 F2 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]SAM_PROTO_ClearQueue done [13:05:26]KKMCreateOFDPacket [13:05:26]OFDProtocolAddRootSTLVToBuf [13:05:26]FM_MakeSignedData [13:05:26]FM_MakeSignedData [13:05:26]SAM_PROTO_SignData [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 01 02 [13:05:26]Write to MH i2c: E2 08 00 2F 50 80 0D 01 02 00 00 00 00 F8 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 2F 50 00 90 00 F3 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=255 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 9B F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 79 00 00 35 04 06 00 77 [13:05:26]Write to MH i2c: E2 02 01 30 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 9B F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 79 00 00 35 04 06 00 77 00 00 55 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 30 50 00 90 00 F4 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=10 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 05 B8 B2 A7 F0 67 [13:05:26]Write to MH i2c: E2 0D 00 31 50 80 0D 02 02 05 00 B8 B2 A7 F0 67 00 00 6D [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 03 02 [13:05:26]Write to MH i2c: E2 08 00 32 50 80 0D 03 02 00 00 00 00 FD [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 32 50 00 F5 FC 02 2E 5C 3F 65 71 90 00 90 [13:05:26]RAPDU: F5 FC 02 2E 5C 3F 65 71 90 00 [13:05:26]wFMCommunicate OK [13:05:26]SAM_PROTO_SignData done [13:05:26]FM_MakeSignedData done [13:05:26]CreateOFDProtocolMessage [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 11 00 00 [13:05:26]Write to MH i2c: E2 08 00 33 50 80 11 00 00 00 00 00 00 FD [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 33 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [13:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:05:26]wFMCommunicate OK [13:05:26]CreateOFDProtocolMessage done [13:05:26]OFDSenderStorePacket 31175 [13:05:26]StoreOFDPacket docnum=31175 [13:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 71 07 01 10 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 9B F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 79 00 00 35 04 06 00 77 B8 B2 A7 F0 67 F5 FC 02 2E 5C 3F 65 71 [13:05:26]CheckFolder [13:05:26]dirname=/storage/ofd_packets [13:05:26]CheckFolder done [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00031175 [13:05:26]NVStorageSaveData ofd_packets/00031175 [13:05:26]File name is /storage/ofd_packets/00031175 [13:05:26]Write 301 bytes [13:05:26]NVStorageSaveData done [13:05:26]OFDSenderStorePacket done [13:05:26]KKMCreateOFDPacket done [13:05:26]NVStorageSaveData kkm_last_timestamp [13:05:26]File name is /storage/kkm_last_timestamp [13:05:26]Write 4 bytes [13:05:26]NVStorageSaveData done [13:05:26]ExternCall_PrintAddStr [13:05:26]wPrintStart [13:05:26]Write to MH i2c: 01 00 00 34 50 84 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 34 50 00 00 00 00 00 FF 0F 99 [13:05:26]RasterBufferAndPrint [13:05:26]line Счет N : (1)343619 [13:05:26]line ИНН: 02508201610067 [13:05:26]line Контрольно-Кассовый Чек [13:05:26]line ПРОДАЖА [13:05:26]line ТРК (МРК, ГНК) : 33 [13:05:26]line Товар: 2710124130 [13:05:26]line Аи-92-К-2 [13:05:26]line 14.950 * 0.00 [13:05:26]line = 0.00 [13:05:26]line НДС 12% НСП 1% [13:05:26]line > о реализуемом товаре [13:05:26]line ИТОГО: 0.00 [13:05:26]line НСП 1% : 0.00 [13:05:26]line НДС 12% : 0.00 [13:05:26]line Наличными: 0.00 [13:05:26]line Безнал.: 0.00 [13:05:26]line Место: АЗС № 78 "Партнер Нефть" [13:05:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:05:26]line СНО: Общий режим [13:05:26]line Чек 119 23.10.2024 13:05 [13:05:26]line Смена: 117 ФФД: 1.0 [13:05:26]line ЗНМ: 0300000137 [13:05:26]line РНМ: 0000000000186857 [13:05:26]line Версия ККМ: v1.0 [13:05:26]line Талоны: ТК ГПНА Online [13:05:26]line 30101093 [13:05:26]line ФМ: 0000000002094219 [13:05:26]line ФД: 31175 [13:05:26]line ФПД: 131635155038311 [13:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31175&fm=131635155038311&tin=02508201610067®Number=0000000000186857&sum=0 [13:05:27]OFD Sender: Processing packet 31175 [packets to send 11, broken 10] [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00031175 [13:05:27]OFD Sender: To server: pG, [13:05:27]CommunicateWithHost lk.salyk.kg:30040 [13:05:27]ConnectInit lk.salyk.kg [13:05:27]written 0, free lines is 4095 [13:05:27]Connected sock=10 [13:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 71 07 01 10 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 9B F4 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 79 00 00 35 04 06 00 77 B8 B2 A7 F0 67 F5 FC 02 2E 5C 3F 65 71 [13:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 27 DD 47 00 CF 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 79 00 00 F4 03 04 00 15 9F 18 67 B6 04 01 00 00 87 E8 7C CC BF 7E 14 11 [13:05:27]CommunicateWithHost err = 0 [13:05:27]CheckOFDResponse [13:05:27]1017 (14) - 77093643461234 [13:05:27]1041 (16) - 0000000002094219 [13:05:27]1040 (4) - 31175 [13:05:27]1012 (4) - 23.10.2024 07:00 [13:05:27]1206 (1) - 0 [13:05:27]OFD Sender: Remove packet 31175 [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00031175 [13:05:27]NVStorageDeleteData [13:05:27]Write to MH i2c: 01 00 00 5E 50 AE [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 5E 50 00 00 00 00 00 ED 0C AE [13:05:27]RasterBufferAndPrint [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]written 0, free lines is 3315 [13:05:27]MH_Cut [13:05:27]Write to MH i2c: D1 01 00 65 50 01 87 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 01 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 01 00 65 50 00 86 [13:05:27]Write to MH i2c: 01 00 00 66 50 B6 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:28]OFD Sender: No OFD packet to send [13:05:28]*** Cut start [13:05:28]*** Partial cut [13:05:28]*** CUTSNS_PIN = 1 [13:05:28]*** CUTSNS_PIN = 0 [13:05:28]*** Brake cut motor [13:05:28]Read from MH i2c: 01 [13:05:28]MH_I2C_Read... [13:05:28]*** Stop cut motor [13:05:28]*** Cut end [13:05:28]Read from MH i2c: 01 07 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: 01 07 00 66 50 00 00 00 00 00 FF 0F CB [13:05:28]process_action close_receipt done [13:05:28]requested_data is exist [13:05:28]produce_requested_data [13:05:28]requested_item fm.sn is exist - process it [13:05:28]wFMCommunicate request_size=4 [13:05:28]MH_SAM_APDU [13:05:28]CAPDU: 80 11 00 00 [13:05:28]Write to MH i2c: E2 08 00 67 50 80 11 00 00 00 00 00 00 31 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 17 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 17 00 67 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [13:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:05:29]wFMCommunicate OK [13:05:29]requested_item fd.num is exist - process it [13:05:29]SAM_PROTO_GetFieldsCounters [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 13 00 00 [13:05:29]Write to MH i2c: E2 08 00 68 50 80 13 00 00 00 00 00 00 34 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 62 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 62 00 68 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [13:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:29]wFMCommunicate OK [13:05:29]SAM_PROTO_GetFieldsCounters done [13:05:29]requested_item shift.num is exist - process it [13:05:29]requested_item shift.opened is exist - process it [13:05:29]req_shift_opened [13:05:29]FM_GetShiftState [13:05:29]SAM_PROTO_GetShiftState [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 13 01 00 [13:05:29]Write to MH i2c: E2 08 00 69 50 80 13 01 00 00 00 00 00 36 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 0E 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 0E 00 69 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F0 [13:05:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:05:29]wFMCommunicate OK [13:05:29]SAM_PROTO_GetShiftState done [13:05:29]FM_GetShiftState done [13:05:29]req_shift_opened done [13:05:29]requested_item shift.open_date is exist - process it [13:05:29]req_shift_open_date [13:05:29]req_shift_open_date done [13:05:29]produce_requested_data done [13:05:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31175,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:05:29]process_action_free close_receipt [13:05:29]json_value_free [13:05:29]json_value_free done [13:05:29]process_json_proto returns [13:05:29]Send response to host [13:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31175,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:05:29]free response buf [13:05:29]execute_script done [13:05:29]execute_script returns [13:05:29]free content buf [13:05:29]Sock 7.Close socket [13:05:29]Sock 7.Thread stoped [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:56]accept exits with 9 [13:08:56]New connection [13:08:56]New thread 3066899812 created [13:08:56]Thread 3067043172 joined [13:08:56]Waiting for new connection... [13:08:56] Sock 9.Parse request [13:08:56]Sock 9.Check first char [13:08:56]Sock 9.First char is OK [13:08:56]request: POST /json_proto HTTP/1.0 [13:08:56]Method: POST [13:08:56]URL: /json_proto [13:08:56]Method is POST - this is cgi request [13:08:56]url: /json_proto [13:08:56]query_string will be loaded in cgi processing [13:08:56]execute_cgi json_proto POST (null) [13:08:56]execute_cgi path=json_proto method=POST [13:08:56]POST find Content-Length [13:08:56]Host: 172.17.51.3:8080 [13:08:56]Content-Length: 677 [13:08:56]Content-Type: application/json [13:08:56] [13:08:56]POST finish read [13:08:56]Found Content-Length = 677 [13:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:56]execute_script... [13:08:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:56]POST & json_proto [13:08:56]process_json_proto [13:08:56]json parsed OK: [13:08:56]protocol is kg_v1.0 [13:08:56]action value=close_receipt [13:08:56]process_action close_receipt [13:08:56]cmd_close_receipt [13:08:56]MH_GetDate [13:08:56]Write to MH i2c: F0 00 00 6A 50 A9 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 09 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 09 00 6A 50 00 6F F5 18 67 04 C1 95 66 55 [13:08:56]GetLastDocTimeStamp 1729688731 [13:08:56]current date 1729688943 [13:08:56]FM_GetShiftState [13:08:56]SAM_PROTO_GetShiftState [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 13 01 00 [13:08:56]Write to MH i2c: E2 08 00 6B 50 80 13 01 00 00 00 00 00 38 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 6B 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F2 [13:08:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetShiftState done [13:08:56]FM_GetShiftState done [13:08:56]opened in 1729643755 [13:08:56]opened+sec_in_day 1729730155 [13:08:56]quantity*price = 20003 [13:08:56]sum+1 = 20004 [13:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 120 23.10.2024 13:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31176 ФПД: 87410952073822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31176&fm=87410952073822&tin=02508201610067®Number=0000000000186857&sum=20000 [13:08:58]StoreToDocumentArchive [13:08:58]shift 117 fd 31176 [13:08:58]save to /storage/0117/doc_00031176 [13:08:58]save last doc name /storage/0117/doc_00031176 to /storage/kkm_last_doc_name [13:08:58]save OK [13:08:58]Clear old archive folders... [13:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:58]tlvbuf is 00CCD940 [13:08:58]SAM_PROTO_ClearQueue [13:08:58]wFMCommunicate request_size=4 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 09 00 00 [13:08:58]Write to MH i2c: E2 08 00 78 50 80 09 00 00 00 00 00 00 3A [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 78 50 00 90 00 3C [13:08:58]RAPDU: 90 00 [13:08:58]wFMCommunicate OK [13:08:58]SAM_PROTO_ClearQueue done [13:08:58]KKMCreateOFDPacket [13:08:58]OFDProtocolAddRootSTLVToBuf [13:08:58]FM_MakeSignedData [13:08:58]FM_MakeSignedData [13:08:58]SAM_PROTO_SignData [13:08:58]wFMCommunicate request_size=4 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 0D 01 02 [13:08:58]Write to MH i2c: E2 08 00 79 50 80 0D 01 02 00 00 00 00 42 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [13:08:58]RAPDU: 90 00 [13:08:58]wFMCommunicate OK [13:08:58]wFMCommunicate request_size=255 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6F F5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 79 00 00 35 04 06 00 4F [13:08:58]Write to MH i2c: E2 02 01 7A 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6F F5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 79 00 00 35 04 06 00 4F 00 00 F5 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]OFD Sender: No OFD packet to send [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:58]Read from MH i2c: E2 03 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 7A 50 00 90 00 3E [13:08:58]RAPDU: 90 00 [13:08:58]wFMCommunicate OK [13:08:58]wFMCommunicate request_size=10 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 0D 02 02 05 7F F2 BF 72 5E [13:08:58]Write to MH i2c: E2 0D 00 7B 50 80 0D 02 02 05 00 7F F2 BF 72 5E 00 00 4F [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 03 00 7B 50 00 90 00 3F [13:08:58]RAPDU: 90 00 [13:08:58]wFMCommunicate OK [13:08:58]wFMCommunicate request_size=4 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 0D 03 02 [13:08:58]Write to MH i2c: E2 08 00 7C 50 80 0D 03 02 00 00 00 00 47 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 0B 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 0B 00 7C 50 00 C1 A9 24 AE 58 8D 88 35 90 00 26 [13:08:58]RAPDU: C1 A9 24 AE 58 8D 88 35 90 00 [13:08:58]wFMCommunicate OK [13:08:58]SAM_PROTO_SignData done [13:08:58]FM_MakeSignedData done [13:08:58]CreateOFDProtocolMessage [13:08:58]wFMCommunicate request_size=4 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 11 00 00 [13:08:58]Write to MH i2c: E2 08 00 7D 50 80 11 00 00 00 00 00 00 47 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 17 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 17 00 7D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [13:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:08:58]wFMCommunicate OK [13:08:58]CreateOFDProtocolMessage done [13:08:58]OFDSenderStorePacket 31176 [13:08:58]StoreOFDPacket docnum=31176 [13:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 4C 07 01 50 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6F F5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 79 00 00 35 04 06 00 4F 7F F2 BF 72 5E C1 A9 24 AE 58 8D 88 35 [13:08:58]CheckFolder [13:08:58]dirname=/storage/ofd_packets [13:08:58]CheckFolder done [13:08:58]ProducePacketName [13:08:58]name=ofd_packets/00031176 [13:08:58]NVStorageSaveData ofd_packets/00031176 [13:08:58]File name is /storage/ofd_packets/00031176 [13:08:58]Write 301 bytes [13:08:58]NVStorageSaveData done [13:08:58]OFDSenderStorePacket done [13:08:58]KKMCreateOFDPacket done [13:08:58]NVStorageSaveData kkm_last_timestamp [13:08:58]File name is /storage/kkm_last_timestamp [13:08:58]Write 4 bytes [13:08:58]NVStorageSaveData done [13:08:58]ExternCall_PrintAddStr [13:08:58]wPrintStart [13:08:58]Write to MH i2c: 01 00 00 7E 50 CE [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 7E 50 00 00 00 00 00 FF 0F E3 [13:08:58]RasterBufferAndPrint [13:08:58]line Счет N : (1)343620 [13:08:58]line ИНН: 02508201610067 [13:08:58]line Контрольно-Кассовый Чек [13:08:58]line ПРОДАЖА [13:08:58]line ТРК (МРК, ГНК) : 63 [13:08:58]line Товар: 2710124130 [13:08:58]line Аи-92-К-2 [13:08:58]line 2.990 * 66.90 [13:08:58]line = 200.03 [13:08:58]line НДС 12% НСП 1% [13:08:58]line > о реализуемом товаре [13:08:58]line ОКРУГЛЕНИЕ: -0.03 [13:08:58]line ИТОГО: 200.00 [13:08:58]line Внесено: 200.00 [13:08:58]line СДАЧА: 0.00 [13:08:58]line НСП 1% : 1.77 [13:08:58]line НДС 12% : 21.24 [13:08:58]line Наличными: 200.00 [13:08:58]line Безнал.: 0.00 [13:08:58]line Место: АЗС № 78 "Партнер Нефть" [13:08:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:08:58]line СНО: Общий режим [13:08:58]line Чек 120 23.10.2024 13:09 [13:08:58]line Смена: 117 ФФД: 1.0 [13:08:58]line ЗНМ: 0300000137 [13:08:58]line РНМ: 0000000000186857 [13:08:58]line Версия ККМ: v1.0 [13:08:58]line ФМ: 0000000002094219 [13:08:58]line ФД: 31176 [13:08:58]line ФПД: 87410952073822 [13:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31176&fm=87410952073822&tin=02508201610067®Number=0000000000186857&sum=20000 [13:08:58]OFD Sender: Processing packet 31176 [packets to send 11, broken 10] [13:08:58]ProducePacketName [13:08:58]name=ofd_packets/00031176 [13:08:58]OFD Sender: To server: pG, [13:08:58]CommunicateWithHost lk.salyk.kg:30040 [13:08:58]ConnectInit lk.salyk.kg [13:08:58]written 0, free lines is 4095 [13:08:59]Connected sock=10 [13:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 4C 07 01 50 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6F F5 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 79 00 00 35 04 06 00 4F 7F F2 BF 72 5E C1 A9 24 AE 58 8D 88 35 [13:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 42 47 00 78 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 32 30 39 34 32 31 39 10 04 04 00 C8 79 00 00 F4 03 04 00 E9 9F 18 67 B6 04 01 00 00 3C A0 CA 59 BA F6 B0 D5 [13:08:59]CommunicateWithHost err = 0 [13:08:59]CheckOFDResponse [13:08:59]1017 (14) - 77093643461234 [13:08:59]1041 (16) - 0000000002094219 [13:08:59]1040 (4) - 31176 [13:08:59]1012 (4) - 23.10.2024 07:04 [13:08:59]1206 (1) - 0 [13:08:59]OFD Sender: Remove packet 31176 [13:08:59]ProducePacketName [13:08:59]name=ofd_packets/00031176 [13:08:59]NVStorageDeleteData [13:08:59]Write to MH i2c: 01 00 00 A9 50 F9 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 07 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 07 00 A9 50 00 00 00 00 00 EB 0C F7 [13:08:59]RasterBufferAndPrint [13:08:59]line [13:08:59]line [13:08:59]line [13:08:59]line [13:08:59]line [13:08:59]written 0, free lines is 3313 [13:08:59]MH_Cut [13:08:59]Write to MH i2c: D1 01 00 B0 50 01 D2 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: D1 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: D1 01 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: D1 01 00 B0 50 00 D1 [13:08:59]Write to MH i2c: 01 00 00 B1 50 01 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]OFD Sender: No OFD packet to send [13:09:00]*** Cut start [13:09:00]*** Partial cut [13:09:00]*** CUTSNS_PIN = 1 [13:09:00]*** CUTSNS_PIN = 0 [13:09:00]*** Brake cut motor [13:09:00]Read from MH i2c: 01 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: 01 07 00 [13:09:00]MH_I2C_Read... [13:09:00]*** Stop cut motor [13:09:00]*** Cut end [13:09:00]Read from MH i2c: 01 07 00 B1 50 00 00 00 00 00 FF 0F 16 [13:09:00]process_action close_receipt done [13:09:00]requested_data is exist [13:09:00]produce_requested_data [13:09:00]requested_item fm.sn is exist - process it [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 11 00 00 [13:09:00]Write to MH i2c: E2 08 00 B2 50 80 11 00 00 00 00 00 00 7C [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 17 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 17 00 B2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [13:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:09:00]wFMCommunicate OK [13:09:00]requested_item fd.num is exist - process it [13:09:00]SAM_PROTO_GetFieldsCounters [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 13 00 00 [13:09:00]Write to MH i2c: E2 08 00 B3 50 80 13 00 00 00 00 00 00 7F [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 62 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 62 00 B3 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:00]wFMCommunicate OK [13:09:00]SAM_PROTO_GetFieldsCounters done [13:09:00]requested_item shift.num is exist - process it [13:09:00]requested_item shift.opened is exist - process it [13:09:00]req_shift_opened [13:09:00]FM_GetShiftState [13:09:00]SAM_PROTO_GetShiftState [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 13 01 00 [13:09:00]Write to MH i2c: E2 08 00 B4 50 80 13 01 00 00 00 00 00 81 [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 0E 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 0E 00 B4 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3B [13:09:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:09:00]wFMCommunicate OK [13:09:00]SAM_PROTO_GetShiftState done [13:09:00]FM_GetShiftState done [13:09:00]req_shift_opened done [13:09:00]requested_item shift.open_date is exist - process it [13:09:00]req_shift_open_date [13:09:00]req_shift_open_date done [13:09:00]produce_requested_data done [13:09:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31176,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:09:00]process_action_free close_receipt [13:09:00]json_value_free [13:09:00]json_value_free done [13:09:00]process_json_proto returns [13:09:00]Send response to host [13:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31176,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:09:00]free response buf [13:09:00]execute_script done [13:09:00]execute_script returns [13:09:00]free content buf [13:09:00]Sock 9.Close socket [13:09:00]Sock 9.Thread stoped [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:12]accept exits with 7 [13:17:12]New connection [13:17:12]New thread 3067043172 created [13:17:12]Thread 3066899812 joined [13:17:12]Waiting for new connection... [13:17:12] Sock 7.Parse request [13:17:12]Sock 7.Check first char [13:17:12]Sock 7.First char is OK [13:17:12]request: POST /json_proto HTTP/1.0 [13:17:12]Method: POST [13:17:12]URL: /json_proto [13:17:12]Method is POST - this is cgi request [13:17:12]url: /json_proto [13:17:12]query_string will be loaded in cgi processing [13:17:12]execute_cgi json_proto POST (null) [13:17:12]execute_cgi path=json_proto method=POST [13:17:12]POST find Content-Length [13:17:12]Host: 172.17.51.3:8080 [13:17:12]Content-Length: 679 [13:17:12]Content-Type: application/json [13:17:12] [13:17:12]POST finish read [13:17:12]Found Content-Length = 679 [13:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]execute_script... [13:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]POST & json_proto [13:17:12]process_json_proto [13:17:12]json parsed OK: [13:17:12]protocol is kg_v1.0 [13:17:12]action value=close_receipt [13:17:12]process_action close_receipt [13:17:12]cmd_close_receipt [13:17:12]MH_GetDate [13:17:12]Write to MH i2c: F0 00 00 B5 50 F4 [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 B5 50 00 5E F7 18 67 04 C1 95 66 91 [13:17:12]GetLastDocTimeStamp 1729688943 [13:17:12]current date 1729689438 [13:17:12]FM_GetShiftState [13:17:12]SAM_PROTO_GetShiftState [13:17:12]wFMCommunicate request_size=4 [13:17:12]MH_SAM_APDU [13:17:12]CAPDU: 80 13 01 00 [13:17:12]Write to MH i2c: E2 08 00 B6 50 80 13 01 00 00 00 00 00 83 [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:12]Read from MH i2c: E2 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 B6 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3D [13:17:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:17:12]wFMCommunicate OK [13:17:12]SAM_PROTO_GetShiftState done [13:17:12]FM_GetShiftState done [13:17:12]opened in 1729643755 [13:17:12]opened+sec_in_day 1729730155 [13:17:12]quantity*price = 100050 [13:17:12]sum+1 = 100052 [13:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 121 23.10.2024 13:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31177 ФПД: 50064592305889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131718&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31177&fm=50064592305889&tin=02508201610067®Number=0000000000186857&sum=100000 [13:17:13]StoreToDocumentArchive [13:17:13]shift 117 fd 31177 [13:17:13]save to /storage/0117/doc_00031177 [13:17:13]save last doc name /storage/0117/doc_00031177 to /storage/kkm_last_doc_name [13:17:13]save OK [13:17:13]Clear old archive folders... [13:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:17:13]tlvbuf is 00D30E10 [13:17:13]SAM_PROTO_ClearQueue [13:17:13]wFMCommunicate request_size=4 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 09 00 00 [13:17:13]Write to MH i2c: E2 08 00 C3 50 80 09 00 00 00 00 00 00 85 [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:13]Read from MH i2c: E2 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 C3 50 00 90 00 87 [13:17:13]RAPDU: 90 00 [13:17:13]wFMCommunicate OK [13:17:13]SAM_PROTO_ClearQueue done [13:17:13]KKMCreateOFDPacket [13:17:13]OFDProtocolAddRootSTLVToBuf [13:17:13]FM_MakeSignedData [13:17:13]FM_MakeSignedData [13:17:13]SAM_PROTO_SignData [13:17:13]wFMCommunicate request_size=4 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 0D 01 02 [13:17:13]Write to MH i2c: E2 08 00 C4 50 80 0D 01 02 00 00 00 00 8D [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:13]Read from MH i2c: E2 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 [13:17:13]MH_I2C_Read... [13:17:13]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [13:17:13]RAPDU: 90 00 [13:17:13]wFMCommunicate OK [13:17:13]wFMCommunicate request_size=255 [13:17:13]MH_SAM_APDU [13:17:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5E F7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 79 00 00 35 04 06 00 2D 88 92 3D [13:17:13]Write to MH i2c: E2 02 01 C5 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5E F7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 79 00 00 35 04 06 00 2D 88 92 3D 00 00 9C [13:17:13]Write i2c OK [13:17:13]MH_I2C_Read... [13:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 C5 50 00 90 00 89 [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=7 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 02 02 02 7E E1 [13:17:14]Write to MH i2c: E2 0A 00 C6 50 80 0D 02 02 02 00 7E E1 00 00 F3 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 C6 50 00 90 00 8A [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 03 02 [13:17:14]Write to MH i2c: E2 08 00 C7 50 80 0D 03 02 00 00 00 00 92 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 C7 50 00 1F F9 A5 1F 97 A8 7E 49 90 00 75 [13:17:14]RAPDU: 1F F9 A5 1F 97 A8 7E 49 90 00 [13:17:14]wFMCommunicate OK [13:17:14]SAM_PROTO_SignData done [13:17:14]FM_MakeSignedData done [13:17:14]CreateOFDProtocolMessage [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 11 00 00 [13:17:14]Write to MH i2c: E2 08 00 C8 50 80 11 00 00 00 00 00 00 92 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 C8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [13:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:17:14]wFMCommunicate OK [13:17:14]CreateOFDProtocolMessage done [13:17:14]OFDSenderStorePacket 31177 [13:17:14]StoreOFDPacket docnum=31177 [13:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D6 32 04 01 5E 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5E F7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 79 00 00 35 04 06 00 2D 88 92 3D 7E E1 1F F9 A5 1F 97 A8 7E 49 [13:17:14]CheckFolder [13:17:14]dirname=/storage/ofd_packets [13:17:14]CheckFolder done [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00031177 [13:17:14]NVStorageSaveData ofd_packets/00031177 [13:17:14]File name is /storage/ofd_packets/00031177 [13:17:14]Write 298 bytes [13:17:14]NVStorageSaveData done [13:17:14]OFDSenderStorePacket done [13:17:14]KKMCreateOFDPacket done [13:17:14]NVStorageSaveData kkm_last_timestamp [13:17:14]File name is /storage/kkm_last_timestamp [13:17:14]Write 4 bytes [13:17:14]NVStorageSaveData done [13:17:14]ExternCall_PrintAddStr [13:17:14]wPrintStart [13:17:14]Write to MH i2c: 01 00 00 C9 50 19 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 C9 50 00 00 00 00 00 FF 0F 2E [13:17:14]RasterBufferAndPrint [13:17:14]line Счет N : (1)343622 [13:17:14]line ИНН: 02508201610067 [13:17:14]line Контрольно-Кассовый Чек [13:17:14]line ПРОДАЖА [13:17:14]line ТРК (МРК, ГНК) : 54 [13:17:14]line Товар: 2710194210 [13:17:14]line ДТ-К-2 [13:17:14]line 13.130 * 76.20 [13:17:14]line = 1000.51 [13:17:14]line НДС 12% НСП 1% [13:17:14]line > о реализуемом товаре [13:17:14]line ОКРУГЛЕНИЕ: -0.51 [13:17:14]line ИТОГО: 1000.00 [13:17:14]line Внесено: 1000.00 [13:17:14]line СДАЧА: 0.00 [13:17:14]line НСП 1% : 8.85 [13:17:14]line НДС 12% : 106.25 [13:17:14]line Наличными: 1000.00 [13:17:14]line Безнал.: 0.00 [13:17:14]line Место: АЗС № 78 "Партнер Нефть" [13:17:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:17:14]line СНО: Общий режим [13:17:14]line Чек 121 23.10.2024 13:17 [13:17:14]line Смена: 117 ФФД: 1.0 [13:17:14]line ЗНМ: 0300000137 [13:17:14]line РНМ: 0000000000186857 [13:17:14]line Версия ККМ: v1.0 [13:17:14]line ФМ: 0000000002094219 [13:17:14]line ФД: 31177 [13:17:14]line ФПД: 50064592305889 [13:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131718&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31177&fm=50064592305889&tin=02508201610067®Number=0000000000186857&sum=100000 [13:17:14]OFD Sender: Processing packet 31177 [packets to send 11, broken 10] [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00031177 [13:17:14]OFD Sender: To server: pG, [13:17:14]CommunicateWithHost lk.salyk.kg:30040 [13:17:14]ConnectInit lk.salyk.kg [13:17:14]written 0, free lines is 4095 [13:17:14]Connected sock=10 [13:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D6 32 04 01 5E 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5E F7 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 79 00 00 35 04 06 00 2D 88 92 3D 7E E1 1F F9 A5 1F 97 A8 7E 49 [13:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1F 58 47 00 90 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 79 00 00 F4 03 04 00 D9 A1 18 67 B6 04 01 00 00 06 30 45 BF 63 4F CA 43 [13:17:14]CommunicateWithHost err = 0 [13:17:14]CheckOFDResponse [13:17:14]1017 (14) - 77093643461234 [13:17:14]1041 (16) - 0000000002094219 [13:17:14]1040 (4) - 31177 [13:17:14]1012 (4) - 23.10.2024 07:12 [13:17:14]1206 (1) - 0 [13:17:14]OFD Sender: Remove packet 31177 [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00031177 [13:17:14]NVStorageDeleteData [13:17:14]Write to MH i2c: 01 00 00 F4 50 44 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 F4 50 00 00 00 00 00 E6 0C 3D [13:17:14]RasterBufferAndPrint [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]line [13:17:14]written 0, free lines is 3308 [13:17:14]MH_Cut [13:17:14]Write to MH i2c: D1 01 00 FB 50 01 1D [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 01 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: D1 01 00 FB 50 00 1C [13:17:14]Write to MH i2c: 01 00 00 FC 50 4C [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:15]OFD Sender: No OFD packet to send [13:17:15]*** Cut start [13:17:15]*** Partial cut [13:17:15]*** CUTSNS_PIN = 1 [13:17:15]*** CUTSNS_PIN = 0 [13:17:15]*** Brake cut motor [13:17:16]Read from MH i2c: 01 [13:17:16]MH_I2C_Read... [13:17:16]*** Stop cut motor [13:17:16]*** Cut end [13:17:16]Read from MH i2c: 01 07 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: 01 07 00 FC 50 00 00 00 00 00 FF 0F 61 [13:17:16]process_action close_receipt done [13:17:16]requested_data is exist [13:17:16]produce_requested_data [13:17:16]requested_item fm.sn is exist - process it [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 11 00 00 [13:17:16]Write to MH i2c: E2 08 00 FD 50 80 11 00 00 00 00 00 00 C7 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 FD 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [13:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:17:16]wFMCommunicate OK [13:17:16]requested_item fd.num is exist - process it [13:17:16]SAM_PROTO_GetFieldsCounters [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 00 00 [13:17:16]Write to MH i2c: E2 08 00 FE 50 80 13 00 00 00 00 00 00 CA [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 FE 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetFieldsCounters done [13:17:16]requested_item shift.num is exist - process it [13:17:16]requested_item shift.opened is exist - process it [13:17:16]req_shift_opened [13:17:16]FM_GetShiftState [13:17:16]SAM_PROTO_GetShiftState [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 01 00 [13:17:16]Write to MH i2c: E2 08 00 FF 50 80 13 01 00 00 00 00 00 CC [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 0E 00 FF 50 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 86 [13:17:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetShiftState done [13:17:16]FM_GetShiftState done [13:17:16]req_shift_opened done [13:17:16]requested_item shift.open_date is exist - process it [13:17:16]req_shift_open_date [13:17:16]req_shift_open_date done [13:17:16]produce_requested_data done [13:17:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31177,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:17:16]process_action_free close_receipt [13:17:16]json_value_free [13:17:16]json_value_free done [13:17:16]process_json_proto returns [13:17:16]Send response to host [13:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31177,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:17:16]free response buf [13:17:16]execute_script done [13:17:16]execute_script returns [13:17:16]free content buf [13:17:16]Sock 7.Close socket [13:17:16]Sock 7.Thread stoped [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:17]accept exits with 9 [13:24:17]New connection [13:24:17]New thread 3066899812 created [13:24:17]Thread 3067043172 joined [13:24:17]Waiting for new connection... [13:24:17] Sock 9.Parse request [13:24:17]Sock 9.Check first char [13:24:17]Sock 9.First char is OK [13:24:17]request: POST /json_proto HTTP/1.0 [13:24:17]Method: POST [13:24:17]URL: /json_proto [13:24:17]Method is POST - this is cgi request [13:24:17]url: /json_proto [13:24:17]query_string will be loaded in cgi processing [13:24:17]execute_cgi json_proto POST (null) [13:24:17]execute_cgi path=json_proto method=POST [13:24:17]POST find Content-Length [13:24:17]Host: 172.17.51.3:8080 [13:24:17]Content-Length: 682 [13:24:17]Content-Type: application/json [13:24:17] [13:24:17]POST finish read [13:24:17]Found Content-Length = 682 [13:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:17]execute_script... [13:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:17]POST & json_proto [13:24:17]process_json_proto [13:24:17]json parsed OK: [13:24:17]protocol is kg_v1.0 [13:24:17]action value=close_receipt [13:24:17]process_action close_receipt [13:24:17]cmd_close_receipt [13:24:17]MH_GetDate [13:24:17]Write to MH i2c: F0 00 00 00 51 40 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: F0 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: F0 09 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: F0 09 00 00 51 00 08 F9 18 67 04 C1 95 66 89 [13:24:17]GetLastDocTimeStamp 1729689438 [13:24:17]current date 1729689864 [13:24:17]FM_GetShiftState [13:24:17]SAM_PROTO_GetShiftState [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 13 01 00 [13:24:17]Write to MH i2c: E2 08 00 01 51 80 13 01 00 00 00 00 00 CF [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 0E 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 0E 00 01 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 89 [13:24:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:24:17]wFMCommunicate OK [13:24:17]SAM_PROTO_GetShiftState done [13:24:17]FM_GetShiftState done [13:24:17]opened in 1729643755 [13:24:17]opened+sec_in_day 1729730155 [13:24:17]quantity*price = 100021 [13:24:17]sum+1 = 100023 [13:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 122 23.10.2024 13:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31178 ФПД: 122758329089580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132424&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31178&fm=122758329089580&tin=02508201610067®Number=0000000000186857&sum=100000 [13:24:19]StoreToDocumentArchive [13:24:19]shift 117 fd 31178 [13:24:19]save to /storage/0117/doc_00031178 [13:24:19]save last doc name /storage/0117/doc_00031178 to /storage/kkm_last_doc_name [13:24:19]save OK [13:24:19]Clear old archive folders... [13:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:19]tlvbuf is B6EF04E0 [13:24:19]SAM_PROTO_ClearQueue [13:24:19]wFMCommunicate request_size=4 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 09 00 00 [13:24:19]Write to MH i2c: E2 08 00 0E 51 80 09 00 00 00 00 00 00 D1 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 0E 51 00 90 00 D3 [13:24:19]RAPDU: 90 00 [13:24:19]wFMCommunicate OK [13:24:19]SAM_PROTO_ClearQueue done [13:24:19]KKMCreateOFDPacket [13:24:19]OFDProtocolAddRootSTLVToBuf [13:24:19]FM_MakeSignedData [13:24:19]FM_MakeSignedData [13:24:19]SAM_PROTO_SignData [13:24:19]wFMCommunicate request_size=4 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 0D 01 02 [13:24:19]Write to MH i2c: E2 08 00 0F 51 80 0D 01 02 00 00 00 00 D9 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 0F 51 00 90 00 D4 [13:24:19]RAPDU: 90 00 [13:24:19]wFMCommunicate OK [13:24:19]wFMCommunicate request_size=255 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 79 00 00 35 04 06 00 6F [13:24:19]Write to MH i2c: E2 02 01 10 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 79 00 00 35 04 06 00 6F 00 00 A9 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 10 51 00 90 00 D5 [13:24:19]RAPDU: 90 00 [13:24:19]wFMCommunicate OK [13:24:19]wFMCommunicate request_size=10 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 0D 02 02 05 A5 E6 99 3E 2C [13:24:19]Write to MH i2c: E2 0D 00 11 51 80 0D 02 02 05 00 A5 E6 99 3E 2C 00 00 74 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 03 00 11 51 00 90 00 D6 [13:24:19]RAPDU: 90 00 [13:24:19]wFMCommunicate OK [13:24:19]wFMCommunicate request_size=4 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 0D 03 02 [13:24:19]Write to MH i2c: E2 08 00 12 51 80 0D 03 02 00 00 00 00 DE [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 0B 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 0B 00 12 51 00 9C A9 10 75 A4 E3 0E 73 90 00 B1 [13:24:19]RAPDU: 9C A9 10 75 A4 E3 0E 73 90 00 [13:24:19]wFMCommunicate OK [13:24:19]SAM_PROTO_SignData done [13:24:19]FM_MakeSignedData done [13:24:19]CreateOFDProtocolMessage [13:24:19]wFMCommunicate request_size=4 [13:24:19]MH_SAM_APDU [13:24:19]CAPDU: 80 11 00 00 [13:24:19]Write to MH i2c: E2 08 00 13 51 80 11 00 00 00 00 00 00 DE [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:19]Read from MH i2c: E2 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 17 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: E2 17 00 13 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [13:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:24:19]wFMCommunicate OK [13:24:19]CreateOFDProtocolMessage done [13:24:19]OFDSenderStorePacket 31178 [13:24:19]StoreOFDPacket docnum=31178 [13:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A7 25 07 01 1B 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 79 00 00 35 04 06 00 6F A5 E6 99 3E 2C 9C A9 10 75 A4 E3 0E 73 [13:24:19]CheckFolder [13:24:19]dirname=/storage/ofd_packets [13:24:19]CheckFolder done [13:24:19]ProducePacketName [13:24:19]name=ofd_packets/00031178 [13:24:19]NVStorageSaveData ofd_packets/00031178 [13:24:19]File name is /storage/ofd_packets/00031178 [13:24:19]Write 301 bytes [13:24:19]NVStorageSaveData done [13:24:19]OFDSenderStorePacket done [13:24:19]KKMCreateOFDPacket done [13:24:19]NVStorageSaveData kkm_last_timestamp [13:24:19]File name is /storage/kkm_last_timestamp [13:24:19]Write 4 bytes [13:24:19]NVStorageSaveData done [13:24:19]ExternCall_PrintAddStr [13:24:19]wPrintStart [13:24:19]Write to MH i2c: 01 00 00 14 51 65 [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 14 51 00 00 00 00 00 FF 0F 7A [13:24:19]RasterBufferAndPrint [13:24:19]line Счет N : (1)343623 [13:24:19]line ИНН: 02508201610067 [13:24:19]line Контрольно-Кассовый Чек [13:24:19]line ПРОДАЖА [13:24:19]line ТРК (МРК, ГНК) : 62 [13:24:19]line Товар: 2710124500 [13:24:19]line Аи-95-К-3 [13:24:19]line 13.480 * 74.20 [13:24:19]line = 1000.22 [13:24:19]line НДС 12% НСП 1% [13:24:19]line > о реализуемом товаре [13:24:19]line ОКРУГЛЕНИЕ: -0.22 [13:24:19]line ИТОГО: 1000.00 [13:24:19]line Внесено: 1000.00 [13:24:19]line СДАЧА: 0.00 [13:24:19]line НСП 1% : 8.85 [13:24:19]line НДС 12% : 106.22 [13:24:19]line Наличными: 1000.00 [13:24:19]line Безнал.: 0.00 [13:24:19]line Место: АЗС № 78 "Партнер Нефть" [13:24:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:24:19]line СНО: Общий режим [13:24:19]line Чек 122 23.10.2024 13:24 [13:24:19]line Смена: 117 ФФД: 1.0 [13:24:19]line ЗНМ: 0300000137 [13:24:19]line РНМ: 0000000000186857 [13:24:19]line Версия ККМ: v1.0 [13:24:19]line ФМ: 0000000002094219 [13:24:19]line ФД: 31178 [13:24:19]line ФПД: 122758329089580 [13:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132424&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31178&fm=122758329089580&tin=02508201610067®Number=0000000000186857&sum=100000 [13:24:19]OFD Sender: Processing packet 31178 [packets to send 11, broken 10] [13:24:19]ProducePacketName [13:24:19]name=ofd_packets/00031178 [13:24:19]OFD Sender: To server: pG, [13:24:19]CommunicateWithHost lk.salyk.kg:30040 [13:24:19]ConnectInit lk.salyk.kg [13:24:19]written 0, free lines is 4095 [13:24:20]Connected sock=10 [13:24:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A7 25 07 01 1B 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 79 00 00 35 04 06 00 6F A5 E6 99 3E 2C 9C A9 10 75 A4 E3 0E 73 [13:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB 9B 47 00 91 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 79 00 00 F4 03 04 00 82 A3 18 67 B6 04 01 00 00 3D F1 00 D7 4D AB E9 70 [13:24:20]CommunicateWithHost err = 0 [13:24:20]CheckOFDResponse [13:24:20]1017 (14) - 77093643461234 [13:24:20]1041 (16) - 0000000002094219 [13:24:20]1040 (4) - 31178 [13:24:20]1012 (4) - 23.10.2024 07:19 [13:24:20]1206 (1) - 0 [13:24:20]OFD Sender: Remove packet 31178 [13:24:20]ProducePacketName [13:24:20]name=ofd_packets/00031178 [13:24:20]NVStorageDeleteData [13:24:20]Write to MH i2c: 01 00 00 3F 51 90 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 3F 51 00 00 00 00 00 F1 0C 94 [13:24:20]RasterBufferAndPrint [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]written 0, free lines is 3319 [13:24:20]MH_Cut [13:24:20]Write to MH i2c: D1 01 00 46 51 01 69 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 01 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 01 00 46 51 00 68 [13:24:20]Write to MH i2c: 01 00 00 47 51 98 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]OFD Sender: No OFD packet to send [13:24:21]*** Cut start [13:24:21]*** Partial cut [13:24:21]*** CUTSNS_PIN = 1 [13:24:21]*** CUTSNS_PIN = 0 [13:24:21]*** Brake cut motor [13:24:21]Read from MH i2c: 01 [13:24:21]MH_I2C_Read... [13:24:21]*** Stop cut motor [13:24:21]*** Cut end [13:24:21]Read from MH i2c: 01 07 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: 01 07 00 47 51 00 00 00 00 00 FF 0F AD [13:24:21]process_action close_receipt done [13:24:21]requested_data is exist [13:24:21]produce_requested_data [13:24:21]requested_item fm.sn is exist - process it [13:24:21]wFMCommunicate request_size=4 [13:24:21]MH_SAM_APDU [13:24:21]CAPDU: 80 11 00 00 [13:24:21]Write to MH i2c: E2 08 00 48 51 80 11 00 00 00 00 00 00 13 [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:21]Read from MH i2c: E2 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 17 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 17 00 48 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [13:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:24:21]wFMCommunicate OK [13:24:21]requested_item fd.num is exist - process it [13:24:21]SAM_PROTO_GetFieldsCounters [13:24:21]wFMCommunicate request_size=4 [13:24:21]MH_SAM_APDU [13:24:21]CAPDU: 80 13 00 00 [13:24:21]Write to MH i2c: E2 08 00 49 51 80 13 00 00 00 00 00 00 16 [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:21]Read from MH i2c: E2 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 62 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 62 00 49 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [13:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:21]wFMCommunicate OK [13:24:21]SAM_PROTO_GetFieldsCounters done [13:24:21]requested_item shift.num is exist - process it [13:24:21]requested_item shift.opened is exist - process it [13:24:21]req_shift_opened [13:24:21]FM_GetShiftState [13:24:21]SAM_PROTO_GetShiftState [13:24:21]wFMCommunicate request_size=4 [13:24:21]MH_SAM_APDU [13:24:21]CAPDU: 80 13 01 00 [13:24:21]Write to MH i2c: E2 08 00 4A 51 80 13 01 00 00 00 00 00 18 [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:21]Read from MH i2c: E2 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 4A 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D2 [13:24:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:24:21]wFMCommunicate OK [13:24:21]SAM_PROTO_GetShiftState done [13:24:21]FM_GetShiftState done [13:24:21]req_shift_opened done [13:24:21]requested_item shift.open_date is exist - process it [13:24:21]req_shift_open_date [13:24:21]req_shift_open_date done [13:24:21]produce_requested_data done [13:24:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31178,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:24:21]process_action_free close_receipt [13:24:21]json_value_free [13:24:21]json_value_free done [13:24:21]process_json_proto returns [13:24:21]Send response to host [13:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31178,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:24:21]free response buf [13:24:21]execute_script done [13:24:21]execute_script returns [13:24:21]free content buf [13:24:21]Sock 9.Close socket [13:24:21]Sock 9.Thread stoped [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:33]accept exits with 7 [13:26:33]New connection [13:26:33]New thread 3067043172 created [13:26:33]Thread 3066899812 joined [13:26:33]Waiting for new connection... [13:26:33] Sock 7.Parse request [13:26:33]Sock 7.Check first char [13:26:33]Sock 7.First char is OK [13:26:33]request: POST /json_proto HTTP/1.0 [13:26:33]Method: POST [13:26:33]URL: /json_proto [13:26:33]Method is POST - this is cgi request [13:26:33]url: /json_proto [13:26:33]query_string will be loaded in cgi processing [13:26:33]execute_cgi json_proto POST (null) [13:26:33]execute_cgi path=json_proto method=POST [13:26:33]POST find Content-Length [13:26:33]Host: 172.17.51.3:8080 [13:26:33]Content-Length: 840 [13:26:33]Content-Type: application/json [13:26:33] [13:26:33]POST finish read [13:26:33]Found Content-Length = 840 [13:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:33]execute_script... [13: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 : (1)343625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:33]POST & json_proto [13:26:33]process_json_proto [13:26:33]json parsed OK: [13:26:33]protocol is kg_v1.0 [13:26:33]action value=close_receipt [13:26:33]process_action close_receipt [13:26:33]cmd_close_receipt [13:26:33]MH_GetDate [13:26:33]Write to MH i2c: F0 00 00 4B 51 8B [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 4B 51 00 8F F9 18 67 04 C1 95 66 5B [13:26:33]GetLastDocTimeStamp 1729689864 [13:26:33]current date 1729689999 [13:26:33]FM_GetShiftState [13:26:33]SAM_PROTO_GetShiftState [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 13 01 00 [13:26:33]Write to MH i2c: E2 08 00 4C 51 80 13 01 00 00 00 00 00 1A [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 4C 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D4 [13:26:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:26:33]wFMCommunicate OK [13:26:33]SAM_PROTO_GetShiftState done [13:26:33]FM_GetShiftState done [13:26:33]opened in 1729643755 [13:26:33]opened+sec_in_day 1729730155 [13:26:33]quantity*price = 30051 [13:26:33]sum+1 = 30052 [13:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.51 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 123 23.10.2024 13:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31179 ФПД: 47162920797932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31179&fm=47162920797932&tin=02508201610067®Number=0000000000186857&sum=30051 [13:26:34]StoreToDocumentArchive [13:26:34]shift 117 fd 31179 [13:26:34]save to /storage/0117/doc_00031179 [13:26:34]save last doc name /storage/0117/doc_00031179 to /storage/kkm_last_doc_name [13:26:34]save OK [13:26:34]Clear old archive folders... [13:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:34]tlvbuf is B6EF0640 [13:26:34]SAM_PROTO_ClearQueue [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 09 00 00 [13:26:34]Write to MH i2c: E2 08 00 59 51 80 09 00 00 00 00 00 00 1C [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 59 51 00 90 00 1E [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_ClearQueue done [13:26:34]KKMCreateOFDPacket [13:26:34]OFDProtocolAddRootSTLVToBuf [13:26:34]FM_MakeSignedData [13:26:34]FM_MakeSignedData [13:26:34]SAM_PROTO_SignData [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 0D 01 02 [13:26:34]Write to MH i2c: E2 08 00 5A 51 80 0D 01 02 00 00 00 00 24 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 5A 51 00 90 00 1F [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]wFMCommunicate request_size=255 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8F F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 79 00 00 35 04 06 00 2A [13:26:34]Write to MH i2c: E2 02 01 5B 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8F F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 79 00 00 35 04 06 00 2A 00 00 A9 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 5B 51 00 90 00 20 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=10 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 02 02 05 E4 F9 24 06 EC [13:26:35]Write to MH i2c: E2 0D 00 5C 51 80 0D 02 02 05 00 E4 F9 24 06 EC 00 00 24 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 5C 51 00 90 00 21 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 03 02 [13:26:35]Write to MH i2c: E2 08 00 5D 51 80 0D 03 02 00 00 00 00 29 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 5D 51 00 2E E0 71 4B AA B3 4C 28 90 00 C5 [13:26:35]RAPDU: 2E E0 71 4B AA B3 4C 28 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_SignData done [13:26:35]FM_MakeSignedData done [13:26:35]CreateOFDProtocolMessage [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 11 00 00 [13:26:35]Write to MH i2c: E2 08 00 5E 51 80 11 00 00 00 00 00 00 29 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 5E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [13:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:26:35]wFMCommunicate OK [13:26:35]CreateOFDProtocolMessage done [13:26:35]OFDSenderStorePacket 31179 [13:26:35]StoreOFDPacket docnum=31179 [13:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B4 AC 07 01 F2 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8F F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 79 00 00 35 04 06 00 2A E4 F9 24 06 EC 2E E0 71 4B AA B3 4C 28 [13:26:35]CheckFolder [13:26:35]dirname=/storage/ofd_packets [13:26:35]CheckFolder done [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00031179 [13:26:35]NVStorageSaveData ofd_packets/00031179 [13:26:35]File name is /storage/ofd_packets/00031179 [13:26:35]Write 301 bytes [13:26:35]NVStorageSaveData done [13:26:35]OFDSenderStorePacket done [13:26:35]KKMCreateOFDPacket done [13:26:35]NVStorageSaveData kkm_last_timestamp [13:26:35]File name is /storage/kkm_last_timestamp [13:26:35]Write 4 bytes [13:26:35]NVStorageSaveData done [13:26:35]ExternCall_PrintAddStr [13:26:35]wPrintStart [13:26:35]Write to MH i2c: 01 00 00 5F 51 B0 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 5F 51 00 00 00 00 00 FF 0F C5 [13:26:35]RasterBufferAndPrint [13:26:35]line Счет N : (1)343625 [13:26:35]line ИНН: 02508201610067 [13:26:35]line Контрольно-Кассовый Чек [13:26:35]line ПРОДАЖА [13:26:35]line ТРК (МРК, ГНК) : 32 [13:26:35]line Товар: 2710124500 [13:26:35]line Аи-95-К-3 [13:26:35]line 4.050 * 74.20 [13:26:35]line = 300.51 [13:26:35]line НДС 12% НСП 1% [13:26:35]line > о реализуемом товаре [13:26:35]line ИТОГО: 300.51 [13:26:35]line НСП 1% : 2.66 [13:26:35]line НДС 12% : 31.91 [13:26:35]line Наличными: 0.00 [13:26:35]line Безнал.: 300.51 [13:26:35]line Место: АЗС № 78 "Партнер Нефть" [13:26:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:26:35]line СНО: Общий режим [13:26:35]line Чек 123 23.10.2024 13:26 [13:26:35]line Смена: 117 ФФД: 1.0 [13:26:35]line ЗНМ: 0300000137 [13:26:35]line РНМ: 0000000000186857 [13:26:35]line Версия ККМ: v1.0 [13:26:35]line Платежная система: АКБ Кыргызстан [13:26:35]line ФМ: 0000000002094219 [13:26:35]line ФД: 31179 [13:26:35]line ФПД: 47162920797932 [13:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31179&fm=47162920797932&tin=02508201610067®Number=0000000000186857&sum=30051 [13:26:35]OFD Sender: Processing packet 31179 [packets to send 11, broken 10] [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00031179 [13:26:35]OFD Sender: To server: pG, [13:26:35]CommunicateWithHost lk.salyk.kg:30040 [13:26:35]ConnectInit lk.salyk.kg [13:26:35]written 0, free lines is 4095 [13:26:35]Connected sock=10 [13:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B4 AC 07 01 F2 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8F F9 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 79 00 00 35 04 06 00 2A E4 F9 24 06 EC 2E E0 71 4B AA B3 4C 28 [13:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3A 41 47 00 B0 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 32 30 39 34 32 31 39 10 04 04 00 CB 79 00 00 F4 03 04 00 0A A4 18 67 B6 04 01 00 00 65 3F E0 76 6B 6D 18 B0 [13:26:35]CommunicateWithHost err = 0 [13:26:35]CheckOFDResponse [13:26:35]1017 (14) - 77093643461234 [13:26:35]1041 (16) - 0000000002094219 [13:26:35]1040 (4) - 31179 [13:26:35]1012 (4) - 23.10.2024 07:21 [13:26:35]1206 (1) - 0 [13:26:35]OFD Sender: Remove packet 31179 [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00031179 [13:26:35]NVStorageDeleteData [13:26:36]Write to MH i2c: 01 00 00 89 51 DA [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 89 51 00 00 00 00 00 02 0D F0 [13:26:36]RasterBufferAndPrint [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]written 0, free lines is 3336 [13:26:36]MH_Cut [13:26:36]Write to MH i2c: D1 01 00 90 51 01 B3 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 01 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 01 00 90 51 00 B2 [13:26:36]Write to MH i2c: 01 00 00 91 51 E2 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]OFD Sender: No OFD packet to send [13:26:36]*** Cut start [13:26:36]*** Partial cut [13:26:36]*** CUTSNS_PIN = 1 [13:26:36]*** CUTSNS_PIN = 0 [13:26:36]*** Brake cut motor [13:26:37]Read from MH i2c: 01 [13:26:37]MH_I2C_Read... [13:26:37]*** Stop cut motor [13:26:37]*** Cut end [13:26:37]Read from MH i2c: 01 07 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: 01 07 00 91 51 00 00 00 00 00 FF 0F F7 [13:26:37]process_action close_receipt done [13:26:37]requested_data is exist [13:26:37]produce_requested_data [13:26:37]requested_item fm.sn is exist - process it [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 11 00 00 [13:26:37]Write to MH i2c: E2 08 00 92 51 80 11 00 00 00 00 00 00 5D [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:37]Read from MH i2c: E2 17 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 92 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [13:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:26:37]wFMCommunicate OK [13:26:37]requested_item fd.num is exist - process it [13:26:37]SAM_PROTO_GetFieldsCounters [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 00 00 [13:26:37]Write to MH i2c: E2 08 00 93 51 80 13 00 00 00 00 00 00 60 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 93 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetFieldsCounters done [13:26:37]requested_item shift.num is exist - process it [13:26:37]requested_item shift.opened is exist - process it [13:26:37]req_shift_opened [13:26:37]FM_GetShiftState [13:26:37]SAM_PROTO_GetShiftState [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 01 00 [13:26:37]Write to MH i2c: E2 08 00 94 51 80 13 01 00 00 00 00 00 62 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 94 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1C [13:26:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetShiftState done [13:26:37]FM_GetShiftState done [13:26:37]req_shift_opened done [13:26:37]requested_item shift.open_date is exist - process it [13:26:37]req_shift_open_date [13:26:37]req_shift_open_date done [13:26:37]produce_requested_data done [13:26:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31179,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:26:37]process_action_free close_receipt [13:26:37]json_value_free [13:26:37]json_value_free done [13:26:37]process_json_proto returns [13:26:37]Send response to host [13:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31179,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:26:37]free response buf [13:26:37]execute_script done [13:26:37]execute_script returns [13:26:37]free content buf [13:26:37]Sock 7.Close socket [13:26:37]Sock 7.Thread stoped [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:22]accept exits with 9 [13:30:22]New connection [13:30:22]New thread 3066899812 created [13:30:22]Thread 3067043172 joined [13:30:22]Waiting for new connection... [13:30:22] Sock 9.Parse request [13:30:22]Sock 9.Check first char [13:30:22]Sock 9.First char is OK [13:30:22]request: POST /json_proto HTTP/1.0 [13:30:22]Method: POST [13:30:22]URL: /json_proto [13:30:22]Method is POST - this is cgi request [13:30:22]url: /json_proto [13:30:22]query_string will be loaded in cgi processing [13:30:22]execute_cgi json_proto POST (null) [13:30:22]execute_cgi path=json_proto method=POST [13:30:22]POST find Content-Length [13:30:22]Host: 172.17.51.3:8080 [13:30:22]Content-Length: 677 [13:30:22]Content-Type: application/json [13:30:22] [13:30:22]POST finish read [13:30:22]Found Content-Length = 677 [13:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:22]execute_script... [13:30:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:22]POST & json_proto [13:30:22]process_json_proto [13:30:22]json parsed OK: [13:30:22]protocol is kg_v1.0 [13:30:22]action value=close_receipt [13:30:22]process_action close_receipt [13:30:22]cmd_close_receipt [13:30:22]MH_GetDate [13:30:22]Write to MH i2c: F0 00 00 95 51 D5 [13:30:22]Write i2c OK [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 09 00 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 09 00 95 51 00 74 FA 18 67 04 C1 95 66 8B [13:30:22]GetLastDocTimeStamp 1729689999 [13:30:22]current date 1729690228 [13:30:22]FM_GetShiftState [13:30:22]SAM_PROTO_GetShiftState [13:30:22]wFMCommunicate request_size=4 [13:30:22]MH_SAM_APDU [13:30:22]CAPDU: 80 13 01 00 [13:30:22]Write to MH i2c: E2 08 00 96 51 80 13 01 00 00 00 00 00 64 [13:30:22]Write i2c OK [13:30:22]MH_I2C_Read... [13:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:22]Read from MH i2c: E2 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: E2 0E 00 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: E2 0E 00 96 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1E [13:30:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:30:22]wFMCommunicate OK [13:30:22]SAM_PROTO_GetShiftState done [13:30:22]FM_GetShiftState done [13:30:22]opened in 1729643755 [13:30:22]opened+sec_in_day 1729730155 [13:30:22]quantity*price = 60009 [13:30:22]sum+1 = 60010 [13:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 124 23.10.2024 13:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31180 ФПД: 275858194039839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31180&fm=275858194039839&tin=02508201610067®Number=0000000000186857&sum=60000 [13:30:23]StoreToDocumentArchive [13:30:23]shift 117 fd 31180 [13:30:23]save to /storage/0117/doc_00031180 [13:30:23]save last doc name /storage/0117/doc_00031180 to /storage/kkm_last_doc_name [13:30:23]save OK [13:30:23]Clear old archive folders... [13:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:23]tlvbuf is 00E85290 [13:30:23]SAM_PROTO_ClearQueue [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 09 00 00 [13:30:23]Write to MH i2c: E2 08 00 A3 51 80 09 00 00 00 00 00 00 66 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 A3 51 00 90 00 68 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]SAM_PROTO_ClearQueue done [13:30:23]KKMCreateOFDPacket [13:30:23]OFDProtocolAddRootSTLVToBuf [13:30:23]FM_MakeSignedData [13:30:23]FM_MakeSignedData [13:30:23]SAM_PROTO_SignData [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 01 02 [13:30:23]Write to MH i2c: E2 08 00 A4 51 80 0D 01 02 00 00 00 00 6E [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]wFMCommunicate request_size=255 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 74 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 79 00 00 35 04 06 00 FA [13:30:23]Write to MH i2c: E2 02 01 A5 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 74 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 79 00 00 35 04 06 00 FA 00 00 F9 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 03 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 03 00 A5 51 00 90 00 6A [13:30:24]RAPDU: 90 00 [13:30:24]wFMCommunicate OK [13:30:24]wFMCommunicate request_size=10 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 0D 02 02 05 E4 3D AA 04 1F [13:30:24]Write to MH i2c: E2 0D 00 A6 51 80 0D 02 02 05 00 E4 3D AA 04 1F 00 00 69 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 03 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 03 00 A6 51 00 90 00 6B [13:30:24]RAPDU: 90 00 [13:30:24]wFMCommunicate OK [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 0D 03 02 [13:30:24]Write to MH i2c: E2 08 00 A7 51 80 0D 03 02 00 00 00 00 73 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 0B 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 0B 00 A7 51 00 C1 BD BA 0C E2 67 7A FB 90 00 76 [13:30:24]RAPDU: C1 BD BA 0C E2 67 7A FB 90 00 [13:30:24]wFMCommunicate OK [13:30:24]SAM_PROTO_SignData done [13:30:24]FM_MakeSignedData done [13:30:24]CreateOFDProtocolMessage [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 11 00 00 [13:30:24]Write to MH i2c: E2 08 00 A8 51 80 11 00 00 00 00 00 00 73 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 17 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 17 00 A8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [13:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:30:24]wFMCommunicate OK [13:30:24]CreateOFDProtocolMessage done [13:30:24]OFDSenderStorePacket 31180 [13:30:24]StoreOFDPacket docnum=31180 [13:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 6C 07 01 65 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 74 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 79 00 00 35 04 06 00 FA E4 3D AA 04 1F C1 BD BA 0C E2 67 7A FB [13:30:24]CheckFolder [13:30:24]dirname=/storage/ofd_packets [13:30:24]CheckFolder done [13:30:24]ProducePacketName [13:30:24]name=ofd_packets/00031180 [13:30:24]NVStorageSaveData ofd_packets/00031180 [13:30:24]File name is /storage/ofd_packets/00031180 [13:30:24]Write 301 bytes [13:30:24]NVStorageSaveData done [13:30:24]OFDSenderStorePacket done [13:30:24]KKMCreateOFDPacket done [13:30:24]NVStorageSaveData kkm_last_timestamp [13:30:24]File name is /storage/kkm_last_timestamp [13:30:24]Write 4 bytes [13:30:24]NVStorageSaveData done [13:30:24]ExternCall_PrintAddStr [13:30:24]wPrintStart [13:30:24]Write to MH i2c: 01 00 00 A9 51 FA [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 A9 51 00 00 00 00 00 FF 0F 0F [13:30:24]RasterBufferAndPrint [13:30:24]line Счет N : (1)343626 [13:30:24]line ИНН: 02508201610067 [13:30:24]line Контрольно-Кассовый Чек [13:30:24]line ПРОДАЖА [13:30:24]line ТРК (МРК, ГНК) : 53 [13:30:24]line Товар: 2710124130 [13:30:24]line Аи-92-К-2 [13:30:24]line 8.970 * 66.90 [13:30:24]line = 600.09 [13:30:24]line НДС 12% НСП 1% [13:30:24]line > о реализуемом товаре [13:30:24]line ОКРУГЛЕНИЕ: -0.09 [13:30:24]line ИТОГО: 600.00 [13:30:24]line Внесено: 600.00 [13:30:24]line СДАЧА: 0.00 [13:30:24]line НСП 1% : 5.31 [13:30:24]line НДС 12% : 63.73 [13:30:24]line Наличными: 600.00 [13:30:24]line Безнал.: 0.00 [13:30:24]line Место: АЗС № 78 "Партнер Нефть" [13:30:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:30:24]line СНО: Общий режим [13:30:24]line Чек 124 23.10.2024 13:30 [13:30:24]line Смена: 117 ФФД: 1.0 [13:30:24]line ЗНМ: 0300000137 [13:30:24]line РНМ: 0000000000186857 [13:30:24]line Версия ККМ: v1.0 [13:30:24]line ФМ: 0000000002094219 [13:30:24]line ФД: 31180 [13:30:24]line ФПД: 275858194039839 [13:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31180&fm=275858194039839&tin=02508201610067®Number=0000000000186857&sum=60000 [13:30:24]OFD Sender: Processing packet 31180 [packets to send 11, broken 10] [13:30:24]ProducePacketName [13:30:24]name=ofd_packets/00031180 [13:30:24]OFD Sender: To server: pG, [13:30:24]CommunicateWithHost lk.salyk.kg:30040 [13:30:24]ConnectInit lk.salyk.kg [13:30:24]written 0, free lines is 4095 [13:30:24]Connected sock=10 [13:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 6C 07 01 65 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 74 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 79 00 00 35 04 06 00 FA E4 3D AA 04 1F C1 BD BA 0C E2 67 7A FB [13:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DF BA 47 00 D1 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 79 00 00 F4 03 04 00 EF A4 18 67 B6 04 01 00 00 4D 21 8A 33 F6 4E 9C C8 [13:30:24]CommunicateWithHost err = 0 [13:30:24]CheckOFDResponse [13:30:24]1017 (14) - 77093643461234 [13:30:24]1041 (16) - 0000000002094219 [13:30:24]1040 (4) - 31180 [13:30:24]1012 (4) - 23.10.2024 07:25 [13:30:24]1206 (1) - 0 [13:30:24]OFD Sender: Remove packet 31180 [13:30:24]ProducePacketName [13:30:24]name=ofd_packets/00031180 [13:30:24]NVStorageDeleteData [13:30:24]Write to MH i2c: 01 00 00 D4 51 25 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 D4 51 00 00 00 00 00 07 0D 40 [13:30:24]RasterBufferAndPrint [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]written 0, free lines is 3345 [13:30:24]MH_Cut [13:30:24]Write to MH i2c: D1 01 00 DB 51 01 FE [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 01 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 01 00 DB 51 00 FD [13:30:24]Write to MH i2c: 01 00 00 DC 51 2D [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:25]OFD Sender: No OFD packet to send [13:30:25]*** Cut start [13:30:25]*** Partial cut [13:30:25]*** CUTSNS_PIN = 1 [13:30:25]*** CUTSNS_PIN = 0 [13:30:25]*** Brake cut motor [13:30:26]Read from MH i2c: 01 [13:30:26]MH_I2C_Read... [13:30:26]*** Stop cut motor [13:30:26]*** Cut end [13:30:26]Read from MH i2c: 01 07 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: 01 07 00 DC 51 00 00 00 00 00 FF 0F 42 [13:30:26]process_action close_receipt done [13:30:26]requested_data is exist [13:30:26]produce_requested_data [13:30:26]requested_item fm.sn is exist - process it [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 11 00 00 [13:30:26]Write to MH i2c: E2 08 00 DD 51 80 11 00 00 00 00 00 00 A8 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 DD 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [13:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:30:26]wFMCommunicate OK [13:30:26]requested_item fd.num is exist - process it [13:30:26]SAM_PROTO_GetFieldsCounters [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 13 00 00 [13:30:26]Write to MH i2c: E2 08 00 DE 51 80 13 00 00 00 00 00 00 AB [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 62 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 62 00 DE 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [13:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:26]wFMCommunicate OK [13:30:26]SAM_PROTO_GetFieldsCounters done [13:30:26]requested_item shift.num is exist - process it [13:30:26]requested_item shift.opened is exist - process it [13:30:26]req_shift_opened [13:30:26]FM_GetShiftState [13:30:26]SAM_PROTO_GetShiftState [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 13 01 00 [13:30:26]Write to MH i2c: E2 08 00 DF 51 80 13 01 00 00 00 00 00 AD [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0E 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0E 00 DF 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 67 [13:30:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:30:26]wFMCommunicate OK [13:30:26]SAM_PROTO_GetShiftState done [13:30:26]FM_GetShiftState done [13:30:26]req_shift_opened done [13:30:26]requested_item shift.open_date is exist - process it [13:30:26]req_shift_open_date [13:30:26]req_shift_open_date done [13:30:26]produce_requested_data done [13:30:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31180,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:30:26]process_action_free close_receipt [13:30:26]json_value_free [13:30:26]json_value_free done [13:30:26]process_json_proto returns [13:30:26]Send response to host [13:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31180,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:30:26]free response buf [13:30:26]execute_script done [13:30:26]execute_script returns [13:30:26]free content buf [13:30:26]Sock 9.Close socket [13:30:26]Sock 9.Thread stoped [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:19]accept exits with 7 [13:32:19]New connection [13:32:19]New thread 3067043172 created [13:32:19]Thread 3066899812 joined [13:32:19]Waiting for new connection... [13:32:19] Sock 7.Parse request [13:32:19]Sock 7.Check first char [13:32:19]Sock 7.First char is OK [13:32:19]request: POST /json_proto HTTP/1.0 [13:32:19]Method: POST [13:32:19]URL: /json_proto [13:32:19]Method is POST - this is cgi request [13:32:19]url: /json_proto [13:32:19]query_string will be loaded in cgi processing [13:32:19]execute_cgi json_proto POST (null) [13:32:19]execute_cgi path=json_proto method=POST [13:32:19]POST find Content-Length [13:32:19]Host: 172.17.51.3:8080 [13:32:19]Content-Length: 677 [13:32:19]Content-Type: application/json [13:32:19] [13:32:19]POST finish read [13:32:19]Found Content-Length = 677 [13:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:19]execute_script... [13:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:19]POST & json_proto [13:32:19]process_json_proto [13:32:19]json parsed OK: [13:32:19]protocol is kg_v1.0 [13:32:19]action value=close_receipt [13:32:19]process_action close_receipt [13:32:19]cmd_close_receipt [13:32:19]MH_GetDate [13:32:19]Write to MH i2c: F0 00 00 E0 51 20 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: F0 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: F0 09 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: F0 09 00 E0 51 00 E9 FA 18 67 04 C1 95 66 4B [13:32:19]GetLastDocTimeStamp 1729690228 [13:32:19]current date 1729690345 [13:32:19]FM_GetShiftState [13:32:19]SAM_PROTO_GetShiftState [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 13 01 00 [13:32:19]Write to MH i2c: E2 08 00 E1 51 80 13 01 00 00 00 00 00 AF [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 0E 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 0E 00 E1 51 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 69 [13:32:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:32:19]wFMCommunicate OK [13:32:19]SAM_PROTO_GetShiftState done [13:32:19]FM_GetShiftState done [13:32:19]opened in 1729643755 [13:32:19]opened+sec_in_day 1729730155 [13:32:19]quantity*price = 30038 [13:32:19]sum+1 = 30039 [13:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 125 23.10.2024 13:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31181 ФПД: 57022294296735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133225&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31181&fm=57022294296735&tin=02508201610067®Number=0000000000186857&sum=30000 [13:32:20]StoreToDocumentArchive [13:32:20]shift 117 fd 31181 [13:32:20]save to /storage/0117/doc_00031181 [13:32:20]save last doc name /storage/0117/doc_00031181 to /storage/kkm_last_doc_name [13:32:20]save OK [13:32:20]Clear old archive folders... [13:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:20]tlvbuf is 00CD6F50 [13:32:20]SAM_PROTO_ClearQueue [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 09 00 00 [13:32:20]Write to MH i2c: E2 08 00 EE 51 80 09 00 00 00 00 00 00 B1 [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 EE 51 00 90 00 B3 [13:32:20]RAPDU: 90 00 [13:32:20]wFMCommunicate OK [13:32:20]SAM_PROTO_ClearQueue done [13:32:20]KKMCreateOFDPacket [13:32:20]OFDProtocolAddRootSTLVToBuf [13:32:20]FM_MakeSignedData [13:32:20]FM_MakeSignedData [13:32:20]SAM_PROTO_SignData [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 0D 01 02 [13:32:20]Write to MH i2c: E2 08 00 EF 51 80 0D 01 02 00 00 00 00 B9 [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 EF 51 00 90 00 B4 [13:32:20]RAPDU: 90 00 [13:32:20]wFMCommunicate OK [13:32:20]wFMCommunicate request_size=255 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E9 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 79 00 00 35 04 06 00 33 [13:32:20]Write to MH i2c: E2 02 01 F0 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E9 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 79 00 00 35 04 06 00 33 00 00 0B [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 03 00 F0 51 00 90 00 B5 [13:32:20]RAPDU: 90 00 [13:32:20]wFMCommunicate OK [13:32:20]wFMCommunicate request_size=10 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 0D 02 02 05 DC 89 98 88 9F [13:32:20]Write to MH i2c: E2 0D 00 F1 51 80 0D 02 02 05 00 DC 89 98 88 9F 00 00 EA [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 03 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 03 00 F1 51 00 90 00 B6 [13:32:21]RAPDU: 90 00 [13:32:21]wFMCommunicate OK [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 0D 03 02 [13:32:21]Write to MH i2c: E2 08 00 F2 51 80 0D 03 02 00 00 00 00 BE [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0B 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 0B 00 F2 51 00 9B 33 23 84 12 48 22 FD 90 00 AD [13:32:21]RAPDU: 9B 33 23 84 12 48 22 FD 90 00 [13:32:21]wFMCommunicate OK [13:32:21]SAM_PROTO_SignData done [13:32:21]FM_MakeSignedData done [13:32:21]CreateOFDProtocolMessage [13:32:21]wFMCommunicate request_size=4 [13:32:21]MH_SAM_APDU [13:32:21]CAPDU: 80 11 00 00 [13:32:21]Write to MH i2c: E2 08 00 F3 51 80 11 00 00 00 00 00 00 BE [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:21]Read from MH i2c: E2 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: E2 17 00 F3 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [13:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:32:21]wFMCommunicate OK [13:32:21]CreateOFDProtocolMessage done [13:32:21]OFDSenderStorePacket 31181 [13:32:21]StoreOFDPacket docnum=31181 [13:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 50 53 07 01 E0 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E9 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 79 00 00 35 04 06 00 33 DC 89 98 88 9F 9B 33 23 84 12 48 22 FD [13:32:21]CheckFolder [13:32:21]dirname=/storage/ofd_packets [13:32:21]CheckFolder done [13:32:21]ProducePacketName [13:32:21]name=ofd_packets/00031181 [13:32:21]NVStorageSaveData ofd_packets/00031181 [13:32:21]File name is /storage/ofd_packets/00031181 [13:32:21]Write 301 bytes [13:32:21]NVStorageSaveData done [13:32:21]OFDSenderStorePacket done [13:32:21]KKMCreateOFDPacket done [13:32:21]NVStorageSaveData kkm_last_timestamp [13:32:21]File name is /storage/kkm_last_timestamp [13:32:21]Write 4 bytes [13:32:21]NVStorageSaveData done [13:32:21]ExternCall_PrintAddStr [13:32:21]wPrintStart [13:32:21]Write to MH i2c: 01 00 00 F4 51 45 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 F4 51 00 00 00 00 00 FF 0F 5A [13:32:21]RasterBufferAndPrint [13:32:21]line Счет N : (1)343627 [13:32:21]line ИНН: 02508201610067 [13:32:21]line Контрольно-Кассовый Чек [13:32:21]line ПРОДАЖА [13:32:21]line ТРК (МРК, ГНК) : 53 [13:32:21]line Товар: 2710124130 [13:32:21]line Аи-92-К-2 [13:32:21]line 4.490 * 66.90 [13:32:21]line = 300.38 [13:32:21]line НДС 12% НСП 1% [13:32:21]line > о реализуемом товаре [13:32:21]line ОКРУГЛЕНИЕ: -0.38 [13:32:21]line ИТОГО: 300.00 [13:32:21]line Внесено: 300.00 [13:32:21]line СДАЧА: 0.00 [13:32:21]line НСП 1% : 2.66 [13:32:21]line НДС 12% : 31.90 [13:32:21]line Наличными: 300.00 [13:32:21]line Безнал.: 0.00 [13:32:21]line Место: АЗС № 78 "Партнер Нефть" [13:32:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:32:21]line СНО: Общий режим [13:32:21]line Чек 125 23.10.2024 13:32 [13:32:21]line Смена: 117 ФФД: 1.0 [13:32:21]line ЗНМ: 0300000137 [13:32:21]line РНМ: 0000000000186857 [13:32:21]line Версия ККМ: v1.0 [13:32:21]line ФМ: 0000000002094219 [13:32:21]line ФД: 31181 [13:32:21]line ФПД: 57022294296735 [13:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133225&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31181&fm=57022294296735&tin=02508201610067®Number=0000000000186857&sum=30000 [13:32:21]OFD Sender: Processing packet 31181 [packets to send 11, broken 10] [13:32:21]ProducePacketName [13:32:21]name=ofd_packets/00031181 [13:32:21]OFD Sender: To server: pG, [13:32:21]CommunicateWithHost lk.salyk.kg:30040 [13:32:21]ConnectInit lk.salyk.kg [13:32:21]written 0, free lines is 4095 [13:32:21]Connected sock=10 [13:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 50 53 07 01 E0 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E9 FA 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 79 00 00 35 04 06 00 33 DC 89 98 88 9F 9B 33 23 84 12 48 22 FD [13:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A7 0E 47 00 C0 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 79 00 00 F4 03 04 00 64 A5 18 67 B6 04 01 00 00 EF 5F ED 4D 5E 99 B5 41 [13:32:21]CommunicateWithHost err = 0 [13:32:21]CheckOFDResponse [13:32:21]1017 (14) - 77093643461234 [13:32:21]1041 (16) - 0000000002094219 [13:32:21]1040 (4) - 31181 [13:32:21]1012 (4) - 23.10.2024 07:27 [13:32:21]1206 (1) - 0 [13:32:21]OFD Sender: Remove packet 31181 [13:32:21]ProducePacketName [13:32:21]name=ofd_packets/00031181 [13:32:21]NVStorageDeleteData [13:32:21]Write to MH i2c: 01 00 00 1F 52 71 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: 01 07 00 1F 52 00 00 00 00 00 E4 0C 68 [13:32:21]RasterBufferAndPrint [13:32:21]line [13:32:21]line [13:32:21]line [13:32:21]line [13:32:21]line [13:32:21]written 0, free lines is 3306 [13:32:21]MH_Cut [13:32:21]Write to MH i2c: D1 01 00 26 52 01 4A [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: D1 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: D1 01 00 [13:32:21]MH_I2C_Read... [13:32:21]Read from MH i2c: D1 01 00 26 52 00 49 [13:32:21]Write to MH i2c: 01 00 00 27 52 79 [13:32:21]Write i2c OK [13:32:21]MH_I2C_Read... [13:32:22]OFD Sender: No OFD packet to send [13:32:22]*** Cut start [13:32:22]*** Partial cut [13:32:22]*** CUTSNS_PIN = 1 [13:32:22]*** CUTSNS_PIN = 0 [13:32:22]*** Brake cut motor [13:32:23]Read from MH i2c: 01 [13:32:23]MH_I2C_Read... [13:32:23]*** Stop cut motor [13:32:23]*** Cut end [13:32:23]Read from MH i2c: 01 07 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: 01 07 00 27 52 00 00 00 00 00 FF 0F 8E [13:32:23]process_action close_receipt done [13:32:23]requested_data is exist [13:32:23]produce_requested_data [13:32:23]requested_item fm.sn is exist - process it [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 11 00 00 [13:32:23]Write to MH i2c: E2 08 00 28 52 80 11 00 00 00 00 00 00 F4 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 17 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 17 00 28 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [13:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:32:23]wFMCommunicate OK [13:32:23]requested_item fd.num is exist - process it [13:32:23]SAM_PROTO_GetFieldsCounters [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 13 00 00 [13:32:23]Write to MH i2c: E2 08 00 29 52 80 13 00 00 00 00 00 00 F7 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 62 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 62 00 29 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:23]wFMCommunicate OK [13:32:23]SAM_PROTO_GetFieldsCounters done [13:32:23]requested_item shift.num is exist - process it [13:32:23]requested_item shift.opened is exist - process it [13:32:23]req_shift_opened [13:32:23]FM_GetShiftState [13:32:23]SAM_PROTO_GetShiftState [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 13 01 00 [13:32:23]Write to MH i2c: E2 08 00 2A 52 80 13 01 00 00 00 00 00 F9 [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0E 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0E 00 2A 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B3 [13:32:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:32:23]wFMCommunicate OK [13:32:23]SAM_PROTO_GetShiftState done [13:32:23]FM_GetShiftState done [13:32:23]req_shift_opened done [13:32:23]requested_item shift.open_date is exist - process it [13:32:23]req_shift_open_date [13:32:23]req_shift_open_date done [13:32:23]produce_requested_data done [13:32:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31181,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:32:23]process_action_free close_receipt [13:32:23]json_value_free [13:32:23]json_value_free done [13:32:23]process_json_proto returns [13:32:23]Send response to host [13:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31181,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:32:23]free response buf [13:32:23]execute_script done [13:32:23]execute_script returns [13:32:23]free content buf [13:32:23]Sock 7.Close socket [13:32:23]Sock 7.Thread stoped [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:03]accept exits with 9 [13:34:03]New connection [13:34:03]New thread 3066899812 created [13:34:03]Thread 3067043172 joined [13:34:03]Waiting for new connection... [13:34:03] Sock 9.Parse request [13:34:03]Sock 9.Check first char [13:34:03]Sock 9.First char is OK [13:34:03]request: POST /json_proto HTTP/1.0 [13:34:03]Method: POST [13:34:03]URL: /json_proto [13:34:03]Method is POST - this is cgi request [13:34:03]url: /json_proto [13:34:03]query_string will be loaded in cgi processing [13:34:03]execute_cgi json_proto POST (null) [13:34:03]execute_cgi path=json_proto method=POST [13:34:03]POST find Content-Length [13:34:03]Host: 172.17.51.3:8080 [13:34:03]Content-Length: 843 [13:34:03]Content-Type: application/json [13:34:03] [13:34:03]POST finish read [13:34:03]Found Content-Length = 843 [13:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:03]execute_script... [13:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:03]POST & json_proto [13:34:03]process_json_proto [13:34:03]json parsed OK: [13:34:03]protocol is kg_v1.0 [13:34:03]action value=close_receipt [13:34:03]process_action close_receipt [13:34:03]cmd_close_receipt [13:34:03]MH_GetDate [13:34:03]Write to MH i2c: F0 00 00 2B 52 6C [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 09 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 09 00 2B 52 00 51 FB 18 67 04 C1 95 66 00 [13:34:03]GetLastDocTimeStamp 1729690345 [13:34:03]current date 1729690449 [13:34:03]FM_GetShiftState [13:34:03]SAM_PROTO_GetShiftState [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 13 01 00 [13:34:03]Write to MH i2c: E2 08 00 2C 52 80 13 01 00 00 00 00 00 FB [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0E 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0E 00 2C 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B5 [13:34:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_GetShiftState done [13:34:03]FM_GetShiftState done [13:34:03]opened in 1729643755 [13:34:03]opened+sec_in_day 1729730155 [13:34:03]quantity*price = 300064 [13:34:03]sum+1 = 300066 [13:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 126 23.10.2024 13:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31182 ФПД: 6064735596997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133409&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31182&fm=6064735596997&tin=02508201610067®Number=0000000000186857&sum=300065 [13:34:04]StoreToDocumentArchive [13:34:04]shift 117 fd 31182 [13:34:04]save to /storage/0117/doc_00031182 [13:34:04]save last doc name /storage/0117/doc_00031182 to /storage/kkm_last_doc_name [13:34:04]save OK [13:34:04]Clear old archive folders... [13:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:04]tlvbuf is 00F005B0 [13:34:04]SAM_PROTO_ClearQueue [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 09 00 00 [13:34:04]Write to MH i2c: E2 08 00 39 52 80 09 00 00 00 00 00 00 FD [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 39 52 00 90 00 FF [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]SAM_PROTO_ClearQueue done [13:34:04]KKMCreateOFDPacket [13:34:04]OFDProtocolAddRootSTLVToBuf [13:34:04]FM_MakeSignedData [13:34:04]FM_MakeSignedData [13:34:04]SAM_PROTO_SignData [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 0D 01 02 [13:34:04]Write to MH i2c: E2 08 00 3A 52 80 0D 01 02 00 00 00 00 05 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 3A 52 00 90 00 00 [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=255 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 79 00 00 35 04 06 00 05 [13:34:04]Write to MH i2c: E2 02 01 3B 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 79 00 00 35 04 06 00 05 00 00 56 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 3B 52 00 90 00 01 [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=10 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 0D 02 02 05 84 0E 69 31 C5 [13:34:04]Write to MH i2c: E2 0D 00 3C 52 80 0D 02 02 05 00 84 0E 69 31 C5 00 00 03 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 3C 52 00 90 00 02 [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 0D 03 02 [13:34:04]Write to MH i2c: E2 08 00 3D 52 80 0D 03 02 00 00 00 00 0A [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 0B 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 0B 00 3D 52 00 E8 9E D4 E6 5F EC AE 34 90 00 78 [13:34:04]RAPDU: E8 9E D4 E6 5F EC AE 34 90 00 [13:34:04]wFMCommunicate OK [13:34:04]SAM_PROTO_SignData done [13:34:04]FM_MakeSignedData done [13:34:04]CreateOFDProtocolMessage [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 11 00 00 [13:34:04]Write to MH i2c: E2 08 00 3E 52 80 11 00 00 00 00 00 00 0A [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 3E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [13:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:34:04]wFMCommunicate OK [13:34:04]CreateOFDProtocolMessage done [13:34:04]OFDSenderStorePacket 31182 [13:34:04]StoreOFDPacket docnum=31182 [13:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 69 07 01 5E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 79 00 00 35 04 06 00 05 84 0E 69 31 C5 E8 9E D4 E6 5F EC AE 34 [13:34:04]CheckFolder [13:34:04]dirname=/storage/ofd_packets [13:34:04]CheckFolder done [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00031182 [13:34:04]NVStorageSaveData ofd_packets/00031182 [13:34:04]File name is /storage/ofd_packets/00031182 [13:34:04]Write 301 bytes [13:34:04]NVStorageSaveData done [13:34:04]OFDSenderStorePacket done [13:34:04]KKMCreateOFDPacket done [13:34:04]NVStorageSaveData kkm_last_timestamp [13:34:04]File name is /storage/kkm_last_timestamp [13:34:04]Write 4 bytes [13:34:04]NVStorageSaveData done [13:34:04]ExternCall_PrintAddStr [13:34:04]wPrintStart [13:34:04]Write to MH i2c: 01 00 00 3F 52 91 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 3F 52 00 00 00 00 00 FF 0F A6 [13:34:04]RasterBufferAndPrint [13:34:04]line Счет N : (1)343628 [13:34:04]line ИНН: 02508201610067 [13:34:04]line Контрольно-Кассовый Чек [13:34:04]line ПРОДАЖА [13:34:04]line ТРК (МРК, ГНК) : 62 [13:34:04]line Товар: 2710124500 [13:34:04]line Аи-95-К-3 [13:34:04]line 40.440 * 74.20 [13:34:04]line = 3000.65 [13:34:04]line НДС 12% НСП 1% [13:34:04]line > о реализуемом товаре [13:34:04]line ИТОГО: 3000.65 [13:34:04]line НСП 1% : 26.55 [13:34:04]line НДС 12% : 318.65 [13:34:04]line Наличными: 0.00 [13:34:04]line Безнал.: 3000.65 [13:34:04]line Место: АЗС № 78 "Партнер Нефть" [13:34:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:34:04]line СНО: Общий режим [13:34:04]line Чек 126 23.10.2024 13:34 [13:34:04]line Смена: 117 ФФД: 1.0 [13:34:04]line ЗНМ: 0300000137 [13:34:04]line РНМ: 0000000000186857 [13:34:04]line Версия ККМ: v1.0 [13:34:04]line Платежная система: АКБ Кыргызстан [13:34:04]line ФМ: 0000000002094219 [13:34:04]line ФД: 31182 [13:34:04]line ФПД: 6064735596997 [13:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133409&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31182&fm=6064735596997&tin=02508201610067®Number=0000000000186857&sum=300065 [13:34:05]OFD Sender: Processing packet 31182 [packets to send 11, broken 10] [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00031182 [13:34:05]OFD Sender: To server: pG, [13:34:05]CommunicateWithHost lk.salyk.kg:30040 [13:34:05]ConnectInit lk.salyk.kg [13:34:05]written 0, free lines is 4095 [13:34:05]Connected sock=10 [13:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 69 07 01 5E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 79 00 00 35 04 06 00 05 84 0E 69 31 C5 E8 9E D4 E6 5F EC AE 34 [13:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 49 AB 47 00 30 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 79 00 00 F4 03 04 00 CB A5 18 67 B6 04 01 00 00 61 3F 84 A0 38 AD A3 88 [13:34:05]CommunicateWithHost err = 0 [13:34:05]CheckOFDResponse [13:34:05]1017 (14) - 77093643461234 [13:34:05]1041 (16) - 0000000002094219 [13:34:05]1040 (4) - 31182 [13:34:05]1012 (4) - 23.10.2024 07:29 [13:34:05]1206 (1) - 0 [13:34:05]OFD Sender: Remove packet 31182 [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00031182 [13:34:05]NVStorageDeleteData [13:34:05]Write to MH i2c: 01 00 00 69 52 BB [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 07 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 07 00 69 52 00 00 00 00 00 0D 0D DC [13:34:05]RasterBufferAndPrint [13:34:05]line [13:34:05]line [13:34:05]line [13:34:05]line [13:34:05]line [13:34:05]written 0, free lines is 3347 [13:34:05]MH_Cut [13:34:05]Write to MH i2c: D1 01 00 70 52 01 94 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: D1 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: D1 01 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: D1 01 00 70 52 00 93 [13:34:05]Write to MH i2c: 01 00 00 71 52 C3 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:06]OFD Sender: No OFD packet to send [13:34:06]*** Cut start [13:34:06]*** Partial cut [13:34:06]*** CUTSNS_PIN = 1 [13:34:06]*** CUTSNS_PIN = 0 [13:34:06]*** Brake cut motor [13:34:06]Read from MH i2c: 01 [13:34:06]MH_I2C_Read... [13:34:06]*** Stop cut motor [13:34:06]*** Cut end [13:34:06]Read from MH i2c: 01 07 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: 01 07 00 71 52 00 00 00 00 00 FF 0F D8 [13:34:06]process_action close_receipt done [13:34:06]requested_data is exist [13:34:06]produce_requested_data [13:34:06]requested_item fm.sn is exist - process it [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 11 00 00 [13:34:06]Write to MH i2c: E2 08 00 72 52 80 11 00 00 00 00 00 00 3E [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 17 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 17 00 72 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [13:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:34:06]wFMCommunicate OK [13:34:06]requested_item fd.num is exist - process it [13:34:06]SAM_PROTO_GetFieldsCounters [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 00 00 [13:34:06]Write to MH i2c: E2 08 00 73 52 80 13 00 00 00 00 00 00 41 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 62 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 62 00 73 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [13:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_GetFieldsCounters done [13:34:07]requested_item shift.num is exist - process it [13:34:07]requested_item shift.opened is exist - process it [13:34:07]req_shift_opened [13:34:07]FM_GetShiftState [13:34:07]SAM_PROTO_GetShiftState [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 13 01 00 [13:34:07]Write to MH i2c: E2 08 00 74 52 80 13 01 00 00 00 00 00 43 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:07]Read from MH i2c: E2 0E 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 0E 00 74 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FD [13:34:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_GetShiftState done [13:34:07]FM_GetShiftState done [13:34:07]req_shift_opened done [13:34:07]requested_item shift.open_date is exist - process it [13:34:07]req_shift_open_date [13:34:07]req_shift_open_date done [13:34:07]produce_requested_data done [13:34:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31182,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:34:07]process_action_free close_receipt [13:34:07]json_value_free [13:34:07]json_value_free done [13:34:07]process_json_proto returns [13:34:07]Send response to host [13:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31182,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:34:07]free response buf [13:34:07]execute_script done [13:34:07]execute_script returns [13:34:07]free content buf [13:34:07]Sock 9.Close socket [13:34:07]Sock 9.Thread stoped [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:40]accept exits with 7 [13:34:40]New connection [13:34:40]New thread 3067043172 created [13:34:40]Thread 3066899812 joined [13:34:40]Waiting for new connection... [13:34:40] Sock 7.Parse request [13:34:40]Sock 7.Check first char [13:34:40]Sock 7.First char is OK [13:34:40]request: POST /json_proto HTTP/1.0 [13:34:40]Method: POST [13:34:40]URL: /json_proto [13:34:40]Method is POST - this is cgi request [13:34:40]url: /json_proto [13:34:40]query_string will be loaded in cgi processing [13:34:40]execute_cgi json_proto POST (null) [13:34:40]execute_cgi path=json_proto method=POST [13:34:40]POST find Content-Length [13:34:40]Host: 172.17.51.3:8080 [13:34:40]Content-Length: 840 [13:34:40]Content-Type: application/json [13:34:40] [13:34:40]POST finish read [13:34:40]Found Content-Length = 840 [13:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:40]execute_script... [13:34:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:40]POST & json_proto [13:34:40]process_json_proto [13:34:40]json parsed OK: [13:34:40]protocol is kg_v1.0 [13:34:40]action value=close_receipt [13:34:40]process_action close_receipt [13:34:40]cmd_close_receipt [13:34:40]MH_GetDate [13:34:40]Write to MH i2c: F0 00 00 75 52 B6 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: F0 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: F0 09 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: F0 09 00 75 52 00 77 FB 18 67 04 C1 95 66 70 [13:34:40]GetLastDocTimeStamp 1729690449 [13:34:40]current date 1729690487 [13:34:40]FM_GetShiftState [13:34:40]SAM_PROTO_GetShiftState [13:34:40]wFMCommunicate request_size=4 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 13 01 00 [13:34:40]Write to MH i2c: E2 08 00 76 52 80 13 01 00 00 00 00 00 45 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 0E 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 0E 00 76 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FF [13:34:40]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:34:40]wFMCommunicate OK [13:34:40]SAM_PROTO_GetShiftState done [13:34:40]FM_GetShiftState done [13:34:40]opened in 1729643755 [13:34:40]opened+sec_in_day 1729730155 [13:34:40]quantity*price = 30038 [13:34:40]sum+1 = 30039 [13:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 127 23.10.2024 13:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31183 ФПД: 149630855007512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133447&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31183&fm=149630855007512&tin=02508201610067®Number=0000000000186857&sum=30038 [13:34:41]StoreToDocumentArchive [13:34:41]shift 117 fd 31183 [13:34:41]save to /storage/0117/doc_00031183 [13:34:41]save last doc name /storage/0117/doc_00031183 to /storage/kkm_last_doc_name [13:34:41]save OK [13:34:41]Clear old archive folders... [13:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:41]tlvbuf is 00D77460 [13:34:41]SAM_PROTO_ClearQueue [13:34:41]wFMCommunicate request_size=4 [13:34:41]MH_SAM_APDU [13:34:41]CAPDU: 80 09 00 00 [13:34:41]Write to MH i2c: E2 08 00 83 52 80 09 00 00 00 00 00 00 47 [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:41]Read from MH i2c: E2 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 03 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 03 00 83 52 00 90 00 49 [13:34:41]RAPDU: 90 00 [13:34:41]wFMCommunicate OK [13:34:41]SAM_PROTO_ClearQueue done [13:34:41]KKMCreateOFDPacket [13:34:41]OFDProtocolAddRootSTLVToBuf [13:34:41]FM_MakeSignedData [13:34:41]FM_MakeSignedData [13:34:41]SAM_PROTO_SignData [13:34:41]wFMCommunicate request_size=4 [13:34:41]MH_SAM_APDU [13:34:41]CAPDU: 80 0D 01 02 [13:34:41]Write to MH i2c: E2 08 00 84 52 80 0D 01 02 00 00 00 00 4F [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:41]Read from MH i2c: E2 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 03 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 03 00 84 52 00 90 00 4A [13:34:41]RAPDU: 90 00 [13:34:41]wFMCommunicate OK [13:34:41]wFMCommunicate request_size=255 [13:34:41]MH_SAM_APDU [13:34:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 79 00 00 35 04 06 00 88 [13:34:41]Write to MH i2c: E2 02 01 85 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 79 00 00 35 04 06 00 88 00 00 D5 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 85 52 00 90 00 4B [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]wFMCommunicate request_size=10 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 02 02 05 16 A5 F5 CD 18 [13:34:42]Write to MH i2c: E2 0D 00 86 52 80 0D 02 02 05 00 16 A5 F5 CD 18 00 00 F1 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 86 52 00 90 00 4C [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 03 02 [13:34:42]Write to MH i2c: E2 08 00 87 52 80 0D 03 02 00 00 00 00 54 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0B 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0B 00 87 52 00 A4 A3 1D 63 DE 48 71 7A 90 00 2D [13:34:42]RAPDU: A4 A3 1D 63 DE 48 71 7A 90 00 [13:34:42]wFMCommunicate OK [13:34:42]SAM_PROTO_SignData done [13:34:42]FM_MakeSignedData done [13:34:42]CreateOFDProtocolMessage [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 11 00 00 [13:34:42]Write to MH i2c: E2 08 00 88 52 80 11 00 00 00 00 00 00 54 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 88 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [13:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:34:42]wFMCommunicate OK [13:34:42]CreateOFDProtocolMessage done [13:34:42]OFDSenderStorePacket 31183 [13:34:42]StoreOFDPacket docnum=31183 [13:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8C 62 07 01 0B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 79 00 00 35 04 06 00 88 16 A5 F5 CD 18 A4 A3 1D 63 DE 48 71 7A [13:34:42]CheckFolder [13:34:42]dirname=/storage/ofd_packets [13:34:42]CheckFolder done [13:34:42]ProducePacketName [13:34:42]name=ofd_packets/00031183 [13:34:42]NVStorageSaveData ofd_packets/00031183 [13:34:42]File name is /storage/ofd_packets/00031183 [13:34:42]Write 301 bytes [13:34:42]NVStorageSaveData done [13:34:42]OFDSenderStorePacket done [13:34:42]KKMCreateOFDPacket done [13:34:42]NVStorageSaveData kkm_last_timestamp [13:34:42]File name is /storage/kkm_last_timestamp [13:34:42]Write 4 bytes [13:34:42]NVStorageSaveData done [13:34:42]ExternCall_PrintAddStr [13:34:42]wPrintStart [13:34:42]Write to MH i2c: 01 00 00 89 52 DB [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 07 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 07 00 89 52 00 00 00 00 00 FF 0F F0 [13:34:42]RasterBufferAndPrint [13:34:42]line Счет N : (1)343629 [13:34:42]line ИНН: 02508201610067 [13:34:42]line Контрольно-Кассовый Чек [13:34:42]line ПРОДАЖА [13:34:42]line ТРК (МРК, ГНК) : 43 [13:34:42]line Товар: 2710124130 [13:34:42]line Аи-92-К-2 [13:34:42]line 4.490 * 66.90 [13:34:42]line = 300.38 [13:34:42]line НДС 12% НСП 1% [13:34:42]line > о реализуемом товаре [13:34:42]line ИТОГО: 300.38 [13:34:42]line НСП 1% : 2.66 [13:34:42]line НДС 12% : 31.90 [13:34:42]line Наличными: 0.00 [13:34:42]line Безнал.: 300.38 [13:34:42]line Место: АЗС № 78 "Партнер Нефть" [13:34:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:34:42]line СНО: Общий режим [13:34:42]line Чек 127 23.10.2024 13:34 [13:34:42]line Смена: 117 ФФД: 1.0 [13:34:42]line ЗНМ: 0300000137 [13:34:42]line РНМ: 0000000000186857 [13:34:42]line Версия ККМ: v1.0 [13:34:42]line Платежная система: АКБ Кыргызстан [13:34:42]line ФМ: 0000000002094219 [13:34:42]line ФД: 31183 [13:34:42]line ФПД: 149630855007512 [13:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133447&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31183&fm=149630855007512&tin=02508201610067®Number=0000000000186857&sum=30038 [13:34:42]OFD Sender: Processing packet 31183 [packets to send 11, broken 10] [13:34:42]ProducePacketName [13:34:42]name=ofd_packets/00031183 [13:34:42]OFD Sender: To server: pG, [13:34:42]CommunicateWithHost lk.salyk.kg:30040 [13:34:42]ConnectInit lk.salyk.kg [13:34:42]written 0, free lines is 4095 [13:34:42]Connected sock=9 [13:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8C 62 07 01 0B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 FB 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 79 00 00 35 04 06 00 88 16 A5 F5 CD 18 A4 A3 1D 63 DE 48 71 7A [13:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 98 5D 47 00 AD EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 79 00 00 F4 03 04 00 F1 A5 18 67 B6 04 01 00 00 3B 2C 04 45 73 43 87 D8 [13:34:43]CommunicateWithHost err = 0 [13:34:43]CheckOFDResponse [13:34:43]1017 (14) - 77093643461234 [13:34:43]1041 (16) - 0000000002094219 [13:34:43]1040 (4) - 31183 [13:34:43]1012 (4) - 23.10.2024 07:29 [13:34:43]1206 (1) - 0 [13:34:43]OFD Sender: Remove packet 31183 [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00031183 [13:34:43]NVStorageDeleteData [13:34:43]Write to MH i2c: 01 00 00 B3 52 05 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 B3 52 00 00 00 00 00 FF 0C 17 [13:34:43]RasterBufferAndPrint [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]written 0, free lines is 3333 [13:34:43]MH_Cut [13:34:43]Write to MH i2c: D1 01 00 BA 52 01 DE [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 01 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 01 00 BA 52 00 DD [13:34:43]Write to MH i2c: 01 00 00 BB 52 0D [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]OFD Sender: No OFD packet to send [13:34:43]*** Cut start [13:34:43]*** Partial cut [13:34:43]*** CUTSNS_PIN = 1 [13:34:43]*** CUTSNS_PIN = 0 [13:34:44]*** Brake cut motor [13:34:44]Read from MH i2c: 01 [13:34:44]MH_I2C_Read... [13:34:44]*** Stop cut motor [13:34:44]*** Cut end [13:34:44]Read from MH i2c: 01 07 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 07 00 BB 52 00 00 00 00 00 FF 0F 22 [13:34:44]process_action close_receipt done [13:34:44]requested_data is exist [13:34:44]produce_requested_data [13:34:44]requested_item fm.sn is exist - process it [13:34:44]wFMCommunicate request_size=4 [13:34:44]MH_SAM_APDU [13:34:44]CAPDU: 80 11 00 00 [13:34:44]Write to MH i2c: E2 08 00 BC 52 80 11 00 00 00 00 00 00 88 [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:44]Read from MH i2c: E2 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 17 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 17 00 BC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [13:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:34:44]wFMCommunicate OK [13:34:44]requested_item fd.num is exist - process it [13:34:44]SAM_PROTO_GetFieldsCounters [13:34:44]wFMCommunicate request_size=4 [13:34:44]MH_SAM_APDU [13:34:44]CAPDU: 80 13 00 00 [13:34:44]Write to MH i2c: E2 08 00 BD 52 80 13 00 00 00 00 00 00 8B [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:44]Read from MH i2c: E2 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 62 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 62 00 BD 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:44]wFMCommunicate OK [13:34:44]SAM_PROTO_GetFieldsCounters done [13:34:44]requested_item shift.num is exist - process it [13:34:44]requested_item shift.opened is exist - process it [13:34:44]req_shift_opened [13:34:44]FM_GetShiftState [13:34:44]SAM_PROTO_GetShiftState [13:34:44]wFMCommunicate request_size=4 [13:34:44]MH_SAM_APDU [13:34:44]CAPDU: 80 13 01 00 [13:34:44]Write to MH i2c: E2 08 00 BE 52 80 13 01 00 00 00 00 00 8D [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:44]Read from MH i2c: E2 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 0E 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: E2 0E 00 BE 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 47 [13:34:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:34:44]wFMCommunicate OK [13:34:44]SAM_PROTO_GetShiftState done [13:34:44]FM_GetShiftState done [13:34:44]req_shift_opened done [13:34:44]requested_item shift.open_date is exist - process it [13:34:44]req_shift_open_date [13:34:44]req_shift_open_date done [13:34:44]produce_requested_data done [13:34:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31183,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:34:44]process_action_free close_receipt [13:34:44]json_value_free [13:34:44]json_value_free done [13:34:44]process_json_proto returns [13:34:44]Send response to host [13:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31183,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:34:44]free response buf [13:34:44]execute_script done [13:34:44]execute_script returns [13:34:44]free content buf [13:34:44]Sock 7.Close socket [13:34:44]Sock 7.Thread stoped [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:04]accept exits with 10 [13:38:04]New connection [13:38:04]New thread 3066899812 created [13:38:04]Thread 3067043172 joined [13:38:04]Waiting for new connection... [13:38:04] Sock 10.Parse request [13:38:04]Sock 10.Check first char [13:38:04]Sock 10.First char is OK [13:38:04]request: POST /json_proto HTTP/1.0 [13:38:04]Method: POST [13:38:04]URL: /json_proto [13:38:04]Method is POST - this is cgi request [13:38:04]url: /json_proto [13:38:04]query_string will be loaded in cgi processing [13:38:04]execute_cgi json_proto POST (null) [13:38:04]execute_cgi path=json_proto method=POST [13:38:04]POST find Content-Length [13:38:04]Host: 172.17.51.3:8080 [13:38:04]Content-Length: 677 [13:38:04]Content-Type: application/json [13:38:04] [13:38:04]POST finish read [13:38:04]Found Content-Length = 677 [13:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]execute_script... [13:38:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:04]POST & json_proto [13:38:04]process_json_proto [13:38:04]json parsed OK: [13:38:04]protocol is kg_v1.0 [13:38:04]action value=close_receipt [13:38:04]process_action close_receipt [13:38:04]cmd_close_receipt [13:38:04]MH_GetDate [13:38:04]Write to MH i2c: F0 00 00 BF 52 00 [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: F0 09 00 BF 52 00 42 FC 18 67 04 C1 95 66 86 [13:38:04]GetLastDocTimeStamp 1729690487 [13:38:04]current date 1729690690 [13:38:04]FM_GetShiftState [13:38:04]SAM_PROTO_GetShiftState [13:38:04]wFMCommunicate request_size=4 [13:38:04]MH_SAM_APDU [13:38:04]CAPDU: 80 13 01 00 [13:38:04]Write to MH i2c: E2 08 00 C0 52 80 13 01 00 00 00 00 00 8F [13:38:04]Write i2c OK [13:38:04]MH_I2C_Read... [13:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:04]Read from MH i2c: E2 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 [13:38:04]MH_I2C_Read... [13:38:04]Read from MH i2c: E2 0E 00 C0 52 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 49 [13:38:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:38:04]wFMCommunicate OK [13:38:04]SAM_PROTO_GetShiftState done [13:38:04]FM_GetShiftState done [13:38:04]opened in 1729643755 [13:38:04]opened+sec_in_day 1729730155 [13:38:04]quantity*price = 20003 [13:38:04]sum+1 = 20004 [13:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 128 23.10.2024 13:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31184 ФПД: 113791298485068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31184&fm=113791298485068&tin=02508201610067®Number=0000000000186857&sum=20000 [13:38:05]StoreToDocumentArchive [13:38:05]shift 117 fd 31184 [13:38:05]save to /storage/0117/doc_00031184 [13:38:05]save last doc name /storage/0117/doc_00031184 to /storage/kkm_last_doc_name [13:38:05]save OK [13:38:05]Clear old archive folders... [13:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:05]tlvbuf is 00DB75D0 [13:38:05]SAM_PROTO_ClearQueue [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 09 00 00 [13:38:05]Write to MH i2c: E2 08 00 CD 52 80 09 00 00 00 00 00 00 91 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 CD 52 00 90 00 93 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_ClearQueue done [13:38:05]KKMCreateOFDPacket [13:38:05]OFDProtocolAddRootSTLVToBuf [13:38:05]FM_MakeSignedData [13:38:05]FM_MakeSignedData [13:38:05]SAM_PROTO_SignData [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 01 02 [13:38:05]Write to MH i2c: E2 08 00 CE 52 80 0D 01 02 00 00 00 00 99 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=255 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 42 FC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 79 00 00 35 04 06 00 67 [13:38:05]Write to MH i2c: E2 02 01 CF 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 42 FC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 79 00 00 35 04 06 00 67 00 00 4E [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [13:38:05]RAPDU: 90 00 [13:38:05]wFMCommunicate OK [13:38:05]wFMCommunicate request_size=10 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 0D 02 02 05 7E 19 EC BB 4C [13:38:05]Write to MH i2c: E2 0D 00 D0 52 80 0D 02 02 05 00 7E 19 EC BB 4C 00 00 30 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 D0 52 00 90 00 96 [13:38:06]RAPDU: 90 00 [13:38:06]wFMCommunicate OK [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 0D 03 02 [13:38:06]Write to MH i2c: E2 08 00 D1 52 80 0D 03 02 00 00 00 00 9E [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 0B 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 0B 00 D1 52 00 CB 9F B5 BD A7 12 E8 78 90 00 94 [13:38:06]RAPDU: CB 9F B5 BD A7 12 E8 78 90 00 [13:38:06]wFMCommunicate OK [13:38:06]SAM_PROTO_SignData done [13:38:06]FM_MakeSignedData done [13:38:06]CreateOFDProtocolMessage [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 11 00 00 [13:38:06]Write to MH i2c: E2 08 00 D2 52 80 11 00 00 00 00 00 00 9E [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 17 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 17 00 D2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [13:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:38:06]wFMCommunicate OK [13:38:06]CreateOFDProtocolMessage done [13:38:06]OFDSenderStorePacket 31184 [13:38:06]StoreOFDPacket docnum=31184 [13:38:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 01 07 01 31 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 42 FC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 79 00 00 35 04 06 00 67 7E 19 EC BB 4C CB 9F B5 BD A7 12 E8 78 [13:38:06]CheckFolder [13:38:06]dirname=/storage/ofd_packets [13:38:06]CheckFolder done [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00031184 [13:38:06]NVStorageSaveData ofd_packets/00031184 [13:38:06]File name is /storage/ofd_packets/00031184 [13:38:06]Write 301 bytes [13:38:06]NVStorageSaveData done [13:38:06]OFDSenderStorePacket done [13:38:06]KKMCreateOFDPacket done [13:38:06]NVStorageSaveData kkm_last_timestamp [13:38:06]File name is /storage/kkm_last_timestamp [13:38:06]Write 4 bytes [13:38:06]NVStorageSaveData done [13:38:06]ExternCall_PrintAddStr [13:38:06]wPrintStart [13:38:06]Write to MH i2c: 01 00 00 D3 52 25 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 D3 52 00 00 00 00 00 FF 0F 3A [13:38:06]RasterBufferAndPrint [13:38:06]line Счет N : (1)343630 [13:38:06]line ИНН: 02508201610067 [13:38:06]line Контрольно-Кассовый Чек [13:38:06]line ПРОДАЖА [13:38:06]line ТРК (МРК, ГНК) : 63 [13:38:06]line Товар: 2710124130 [13:38:06]line Аи-92-К-2 [13:38:06]line 2.990 * 66.90 [13:38:06]line = 200.03 [13:38:06]line НДС 12% НСП 1% [13:38:06]line > о реализуемом товаре [13:38:06]line ОКРУГЛЕНИЕ: -0.03 [13:38:06]line ИТОГО: 200.00 [13:38:06]line Внесено: 200.00 [13:38:06]line СДАЧА: 0.00 [13:38:06]line НСП 1% : 1.77 [13:38:06]line НДС 12% : 21.24 [13:38:06]line Наличными: 200.00 [13:38:06]line Безнал.: 0.00 [13:38:06]line Место: АЗС № 78 "Партнер Нефть" [13:38:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:38:06]line СНО: Общий режим [13:38:06]line Чек 128 23.10.2024 13:38 [13:38:06]line Смена: 117 ФФД: 1.0 [13:38:06]line ЗНМ: 0300000137 [13:38:06]line РНМ: 0000000000186857 [13:38:06]line Версия ККМ: v1.0 [13:38:06]line ФМ: 0000000002094219 [13:38:06]line ФД: 31184 [13:38:06]line ФПД: 113791298485068 [13:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31184&fm=113791298485068&tin=02508201610067®Number=0000000000186857&sum=20000 [13:38:06]OFD Sender: Processing packet 31184 [packets to send 11, broken 10] [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00031184 [13:38:06]OFD Sender: To server: pG, [13:38:06]CommunicateWithHost lk.salyk.kg:30040 [13:38:06]ConnectInit lk.salyk.kg [13:38:06]written 0, free lines is 4095 [13:38:06]Connected sock=9 [13:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D9 01 07 01 31 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 42 FC 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 79 00 00 35 04 06 00 67 7E 19 EC BB 4C CB 9F B5 BD A7 12 E8 78 [13:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 36 E2 47 00 BD 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 79 00 00 F4 03 04 00 BD A6 18 67 B6 04 01 00 00 E3 87 2C 52 C2 7E B0 16 [13:38:06]CommunicateWithHost err = 0 [13:38:06]CheckOFDResponse [13:38:06]1017 (14) - 77093643461234 [13:38:06]1041 (16) - 0000000002094219 [13:38:06]1040 (4) - 31184 [13:38:06]1012 (4) - 23.10.2024 07:33 [13:38:06]1206 (1) - 0 [13:38:06]OFD Sender: Remove packet 31184 [13:38:06]ProducePacketName [13:38:06]name=ofd_packets/00031184 [13:38:06]NVStorageDeleteData [13:38:06]Write to MH i2c: 01 00 00 FE 52 50 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: 01 07 00 FE 52 00 00 00 00 00 F8 0C 5B [13:38:06]RasterBufferAndPrint [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]line [13:38:06]written 0, free lines is 3326 [13:38:06]MH_Cut [13:38:06]Write to MH i2c: D1 01 00 05 53 01 2A [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: D1 01 00 05 53 00 29 [13:38:06]Write to MH i2c: 01 00 00 06 53 59 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:07]OFD Sender: No OFD packet to send [13:38:07]*** Cut start [13:38:07]*** Partial cut [13:38:07]*** CUTSNS_PIN = 1 [13:38:07]*** CUTSNS_PIN = 0 [13:38:07]*** Brake cut motor [13:38:08]Read from MH i2c: 01 [13:38:08]MH_I2C_Read... [13:38:08]*** Stop cut motor [13:38:08]*** Cut end [13:38:08]Read from MH i2c: 01 07 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: 01 07 00 06 53 00 00 00 00 00 FF 0F 6E [13:38:08]process_action close_receipt done [13:38:08]requested_data is exist [13:38:08]produce_requested_data [13:38:08]requested_item fm.sn is exist - process it [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 11 00 00 [13:38:08]Write to MH i2c: E2 08 00 07 53 80 11 00 00 00 00 00 00 D4 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 07 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [13:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:38:08]wFMCommunicate OK [13:38:08]requested_item fd.num is exist - process it [13:38:08]SAM_PROTO_GetFieldsCounters [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 00 00 [13:38:08]Write to MH i2c: E2 08 00 08 53 80 13 00 00 00 00 00 00 D7 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 08 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetFieldsCounters done [13:38:08]requested_item shift.num is exist - process it [13:38:08]requested_item shift.opened is exist - process it [13:38:08]req_shift_opened [13:38:08]FM_GetShiftState [13:38:08]SAM_PROTO_GetShiftState [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 01 00 [13:38:08]Write to MH i2c: E2 08 00 09 53 80 13 01 00 00 00 00 00 D9 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 09 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 93 [13:38:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetShiftState done [13:38:08]FM_GetShiftState done [13:38:08]req_shift_opened done [13:38:08]requested_item shift.open_date is exist - process it [13:38:08]req_shift_open_date [13:38:08]req_shift_open_date done [13:38:08]produce_requested_data done [13:38:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31184,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:38:08]process_action_free close_receipt [13:38:08]json_value_free [13:38:08]json_value_free done [13:38:08]process_json_proto returns [13:38:08]Send response to host [13:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31184,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:38:08]free response buf [13:38:08]execute_script done [13:38:08]execute_script returns [13:38:08]free content buf [13:38:08]Sock 10.Close socket [13:38:08]Sock 10.Thread stoped [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:29]accept exits with 7 [13:44:29]New connection [13:44:29]New thread 3067043172 created [13:44:29]Thread 3066899812 joined [13:44:29]Waiting for new connection... [13:44:29] Sock 7.Parse request [13:44:29]Sock 7.Check first char [13:44:29]Sock 7.First char is OK [13:44:29]request: POST /json_proto HTTP/1.0 [13:44:29]Method: POST [13:44:29]URL: /json_proto [13:44:29]Method is POST - this is cgi request [13:44:29]url: /json_proto [13:44:29]query_string will be loaded in cgi processing [13:44:29]execute_cgi json_proto POST (null) [13:44:29]execute_cgi path=json_proto method=POST [13:44:29]POST find Content-Length [13:44:29]Host: 172.17.51.3:8080 [13:44:29]Content-Length: 677 [13:44:29]Content-Type: application/json [13:44:29] [13:44:29]POST finish read [13:44:29]Found Content-Length = 677 [13:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:29]execute_script... [13:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:29]POST & json_proto [13:44:29]process_json_proto [13:44:29]json parsed OK: [13:44:29]protocol is kg_v1.0 [13:44:29]action value=close_receipt [13:44:29]process_action close_receipt [13:44:29]cmd_close_receipt [13:44:29]MH_GetDate [13:44:29]Write to MH i2c: F0 00 00 0A 53 4C [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: F0 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: F0 09 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: F0 09 00 0A 53 00 C3 FD 18 67 04 C1 95 66 54 [13:44:29]GetLastDocTimeStamp 1729690690 [13:44:29]current date 1729691075 [13:44:29]FM_GetShiftState [13:44:29]SAM_PROTO_GetShiftState [13:44:29]wFMCommunicate request_size=4 [13:44:29]MH_SAM_APDU [13:44:29]CAPDU: 80 13 01 00 [13:44:29]Write to MH i2c: E2 08 00 0B 53 80 13 01 00 00 00 00 00 DB [13:44:29]Write i2c OK [13:44:29]MH_I2C_Read... [13:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:29]Read from MH i2c: E2 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0E 00 [13:44:29]MH_I2C_Read... [13:44:29]Read from MH i2c: E2 0E 00 0B 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 95 [13:44:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:44:29]wFMCommunicate OK [13:44:29]SAM_PROTO_GetShiftState done [13:44:29]FM_GetShiftState done [13:44:29]opened in 1729643755 [13:44:29]opened+sec_in_day 1729730155 [13:44:29]quantity*price = 50041 [13:44:29]sum+1 = 50042 [13:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 129 23.10.2024 13:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31185 ФПД: 188375150763127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134436&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31185&fm=188375150763127&tin=02508201610067®Number=0000000000186857&sum=50000 [13:44:30]StoreToDocumentArchive [13:44:30]shift 117 fd 31185 [13:44:30]save to /storage/0117/doc_00031185 [13:44:30]save last doc name /storage/0117/doc_00031185 to /storage/kkm_last_doc_name [13:44:30]save OK [13:44:30]Clear old archive folders... [13:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:30]tlvbuf is 00D547E0 [13:44:30]SAM_PROTO_ClearQueue [13:44:30]wFMCommunicate request_size=4 [13:44:30]MH_SAM_APDU [13:44:30]CAPDU: 80 09 00 00 [13:44:30]Write to MH i2c: E2 08 00 18 53 80 09 00 00 00 00 00 00 DD [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:30]Read from MH i2c: E2 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: E2 03 00 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: E2 03 00 18 53 00 90 00 DF [13:44:30]RAPDU: 90 00 [13:44:30]wFMCommunicate OK [13:44:30]SAM_PROTO_ClearQueue done [13:44:30]KKMCreateOFDPacket [13:44:30]OFDProtocolAddRootSTLVToBuf [13:44:30]FM_MakeSignedData [13:44:30]FM_MakeSignedData [13:44:30]SAM_PROTO_SignData [13:44:30]wFMCommunicate request_size=4 [13:44:30]MH_SAM_APDU [13:44:30]CAPDU: 80 0D 01 02 [13:44:30]Write to MH i2c: E2 08 00 19 53 80 0D 01 02 00 00 00 00 E5 [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:30]Read from MH i2c: E2 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: E2 03 00 [13:44:30]MH_I2C_Read... [13:44:30]Read from MH i2c: E2 03 00 19 53 00 90 00 E0 [13:44:30]RAPDU: 90 00 [13:44:30]wFMCommunicate OK [13:44:30]wFMCommunicate request_size=255 [13:44:30]MH_SAM_APDU [13:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 C4 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 79 00 00 35 04 06 00 AB [13:44:30]Write to MH i2c: E2 02 01 1A 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 C4 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 79 00 00 35 04 06 00 AB 00 00 A1 [13:44:30]Write i2c OK [13:44:30]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 03 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 03 00 1A 53 00 90 00 E1 [13:44:31]RAPDU: 90 00 [13:44:31]wFMCommunicate OK [13:44:31]wFMCommunicate request_size=10 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 0D 02 02 05 53 81 F2 1C 77 [13:44:31]Write to MH i2c: E2 0D 00 1B 53 80 0D 02 02 05 00 53 81 F2 1C 77 00 00 4B [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 03 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 03 00 1B 53 00 90 00 E2 [13:44:31]RAPDU: 90 00 [13:44:31]wFMCommunicate OK [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 0D 03 02 [13:44:31]Write to MH i2c: E2 08 00 1C 53 80 0D 03 02 00 00 00 00 EA [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0B 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 0B 00 1C 53 00 A8 DB 73 6C 97 5F 83 27 90 00 ED [13:44:31]RAPDU: A8 DB 73 6C 97 5F 83 27 90 00 [13:44:31]wFMCommunicate OK [13:44:31]SAM_PROTO_SignData done [13:44:31]FM_MakeSignedData done [13:44:31]CreateOFDProtocolMessage [13:44:31]wFMCommunicate request_size=4 [13:44:31]MH_SAM_APDU [13:44:31]CAPDU: 80 11 00 00 [13:44:31]Write to MH i2c: E2 08 00 1D 53 80 11 00 00 00 00 00 00 EA [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:31]Read from MH i2c: E2 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 17 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: E2 17 00 1D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [13:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:44:31]wFMCommunicate OK [13:44:31]CreateOFDProtocolMessage done [13:44:31]OFDSenderStorePacket 31185 [13:44:31]StoreOFDPacket docnum=31185 [13:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 50 CA 07 01 19 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 C4 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 79 00 00 35 04 06 00 AB 53 81 F2 1C 77 A8 DB 73 6C 97 5F 83 27 [13:44:31]CheckFolder [13:44:31]dirname=/storage/ofd_packets [13:44:31]CheckFolder done [13:44:31]ProducePacketName [13:44:31]name=ofd_packets/00031185 [13:44:31]NVStorageSaveData ofd_packets/00031185 [13:44:31]File name is /storage/ofd_packets/00031185 [13:44:31]Write 301 bytes [13:44:31]NVStorageSaveData done [13:44:31]OFDSenderStorePacket done [13:44:31]KKMCreateOFDPacket done [13:44:31]NVStorageSaveData kkm_last_timestamp [13:44:31]File name is /storage/kkm_last_timestamp [13:44:31]Write 4 bytes [13:44:31]NVStorageSaveData done [13:44:31]ExternCall_PrintAddStr [13:44:31]wPrintStart [13:44:31]Write to MH i2c: 01 00 00 1E 53 71 [13:44:31]OFD Sender: Processing packet 31185 [packets to send 11, broken 10] [13:44:31]ProducePacketName [13:44:31]name=ofd_packets/00031185 [13:44:31]OFD Sender: To server: pG, [13:44:31]CommunicateWithHost lk.salyk.kg:30040 [13:44:31]ConnectInit lk.salyk.kg [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 07 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 07 00 1E 53 00 00 00 00 00 FF 0F 86 [13:44:31]RasterBufferAndPrint [13:44:31]line Счет N : (1)343631 [13:44:31]line ИНН: 02508201610067 [13:44:31]line Контрольно-Кассовый Чек [13:44:31]line ПРОДАЖА [13:44:31]line ТРК (МРК, ГНК) : 53 [13:44:31]line Товар: 2710124130 [13:44:31]line Аи-92-К-2 [13:44:31]line 7.480 * 66.90 [13:44:31]line = 500.41 [13:44:31]line НДС 12% НСП 1% [13:44:31]line > о реализуемом товаре [13:44:31]line ОКРУГЛЕНИЕ: -0.41 [13:44:31]line ИТОГО: 500.00 [13:44:31]line Внесено: 500.00 [13:44:31]line СДАЧА: 0.00 [13:44:31]line НСП 1% : 4.43 [13:44:31]line НДС 12% : 53.14 [13:44:31]line Наличными: 500.00 [13:44:31]line Безнал.: 0.00 [13:44:31]line Место: АЗС № 78 "Партнер Нефть" [13:44:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:44:31]line СНО: Общий режим [13:44:31]line Чек 129 23.10.2024 13:44 [13:44:31]line Смена: 117 ФФД: 1.0 [13:44:31]line ЗНМ: 0300000137 [13:44:31]line РНМ: 0000000000186857 [13:44:31]line Версия ККМ: v1.0 [13:44:31]line ФМ: 0000000002094219 [13:44:31]line ФД: 31185 [13:44:31]line ФПД: 188375150763127 [13:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134436&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31185&fm=188375150763127&tin=02508201610067®Number=0000000000186857&sum=50000 [13:44:31]Connected sock=10 [13:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 50 CA 07 01 19 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 C4 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 79 00 00 35 04 06 00 AB 53 81 F2 1C 77 A8 DB 73 6C 97 5F 83 27 [13:44:31]written 0, free lines is 4095 [13:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DA CB 47 00 D4 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 79 00 00 F4 03 04 00 3E A8 18 67 B6 04 01 00 00 52 1B 2C D2 CD 8D D4 69 [13:44:31]CommunicateWithHost err = 0 [13:44:31]CheckOFDResponse [13:44:31]1017 (14) - 77093643461234 [13:44:31]1041 (16) - 0000000002094219 [13:44:31]1040 (4) - 31185 [13:44:31]1012 (4) - 23.10.2024 07:39 [13:44:31]1206 (1) - 0 [13:44:31]OFD Sender: Remove packet 31185 [13:44:31]ProducePacketName [13:44:31]name=ofd_packets/00031185 [13:44:31]NVStorageDeleteData [13:44:32]Write to MH i2c: 01 00 00 49 53 9C [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 49 53 00 00 00 00 00 E4 0C 93 [13:44:32]RasterBufferAndPrint [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]written 0, free lines is 3306 [13:44:32]MH_Cut [13:44:32]Write to MH i2c: D1 01 00 50 53 01 75 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 01 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 01 00 50 53 00 74 [13:44:32]Write to MH i2c: 01 00 00 51 53 A4 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]OFD Sender: No OFD packet to send [13:44:32]*** Cut start [13:44:32]*** Partial cut [13:44:32]*** CUTSNS_PIN = 1 [13:44:32]*** CUTSNS_PIN = 0 [13:44:32]*** Brake cut motor [13:44:33]Read from MH i2c: 01 [13:44:33]MH_I2C_Read... [13:44:33]*** Stop cut motor [13:44:33]*** Cut end [13:44:33]Read from MH i2c: 01 07 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 51 53 00 00 00 00 00 FF 0F B9 [13:44:33]process_action close_receipt done [13:44:33]requested_data is exist [13:44:33]produce_requested_data [13:44:33]requested_item fm.sn is exist - process it [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 11 00 00 [13:44:33]Write to MH i2c: E2 08 00 52 53 80 11 00 00 00 00 00 00 1F [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 17 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 17 00 52 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [13:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:44:33]wFMCommunicate OK [13:44:33]requested_item fd.num is exist - process it [13:44:33]SAM_PROTO_GetFieldsCounters [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 13 00 00 [13:44:33]Write to MH i2c: E2 08 00 53 53 80 13 00 00 00 00 00 00 22 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 62 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 62 00 53 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:33]wFMCommunicate OK [13:44:33]SAM_PROTO_GetFieldsCounters done [13:44:33]requested_item shift.num is exist - process it [13:44:33]requested_item shift.opened is exist - process it [13:44:33]req_shift_opened [13:44:33]FM_GetShiftState [13:44:33]SAM_PROTO_GetShiftState [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 13 01 00 [13:44:33]Write to MH i2c: E2 08 00 54 53 80 13 01 00 00 00 00 00 24 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 0E 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 0E 00 54 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DE [13:44:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:44:33]wFMCommunicate OK [13:44:33]SAM_PROTO_GetShiftState done [13:44:33]FM_GetShiftState done [13:44:33]req_shift_opened done [13:44:33]requested_item shift.open_date is exist - process it [13:44:33]req_shift_open_date [13:44:33]req_shift_open_date done [13:44:33]produce_requested_data done [13:44:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31185,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:44:33]process_action_free close_receipt [13:44:33]json_value_free [13:44:33]json_value_free done [13:44:33]process_json_proto returns [13:44:33]Send response to host [13:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31185,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:44:33]free response buf [13:44:33]execute_script done [13:44:33]execute_script returns [13:44:33]free content buf [13:44:33]Sock 7.Close socket [13:44:33]Sock 7.Thread stoped [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:21]accept exits with 9 [13:45:21]New connection [13:45:21]New thread 3066899812 created [13:45:21]Thread 3067043172 joined [13:45:21]Waiting for new connection... [13:45:21] Sock 9.Parse request [13:45:21]Sock 9.Check first char [13:45:21]Sock 9.First char is OK [13:45:21]request: POST /json_proto HTTP/1.0 [13:45:21]Method: POST [13:45:21]URL: /json_proto [13:45:21]Method is POST - this is cgi request [13:45:21]url: /json_proto [13:45:21]query_string will be loaded in cgi processing [13:45:21]execute_cgi json_proto POST (null) [13:45:21]execute_cgi path=json_proto method=POST [13:45:21]POST find Content-Length [13:45:21]Host: 172.17.51.3:8080 [13:45:21]Content-Length: 674 [13:45:21]Content-Type: application/json [13:45:21] [13:45:21]POST finish read [13:45:21]Found Content-Length = 674 [13:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:21]execute_script... [13:45:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:21]POST & json_proto [13:45:21]process_json_proto [13:45:21]json parsed OK: [13:45:21]protocol is kg_v1.0 [13:45:21]action value=close_receipt [13:45:21]process_action close_receipt [13:45:21]cmd_close_receipt [13:45:21]MH_GetDate [13:45:21]Write to MH i2c: F0 00 00 55 53 97 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 09 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: F0 09 00 55 53 00 F7 FD 18 67 04 C1 95 66 D3 [13:45:21]GetLastDocTimeStamp 1729691076 [13:45:21]current date 1729691127 [13:45:21]FM_GetShiftState [13:45:21]SAM_PROTO_GetShiftState [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 13 01 00 [13:45:21]Write to MH i2c: E2 08 00 56 53 80 13 01 00 00 00 00 00 26 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 0E 00 56 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E0 [13:45:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:45:21]wFMCommunicate OK [13:45:21]SAM_PROTO_GetShiftState done [13:45:21]FM_GetShiftState done [13:45:21]opened in 1729643755 [13:45:21]opened+sec_in_day 1729730155 [13:45:21]quantity*price = 60045 [13:45:21]sum+1 = 60047 [13:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 130 23.10.2024 13:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31186 ФПД: 101787129248699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134527&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31186&fm=101787129248699&tin=02508201610067®Number=0000000000186857&sum=60000 [13:45:22]StoreToDocumentArchive [13:45:22]shift 117 fd 31186 [13:45:22]save to /storage/0117/doc_00031186 [13:45:22]save last doc name /storage/0117/doc_00031186 to /storage/kkm_last_doc_name [13:45:22]save OK [13:45:22]Clear old archive folders... [13:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:22]tlvbuf is B6EF0B70 [13:45:22]SAM_PROTO_ClearQueue [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 09 00 00 [13:45:22]Write to MH i2c: E2 08 00 63 53 80 09 00 00 00 00 00 00 28 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 63 53 00 90 00 2A [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_ClearQueue done [13:45:22]KKMCreateOFDPacket [13:45:22]OFDProtocolAddRootSTLVToBuf [13:45:22]FM_MakeSignedData [13:45:22]FM_MakeSignedData [13:45:22]SAM_PROTO_SignData [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 01 02 [13:45:22]Write to MH i2c: E2 08 00 64 53 80 0D 01 02 00 00 00 00 30 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 64 53 00 90 00 2B [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=255 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 79 00 00 35 04 06 00 5C 93 29 AE [13:45:22]Write to MH i2c: E2 02 01 65 53 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 79 00 00 35 04 06 00 5C 93 29 AE 00 00 F3 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 65 53 00 90 00 2C [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=7 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 02 02 02 7B BB [13:45:22]Write to MH i2c: E2 0A 00 66 53 80 0D 02 02 02 00 7B BB 00 00 6D [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 66 53 00 90 00 2D [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 03 02 [13:45:22]Write to MH i2c: E2 08 00 67 53 80 0D 03 02 00 00 00 00 35 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0B 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0B 00 67 53 00 4A B0 AB 34 B6 AC 1E 5C 90 00 EB [13:45:23]RAPDU: 4A B0 AB 34 B6 AC 1E 5C 90 00 [13:45:23]wFMCommunicate OK [13:45:23]SAM_PROTO_SignData done [13:45:23]FM_MakeSignedData done [13:45:23]CreateOFDProtocolMessage [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 11 00 00 [13:45:23]Write to MH i2c: E2 08 00 68 53 80 11 00 00 00 00 00 00 35 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 17 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 17 00 68 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [13:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:23]wFMCommunicate OK [13:45:23]CreateOFDProtocolMessage done [13:45:23]OFDSenderStorePacket 31186 [13:45:23]StoreOFDPacket docnum=31186 [13:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 92 52 04 01 2F 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 79 00 00 35 04 06 00 5C 93 29 AE 7B BB 4A B0 AB 34 B6 AC 1E 5C [13:45:23]CheckFolder [13:45:23]dirname=/storage/ofd_packets [13:45:23]CheckFolder done [13:45:23]ProducePacketName [13:45:23]name=ofd_packets/00031186 [13:45:23]NVStorageSaveData ofd_packets/00031186 [13:45:23]File name is /storage/ofd_packets/00031186 [13:45:23]Write 298 bytes [13:45:23]NVStorageSaveData done [13:45:23]OFDSenderStorePacket done [13:45:23]KKMCreateOFDPacket done [13:45:23]NVStorageSaveData kkm_last_timestamp [13:45:23]File name is /storage/kkm_last_timestamp [13:45:23]Write 4 bytes [13:45:23]NVStorageSaveData done [13:45:23]ExternCall_PrintAddStr [13:45:23]wPrintStart [13:45:23]Write to MH i2c: 01 00 00 69 53 BC [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 69 53 00 00 00 00 00 FF 0F D1 [13:45:23]RasterBufferAndPrint [13:45:23]line Счет N : (1)343632 [13:45:23]line ИНН: 02508201610067 [13:45:23]line Контрольно-Кассовый Чек [13:45:23]line ПРОДАЖА [13:45:23]line ТРК (МРК, ГНК) : 34 [13:45:23]line Товар: 2710194210 [13:45:23]line ДТ-К-2 [13:45:23]line 7.880 * 76.20 [13:45:23]line = 600.46 [13:45:23]line НДС 12% НСП 1% [13:45:23]line > о реализуемом товаре [13:45:23]line ОКРУГЛЕНИЕ: -0.46 [13:45:23]line ИТОГО: 600.00 [13:45:23]line Внесено: 600.00 [13:45:23]line СДАЧА: 0.00 [13:45:23]line НСП 1% : 5.31 [13:45:23]line НДС 12% : 63.77 [13:45:23]line Наличными: 600.00 [13:45:23]line Безнал.: 0.00 [13:45:23]line Место: АЗС № 78 "Партнер Нефть" [13:45:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:45:23]line СНО: Общий режим [13:45:23]line Чек 130 23.10.2024 13:45 [13:45:23]line Смена: 117 ФФД: 1.0 [13:45:23]line ЗНМ: 0300000137 [13:45:23]line РНМ: 0000000000186857 [13:45:23]line Версия ККМ: v1.0 [13:45:23]line ФМ: 0000000002094219 [13:45:23]line ФД: 31186 [13:45:23]line ФПД: 101787129248699 [13:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134527&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31186&fm=101787129248699&tin=02508201610067®Number=0000000000186857&sum=60000 [13:45:23]OFD Sender: Processing packet 31186 [packets to send 11, broken 10] [13:45:23]ProducePacketName [13:45:23]name=ofd_packets/00031186 [13:45:23]OFD Sender: To server: pG, [13:45:23]CommunicateWithHost lk.salyk.kg:30040 [13:45:23]ConnectInit lk.salyk.kg [13:45:23]written 0, free lines is 4095 [13:45:23]Connected sock=10 [13:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 92 52 04 01 2F 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 FD 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 79 00 00 35 04 06 00 5C 93 29 AE 7B BB 4A B0 AB 34 B6 AC 1E 5C [13:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B8 8B 47 00 78 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 79 00 00 F4 03 04 00 72 A8 18 67 B6 04 01 00 00 7C DE E1 73 F4 37 1E FE [13:45:23]CommunicateWithHost err = 0 [13:45:23]CheckOFDResponse [13:45:23]1017 (14) - 77093643461234 [13:45:23]1041 (16) - 0000000002094219 [13:45:23]1040 (4) - 31186 [13:45:23]1012 (4) - 23.10.2024 07:40 [13:45:23]1206 (1) - 0 [13:45:23]OFD Sender: Remove packet 31186 [13:45:23]ProducePacketName [13:45:23]name=ofd_packets/00031186 [13:45:23]NVStorageDeleteData [13:45:23]Write to MH i2c: 01 00 00 94 53 E7 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 94 53 00 00 00 00 00 E8 0C E2 [13:45:23]RasterBufferAndPrint [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]line [13:45:23]written 0, free lines is 3310 [13:45:23]MH_Cut [13:45:23]Write to MH i2c: D1 01 00 9B 53 01 C0 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 01 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: D1 01 00 9B 53 00 BF [13:45:23]Write to MH i2c: 01 00 00 9C 53 EF [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:24]OFD Sender: No OFD packet to send [13:45:24]*** Cut start [13:45:24]*** Partial cut [13:45:24]*** CUTSNS_PIN = 1 [13:45:24]*** CUTSNS_PIN = 0 [13:45:24]*** Brake cut motor [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]*** Stop cut motor [13:45:25]*** Cut end [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 9C 53 00 00 00 00 00 FF 0F 04 [13:45:25]process_action close_receipt done [13:45:25]requested_data is exist [13:45:25]produce_requested_data [13:45:25]requested_item fm.sn is exist - process it [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 11 00 00 [13:45:25]Write to MH i2c: E2 08 00 9D 53 80 11 00 00 00 00 00 00 6A [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 9D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [13:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:25]wFMCommunicate OK [13:45:25]requested_item fd.num is exist - process it [13:45:25]SAM_PROTO_GetFieldsCounters [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 13 00 00 [13:45:25]Write to MH i2c: E2 08 00 9E 53 80 13 00 00 00 00 00 00 6D [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 62 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 62 00 9E 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [13:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_GetFieldsCounters done [13:45:25]requested_item shift.num is exist - process it [13:45:25]requested_item shift.opened is exist - process it [13:45:25]req_shift_opened [13:45:25]FM_GetShiftState [13:45:25]SAM_PROTO_GetShiftState [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 13 01 00 [13:45:25]Write to MH i2c: E2 08 00 9F 53 80 13 01 00 00 00 00 00 6F [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0E 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0E 00 9F 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 29 [13:45:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_GetShiftState done [13:45:25]FM_GetShiftState done [13:45:25]req_shift_opened done [13:45:25]requested_item shift.open_date is exist - process it [13:45:25]req_shift_open_date [13:45:25]req_shift_open_date done [13:45:25]produce_requested_data done [13:45:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31186,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:45:25]process_action_free close_receipt [13:45:25]json_value_free [13:45:25]json_value_free done [13:45:25]process_json_proto returns [13:45:25]Send response to host [13:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31186,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:45:25]free response buf [13:45:25]execute_script done [13:45:25]execute_script returns [13:45:25]free content buf [13:45:25]Sock 9.Close socket [13:45:25]Sock 9.Thread stoped [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:04]accept exits with 7 [13:46:04]New connection [13:46:04]New thread 3067043172 created [13:46:04]Thread 3066899812 joined [13:46:04]Waiting for new connection... [13:46:04] Sock 7.Parse request [13:46:04]Sock 7.Check first char [13:46:04]Sock 7.First char is OK [13:46:04]request: POST /json_proto HTTP/1.0 [13:46:04]Method: POST [13:46:04]URL: /json_proto [13:46:04]Method is POST - this is cgi request [13:46:04]url: /json_proto [13:46:04]query_string will be loaded in cgi processing [13:46:04]execute_cgi json_proto POST (null) [13:46:04]execute_cgi path=json_proto method=POST [13:46:04]POST find Content-Length [13:46:04]Host: 172.17.51.3:8080 [13:46:04]Content-Length: 677 [13:46:04]Content-Type: application/json [13:46:04] [13:46:04]POST finish read [13:46:04]Found Content-Length = 677 [13:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:04]execute_script... [13:46:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:04]POST & json_proto [13:46:04]process_json_proto [13:46:04]json parsed OK: [13:46:04]protocol is kg_v1.0 [13:46:04]action value=close_receipt [13:46:04]process_action close_receipt [13:46:04]cmd_close_receipt [13:46:04]MH_GetDate [13:46:04]Write to MH i2c: F0 00 00 A0 53 E2 [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 09 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 09 00 A0 53 00 23 FE 18 67 04 C1 95 66 4B [13:46:04]GetLastDocTimeStamp 1729691127 [13:46:04]current date 1729691171 [13:46:04]FM_GetShiftState [13:46:04]SAM_PROTO_GetShiftState [13:46:04]wFMCommunicate request_size=4 [13:46:04]MH_SAM_APDU [13:46:04]CAPDU: 80 13 01 00 [13:46:04]Write to MH i2c: E2 08 00 A1 53 80 13 01 00 00 00 00 00 71 [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:04]Read from MH i2c: E2 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 A1 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2B [13:46:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:46:04]wFMCommunicate OK [13:46:04]SAM_PROTO_GetShiftState done [13:46:04]FM_GetShiftState done [13:46:04]opened in 1729643755 [13:46:04]opened+sec_in_day 1729730155 [13:46:04]quantity*price = 40006 [13:46:04]sum+1 = 40007 [13:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 131 23.10.2024 13:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31187 ФПД: 7580537687261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134611&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31187&fm=7580537687261&tin=02508201610067®Number=0000000000186857&sum=40000 [13:46:06]StoreToDocumentArchive [13:46:06]shift 117 fd 31187 [13:46:06]save to /storage/0117/doc_00031187 [13:46:06]save last doc name /storage/0117/doc_00031187 to /storage/kkm_last_doc_name [13:46:06]save OK [13:46:06]Clear old archive folders... [13:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:06]tlvbuf is 00CDD1D0 [13:46:06]SAM_PROTO_ClearQueue [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 09 00 00 [13:46:06]Write to MH i2c: E2 08 00 AE 53 80 09 00 00 00 00 00 00 73 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 AE 53 00 90 00 75 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]SAM_PROTO_ClearQueue done [13:46:06]KKMCreateOFDPacket [13:46:06]OFDProtocolAddRootSTLVToBuf [13:46:06]FM_MakeSignedData [13:46:06]FM_MakeSignedData [13:46:06]SAM_PROTO_SignData [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 01 02 [13:46:06]Write to MH i2c: E2 08 00 AF 53 80 0D 01 02 00 00 00 00 7B [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 AF 53 00 90 00 76 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=255 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 23 FE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 79 00 00 35 04 06 00 06 [13:46:06]Write to MH i2c: E2 02 01 B0 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 23 FE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 79 00 00 35 04 06 00 06 00 00 C5 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=10 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 02 02 05 E4 FB 41 8C DD [13:46:06]Write to MH i2c: E2 0D 00 B1 53 80 0D 02 02 05 00 E4 FB 41 8C DD 00 00 11 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 B1 53 00 90 00 78 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 03 02 [13:46:06]Write to MH i2c: E2 08 00 B2 53 80 0D 03 02 00 00 00 00 80 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0B 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0B 00 B2 53 00 73 40 95 99 1F A5 E5 31 90 00 3C [13:46:06]RAPDU: 73 40 95 99 1F A5 E5 31 90 00 [13:46:06]wFMCommunicate OK [13:46:06]SAM_PROTO_SignData done [13:46:06]FM_MakeSignedData done [13:46:06]CreateOFDProtocolMessage [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 11 00 00 [13:46:06]Write to MH i2c: E2 08 00 B3 53 80 11 00 00 00 00 00 00 80 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 B3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [13:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:46:06]wFMCommunicate OK [13:46:06]CreateOFDProtocolMessage done [13:46:06]OFDSenderStorePacket 31187 [13:46:06]StoreOFDPacket docnum=31187 [13:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 7F 07 01 AF 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 23 FE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 79 00 00 35 04 06 00 06 E4 FB 41 8C DD 73 40 95 99 1F A5 E5 31 [13:46:06]CheckFolder [13:46:06]dirname=/storage/ofd_packets [13:46:06]CheckFolder done [13:46:06]ProducePacketName [13:46:06]name=ofd_packets/00031187 [13:46:06]NVStorageSaveData ofd_packets/00031187 [13:46:06]File name is /storage/ofd_packets/00031187 [13:46:06]Write 301 bytes [13:46:06]NVStorageSaveData done [13:46:06]OFDSenderStorePacket done [13:46:06]KKMCreateOFDPacket done [13:46:06]NVStorageSaveData kkm_last_timestamp [13:46:06]File name is /storage/kkm_last_timestamp [13:46:06]Write 4 bytes [13:46:06]NVStorageSaveData done [13:46:06]ExternCall_PrintAddStr [13:46:06]wPrintStart [13:46:06]Write to MH i2c: 01 00 00 B4 53 07 [13:46:06]OFD Sender: Processing packet 31187 [packets to send 11, broken 10] [13:46:06]ProducePacketName [13:46:06]name=ofd_packets/00031187 [13:46:06]OFD Sender: To server: pG, [13:46:06]CommunicateWithHost lk.salyk.kg:30040 [13:46:06]ConnectInit lk.salyk.kg [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 B4 53 00 00 00 00 00 FF 0F 1C [13:46:06]RasterBufferAndPrint [13:46:06]line Счет N : (1)343633 [13:46:06]line ИНН: 02508201610067 [13:46:06]line Контрольно-Кассовый Чек [13:46:06]line ПРОДАЖА [13:46:06]line ТРК (МРК, ГНК) : 63 [13:46:06]line Товар: 2710124130 [13:46:06]line Аи-92-К-2 [13:46:06]line 5.980 * 66.90 [13:46:06]line = 400.06 [13:46:06]line НДС 12% НСП 1% [13:46:06]line > о реализуемом товаре [13:46:06]line ОКРУГЛЕНИЕ: -0.06 [13:46:06]line ИТОГО: 400.00 [13:46:06]line Внесено: 400.00 [13:46:06]line СДАЧА: 0.00 [13:46:06]line НСП 1% : 3.54 [13:46:06]line НДС 12% : 42.48 [13:46:06]line Наличными: 400.00 [13:46:06]line Безнал.: 0.00 [13:46:06]line Место: АЗС № 78 "Партнер Нефть" [13:46:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:46:06]line СНО: Общий режим [13:46:06]line Чек 131 23.10.2024 13:46 [13:46:06]line Смена: 117 ФФД: 1.0 [13:46:06]line ЗНМ: 0300000137 [13:46:06]line РНМ: 0000000000186857 [13:46:06]line Версия ККМ: v1.0 [13:46:06]line ФМ: 0000000002094219 [13:46:06]line ФД: 31187 [13:46:06]line ФПД: 7580537687261 [13:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134611&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31187&fm=7580537687261&tin=02508201610067®Number=0000000000186857&sum=40000 [13:46:06]Connected sock=10 [13:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 7F 07 01 AF 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 23 FE 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 79 00 00 35 04 06 00 06 E4 FB 41 8C DD 73 40 95 99 1F A5 E5 31 [13:46:06]written 0, free lines is 4095 [13:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E1 E8 47 00 E9 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 32 30 39 34 32 31 39 10 04 04 00 D3 79 00 00 F4 03 04 00 9D A8 18 67 B6 04 01 00 00 F9 54 69 2F 7A ED 82 CA [13:46:07]CommunicateWithHost err = 0 [13:46:07]CheckOFDResponse [13:46:07]1017 (14) - 77093643461234 [13:46:07]1041 (16) - 0000000002094219 [13:46:07]1040 (4) - 31187 [13:46:07]1012 (4) - 23.10.2024 07:41 [13:46:07]1206 (1) - 0 [13:46:07]OFD Sender: Remove packet 31187 [13:46:07]ProducePacketName [13:46:07]name=ofd_packets/00031187 [13:46:07]NVStorageDeleteData [13:46:07]Write to MH i2c: 01 00 00 DF 53 32 [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 07 00 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 07 00 DF 53 00 00 00 00 00 EA 0C 2F [13:46:07]RasterBufferAndPrint [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]written 0, free lines is 3315 [13:46:07]MH_Cut [13:46:07]Write to MH i2c: D1 01 00 E6 53 01 0B [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 01 00 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 01 00 E6 53 00 0A [13:46:07]Write to MH i2c: 01 00 00 E7 53 3A [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]OFD Sender: No OFD packet to send [13:46:08]*** Cut start [13:46:08]*** Partial cut [13:46:08]*** CUTSNS_PIN = 1 [13:46:08]*** CUTSNS_PIN = 0 [13:46:08]*** Brake cut motor [13:46:08]Read from MH i2c: 01 [13:46:08]MH_I2C_Read... [13:46:08]*** Stop cut motor [13:46:08]*** Cut end [13:46:08]Read from MH i2c: 01 07 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: 01 07 00 E7 53 00 00 00 00 00 FF 0F 4F [13:46:08]process_action close_receipt done [13:46:08]requested_data is exist [13:46:08]produce_requested_data [13:46:08]requested_item fm.sn is exist - process it [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 11 00 00 [13:46:08]Write to MH i2c: E2 08 00 E8 53 80 11 00 00 00 00 00 00 B5 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 17 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 17 00 E8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [13:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:46:08]wFMCommunicate OK [13:46:08]requested_item fd.num is exist - process it [13:46:08]SAM_PROTO_GetFieldsCounters [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 00 00 [13:46:08]Write to MH i2c: E2 08 00 E9 53 80 13 00 00 00 00 00 00 B8 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 62 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 62 00 E9 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [13:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetFieldsCounters done [13:46:08]requested_item shift.num is exist - process it [13:46:08]requested_item shift.opened is exist - process it [13:46:08]req_shift_opened [13:46:08]FM_GetShiftState [13:46:08]SAM_PROTO_GetShiftState [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 01 00 [13:46:08]Write to MH i2c: E2 08 00 EA 53 80 13 01 00 00 00 00 00 BA [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:08]Read from MH i2c: E2 0E 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 EA 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 74 [13:46:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetShiftState done [13:46:08]FM_GetShiftState done [13:46:08]req_shift_opened done [13:46:08]requested_item shift.open_date is exist - process it [13:46:08]req_shift_open_date [13:46:08]req_shift_open_date done [13:46:08]produce_requested_data done [13:46:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31187,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:46:08]process_action_free close_receipt [13:46:08]json_value_free [13:46:08]json_value_free done [13:46:08]process_json_proto returns [13:46:08]Send response to host [13:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31187,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:46:08]free response buf [13:46:08]execute_script done [13:46:08]execute_script returns [13:46:08]free content buf [13:46:08]Sock 7.Close socket [13:46:08]Sock 7.Thread stoped [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:28]accept exits with 9 [13:51:28]New connection [13:51:28]New thread 3066899812 created [13:51:28]Thread 3067043172 joined [13:51:28]Waiting for new connection... [13:51:28] Sock 9.Parse request [13:51:28]Sock 9.Check first char [13:51:28]Sock 9.First char is OK [13:51:28]request: POST /json_proto HTTP/1.0 [13:51:28]Method: POST [13:51:28]URL: /json_proto [13:51:28]Method is POST - this is cgi request [13:51:28]url: /json_proto [13:51:28]query_string will be loaded in cgi processing [13:51:28]execute_cgi json_proto POST (null) [13:51:28]execute_cgi path=json_proto method=POST [13:51:28]POST find Content-Length [13:51:28]Host: 172.17.51.3:8080 [13:51:28]Content-Length: 678 [13:51:28]Content-Type: application/json [13:51:28] [13:51:28]POST finish read [13:51:28]Found Content-Length = 678 [13:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:28]execute_script... [13:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:28]POST & json_proto [13:51:28]process_json_proto [13:51:28]json parsed OK: [13:51:28]protocol is kg_v1.0 [13:51:28]action value=close_receipt [13:51:28]process_action close_receipt [13:51:28]cmd_close_receipt [13:51:28]MH_GetDate [13:51:28]Write to MH i2c: F0 00 00 EB 53 2D [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: F0 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: F0 09 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: F0 09 00 EB 53 00 67 FF 18 67 04 C1 95 66 DB [13:51:28]GetLastDocTimeStamp 1729691171 [13:51:28]current date 1729691495 [13:51:28]FM_GetShiftState [13:51:28]SAM_PROTO_GetShiftState [13:51:28]wFMCommunicate request_size=4 [13:51:28]MH_SAM_APDU [13:51:28]CAPDU: 80 13 01 00 [13:51:28]Write to MH i2c: E2 08 00 EC 53 80 13 01 00 00 00 00 00 BC [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:28]Read from MH i2c: E2 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 0E 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 0E 00 EC 53 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 76 [13:51:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:51:28]wFMCommunicate OK [13:51:28]SAM_PROTO_GetShiftState done [13:51:28]FM_GetShiftState done [13:51:28]opened in 1729643755 [13:51:28]opened+sec_in_day 1729730155 [13:51:28]quantity*price = 80012 [13:51:28]sum+1 = 80013 [13:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 132 23.10.2024 13:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31188 ФПД: 129903851090768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135135&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31188&fm=129903851090768&tin=02508201610067®Number=0000000000186857&sum=80000 [13:51:30]StoreToDocumentArchive [13:51:30]shift 117 fd 31188 [13:51:30]save to /storage/0117/doc_00031188 [13:51:30]save last doc name /storage/0117/doc_00031188 to /storage/kkm_last_doc_name [13:51:30]save OK [13:51:30]Clear old archive folders... [13:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:30]tlvbuf is 00DA42C0 [13:51:30]SAM_PROTO_ClearQueue [13:51:30]wFMCommunicate request_size=4 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 09 00 00 [13:51:30]Write to MH i2c: E2 08 00 F9 53 80 09 00 00 00 00 00 00 BE [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 F9 53 00 90 00 C0 [13:51:30]RAPDU: 90 00 [13:51:30]wFMCommunicate OK [13:51:30]SAM_PROTO_ClearQueue done [13:51:30]KKMCreateOFDPacket [13:51:30]OFDProtocolAddRootSTLVToBuf [13:51:30]FM_MakeSignedData [13:51:30]FM_MakeSignedData [13:51:30]SAM_PROTO_SignData [13:51:30]wFMCommunicate request_size=4 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 0D 01 02 [13:51:30]Write to MH i2c: E2 08 00 FA 53 80 0D 01 02 00 00 00 00 C6 [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [13:51:30]RAPDU: 90 00 [13:51:30]wFMCommunicate OK [13:51:30]wFMCommunicate request_size=255 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 FF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 79 00 00 35 04 06 00 76 [13:51:30]Write to MH i2c: E2 02 01 FB 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 FF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 79 00 00 35 04 06 00 76 00 00 E4 [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [13:51:30]RAPDU: 90 00 [13:51:30]wFMCommunicate OK [13:51:30]wFMCommunicate request_size=10 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 0D 02 02 05 25 98 E6 33 50 [13:51:30]Write to MH i2c: E2 0D 00 FC 53 80 0D 02 02 05 00 25 98 E6 33 50 00 00 F9 [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 03 00 FC 53 00 90 00 C3 [13:51:30]RAPDU: 90 00 [13:51:30]wFMCommunicate OK [13:51:30]wFMCommunicate request_size=4 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 0D 03 02 [13:51:30]Write to MH i2c: E2 08 00 FD 53 80 0D 03 02 00 00 00 00 CB [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 0B 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 0B 00 FD 53 00 9E 32 1B A8 64 85 F8 10 90 00 50 [13:51:30]RAPDU: 9E 32 1B A8 64 85 F8 10 90 00 [13:51:30]wFMCommunicate OK [13:51:30]SAM_PROTO_SignData done [13:51:30]FM_MakeSignedData done [13:51:30]CreateOFDProtocolMessage [13:51:30]wFMCommunicate request_size=4 [13:51:30]MH_SAM_APDU [13:51:30]CAPDU: 80 11 00 00 [13:51:30]Write to MH i2c: E2 08 00 FE 53 80 11 00 00 00 00 00 00 CB [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:30]Read from MH i2c: E2 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 17 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: E2 17 00 FE 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [13:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:51:30]wFMCommunicate OK [13:51:30]CreateOFDProtocolMessage done [13:51:30]OFDSenderStorePacket 31188 [13:51:30]StoreOFDPacket docnum=31188 [13:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 54 54 07 01 E5 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 FF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 79 00 00 35 04 06 00 76 25 98 E6 33 50 9E 32 1B A8 64 85 F8 10 [13:51:30]CheckFolder [13:51:30]dirname=/storage/ofd_packets [13:51:30]CheckFolder done [13:51:30]ProducePacketName [13:51:30]name=ofd_packets/00031188 [13:51:30]NVStorageSaveData ofd_packets/00031188 [13:51:30]File name is /storage/ofd_packets/00031188 [13:51:30]Write 301 bytes [13:51:30]NVStorageSaveData done [13:51:30]OFDSenderStorePacket done [13:51:30]KKMCreateOFDPacket done [13:51:30]NVStorageSaveData kkm_last_timestamp [13:51:30]File name is /storage/kkm_last_timestamp [13:51:30]Write 4 bytes [13:51:30]NVStorageSaveData done [13:51:30]ExternCall_PrintAddStr [13:51:30]wPrintStart [13:51:30]Write to MH i2c: 01 00 00 FF 53 52 [13:51:30]Write i2c OK [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: 01 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: 01 07 00 [13:51:30]MH_I2C_Read... [13:51:30]Read from MH i2c: 01 07 00 FF 53 00 00 00 00 00 FF 0F 67 [13:51:30]RasterBufferAndPrint [13:51:30]line Счет N : (1)343634 [13:51:30]line ИНН: 02508201610067 [13:51:30]line Контрольно-Кассовый Чек [13:51:30]line ПРОДАЖА [13:51:30]line ТРК (МРК, ГНК) : 63 [13:51:30]line Товар: 2710124130 [13:51:30]line Аи-92-К-2 [13:51:30]line 11.960 * 66.90 [13:51:30]line = 800.12 [13:51:30]line НДС 12% НСП 1% [13:51:30]line > о реализуемом товаре [13:51:30]line ОКРУГЛЕНИЕ: -0.12 [13:51:30]line ИТОГО: 800.00 [13:51:30]line Внесено: 800.00 [13:51:30]line СДАЧА: 0.00 [13:51:30]line НСП 1% : 7.08 [13:51:30]line НДС 12% : 84.97 [13:51:30]line Наличными: 800.00 [13:51:30]line Безнал.: 0.00 [13:51:30]line Место: АЗС № 78 "Партнер Нефть" [13:51:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:51:30]line СНО: Общий режим [13:51:30]line Чек 132 23.10.2024 13:51 [13:51:30]line Смена: 117 ФФД: 1.0 [13:51:30]line ЗНМ: 0300000137 [13:51:30]line РНМ: 0000000000186857 [13:51:30]line Версия ККМ: v1.0 [13:51:30]line ФМ: 0000000002094219 [13:51:30]line ФД: 31188 [13:51:30]line ФПД: 129903851090768 [13:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135135&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31188&fm=129903851090768&tin=02508201610067®Number=0000000000186857&sum=80000 [13:51:30]OFD Sender: Processing packet 31188 [packets to send 11, broken 10] [13:51:30]ProducePacketName [13:51:30]name=ofd_packets/00031188 [13:51:30]OFD Sender: To server: pG, [13:51:30]CommunicateWithHost lk.salyk.kg:30040 [13:51:30]ConnectInit lk.salyk.kg [13:51:30]written 0, free lines is 4095 [13:51:30]Connected sock=10 [13:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 54 54 07 01 E5 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 FF 18 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 79 00 00 35 04 06 00 76 25 98 E6 33 50 9E 32 1B A8 64 85 F8 10 [13:51:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D3 AB 47 00 14 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 32 30 39 34 32 31 39 10 04 04 00 D4 79 00 00 F4 03 04 00 E1 A9 18 67 B6 04 01 00 00 D1 25 C5 8A 29 50 14 47 [13:51:31]CommunicateWithHost err = 0 [13:51:31]CheckOFDResponse [13:51:31]1017 (14) - 77093643461234 [13:51:31]1041 (16) - 0000000002094219 [13:51:31]1040 (4) - 31188 [13:51:31]1012 (4) - 23.10.2024 07:46 [13:51:31]1206 (1) - 0 [13:51:31]OFD Sender: Remove packet 31188 [13:51:31]ProducePacketName [13:51:31]name=ofd_packets/00031188 [13:51:31]NVStorageDeleteData [13:51:31]Write to MH i2c: 01 00 00 2A 54 7E [13:51:31]Write i2c OK [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: 01 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: 01 07 00 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: 01 07 00 2A 54 00 00 00 00 00 F4 0C 85 [13:51:31]RasterBufferAndPrint [13:51:31]line [13:51:31]line [13:51:31]line [13:51:31]line [13:51:31]line [13:51:31]written 0, free lines is 3322 [13:51:31]MH_Cut [13:51:31]Write to MH i2c: D1 01 00 31 54 01 57 [13:51:31]Write i2c OK [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: D1 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: D1 01 00 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: D1 01 00 31 54 00 56 [13:51:31]Write to MH i2c: 01 00 00 32 54 86 [13:51:31]Write i2c OK [13:51:31]MH_I2C_Read... [13:51:31]OFD Sender: No OFD packet to send [13:51:32]*** Cut start [13:51:32]*** Partial cut [13:51:32]*** CUTSNS_PIN = 1 [13:51:32]*** CUTSNS_PIN = 0 [13:51:32]*** Brake cut motor [13:51:32]Read from MH i2c: 01 [13:51:32]MH_I2C_Read... [13:51:32]*** Stop cut motor [13:51:32]*** Cut end [13:51:32]Read from MH i2c: 01 07 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: 01 07 00 32 54 00 00 00 00 00 FF 0F 9B [13:51:32]process_action close_receipt done [13:51:32]requested_data is exist [13:51:32]produce_requested_data [13:51:32]requested_item fm.sn is exist - process it [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 11 00 00 [13:51:32]Write to MH i2c: E2 08 00 33 54 80 11 00 00 00 00 00 00 01 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 17 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 17 00 33 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [13:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:51:32]wFMCommunicate OK [13:51:32]requested_item fd.num is exist - process it [13:51:32]SAM_PROTO_GetFieldsCounters [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 13 00 00 [13:51:32]Write to MH i2c: E2 08 00 34 54 80 13 00 00 00 00 00 00 04 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 62 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 62 00 34 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:32]wFMCommunicate OK [13:51:32]SAM_PROTO_GetFieldsCounters done [13:51:32]requested_item shift.num is exist - process it [13:51:32]requested_item shift.opened is exist - process it [13:51:32]req_shift_opened [13:51:32]FM_GetShiftState [13:51:32]SAM_PROTO_GetShiftState [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 13 01 00 [13:51:32]Write to MH i2c: E2 08 00 35 54 80 13 01 00 00 00 00 00 06 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 0E 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 0E 00 35 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C0 [13:51:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [13:51:32]wFMCommunicate OK [13:51:32]SAM_PROTO_GetShiftState done [13:51:32]FM_GetShiftState done [13:51:32]req_shift_opened done [13:51:32]requested_item shift.open_date is exist - process it [13:51:32]req_shift_open_date [13:51:32]req_shift_open_date done [13:51:32]produce_requested_data done [13:51:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31188,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [13:51:32]process_action_free close_receipt [13:51:32]json_value_free [13:51:32]json_value_free done [13:51:32]process_json_proto returns [13:51:32]Send response to host [13:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31188,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [13:51:32]free response buf [13:51:32]execute_script done [13:51:32]execute_script returns [13:51:32]free content buf [13:51:32]Sock 9.Close socket [13:51:32]Sock 9.Thread stoped [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:40]accept exits with 7 [14:03:40]New connection [14:03:40]New thread 3067043172 created [14:03:40]Thread 3066899812 joined [14:03:40]Waiting for new connection... [14:03:40] Sock 7.Parse request [14:03:40]Sock 7.Check first char [14:03:40]Sock 7.First char is OK [14:03:40]request: POST /json_proto HTTP/1.0 [14:03:40]Method: POST [14:03:40]URL: /json_proto [14:03:40]Method is POST - this is cgi request [14:03:40]url: /json_proto [14:03:40]query_string will be loaded in cgi processing [14:03:40]execute_cgi json_proto POST (null) [14:03:40]execute_cgi path=json_proto method=POST [14:03:40]POST find Content-Length [14:03:40]Host: 172.17.51.3:8080 [14:03:40]Content-Length: 677 [14:03:40]Content-Type: application/json [14:03:40] [14:03:40]POST finish read [14:03:40]Found Content-Length = 677 [14:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:40]execute_script... [14:03:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:40]POST & json_proto [14:03:40]process_json_proto [14:03:40]json parsed OK: [14:03:40]protocol is kg_v1.0 [14:03:40]action value=close_receipt [14:03:40]process_action close_receipt [14:03:40]cmd_close_receipt [14:03:40]MH_GetDate [14:03:40]Write to MH i2c: F0 00 00 36 54 79 [14:03:40]Write i2c OK [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: F0 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: F0 09 00 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: F0 09 00 36 54 00 42 02 19 67 04 C1 95 66 06 [14:03:40]GetLastDocTimeStamp 1729691495 [14:03:40]current date 1729692226 [14:03:40]FM_GetShiftState [14:03:40]SAM_PROTO_GetShiftState [14:03:40]wFMCommunicate request_size=4 [14:03:40]MH_SAM_APDU [14:03:40]CAPDU: 80 13 01 00 [14:03:40]Write to MH i2c: E2 08 00 37 54 80 13 01 00 00 00 00 00 08 [14:03:40]Write i2c OK [14:03:40]MH_I2C_Read... [14:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:40]Read from MH i2c: E2 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 0E 00 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 0E 00 37 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C2 [14:03:40]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:03:40]wFMCommunicate OK [14:03:40]SAM_PROTO_GetShiftState done [14:03:40]FM_GetShiftState done [14:03:40]opened in 1729643755 [14:03:40]opened+sec_in_day 1729730155 [14:03:40]quantity*price = 50041 [14:03:40]sum+1 = 50042 [14:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 133 23.10.2024 14:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31189 ФПД: 122854375110686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31189&fm=122854375110686&tin=02508201610067®Number=0000000000186857&sum=50000 [14:03:41]StoreToDocumentArchive [14:03:41]shift 117 fd 31189 [14:03:41]save to /storage/0117/doc_00031189 [14:03:41]save last doc name /storage/0117/doc_00031189 to /storage/kkm_last_doc_name [14:03:41]save OK [14:03:41]Clear old archive folders... [14:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:41]tlvbuf is 00D4D060 [14:03:41]SAM_PROTO_ClearQueue [14:03:41]wFMCommunicate request_size=4 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 09 00 00 [14:03:41]Write to MH i2c: E2 08 00 44 54 80 09 00 00 00 00 00 00 0A [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [14:03:41]RAPDU: 90 00 [14:03:41]wFMCommunicate OK [14:03:41]SAM_PROTO_ClearQueue done [14:03:41]KKMCreateOFDPacket [14:03:41]OFDProtocolAddRootSTLVToBuf [14:03:41]FM_MakeSignedData [14:03:41]FM_MakeSignedData [14:03:41]SAM_PROTO_SignData [14:03:41]wFMCommunicate request_size=4 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 0D 01 02 [14:03:41]Write to MH i2c: E2 08 00 45 54 80 0D 01 02 00 00 00 00 12 [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 45 54 00 90 00 0D [14:03:41]RAPDU: 90 00 [14:03:41]wFMCommunicate OK [14:03:41]wFMCommunicate request_size=255 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 79 00 00 35 04 06 00 6F [14:03:41]Write to MH i2c: E2 02 01 46 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 79 00 00 35 04 06 00 6F 00 00 1E [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 46 54 00 90 00 0E [14:03:41]RAPDU: 90 00 [14:03:41]wFMCommunicate OK [14:03:41]wFMCommunicate request_size=10 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 0D 02 02 05 BC 43 63 38 1E [14:03:41]Write to MH i2c: E2 0D 00 47 54 80 0D 02 02 05 00 BC 43 63 38 1E 00 00 D7 [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 03 00 47 54 00 90 00 0F [14:03:41]RAPDU: 90 00 [14:03:41]wFMCommunicate OK [14:03:41]wFMCommunicate request_size=4 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 0D 03 02 [14:03:41]Write to MH i2c: E2 08 00 48 54 80 0D 03 02 00 00 00 00 17 [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 0B 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 0B 00 48 54 00 55 9C 00 E1 79 31 C1 9F 90 00 F4 [14:03:41]RAPDU: 55 9C 00 E1 79 31 C1 9F 90 00 [14:03:41]wFMCommunicate OK [14:03:41]SAM_PROTO_SignData done [14:03:41]FM_MakeSignedData done [14:03:41]CreateOFDProtocolMessage [14:03:41]wFMCommunicate request_size=4 [14:03:41]MH_SAM_APDU [14:03:41]CAPDU: 80 11 00 00 [14:03:41]Write to MH i2c: E2 08 00 49 54 80 11 00 00 00 00 00 00 17 [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:41]Read from MH i2c: E2 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 17 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: E2 17 00 49 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [14:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:03:41]wFMCommunicate OK [14:03:41]CreateOFDProtocolMessage done [14:03:41]OFDSenderStorePacket 31189 [14:03:41]StoreOFDPacket docnum=31189 [14:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0C 5C 07 01 BB 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 79 00 00 35 04 06 00 6F BC 43 63 38 1E 55 9C 00 E1 79 31 C1 9F [14:03:41]CheckFolder [14:03:41]dirname=/storage/ofd_packets [14:03:41]CheckFolder done [14:03:41]ProducePacketName [14:03:41]name=ofd_packets/00031189 [14:03:41]NVStorageSaveData ofd_packets/00031189 [14:03:41]File name is /storage/ofd_packets/00031189 [14:03:41]Write 301 bytes [14:03:41]NVStorageSaveData done [14:03:41]OFDSenderStorePacket done [14:03:41]KKMCreateOFDPacket done [14:03:41]NVStorageSaveData kkm_last_timestamp [14:03:41]File name is /storage/kkm_last_timestamp [14:03:41]Write 4 bytes [14:03:41]NVStorageSaveData done [14:03:41]OFD Sender: Processing packet 31189 [packets to send 11, broken 10] [14:03:41]ProducePacketName [14:03:41]name=ofd_packets/00031189 [14:03:41]OFD Sender: To server: pG, [14:03:41]CommunicateWithHost lk.salyk.kg:30040 [14:03:41]ConnectInit lk.salyk.kg [14:03:41]ExternCall_PrintAddStr [14:03:41]wPrintStart [14:03:41]Write to MH i2c: 01 00 00 4A 54 9E [14:03:41]Write i2c OK [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: 01 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: 01 07 00 [14:03:41]MH_I2C_Read... [14:03:41]Read from MH i2c: 01 07 00 4A 54 00 00 00 00 00 FF 0F B3 [14:03:41]RasterBufferAndPrint [14:03:41]line Счет N : (1)343635 [14:03:41]line ИНН: 02508201610067 [14:03:41]line Контрольно-Кассовый Чек [14:03:41]line ПРОДАЖА [14:03:41]line ТРК (МРК, ГНК) : 43 [14:03:41]line Товар: 2710124130 [14:03:41]line Аи-92-К-2 [14:03:41]line 7.480 * 66.90 [14:03:41]line = 500.41 [14:03:41]line НДС 12% НСП 1% [14:03:41]line > о реализуемом товаре [14:03:41]line ОКРУГЛЕНИЕ: -0.41 [14:03:41]line ИТОГО: 500.00 [14:03:41]line Внесено: 500.00 [14:03:41]line СДАЧА: 0.00 [14:03:41]line НСП 1% : 4.43 [14:03:41]line НДС 12% : 53.14 [14:03:41]line Наличными: 500.00 [14:03:41]line Безнал.: 0.00 [14:03:41]line Место: АЗС № 78 "Партнер Нефть" [14:03:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:03:41]line СНО: Общий режим [14:03:41]line Чек 133 23.10.2024 14:03 [14:03:41]line Смена: 117 ФФД: 1.0 [14:03:41]line ЗНМ: 0300000137 [14:03:41]line РНМ: 0000000000186857 [14:03:41]line Версия ККМ: v1.0 [14:03:42]line ФМ: 0000000002094219 [14:03:42]line ФД: 31189 [14:03:42]line ФПД: 122854375110686 [14:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31189&fm=122854375110686&tin=02508201610067®Number=0000000000186857&sum=50000 [14:03:42]Connected sock=10 [14:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0C 5C 07 01 BB 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 42 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 79 00 00 35 04 06 00 6F BC 43 63 38 1E 55 9C 00 E1 79 31 C1 9F [14:03:42]written 0, free lines is 4095 [14:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 08 7A 47 00 A3 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 79 00 00 F4 03 04 00 BC AC 18 67 B6 04 01 00 00 93 9C 0F E7 BA CE 99 C0 [14:03:42]CommunicateWithHost err = 0 [14:03:42]CheckOFDResponse [14:03:42]1017 (14) - 77093643461234 [14:03:42]1041 (16) - 0000000002094219 [14:03:42]1040 (4) - 31189 [14:03:42]1012 (4) - 23.10.2024 07:58 [14:03:42]1206 (1) - 0 [14:03:42]OFD Sender: Remove packet 31189 [14:03:42]ProducePacketName [14:03:42]name=ofd_packets/00031189 [14:03:42]NVStorageDeleteData [14:03:42]Write to MH i2c: 01 00 00 75 54 C9 [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: 01 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: 01 07 00 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: 01 07 00 75 54 00 00 00 00 00 E1 0C BD [14:03:42]RasterBufferAndPrint [14:03:42]line [14:03:42]line [14:03:42]line [14:03:42]line [14:03:42]line [14:03:42]written 0, free lines is 3302 [14:03:42]MH_Cut [14:03:42]Write to MH i2c: D1 01 00 7C 54 01 A2 [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: D1 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: D1 01 00 [14:03:42]MH_I2C_Read... [14:03:42]Read from MH i2c: D1 01 00 7C 54 00 A1 [14:03:42]Write to MH i2c: 01 00 00 7D 54 D1 [14:03:42]Write i2c OK [14:03:42]MH_I2C_Read... [14:03:42]OFD Sender: No OFD packet to send [14:03:43]*** Cut start [14:03:43]*** Partial cut [14:03:43]*** CUTSNS_PIN = 1 [14:03:43]*** CUTSNS_PIN = 0 [14:03:43]*** Brake cut motor [14:03:43]Read from MH i2c: 01 [14:03:43]MH_I2C_Read... [14:03:43]*** Stop cut motor [14:03:43]*** Cut end [14:03:43]Read from MH i2c: 01 07 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: 01 07 00 7D 54 00 00 00 00 00 FF 0F E6 [14:03:43]process_action close_receipt done [14:03:43]requested_data is exist [14:03:43]produce_requested_data [14:03:43]requested_item fm.sn is exist - process it [14:03:43]wFMCommunicate request_size=4 [14:03:43]MH_SAM_APDU [14:03:43]CAPDU: 80 11 00 00 [14:03:43]Write to MH i2c: E2 08 00 7E 54 80 11 00 00 00 00 00 00 4C [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:43]Read from MH i2c: E2 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 17 00 [14:03:43]MH_I2C_Read... [14:03:43]Read from MH i2c: E2 17 00 7E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [14:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:03:43]wFMCommunicate OK [14:03:43]requested_item fd.num is exist - process it [14:03:43]SAM_PROTO_GetFieldsCounters [14:03:43]wFMCommunicate request_size=4 [14:03:43]MH_SAM_APDU [14:03:43]CAPDU: 80 13 00 00 [14:03:43]Write to MH i2c: E2 08 00 7F 54 80 13 00 00 00 00 00 00 4F [14:03:43]Write i2c OK [14:03:43]MH_I2C_Read... [14:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:44]Read from MH i2c: E2 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 62 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 62 00 7F 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [14:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:44]wFMCommunicate OK [14:03:44]SAM_PROTO_GetFieldsCounters done [14:03:44]requested_item shift.num is exist - process it [14:03:44]requested_item shift.opened is exist - process it [14:03:44]req_shift_opened [14:03:44]FM_GetShiftState [14:03:44]SAM_PROTO_GetShiftState [14:03:44]wFMCommunicate request_size=4 [14:03:44]MH_SAM_APDU [14:03:44]CAPDU: 80 13 01 00 [14:03:44]Write to MH i2c: E2 08 00 80 54 80 13 01 00 00 00 00 00 51 [14:03:44]Write i2c OK [14:03:44]MH_I2C_Read... [14:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:44]Read from MH i2c: E2 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 80 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0B [14:03:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:03:44]wFMCommunicate OK [14:03:44]SAM_PROTO_GetShiftState done [14:03:44]FM_GetShiftState done [14:03:44]req_shift_opened done [14:03:44]requested_item shift.open_date is exist - process it [14:03:44]req_shift_open_date [14:03:44]req_shift_open_date done [14:03:44]produce_requested_data done [14:03:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31189,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:03:44]process_action_free close_receipt [14:03:44]json_value_free [14:03:44]json_value_free done [14:03:44]process_json_proto returns [14:03:44]Send response to host [14:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31189,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:03:44]free response buf [14:03:44]execute_script done [14:03:44]execute_script returns [14:03:44]free content buf [14:03:44]Sock 7.Close socket [14:03:44]Sock 7.Thread stoped [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05: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:31]accept exits with 9 [14:06:31]New connection [14:06:31]New thread 3066899812 created [14:06:31]Thread 3067043172 joined [14:06:31]Waiting for new connection... [14:06:31] Sock 9.Parse request [14:06:31]Sock 9.Check first char [14:06:31]Sock 9.First char is OK [14:06:31]request: POST /json_proto HTTP/1.0 [14:06:31]Method: POST [14:06:31]URL: /json_proto [14:06:31]Method is POST - this is cgi request [14:06:31]url: /json_proto [14:06:31]query_string will be loaded in cgi processing [14:06:31]execute_cgi json_proto POST (null) [14:06:31]execute_cgi path=json_proto method=POST [14:06:31]POST find Content-Length [14:06:31]Host: 172.17.51.3:8080 [14:06:31]Content-Length: 843 [14:06:31]Content-Type: application/json [14:06:31] [14:06:31]POST finish read [14:06:31]Found Content-Length = 843 [14:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:31]execute_script... [14:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:31]POST & json_proto [14:06:31]process_json_proto [14:06:31]json parsed OK: [14:06:31]protocol is kg_v1.0 [14:06:31]action value=close_receipt [14:06:31]process_action close_receipt [14:06:31]cmd_close_receipt [14:06:31]MH_GetDate [14:06:31]Write to MH i2c: F0 00 00 81 54 C4 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 09 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 09 00 81 54 00 ED 02 19 67 04 C1 95 66 FC [14:06:31]GetLastDocTimeStamp 1729692226 [14:06:31]current date 1729692397 [14:06:31]FM_GetShiftState [14:06:31]SAM_PROTO_GetShiftState [14:06:31]wFMCommunicate request_size=4 [14:06:31]MH_SAM_APDU [14:06:31]CAPDU: 80 13 01 00 [14:06:31]Write to MH i2c: E2 08 00 82 54 80 13 01 00 00 00 00 00 53 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:31]Read from MH i2c: E2 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 82 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0D [14:06:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:06:31]wFMCommunicate OK [14:06:31]SAM_PROTO_GetShiftState done [14:06:31]FM_GetShiftState done [14:06:31]opened in 1729643755 [14:06:31]opened+sec_in_day 1729730155 [14:06:31]quantity*price = 100015 [14:06:31]sum+1 = 100017 [14:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 134 23.10.2024 14:06 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31190 ФПД: 136164760885049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31190&fm=136164760885049&tin=02508201610067®Number=0000000000186857&sum=100016 [14:06:32]StoreToDocumentArchive [14:06:32]shift 117 fd 31190 [14:06:32]save to /storage/0117/doc_00031190 [14:06:32]save last doc name /storage/0117/doc_00031190 to /storage/kkm_last_doc_name [14:06:32]save OK [14:06:32]Clear old archive folders... [14:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:32]tlvbuf is 00E475D0 [14:06:32]SAM_PROTO_ClearQueue [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 09 00 00 [14:06:32]Write to MH i2c: E2 08 00 8F 54 80 09 00 00 00 00 00 00 55 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 8F 54 00 90 00 57 [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]SAM_PROTO_ClearQueue done [14:06:32]KKMCreateOFDPacket [14:06:32]OFDProtocolAddRootSTLVToBuf [14:06:32]FM_MakeSignedData [14:06:32]FM_MakeSignedData [14:06:32]SAM_PROTO_SignData [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 01 02 [14:06:32]Write to MH i2c: E2 08 00 90 54 80 0D 01 02 00 00 00 00 5D [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 90 54 00 90 00 58 [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]wFMCommunicate request_size=255 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 ED 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 79 00 00 35 04 06 00 7B [14:06:32]Write to MH i2c: E2 02 01 91 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 ED 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 79 00 00 35 04 06 00 7B 00 00 3C [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 91 54 00 90 00 59 [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]wFMCommunicate request_size=10 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 02 02 05 D7 54 34 17 39 [14:06:32]Write to MH i2c: E2 0D 00 92 54 80 0D 02 02 05 00 D7 54 34 17 39 00 00 19 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 92 54 00 90 00 5A [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 03 02 [14:06:32]Write to MH i2c: E2 08 00 93 54 80 0D 03 02 00 00 00 00 62 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 0B 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 0B 00 93 54 00 71 D7 43 F4 FE 4B 80 FF 90 00 AA [14:06:32]RAPDU: 71 D7 43 F4 FE 4B 80 FF 90 00 [14:06:32]wFMCommunicate OK [14:06:32]SAM_PROTO_SignData done [14:06:32]FM_MakeSignedData done [14:06:32]CreateOFDProtocolMessage [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 11 00 00 [14:06:32]Write to MH i2c: E2 08 00 94 54 80 11 00 00 00 00 00 00 62 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 17 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 17 00 94 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [14:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:06:32]wFMCommunicate OK [14:06:32]CreateOFDProtocolMessage done [14:06:32]OFDSenderStorePacket 31190 [14:06:32]StoreOFDPacket docnum=31190 [14:06:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B 0C 07 01 F6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 ED 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 79 00 00 35 04 06 00 7B D7 54 34 17 39 71 D7 43 F4 FE 4B 80 FF [14:06:32]CheckFolder [14:06:32]dirname=/storage/ofd_packets [14:06:32]CheckFolder done [14:06:32]ProducePacketName [14:06:32]name=ofd_packets/00031190 [14:06:32]NVStorageSaveData ofd_packets/00031190 [14:06:32]File name is /storage/ofd_packets/00031190 [14:06:32]Write 301 bytes [14:06:32]NVStorageSaveData done [14:06:32]OFDSenderStorePacket done [14:06:32]KKMCreateOFDPacket done [14:06:32]NVStorageSaveData kkm_last_timestamp [14:06:32]File name is /storage/kkm_last_timestamp [14:06:32]Write 4 bytes [14:06:32]NVStorageSaveData done [14:06:32]ExternCall_PrintAddStr [14:06:32]wPrintStart [14:06:32]Write to MH i2c: 01 00 00 95 54 E9 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: 01 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: 01 07 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: 01 07 00 95 54 00 00 00 00 00 FF 0F FE [14:06:32]RasterBufferAndPrint [14:06:32]line Счет N : (1)343636 [14:06:32]line ИНН: 02508201610067 [14:06:32]line Контрольно-Кассовый Чек [14:06:32]line ПРОДАЖА [14:06:32]line ТРК (МРК, ГНК) : 53 [14:06:32]line Товар: 2710124130 [14:06:32]line Аи-92-К-2 [14:06:32]line 14.950 * 66.90 [14:06:32]line = 1000.16 [14:06:32]line НДС 12% НСП 1% [14:06:32]line > о реализуемом товаре [14:06:32]line ИТОГО: 1000.16 [14:06:32]line НСП 1% : 8.85 [14:06:32]line НДС 12% : 106.21 [14:06:32]line Наличными: 0.00 [14:06:32]line Безнал.: 1000.16 [14:06:32]line Место: АЗС № 78 "Партнер Нефть" [14:06:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:06:32]line СНО: Общий режим [14:06:32]line Чек 134 23.10.2024 14:06 [14:06:32]line Смена: 117 ФФД: 1.0 [14:06:32]line ЗНМ: 0300000137 [14:06:32]line РНМ: 0000000000186857 [14:06:32]line Версия ККМ: v1.0 [14:06:33]line Платежная система: АКБ Кыргызстан [14:06:33]line ФМ: 0000000002094219 [14:06:33]line ФД: 31190 [14:06:33]line ФПД: 136164760885049 [14:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31190&fm=136164760885049&tin=02508201610067®Number=0000000000186857&sum=100016 [14:06:33]OFD Sender: Processing packet 31190 [packets to send 11, broken 10] [14:06:33]ProducePacketName [14:06:33]name=ofd_packets/00031190 [14:06:33]OFD Sender: To server: pG, [14:06:33]CommunicateWithHost lk.salyk.kg:30040 [14:06:33]ConnectInit lk.salyk.kg [14:06:33]written 0, free lines is 4095 [14:06:33]Connected sock=10 [14:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B 0C 07 01 F6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 ED 02 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 79 00 00 35 04 06 00 7B D7 54 34 17 39 71 D7 43 F4 FE 4B 80 FF [14:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF 59 47 00 2A CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 79 00 00 F4 03 04 00 67 AD 18 67 B6 04 01 00 00 E8 1E 1B 4E 63 BD 83 DB [14:06:33]CommunicateWithHost err = 0 [14:06:33]CheckOFDResponse [14:06:33]1017 (14) - 77093643461234 [14:06:33]1041 (16) - 0000000002094219 [14:06:33]1040 (4) - 31190 [14:06:33]1012 (4) - 23.10.2024 08:01 [14:06:33]1206 (1) - 0 [14:06:33]OFD Sender: Remove packet 31190 [14:06:33]ProducePacketName [14:06:33]name=ofd_packets/00031190 [14:06:33]NVStorageDeleteData [14:06:33]Write to MH i2c: 01 00 00 BF 54 13 [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 BF 54 00 00 00 00 00 04 0D 2B [14:06:33]RasterBufferAndPrint [14:06:33]line [14:06:33]line [14:06:33]line [14:06:33]line [14:06:33]line [14:06:33]written 0, free lines is 3338 [14:06:33]MH_Cut [14:06:33]Write to MH i2c: D1 01 00 C6 54 01 EC [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: D1 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: D1 01 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: D1 01 00 C6 54 00 EB [14:06:33]Write to MH i2c: 01 00 00 C7 54 1B [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:34]OFD Sender: No OFD packet to send [14:06:34]*** Cut start [14:06:34]*** Partial cut [14:06:34]*** CUTSNS_PIN = 1 [14:06:34]*** CUTSNS_PIN = 0 [14:06:34]*** Brake cut motor [14:06:34]Read from MH i2c: 01 [14:06:34]MH_I2C_Read... [14:06:34]*** Stop cut motor [14:06:34]*** Cut end [14:06:34]Read from MH i2c: 01 07 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: 01 07 00 C7 54 00 00 00 00 00 FF 0F 30 [14:06:34]process_action close_receipt done [14:06:34]requested_data is exist [14:06:34]produce_requested_data [14:06:34]requested_item fm.sn is exist - process it [14:06:34]wFMCommunicate request_size=4 [14:06:34]MH_SAM_APDU [14:06:34]CAPDU: 80 11 00 00 [14:06:34]Write to MH i2c: E2 08 00 C8 54 80 11 00 00 00 00 00 00 96 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:34]Read from MH i2c: E2 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 17 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 17 00 C8 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [14:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:06:34]wFMCommunicate OK [14:06:34]requested_item fd.num is exist - process it [14:06:34]SAM_PROTO_GetFieldsCounters [14:06:34]wFMCommunicate request_size=4 [14:06:34]MH_SAM_APDU [14:06:34]CAPDU: 80 13 00 00 [14:06:34]Write to MH i2c: E2 08 00 C9 54 80 13 00 00 00 00 00 00 99 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:35]Read from MH i2c: E2 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 62 00 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 62 00 C9 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [14:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:35]wFMCommunicate OK [14:06:35]SAM_PROTO_GetFieldsCounters done [14:06:35]requested_item shift.num is exist - process it [14:06:35]requested_item shift.opened is exist - process it [14:06:35]req_shift_opened [14:06:35]FM_GetShiftState [14:06:35]SAM_PROTO_GetShiftState [14:06:35]wFMCommunicate request_size=4 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 13 01 00 [14:06:35]Write to MH i2c: E2 08 00 CA 54 80 13 01 00 00 00 00 00 9B [14:06:35]Write i2c OK [14:06:35]MH_I2C_Read... [14:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:35]Read from MH i2c: E2 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 0E 00 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 0E 00 CA 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 55 [14:06:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:06:35]wFMCommunicate OK [14:06:35]SAM_PROTO_GetShiftState done [14:06:35]FM_GetShiftState done [14:06:35]req_shift_opened done [14:06:35]requested_item shift.open_date is exist - process it [14:06:35]req_shift_open_date [14:06:35]req_shift_open_date done [14:06:35]produce_requested_data done [14:06:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31190,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:06:35]process_action_free close_receipt [14:06:35]json_value_free [14:06:35]json_value_free done [14:06:35]process_json_proto returns [14:06:35]Send response to host [14:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31190,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:06:35]free response buf [14:06:35]execute_script done [14:06:35]execute_script returns [14:06:35]free content buf [14:06:35]Sock 9.Close socket [14:06:35]Sock 9.Thread stoped [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08: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:38]accept exits with 7 [14:17:38]New connection [14:17:38]New thread 3067043172 created [14:17:38]Thread 3066899812 joined [14:17:38]Waiting for new connection... [14:17:38] Sock 7.Parse request [14:17:38]Sock 7.Check first char [14:17:38]Sock 7.First char is OK [14:17:38]request: POST /json_proto HTTP/1.0 [14:17:38]Method: POST [14:17:38]URL: /json_proto [14:17:38]Method is POST - this is cgi request [14:17:38]url: /json_proto [14:17:38]query_string will be loaded in cgi processing [14:17:38]execute_cgi json_proto POST (null) [14:17:38]execute_cgi path=json_proto method=POST [14:17:38]POST find Content-Length [14:17:38]Host: 172.17.51.3:8080 [14:17:38]Content-Length: 677 [14:17:38]Content-Type: application/json [14:17:38] [14:17:38]POST finish read [14:17:38]Found Content-Length = 677 [14:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:38]execute_script... [14:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:38]POST & json_proto [14:17:38]process_json_proto [14:17:38]json parsed OK: [14:17:38]protocol is kg_v1.0 [14:17:38]action value=close_receipt [14:17:38]process_action close_receipt [14:17:38]cmd_close_receipt [14:17:38]MH_GetDate [14:17:38]Write to MH i2c: F0 00 00 CB 54 0E [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: F0 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: F0 09 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: F0 09 00 CB 54 00 88 05 19 67 04 C1 95 66 E4 [14:17:38]GetLastDocTimeStamp 1729692397 [14:17:38]current date 1729693064 [14:17:38]FM_GetShiftState [14:17:38]SAM_PROTO_GetShiftState [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 13 01 00 [14:17:38]Write to MH i2c: E2 08 00 CC 54 80 13 01 00 00 00 00 00 9D [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0E 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0E 00 CC 54 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 57 [14:17:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:17:38]wFMCommunicate OK [14:17:38]SAM_PROTO_GetShiftState done [14:17:38]FM_GetShiftState done [14:17:38]opened in 1729643755 [14:17:38]opened+sec_in_day 1729730155 [14:17:38]quantity*price = 50041 [14:17:38]sum+1 = 50042 [14:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 135 23.10.2024 14:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31191 ФПД: 216653960887735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31191&fm=216653960887735&tin=02508201610067®Number=0000000000186857&sum=50000 [14:17:39]StoreToDocumentArchive [14:17:39]shift 117 fd 31191 [14:17:39]save to /storage/0117/doc_00031191 [14:17:39]save last doc name /storage/0117/doc_00031191 to /storage/kkm_last_doc_name [14:17:39]save OK [14:17:39]Clear old archive folders... [14:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:39]tlvbuf is 00D31250 [14:17:39]SAM_PROTO_ClearQueue [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 09 00 00 [14:17:39]Write to MH i2c: E2 08 00 D9 54 80 09 00 00 00 00 00 00 9F [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 D9 54 00 90 00 A1 [14:17:39]RAPDU: 90 00 [14:17:39]wFMCommunicate OK [14:17:39]SAM_PROTO_ClearQueue done [14:17:39]KKMCreateOFDPacket [14:17:39]OFDProtocolAddRootSTLVToBuf [14:17:39]FM_MakeSignedData [14:17:39]FM_MakeSignedData [14:17:39]SAM_PROTO_SignData [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 0D 01 02 [14:17:39]Write to MH i2c: E2 08 00 DA 54 80 0D 01 02 00 00 00 00 A7 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 DA 54 00 90 00 A2 [14:17:39]RAPDU: 90 00 [14:17:39]wFMCommunicate OK [14:17:39]wFMCommunicate request_size=255 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 88 05 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 79 00 00 35 04 06 00 C5 [14:17:39]Write to MH i2c: E2 02 01 DB 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 88 05 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 79 00 00 35 04 06 00 C5 00 00 56 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]OFD Sender: No OFD packet to send [14:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 DB 54 00 90 00 A3 [14:17:39]RAPDU: 90 00 [14:17:39]wFMCommunicate OK [14:17:39]wFMCommunicate request_size=10 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 0D 02 02 05 0B AE 60 BD B7 [14:17:39]Write to MH i2c: E2 0D 00 DC 54 80 0D 02 02 05 00 0B AE 60 BD B7 00 00 41 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 DC 54 00 90 00 A4 [14:17:39]RAPDU: 90 00 [14:17:39]wFMCommunicate OK [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 0D 03 02 [14:17:39]Write to MH i2c: E2 08 00 DD 54 80 0D 03 02 00 00 00 00 AC [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0B 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0B 00 DD 54 00 7D E1 D3 60 A0 2B 31 33 90 00 6D [14:17:39]RAPDU: 7D E1 D3 60 A0 2B 31 33 90 00 [14:17:39]wFMCommunicate OK [14:17:39]SAM_PROTO_SignData done [14:17:39]FM_MakeSignedData done [14:17:39]CreateOFDProtocolMessage [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 11 00 00 [14:17:39]Write to MH i2c: E2 08 00 DE 54 80 11 00 00 00 00 00 00 AC [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 DE 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [14:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:17:39]wFMCommunicate OK [14:17:39]CreateOFDProtocolMessage done [14:17:39]OFDSenderStorePacket 31191 [14:17:39]StoreOFDPacket docnum=31191 [14:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 FB 07 01 FC F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 88 05 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 79 00 00 35 04 06 00 C5 0B AE 60 BD B7 7D E1 D3 60 A0 2B 31 33 [14:17:39]CheckFolder [14:17:39]dirname=/storage/ofd_packets [14:17:39]CheckFolder done [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00031191 [14:17:39]NVStorageSaveData ofd_packets/00031191 [14:17:39]File name is /storage/ofd_packets/00031191 [14:17:39]Write 301 bytes [14:17:39]NVStorageSaveData done [14:17:39]OFDSenderStorePacket done [14:17:39]KKMCreateOFDPacket done [14:17:39]NVStorageSaveData kkm_last_timestamp [14:17:39]File name is /storage/kkm_last_timestamp [14:17:39]Write 4 bytes [14:17:39]NVStorageSaveData done [14:17:39]ExternCall_PrintAddStr [14:17:39]wPrintStart [14:17:39]Write to MH i2c: 01 00 00 DF 54 33 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 DF 54 00 00 00 00 00 FF 0F 48 [14:17:39]RasterBufferAndPrint [14:17:39]line Счет N : (1)343637 [14:17:39]line ИНН: 02508201610067 [14:17:39]line Контрольно-Кассовый Чек [14:17:39]line ПРОДАЖА [14:17:39]line ТРК (МРК, ГНК) : 63 [14:17:39]line Товар: 2710124130 [14:17:39]line Аи-92-К-2 [14:17:39]line 7.480 * 66.90 [14:17:39]line = 500.41 [14:17:39]line НДС 12% НСП 1% [14:17:39]line > о реализуемом товаре [14:17:39]line ОКРУГЛЕНИЕ: -0.41 [14:17:39]line ИТОГО: 500.00 [14:17:39]line Внесено: 500.00 [14:17:39]line СДАЧА: 0.00 [14:17:39]line НСП 1% : 4.43 [14:17:39]line НДС 12% : 53.14 [14:17:39]line Наличными: 500.00 [14:17:39]line Безнал.: 0.00 [14:17:39]line Место: АЗС № 78 "Партнер Нефть" [14:17:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:17:39]line СНО: Общий режим [14:17:39]line Чек 135 23.10.2024 14:17 [14:17:39]line Смена: 117 ФФД: 1.0 [14:17:39]line ЗНМ: 0300000137 [14:17:39]line РНМ: 0000000000186857 [14:17:39]line Версия ККМ: v1.0 [14:17:39]line ФМ: 0000000002094219 [14:17:39]line ФД: 31191 [14:17:39]line ФПД: 216653960887735 [14:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T141744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31191&fm=216653960887735&tin=02508201610067®Number=0000000000186857&sum=50000 [14:17:40]OFD Sender: Processing packet 31191 [packets to send 11, broken 10] [14:17:40]ProducePacketName [14:17:40]name=ofd_packets/00031191 [14:17:40]OFD Sender: To server: pG, [14:17:40]CommunicateWithHost lk.salyk.kg:30040 [14:17:40]ConnectInit lk.salyk.kg [14:17:40]written 0, free lines is 4095 [14:17:40]Connected sock=10 [14:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 34 FB 07 01 FC F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 88 05 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 79 00 00 35 04 06 00 C5 0B AE 60 BD B7 7D E1 D3 60 A0 2B 31 33 [14:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 47 47 00 D9 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 79 00 00 F4 03 04 00 02 B0 18 67 B6 04 01 00 00 EC 5C 2A 99 A5 99 20 6C [14:17:40]CommunicateWithHost err = 0 [14:17:40]CheckOFDResponse [14:17:40]1017 (14) - 77093643461234 [14:17:40]1041 (16) - 0000000002094219 [14:17:40]1040 (4) - 31191 [14:17:40]1012 (4) - 23.10.2024 08:12 [14:17:40]1206 (1) - 0 [14:17:40]OFD Sender: Remove packet 31191 [14:17:40]ProducePacketName [14:17:40]name=ofd_packets/00031191 [14:17:40]NVStorageDeleteData [14:17:40]Write to MH i2c: 01 00 00 0A 55 5F [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 07 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 07 00 0A 55 00 00 00 00 00 F1 0C 63 [14:17:40]RasterBufferAndPrint [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]written 0, free lines is 3322 [14:17:40]MH_Cut [14:17:40]Write to MH i2c: D1 01 00 11 55 01 38 [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 01 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 01 00 11 55 00 37 [14:17:40]Write to MH i2c: 01 00 00 12 55 67 [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:41]OFD Sender: No OFD packet to send [14:17:41]*** Cut start [14:17:41]*** Partial cut [14:17:41]*** CUTSNS_PIN = 1 [14:17:41]*** CUTSNS_PIN = 0 [14:17:41]*** Brake cut motor [14:17:41]Read from MH i2c: 01 [14:17:41]MH_I2C_Read... [14:17:41]*** Stop cut motor [14:17:41]*** Cut end [14:17:41]Read from MH i2c: 01 07 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: 01 07 00 12 55 00 00 00 00 00 FF 0F 7C [14:17:41]process_action close_receipt done [14:17:41]requested_data is exist [14:17:41]produce_requested_data [14:17:41]requested_item fm.sn is exist - process it [14:17:41]wFMCommunicate request_size=4 [14:17:41]MH_SAM_APDU [14:17:41]CAPDU: 80 11 00 00 [14:17:41]Write to MH i2c: E2 08 00 13 55 80 11 00 00 00 00 00 00 E2 [14:17:41]Write i2c OK [14:17:41]MH_I2C_Read... [14:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:41]Read from MH i2c: E2 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 17 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 17 00 13 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [14:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:17:41]wFMCommunicate OK [14:17:41]requested_item fd.num is exist - process it [14:17:41]SAM_PROTO_GetFieldsCounters [14:17:41]wFMCommunicate request_size=4 [14:17:41]MH_SAM_APDU [14:17:41]CAPDU: 80 13 00 00 [14:17:41]Write to MH i2c: E2 08 00 14 55 80 13 00 00 00 00 00 00 E5 [14:17:41]Write i2c OK [14:17:41]MH_I2C_Read... [14:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:42]Read from MH i2c: E2 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 62 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 62 00 14 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:42]wFMCommunicate OK [14:17:42]SAM_PROTO_GetFieldsCounters done [14:17:42]requested_item shift.num is exist - process it [14:17:42]requested_item shift.opened is exist - process it [14:17:42]req_shift_opened [14:17:42]FM_GetShiftState [14:17:42]SAM_PROTO_GetShiftState [14:17:42]wFMCommunicate request_size=4 [14:17:42]MH_SAM_APDU [14:17:42]CAPDU: 80 13 01 00 [14:17:42]Write to MH i2c: E2 08 00 15 55 80 13 01 00 00 00 00 00 E7 [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:42]Read from MH i2c: E2 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 0E 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 0E 00 15 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A1 [14:17:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:17:42]wFMCommunicate OK [14:17:42]SAM_PROTO_GetShiftState done [14:17:42]FM_GetShiftState done [14:17:42]req_shift_opened done [14:17:42]requested_item shift.open_date is exist - process it [14:17:42]req_shift_open_date [14:17:42]req_shift_open_date done [14:17:42]produce_requested_data done [14:17:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31191,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:17:42]process_action_free close_receipt [14:17:42]json_value_free [14:17:42]json_value_free done [14:17:42]process_json_proto returns [14:17:42]Send response to host [14:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31191,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:17:42]free response buf [14:17:42]execute_script done [14:17:42]execute_script returns [14:17:42]free content buf [14:17:42]Sock 7.Close socket [14:17:42]Sock 7.Thread stoped [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:25]accept exits with 9 [14:25:25]New connection [14:25:25]New thread 3066899812 created [14:25:25]Thread 3067043172 joined [14:25:25]Waiting for new connection... [14:25:25] Sock 9.Parse request [14:25:25]Sock 9.Check first char [14:25:25]Sock 9.First char is OK [14:25:25]request: POST /json_proto HTTP/1.0 [14:25:25]Method: POST [14:25:25]URL: /json_proto [14:25:25]Method is POST - this is cgi request [14:25:25]url: /json_proto [14:25:25]query_string will be loaded in cgi processing [14:25:25]execute_cgi json_proto POST (null) [14:25:25]execute_cgi path=json_proto method=POST [14:25:25]POST find Content-Length [14:25:25]Host: 172.17.51.3:8080 [14:25:25]Content-Length: 682 [14:25:25]Content-Type: application/json [14:25:25] [14:25:25]POST finish read [14:25:25]Found Content-Length = 682 [14:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:25]execute_script... [14:25:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:25]POST & json_proto [14:25:25]process_json_proto [14:25:25]json parsed OK: [14:25:25]protocol is kg_v1.0 [14:25:25]action value=close_receipt [14:25:25]process_action close_receipt [14:25:25]cmd_close_receipt [14:25:25]MH_GetDate [14:25:25]Write to MH i2c: F0 00 00 16 55 5A [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: F0 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: F0 09 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: F0 09 00 16 55 00 5C 07 19 67 04 C1 95 66 06 [14:25:25]GetLastDocTimeStamp 1729693064 [14:25:25]current date 1729693532 [14:25:25]FM_GetShiftState [14:25:25]SAM_PROTO_GetShiftState [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 13 01 00 [14:25:25]Write to MH i2c: E2 08 00 17 55 80 13 01 00 00 00 00 00 E9 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 0E 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 0E 00 17 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A3 [14:25:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:25:25]wFMCommunicate OK [14:25:25]SAM_PROTO_GetShiftState done [14:25:25]FM_GetShiftState done [14:25:25]opened in 1729643755 [14:25:25]opened+sec_in_day 1729730155 [14:25:25]quantity*price = 220003 [14:25:25]sum+1 = 220004 [14:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.63 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 136 23.10.2024 14:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31192 ФПД: 14952074569247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31192&fm=14952074569247&tin=02508201610067®Number=0000000000186857&sum=220000 [14:25:26]StoreToDocumentArchive [14:25:26]shift 117 fd 31192 [14:25:26]save to /storage/0117/doc_00031192 [14:25:26]save last doc name /storage/0117/doc_00031192 to /storage/kkm_last_doc_name [14:25:26]save OK [14:25:26]Clear old archive folders... [14:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:26]tlvbuf is 00DBB5D0 [14:25:26]SAM_PROTO_ClearQueue [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 09 00 00 [14:25:26]Write to MH i2c: E2 08 00 24 55 80 09 00 00 00 00 00 00 EB [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 24 55 00 90 00 ED [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]SAM_PROTO_ClearQueue done [14:25:26]KKMCreateOFDPacket [14:25:26]OFDProtocolAddRootSTLVToBuf [14:25:26]FM_MakeSignedData [14:25:26]FM_MakeSignedData [14:25:26]SAM_PROTO_SignData [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 01 02 [14:25:26]Write to MH i2c: E2 08 00 25 55 80 0D 01 02 00 00 00 00 F3 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 03 00 25 55 00 90 00 EE [14:25:26]RAPDU: 90 00 [14:25:26]wFMCommunicate OK [14:25:26]wFMCommunicate request_size=255 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5C 07 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 79 00 00 35 04 06 00 0D [14:25:26]Write to MH i2c: E2 02 01 26 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5C 07 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 79 00 00 35 04 06 00 0D 00 00 1C [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 26 55 00 90 00 EF [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]wFMCommunicate request_size=10 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 0D 02 02 05 99 4D 17 E6 1F [14:25:27]Write to MH i2c: E2 0D 00 27 55 80 0D 02 02 05 00 99 4D 17 E6 1F 00 00 02 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 27 55 00 90 00 F0 [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 0D 03 02 [14:25:27]Write to MH i2c: E2 08 00 28 55 80 0D 03 02 00 00 00 00 F8 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 0B 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 0B 00 28 55 00 A2 C3 36 CE 1D 3D 3E 5C 90 00 56 [14:25:27]RAPDU: A2 C3 36 CE 1D 3D 3E 5C 90 00 [14:25:27]wFMCommunicate OK [14:25:27]SAM_PROTO_SignData done [14:25:27]FM_MakeSignedData done [14:25:27]CreateOFDProtocolMessage [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 11 00 00 [14:25:27]Write to MH i2c: E2 08 00 29 55 80 11 00 00 00 00 00 00 F8 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 17 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 17 00 29 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [14:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:25:27]wFMCommunicate OK [14:25:27]CreateOFDProtocolMessage done [14:25:27]OFDSenderStorePacket 31192 [14:25:27]StoreOFDPacket docnum=31192 [14:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 25 3B 07 01 41 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5C 07 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 79 00 00 35 04 06 00 0D 99 4D 17 E6 1F A2 C3 36 CE 1D 3D 3E 5C [14:25:27]CheckFolder [14:25:27]dirname=/storage/ofd_packets [14:25:27]CheckFolder done [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00031192 [14:25:27]NVStorageSaveData ofd_packets/00031192 [14:25:27]File name is /storage/ofd_packets/00031192 [14:25:27]Write 301 bytes [14:25:27]NVStorageSaveData done [14:25:27]OFDSenderStorePacket done [14:25:27]KKMCreateOFDPacket done [14:25:27]NVStorageSaveData kkm_last_timestamp [14:25:27]File name is /storage/kkm_last_timestamp [14:25:27]Write 4 bytes [14:25:27]NVStorageSaveData done [14:25:27]ExternCall_PrintAddStr [14:25:27]wPrintStart [14:25:27]Write to MH i2c: 01 00 00 2A 55 7F [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 2A 55 00 00 00 00 00 FF 0F 94 [14:25:27]RasterBufferAndPrint [14:25:27]line Счет N : (1)343638 [14:25:27]line ИНН: 02508201610067 [14:25:27]line Контрольно-Кассовый Чек [14:25:27]line ПРОДАЖА [14:25:27]line ТРК (МРК, ГНК) : 62 [14:25:27]line Товар: 2710124500 [14:25:27]line Аи-95-К-3 [14:25:27]line 29.650 * 74.20 [14:25:27]line = 2200.03 [14:25:27]line НДС 12% НСП 1% [14:25:27]line > о реализуемом товаре [14:25:27]line ОКРУГЛЕНИЕ: -0.03 [14:25:27]line ИТОГО: 2200.00 [14:25:27]line Внесено: 2200.00 [14:25:27]line СДАЧА: 0.00 [14:25:27]line НСП 1% : 19.47 [14:25:27]line НДС 12% : 233.63 [14:25:27]line Наличными: 2200.00 [14:25:27]line Безнал.: 0.00 [14:25:27]line Место: АЗС № 78 "Партнер Нефть" [14:25:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:25:27]line СНО: Общий режим [14:25:27]line Чек 136 23.10.2024 14:25 [14:25:27]line Смена: 117 ФФД: 1.0 [14:25:27]line ЗНМ: 0300000137 [14:25:27]line РНМ: 0000000000186857 [14:25:27]line Версия ККМ: v1.0 [14:25:27]line ФМ: 0000000002094219 [14:25:27]line ФД: 31192 [14:25:27]line ФПД: 14952074569247 [14:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31192&fm=14952074569247&tin=02508201610067®Number=0000000000186857&sum=220000 [14:25:27]OFD Sender: Processing packet 31192 [packets to send 11, broken 10] [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00031192 [14:25:27]OFD Sender: To server: pG, [14:25:27]CommunicateWithHost lk.salyk.kg:30040 [14:25:27]ConnectInit lk.salyk.kg [14:25:27]written 0, free lines is 4095 [14:25:27]Connected sock=10 [14:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 25 3B 07 01 41 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5C 07 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 79 00 00 35 04 06 00 0D 99 4D 17 E6 1F A2 C3 36 CE 1D 3D 3E 5C [14:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 ED F6 47 00 A6 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 79 00 00 F4 03 04 00 D6 B1 18 67 B6 04 01 00 00 21 24 0B AF 54 44 A1 15 [14:25:27]CommunicateWithHost err = 0 [14:25:27]CheckOFDResponse [14:25:27]1017 (14) - 77093643461234 [14:25:27]1041 (16) - 0000000002094219 [14:25:27]1040 (4) - 31192 [14:25:27]1012 (4) - 23.10.2024 08:20 [14:25:27]1206 (1) - 0 [14:25:27]OFD Sender: Remove packet 31192 [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00031192 [14:25:27]NVStorageDeleteData [14:25:28]Write to MH i2c: 01 00 00 55 55 AA [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 07 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 07 00 55 55 00 00 00 00 00 F1 0C AE [14:25:28]RasterBufferAndPrint [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]written 0, free lines is 3319 [14:25:28]MH_Cut [14:25:28]Write to MH i2c: D1 01 00 5C 55 01 83 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: D1 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: D1 01 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: D1 01 00 5C 55 00 82 [14:25:28]Write to MH i2c: 01 00 00 5D 55 B2 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]OFD Sender: No OFD packet to send [14:25:28]*** Cut start [14:25:28]*** Partial cut [14:25:28]*** CUTSNS_PIN = 1 [14:25:28]*** CUTSNS_PIN = 0 [14:25:28]*** Brake cut motor [14:25:29]Read from MH i2c: 01 [14:25:29]MH_I2C_Read... [14:25:29]*** Stop cut motor [14:25:29]*** Cut end [14:25:29]Read from MH i2c: 01 07 00 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: 01 07 00 5D 55 00 00 00 00 00 FF 0F C7 [14:25:29]process_action close_receipt done [14:25:29]requested_data is exist [14:25:29]produce_requested_data [14:25:29]requested_item fm.sn is exist - process it [14:25:29]wFMCommunicate request_size=4 [14:25:29]MH_SAM_APDU [14:25:29]CAPDU: 80 11 00 00 [14:25:29]Write to MH i2c: E2 08 00 5E 55 80 11 00 00 00 00 00 00 2D [14:25:29]Write i2c OK [14:25:29]MH_I2C_Read... [14:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:29]Read from MH i2c: E2 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 17 00 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 17 00 5E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [14:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:25:29]wFMCommunicate OK [14:25:29]requested_item fd.num is exist - process it [14:25:29]SAM_PROTO_GetFieldsCounters [14:25:29]wFMCommunicate request_size=4 [14:25:29]MH_SAM_APDU [14:25:29]CAPDU: 80 13 00 00 [14:25:29]Write to MH i2c: E2 08 00 5F 55 80 13 00 00 00 00 00 00 30 [14:25:29]Write i2c OK [14:25:29]MH_I2C_Read... [14:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:29]Read from MH i2c: E2 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 62 00 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 62 00 5F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:29]wFMCommunicate OK [14:25:29]SAM_PROTO_GetFieldsCounters done [14:25:29]requested_item shift.num is exist - process it [14:25:29]requested_item shift.opened is exist - process it [14:25:29]req_shift_opened [14:25:29]FM_GetShiftState [14:25:29]SAM_PROTO_GetShiftState [14:25:29]wFMCommunicate request_size=4 [14:25:29]MH_SAM_APDU [14:25:29]CAPDU: 80 13 01 00 [14:25:29]Write to MH i2c: E2 08 00 60 55 80 13 01 00 00 00 00 00 32 [14:25:29]Write i2c OK [14:25:29]MH_I2C_Read... [14:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:29]Read from MH i2c: E2 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 0E 00 [14:25:29]MH_I2C_Read... [14:25:29]Read from MH i2c: E2 0E 00 60 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EC [14:25:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:25:29]wFMCommunicate OK [14:25:29]SAM_PROTO_GetShiftState done [14:25:29]FM_GetShiftState done [14:25:29]req_shift_opened done [14:25:29]requested_item shift.open_date is exist - process it [14:25:29]req_shift_open_date [14:25:29]req_shift_open_date done [14:25:29]produce_requested_data done [14:25:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31192,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:25:29]process_action_free close_receipt [14:25:29]json_value_free [14:25:29]json_value_free done [14:25:29]process_json_proto returns [14:25:29]Send response to host [14:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31192,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:25:29]free response buf [14:25:29]execute_script done [14:25:29]execute_script returns [14:25:29]free content buf [14:25:29]Sock 9.Close socket [14:25:29]Sock 9.Thread stoped [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:47]accept exits with 7 [14:33:47]New connection [14:33:47]New thread 3067043172 created [14:33:47]Thread 3066899812 joined [14:33:47]Waiting for new connection... [14:33:47] Sock 7.Parse request [14:33:47]Sock 7.Check first char [14:33:47]Sock 7.First char is OK [14:33:47]request: POST /json_proto HTTP/1.0 [14:33:47]Method: POST [14:33:47]URL: /json_proto [14:33:47]Method is POST - this is cgi request [14:33:47]url: /json_proto [14:33:47]query_string will be loaded in cgi processing [14:33:47]execute_cgi json_proto POST (null) [14:33:47]execute_cgi path=json_proto method=POST [14:33:47]POST find Content-Length [14:33:47]Host: 172.17.51.3:8080 [14:33:47]Content-Length: 754 [14:33:47]Content-Type: application/json [14:33:47] [14:33:47]POST finish read [14:33:47]Found Content-Length = 754 [14:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101101", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:47]execute_script... [14:33:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101101", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:47]POST & json_proto [14:33:47]process_json_proto [14:33:47]json parsed OK: [14:33:47]protocol is kg_v1.0 [14:33:47]action value=close_receipt [14:33:47]process_action close_receipt [14:33:47]cmd_close_receipt [14:33:47]MH_GetDate [14:33:47]Write to MH i2c: F0 00 00 61 55 A5 [14:33:47]Write i2c OK [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 09 00 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: F0 09 00 61 55 00 51 09 19 67 04 C1 95 66 48 [14:33:47]GetLastDocTimeStamp 1729693532 [14:33:47]current date 1729694033 [14:33:47]FM_GetShiftState [14:33:47]SAM_PROTO_GetShiftState [14:33:47]wFMCommunicate request_size=4 [14:33:47]MH_SAM_APDU [14:33:47]CAPDU: 80 13 01 00 [14:33:47]Write to MH i2c: E2 08 00 62 55 80 13 01 00 00 00 00 00 34 [14:33:47]Write i2c OK [14:33:47]MH_I2C_Read... [14:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:47]Read from MH i2c: E2 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 62 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EE [14:33:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:33:47]wFMCommunicate OK [14:33:47]SAM_PROTO_GetShiftState done [14:33:47]FM_GetShiftState done [14:33:47]opened in 1729643755 [14:33:47]opened+sec_in_day 1729730155 [14:33:47]quantity*price = 0 [14:33:47]sum+1 = 1 [14:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 137 23.10.2024 14:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101101 ФМ: 0000000002094219 ФД: 31193 ФПД: 101985051957623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143353&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31193&fm=101985051957623&tin=02508201610067®Number=0000000000186857&sum=0 [14:33:48]StoreToDocumentArchive [14:33:48]shift 117 fd 31193 [14:33:48]save to /storage/0117/doc_00031193 [14:33:48]save last doc name /storage/0117/doc_00031193 to /storage/kkm_last_doc_name [14:33:48]save OK [14:33:48]Clear old archive folders... [14:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:48]tlvbuf is 00D3D580 [14:33:48]SAM_PROTO_ClearQueue [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 09 00 00 [14:33:48]Write to MH i2c: E2 08 00 6F 55 80 09 00 00 00 00 00 00 36 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 6F 55 00 90 00 38 [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]SAM_PROTO_ClearQueue done [14:33:48]KKMCreateOFDPacket [14:33:48]OFDProtocolAddRootSTLVToBuf [14:33:48]FM_MakeSignedData [14:33:48]FM_MakeSignedData [14:33:48]SAM_PROTO_SignData [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 0D 01 02 [14:33:48]Write to MH i2c: E2 08 00 70 55 80 0D 01 02 00 00 00 00 3E [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 70 55 00 90 00 39 [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]wFMCommunicate request_size=255 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 51 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 79 00 00 35 04 06 00 5C [14:33:48]Write to MH i2c: E2 02 01 71 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 51 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 79 00 00 35 04 06 00 5C 00 00 75 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 71 55 00 90 00 3A [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]wFMCommunicate request_size=10 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 0D 02 02 05 C1 3E CB 59 77 [14:33:48]Write to MH i2c: E2 0D 00 72 55 80 0D 02 02 05 00 C1 3E CB 59 77 00 00 E5 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 03 00 72 55 00 90 00 3B [14:33:48]RAPDU: 90 00 [14:33:48]wFMCommunicate OK [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 0D 03 02 [14:33:48]Write to MH i2c: E2 08 00 73 55 80 0D 03 02 00 00 00 00 43 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 0B 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 0B 00 73 55 00 6B 1A D3 76 70 9F B1 04 90 00 D6 [14:33:48]RAPDU: 6B 1A D3 76 70 9F B1 04 90 00 [14:33:48]wFMCommunicate OK [14:33:48]SAM_PROTO_SignData done [14:33:48]FM_MakeSignedData done [14:33:48]CreateOFDProtocolMessage [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 11 00 00 [14:33:48]Write to MH i2c: E2 08 00 74 55 80 11 00 00 00 00 00 00 43 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]OFD Sender: No OFD packet to send [14:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 17 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 17 00 74 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 91 [14:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:48]wFMCommunicate OK [14:33:48]CreateOFDProtocolMessage done [14:33:48]OFDSenderStorePacket 31193 [14:33:48]StoreOFDPacket docnum=31193 [14:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 60 72 07 01 0D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 51 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 79 00 00 35 04 06 00 5C C1 3E CB 59 77 6B 1A D3 76 70 9F B1 04 [14:33:48]CheckFolder [14:33:48]dirname=/storage/ofd_packets [14:33:48]CheckFolder done [14:33:48]ProducePacketName [14:33:48]name=ofd_packets/00031193 [14:33:48]NVStorageSaveData ofd_packets/00031193 [14:33:48]File name is /storage/ofd_packets/00031193 [14:33:48]Write 301 bytes [14:33:48]NVStorageSaveData done [14:33:48]OFDSenderStorePacket done [14:33:48]KKMCreateOFDPacket done [14:33:48]NVStorageSaveData kkm_last_timestamp [14:33:48]File name is /storage/kkm_last_timestamp [14:33:48]Write 4 bytes [14:33:48]NVStorageSaveData done [14:33:48]ExternCall_PrintAddStr [14:33:48]wPrintStart [14:33:48]Write to MH i2c: 01 00 00 75 55 CA [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: 01 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: 01 07 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: 01 07 00 75 55 00 00 00 00 00 FF 0F DF [14:33:48]RasterBufferAndPrint [14:33:48]line Счет N : (1)343639 [14:33:48]line ИНН: 02508201610067 [14:33:48]line Контрольно-Кассовый Чек [14:33:48]line ПРОДАЖА [14:33:48]line ТРК (МРК, ГНК) : 43 [14:33:48]line Товар: 2710124130 [14:33:48]line Аи-92-К-2 [14:33:48]line 30.000 * 0.00 [14:33:48]line = 0.00 [14:33:48]line НДС 12% НСП 1% [14:33:48]line > о реализуемом товаре [14:33:48]line ИТОГО: 0.00 [14:33:48]line НСП 1% : 0.00 [14:33:48]line НДС 12% : 0.00 [14:33:48]line Наличными: 0.00 [14:33:48]line Безнал.: 0.00 [14:33:48]line Место: АЗС № 78 "Партнер Нефть" [14:33:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:33:48]line СНО: Общий режим [14:33:48]line Чек 137 23.10.2024 14:33 [14:33:48]line Смена: 117 ФФД: 1.0 [14:33:48]line ЗНМ: 0300000137 [14:33:48]line РНМ: 0000000000186857 [14:33:48]line Версия ККМ: v1.0 [14:33:48]line Талоны: ТК ГПНА Online [14:33:48]line 30101101 [14:33:48]line ФМ: 0000000002094219 [14:33:48]line ФД: 31193 [14:33:48]line ФПД: 101985051957623 [14:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143353&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31193&fm=101985051957623&tin=02508201610067®Number=0000000000186857&sum=0 [14:33:49]OFD Sender: Processing packet 31193 [packets to send 11, broken 10] [14:33:49]ProducePacketName [14:33:49]name=ofd_packets/00031193 [14:33:49]OFD Sender: To server: pG, [14:33:49]CommunicateWithHost lk.salyk.kg:30040 [14:33:49]ConnectInit lk.salyk.kg [14:33:49]written 0, free lines is 4095 [14:33:49]Connected sock=10 [14:33:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 60 72 07 01 0D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 51 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 79 00 00 35 04 06 00 5C C1 3E CB 59 77 6B 1A D3 76 70 9F B1 04 [14:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6A B8 47 00 ED E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 79 00 00 F4 03 04 00 CB B3 18 67 B6 04 01 00 00 47 0F AC AC D9 EE 6E CD [14:33:49]CommunicateWithHost err = 0 [14:33:49]CheckOFDResponse [14:33:49]1017 (14) - 77093643461234 [14:33:49]1041 (16) - 0000000002094219 [14:33:49]1040 (4) - 31193 [14:33:49]1012 (4) - 23.10.2024 08:28 [14:33:49]1206 (1) - 0 [14:33:49]OFD Sender: Remove packet 31193 [14:33:49]ProducePacketName [14:33:49]name=ofd_packets/00031193 [14:33:49]NVStorageDeleteData [14:33:49]Write to MH i2c: 01 00 00 9F 55 F4 [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 07 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: 01 07 00 9F 55 00 00 00 00 00 F9 0C 00 [14:33:49]RasterBufferAndPrint [14:33:49]line [14:33:49]line [14:33:49]line [14:33:49]line [14:33:49]line [14:33:49]written 0, free lines is 3327 [14:33:49]MH_Cut [14:33:49]Write to MH i2c: D1 01 00 A6 55 01 CD [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: D1 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: D1 01 00 [14:33:49]MH_I2C_Read... [14:33:49]Read from MH i2c: D1 01 00 A6 55 00 CC [14:33:49]Write to MH i2c: 01 00 00 A7 55 FC [14:33:49]Write i2c OK [14:33:49]MH_I2C_Read... [14:33:50]OFD Sender: No OFD packet to send [14:33:50]*** Cut start [14:33:50]*** Partial cut [14:33:50]*** CUTSNS_PIN = 1 [14:33:50]*** CUTSNS_PIN = 0 [14:33:50]*** Brake cut motor [14:33:50]Read from MH i2c: 01 [14:33:50]MH_I2C_Read... [14:33:50]*** Stop cut motor [14:33:50]*** Cut end [14:33:50]Read from MH i2c: 01 07 00 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: 01 07 00 A7 55 00 00 00 00 00 FF 0F 11 [14:33:50]process_action close_receipt done [14:33:50]requested_data is exist [14:33:50]produce_requested_data [14:33:50]requested_item fm.sn is exist - process it [14:33:50]wFMCommunicate request_size=4 [14:33:50]MH_SAM_APDU [14:33:50]CAPDU: 80 11 00 00 [14:33:50]Write to MH i2c: E2 08 00 A8 55 80 11 00 00 00 00 00 00 77 [14:33:50]Write i2c OK [14:33:50]MH_I2C_Read... [14:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:50]Read from MH i2c: E2 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: E2 17 00 [14:33:50]MH_I2C_Read... [14:33:50]Read from MH i2c: E2 17 00 A8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [14:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:50]wFMCommunicate OK [14:33:50]requested_item fd.num is exist - process it [14:33:50]SAM_PROTO_GetFieldsCounters [14:33:50]wFMCommunicate request_size=4 [14:33:50]MH_SAM_APDU [14:33:50]CAPDU: 80 13 00 00 [14:33:50]Write to MH i2c: E2 08 00 A9 55 80 13 00 00 00 00 00 00 7A [14:33:50]Write i2c OK [14:33:50]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 62 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 62 00 A9 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetFieldsCounters done [14:33:51]requested_item shift.num is exist - process it [14:33:51]requested_item shift.opened is exist - process it [14:33:51]req_shift_opened [14:33:51]FM_GetShiftState [14:33:51]SAM_PROTO_GetShiftState [14:33:51]wFMCommunicate request_size=4 [14:33:51]MH_SAM_APDU [14:33:51]CAPDU: 80 13 01 00 [14:33:51]Write to MH i2c: E2 08 00 AA 55 80 13 01 00 00 00 00 00 7C [14:33:51]Write i2c OK [14:33:51]MH_I2C_Read... [14:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:51]Read from MH i2c: E2 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 [14:33:51]MH_I2C_Read... [14:33:51]Read from MH i2c: E2 0E 00 AA 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 36 [14:33:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:33:51]wFMCommunicate OK [14:33:51]SAM_PROTO_GetShiftState done [14:33:51]FM_GetShiftState done [14:33:51]req_shift_opened done [14:33:51]requested_item shift.open_date is exist - process it [14:33:51]req_shift_open_date [14:33:51]req_shift_open_date done [14:33:51]produce_requested_data done [14:33:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31193,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:33:51]process_action_free close_receipt [14:33:51]json_value_free [14:33:51]json_value_free done [14:33:51]process_json_proto returns [14:33:51]Send response to host [14:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31193,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:33:51]free response buf [14:33:51]execute_script done [14:33:51]execute_script returns [14:33:51]free content buf [14:33:51]Sock 7.Close socket [14:33:51]Sock 7.Thread stoped [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:10]accept exits with 9 [14:35:10]New connection [14:35:10]New thread 3066899812 created [14:35:10]Thread 3067043172 joined [14:35:10]Waiting for new connection... [14:35:10] Sock 9.Parse request [14:35:10]Sock 9.Check first char [14:35:10]Sock 9.First char is OK [14:35:10]request: POST /json_proto HTTP/1.0 [14:35:10]Method: POST [14:35:10]URL: /json_proto [14:35:10]Method is POST - this is cgi request [14:35:10]url: /json_proto [14:35:10]query_string will be loaded in cgi processing [14:35:10]execute_cgi json_proto POST (null) [14:35:10]execute_cgi path=json_proto method=POST [14:35:10]POST find Content-Length [14:35:10]Host: 172.17.51.3:8080 [14:35:10]Content-Length: 677 [14:35:10]Content-Type: application/json [14:35:10] [14:35:10]POST finish read [14:35:10]Found Content-Length = 677 [14:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:10]execute_script... [14:35:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:10]POST & json_proto [14:35:10]process_json_proto [14:35:10]json parsed OK: [14:35:10]protocol is kg_v1.0 [14:35:10]action value=close_receipt [14:35:10]process_action close_receipt [14:35:10]cmd_close_receipt [14:35:10]MH_GetDate [14:35:10]Write to MH i2c: F0 00 00 AB 55 EF [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 09 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: F0 09 00 AB 55 00 A4 09 19 67 04 C1 95 66 E5 [14:35:10]GetLastDocTimeStamp 1729694033 [14:35:10]current date 1729694116 [14:35:10]FM_GetShiftState [14:35:10]SAM_PROTO_GetShiftState [14:35:10]wFMCommunicate request_size=4 [14:35:10]MH_SAM_APDU [14:35:10]CAPDU: 80 13 01 00 [14:35:10]Write to MH i2c: E2 08 00 AC 55 80 13 01 00 00 00 00 00 7E [14:35:10]Write i2c OK [14:35:10]MH_I2C_Read... [14:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:10]Read from MH i2c: E2 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0E 00 [14:35:10]MH_I2C_Read... [14:35:10]Read from MH i2c: E2 0E 00 AC 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 38 [14:35:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:35:10]wFMCommunicate OK [14:35:10]SAM_PROTO_GetShiftState done [14:35:10]FM_GetShiftState done [14:35:10]opened in 1729643755 [14:35:10]opened+sec_in_day 1729730155 [14:35:10]quantity*price = 30038 [14:35:10]sum+1 = 30039 [14:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 138 23.10.2024 14:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31194 ФПД: 70750599191654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31194&fm=70750599191654&tin=02508201610067®Number=0000000000186857&sum=30000 [14:35:11]StoreToDocumentArchive [14:35:11]shift 117 fd 31194 [14:35:11]save to /storage/0117/doc_00031194 [14:35:11]save last doc name /storage/0117/doc_00031194 to /storage/kkm_last_doc_name [14:35:11]save OK [14:35:11]Clear old archive folders... [14:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:11]tlvbuf is 00FA6D10 [14:35:11]SAM_PROTO_ClearQueue [14:35:11]wFMCommunicate request_size=4 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 09 00 00 [14:35:11]Write to MH i2c: E2 08 00 B9 55 80 09 00 00 00 00 00 00 80 [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 B9 55 00 90 00 82 [14:35:11]RAPDU: 90 00 [14:35:11]wFMCommunicate OK [14:35:11]SAM_PROTO_ClearQueue done [14:35:11]KKMCreateOFDPacket [14:35:11]OFDProtocolAddRootSTLVToBuf [14:35:11]FM_MakeSignedData [14:35:11]FM_MakeSignedData [14:35:11]SAM_PROTO_SignData [14:35:11]wFMCommunicate request_size=4 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 0D 01 02 [14:35:11]Write to MH i2c: E2 08 00 BA 55 80 0D 01 02 00 00 00 00 88 [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 BA 55 00 90 00 83 [14:35:11]RAPDU: 90 00 [14:35:11]wFMCommunicate OK [14:35:11]wFMCommunicate request_size=255 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 79 00 00 35 04 06 00 40 [14:35:11]Write to MH i2c: E2 02 01 BB 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 79 00 00 35 04 06 00 40 00 00 CC [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 BB 55 00 90 00 84 [14:35:11]RAPDU: 90 00 [14:35:11]wFMCommunicate OK [14:35:11]wFMCommunicate request_size=10 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 0D 02 02 05 58 E8 55 1C 66 [14:35:11]Write to MH i2c: E2 0D 00 BC 55 80 0D 02 02 05 00 58 E8 55 1C 66 00 00 AC [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 03 00 BC 55 00 90 00 85 [14:35:11]RAPDU: 90 00 [14:35:11]wFMCommunicate OK [14:35:11]wFMCommunicate request_size=4 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 0D 03 02 [14:35:11]Write to MH i2c: E2 08 00 BD 55 80 0D 03 02 00 00 00 00 8D [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 0B 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 0B 00 BD 55 00 01 C5 39 04 73 AF 6B FD 90 00 1B [14:35:11]RAPDU: 01 C5 39 04 73 AF 6B FD 90 00 [14:35:11]wFMCommunicate OK [14:35:11]SAM_PROTO_SignData done [14:35:11]FM_MakeSignedData done [14:35:11]CreateOFDProtocolMessage [14:35:11]wFMCommunicate request_size=4 [14:35:11]MH_SAM_APDU [14:35:11]CAPDU: 80 11 00 00 [14:35:11]Write to MH i2c: E2 08 00 BE 55 80 11 00 00 00 00 00 00 8D [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:11]Read from MH i2c: E2 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 17 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: E2 17 00 BE 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [14:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:35:11]wFMCommunicate OK [14:35:11]CreateOFDProtocolMessage done [14:35:11]OFDSenderStorePacket 31194 [14:35:11]StoreOFDPacket docnum=31194 [14:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 92 07 01 1F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 79 00 00 35 04 06 00 40 58 E8 55 1C 66 01 C5 39 04 73 AF 6B FD [14:35:11]CheckFolder [14:35:11]dirname=/storage/ofd_packets [14:35:11]CheckFolder done [14:35:11]ProducePacketName [14:35:11]name=ofd_packets/00031194 [14:35:11]NVStorageSaveData ofd_packets/00031194 [14:35:11]File name is /storage/ofd_packets/00031194 [14:35:11]Write 301 bytes [14:35:11]NVStorageSaveData done [14:35:11]OFDSenderStorePacket done [14:35:11]KKMCreateOFDPacket done [14:35:11]NVStorageSaveData kkm_last_timestamp [14:35:11]File name is /storage/kkm_last_timestamp [14:35:11]Write 4 bytes [14:35:11]NVStorageSaveData done [14:35:11]ExternCall_PrintAddStr [14:35:11]wPrintStart [14:35:11]Write to MH i2c: 01 00 00 BF 55 14 [14:35:11]Write i2c OK [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 07 00 [14:35:11]MH_I2C_Read... [14:35:11]Read from MH i2c: 01 07 00 BF 55 00 00 00 00 00 FF 0F 29 [14:35:11]RasterBufferAndPrint [14:35:11]line Счет N : (1)343640 [14:35:11]line ИНН: 02508201610067 [14:35:11]line Контрольно-Кассовый Чек [14:35:11]line ПРОДАЖА [14:35:11]line ТРК (МРК, ГНК) : 53 [14:35:11]line Товар: 2710124130 [14:35:11]line Аи-92-К-2 [14:35:11]line 4.490 * 66.90 [14:35:11]line = 300.38 [14:35:11]line НДС 12% НСП 1% [14:35:11]line > о реализуемом товаре [14:35:11]line ОКРУГЛЕНИЕ: -0.38 [14:35:11]line ИТОГО: 300.00 [14:35:11]line Внесено: 300.00 [14:35:11]line СДАЧА: 0.00 [14:35:11]line НСП 1% : 2.66 [14:35:11]line НДС 12% : 31.90 [14:35:11]line Наличными: 300.00 [14:35:11]line Безнал.: 0.00 [14:35:11]line Место: АЗС № 78 "Партнер Нефть" [14:35:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:35:11]line СНО: Общий режим [14:35:11]line Чек 138 23.10.2024 14:35 [14:35:11]line Смена: 117 ФФД: 1.0 [14:35:11]line ЗНМ: 0300000137 [14:35:11]line РНМ: 0000000000186857 [14:35:11]line Версия ККМ: v1.0 [14:35:11]line ФМ: 0000000002094219 [14:35:11]line ФД: 31194 [14:35:11]line ФПД: 70750599191654 [14:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31194&fm=70750599191654&tin=02508201610067®Number=0000000000186857&sum=30000 [14:35:12]OFD Sender: Processing packet 31194 [packets to send 11, broken 10] [14:35:12]ProducePacketName [14:35:12]name=ofd_packets/00031194 [14:35:12]OFD Sender: To server: pG, [14:35:12]CommunicateWithHost lk.salyk.kg:30040 [14:35:12]ConnectInit lk.salyk.kg [14:35:12]written 0, free lines is 4095 [14:35:12]Connected sock=10 [14:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 92 07 01 1F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 09 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 79 00 00 35 04 06 00 40 58 E8 55 1C 66 01 C5 39 04 73 AF 6B FD [14:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C7 40 47 00 34 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 79 00 00 F4 03 04 00 1E B4 18 67 B6 04 01 00 00 22 F2 3E 6E 83 09 EB 6D [14:35:12]CommunicateWithHost err = 0 [14:35:12]CheckOFDResponse [14:35:12]1017 (14) - 77093643461234 [14:35:12]1041 (16) - 0000000002094219 [14:35:12]1040 (4) - 31194 [14:35:12]1012 (4) - 23.10.2024 08:30 [14:35:12]1206 (1) - 0 [14:35:12]OFD Sender: Remove packet 31194 [14:35:12]ProducePacketName [14:35:12]name=ofd_packets/00031194 [14:35:12]NVStorageDeleteData [14:35:12]Write to MH i2c: 01 00 00 EA 55 3F [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 07 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: 01 07 00 EA 55 00 00 00 00 00 ED 0C 3F [14:35:12]RasterBufferAndPrint [14:35:12]line [14:35:12]line [14:35:12]line [14:35:12]line [14:35:12]line [14:35:12]written 0, free lines is 3315 [14:35:12]MH_Cut [14:35:12]Write to MH i2c: D1 01 00 F1 55 01 18 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: D1 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: D1 01 00 [14:35:12]MH_I2C_Read... [14:35:12]Read from MH i2c: D1 01 00 F1 55 00 17 [14:35:12]Write to MH i2c: 01 00 00 F2 55 47 [14:35:12]Write i2c OK [14:35:12]MH_I2C_Read... [14:35:13]OFD Sender: No OFD packet to send [14:35:13]*** Cut start [14:35:13]*** Partial cut [14:35:13]*** CUTSNS_PIN = 1 [14:35:13]*** CUTSNS_PIN = 0 [14:35:13]*** Brake cut motor [14:35:13]Read from MH i2c: 01 [14:35:13]MH_I2C_Read... [14:35:13]*** Stop cut motor [14:35:13]*** Cut end [14:35:13]Read from MH i2c: 01 07 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: 01 07 00 F2 55 00 00 00 00 00 FF 0F 5C [14:35:13]process_action close_receipt done [14:35:13]requested_data is exist [14:35:13]produce_requested_data [14:35:13]requested_item fm.sn is exist - process it [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 11 00 00 [14:35:13]Write to MH i2c: E2 08 00 F3 55 80 11 00 00 00 00 00 00 C2 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:13]Read from MH i2c: E2 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 17 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 17 00 F3 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [14:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:35:13]wFMCommunicate OK [14:35:13]requested_item fd.num is exist - process it [14:35:13]SAM_PROTO_GetFieldsCounters [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 13 00 00 [14:35:13]Write to MH i2c: E2 08 00 F4 55 80 13 00 00 00 00 00 00 C5 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:14]Read from MH i2c: E2 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 62 00 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 62 00 F4 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [14:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:14]wFMCommunicate OK [14:35:14]SAM_PROTO_GetFieldsCounters done [14:35:14]requested_item shift.num is exist - process it [14:35:14]requested_item shift.opened is exist - process it [14:35:14]req_shift_opened [14:35:14]FM_GetShiftState [14:35:14]SAM_PROTO_GetShiftState [14:35:14]wFMCommunicate request_size=4 [14:35:14]MH_SAM_APDU [14:35:14]CAPDU: 80 13 01 00 [14:35:14]Write to MH i2c: E2 08 00 F5 55 80 13 01 00 00 00 00 00 C7 [14:35:14]Write i2c OK [14:35:14]MH_I2C_Read... [14:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:14]Read from MH i2c: E2 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 0E 00 [14:35:14]MH_I2C_Read... [14:35:14]Read from MH i2c: E2 0E 00 F5 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 81 [14:35:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:35:14]wFMCommunicate OK [14:35:14]SAM_PROTO_GetShiftState done [14:35:14]FM_GetShiftState done [14:35:14]req_shift_opened done [14:35:14]requested_item shift.open_date is exist - process it [14:35:14]req_shift_open_date [14:35:14]req_shift_open_date done [14:35:14]produce_requested_data done [14:35:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31194,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:35:14]process_action_free close_receipt [14:35:14]json_value_free [14:35:14]json_value_free done [14:35:14]process_json_proto returns [14:35:14]Send response to host [14:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31194,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:35:14]free response buf [14:35:14]execute_script done [14:35:14]execute_script returns [14:35:14]free content buf [14:35:14]Sock 9.Close socket [14:35:14]Sock 9.Thread stoped [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:41]accept exits with 7 [14:36:41]New connection [14:36:41]New thread 3067043172 created [14:36:41]Thread 3066899812 joined [14:36:41]Waiting for new connection... [14:36:41] Sock 7.Parse request [14:36:41]Sock 7.Check first char [14:36:41]Sock 7.First char is OK [14:36:41]request: POST /json_proto HTTP/1.0 [14:36:41]Method: POST [14:36:41]URL: /json_proto [14:36:41]Method is POST - this is cgi request [14:36:41]url: /json_proto [14:36:41]query_string will be loaded in cgi processing [14:36:41]execute_cgi json_proto POST (null) [14:36:41]execute_cgi path=json_proto method=POST [14:36:41]POST find Content-Length [14:36:41]Host: 172.17.51.3:8080 [14:36:41]Content-Length: 754 [14:36:41]Content-Type: application/json [14:36:41] [14:36:41]POST finish read [14:36:41]Found Content-Length = 754 [14:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:41]execute_script... [14:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:41]POST & json_proto [14:36:41]process_json_proto [14:36:41]json parsed OK: [14:36:41]protocol is kg_v1.0 [14:36:41]action value=close_receipt [14:36:41]process_action close_receipt [14:36:41]cmd_close_receipt [14:36:41]MH_GetDate [14:36:41]Write to MH i2c: F0 00 00 F6 55 3A [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: F0 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: F0 09 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: F0 09 00 F6 55 00 00 0A 19 67 04 C1 95 66 8D [14:36:41]GetLastDocTimeStamp 1729694116 [14:36:41]current date 1729694208 [14:36:41]FM_GetShiftState [14:36:41]SAM_PROTO_GetShiftState [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 01 00 [14:36:41]Write to MH i2c: E2 08 00 F7 55 80 13 01 00 00 00 00 00 C9 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 F7 55 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 83 [14:36:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetShiftState done [14:36:41]FM_GetShiftState done [14:36:41]opened in 1729643755 [14:36:41]opened+sec_in_day 1729730155 [14:36:41]quantity*price = 0 [14:36:41]sum+1 = 1 [14:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 139 23.10.2024 14:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31195 ФПД: 39494790975198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31195&fm=39494790975198&tin=02508201610067®Number=0000000000186857&sum=0 [14:36:43]StoreToDocumentArchive [14:36:43]shift 117 fd 31195 [14:36:43]save to /storage/0117/doc_00031195 [14:36:43]save last doc name /storage/0117/doc_00031195 to /storage/kkm_last_doc_name [14:36:43]save OK [14:36:43]Clear old archive folders... [14:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:43]tlvbuf is 00CC1A40 [14:36:43]SAM_PROTO_ClearQueue [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 09 00 00 [14:36:43]Write to MH i2c: E2 08 00 04 56 80 09 00 00 00 00 00 00 CC [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]OFD Sender: No OFD packet to send [14:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 04 56 00 90 00 CE [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_ClearQueue done [14:36:43]KKMCreateOFDPacket [14:36:43]OFDProtocolAddRootSTLVToBuf [14:36:43]FM_MakeSignedData [14:36:43]FM_MakeSignedData [14:36:43]SAM_PROTO_SignData [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 01 02 [14:36:43]Write to MH i2c: E2 08 00 05 56 80 0D 01 02 00 00 00 00 D4 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 05 56 00 90 00 CF [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=255 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 00 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 79 00 00 35 04 06 00 23 [14:36:43]Write to MH i2c: E2 02 01 06 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 00 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 79 00 00 35 04 06 00 23 00 00 D1 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 06 56 00 90 00 D0 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=10 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 02 02 05 EB 98 FC 8E DE [14:36:43]Write to MH i2c: E2 0D 00 07 56 80 0D 02 02 05 00 EB 98 FC 8E DE 00 00 CC [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 07 56 00 90 00 D1 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 03 02 [14:36:43]Write to MH i2c: E2 08 00 08 56 80 0D 03 02 00 00 00 00 D9 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0B 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0B 00 08 56 00 9E D8 08 E7 0D 55 F8 7F 90 00 18 [14:36:43]RAPDU: 9E D8 08 E7 0D 55 F8 7F 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_SignData done [14:36:43]FM_MakeSignedData done [14:36:43]CreateOFDProtocolMessage [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 11 00 00 [14:36:43]Write to MH i2c: E2 08 00 09 56 80 11 00 00 00 00 00 00 D9 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 09 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [14:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:36:43]wFMCommunicate OK [14:36:43]CreateOFDProtocolMessage done [14:36:43]OFDSenderStorePacket 31195 [14:36:43]StoreOFDPacket docnum=31195 [14:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E FD 07 01 68 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 00 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 79 00 00 35 04 06 00 23 EB 98 FC 8E DE 9E D8 08 E7 0D 55 F8 7F [14:36:43]CheckFolder [14:36:43]dirname=/storage/ofd_packets [14:36:43]CheckFolder done [14:36:43]ProducePacketName [14:36:43]name=ofd_packets/00031195 [14:36:43]NVStorageSaveData ofd_packets/00031195 [14:36:43]File name is /storage/ofd_packets/00031195 [14:36:43]Write 301 bytes [14:36:43]NVStorageSaveData done [14:36:43]OFDSenderStorePacket done [14:36:43]KKMCreateOFDPacket done [14:36:43]NVStorageSaveData kkm_last_timestamp [14:36:43]File name is /storage/kkm_last_timestamp [14:36:43]Write 4 bytes [14:36:43]NVStorageSaveData done [14:36:43]ExternCall_PrintAddStr [14:36:43]wPrintStart [14:36:43]Write to MH i2c: 01 00 00 0A 56 60 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 0A 56 00 00 00 00 00 FF 0F 75 [14:36:43]RasterBufferAndPrint [14:36:43]line Счет N : (1)343641 [14:36:43]line ИНН: 02508201610067 [14:36:43]line Контрольно-Кассовый Чек [14:36:43]line ПРОДАЖА [14:36:43]line ТРК (МРК, ГНК) : 43 [14:36:43]line Товар: 2710124130 [14:36:43]line Аи-92-К-2 [14:36:43]line 90.000 * 0.00 [14:36:43]line = 0.00 [14:36:43]line НДС 12% НСП 1% [14:36:43]line > о реализуемом товаре [14:36:43]line ИТОГО: 0.00 [14:36:43]line НСП 1% : 0.00 [14:36:43]line НДС 12% : 0.00 [14:36:43]line Наличными: 0.00 [14:36:43]line Безнал.: 0.00 [14:36:43]line Место: АЗС № 78 "Партнер Нефть" [14:36:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:36:43]line СНО: Общий режим [14:36:43]line Чек 139 23.10.2024 14:36 [14:36:43]line Смена: 117 ФФД: 1.0 [14:36:43]line ЗНМ: 0300000137 [14:36:43]line РНМ: 0000000000186857 [14:36:43]line Версия ККМ: v1.0 [14:36:43]line Талоны: ТК ГПНА Online [14:36:43]line 30101093 [14:36:43]line ФМ: 0000000002094219 [14:36:43]line ФД: 31195 [14:36:43]line ФПД: 39494790975198 [14:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31195&fm=39494790975198&tin=02508201610067®Number=0000000000186857&sum=0 [14:36:43]OFD Sender: Processing packet 31195 [packets to send 11, broken 10] [14:36:43]ProducePacketName [14:36:43]name=ofd_packets/00031195 [14:36:43]OFD Sender: To server: pG, [14:36:43]CommunicateWithHost lk.salyk.kg:30040 [14:36:43]ConnectInit lk.salyk.kg [14:36:43]written 0, free lines is 4095 [14:36:44]Connected sock=10 [14:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5E FD 07 01 68 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 00 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 79 00 00 35 04 06 00 23 EB 98 FC 8E DE 9E D8 08 E7 0D 55 F8 7F [14:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 C9 47 00 AC 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 79 00 00 F4 03 04 00 7A B4 18 67 B6 04 01 00 00 E5 83 24 88 7F A3 D4 AC [14:36:44]CommunicateWithHost err = 0 [14:36:44]CheckOFDResponse [14:36:44]1017 (14) - 77093643461234 [14:36:44]1041 (16) - 0000000002094219 [14:36:44]1040 (4) - 31195 [14:36:44]1012 (4) - 23.10.2024 08:31 [14:36:44]1206 (1) - 0 [14:36:44]OFD Sender: Remove packet 31195 [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00031195 [14:36:44]NVStorageDeleteData [14:36:44]Write to MH i2c: 01 00 00 34 56 8A [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 34 56 00 00 00 00 00 F9 0C 96 [14:36:44]RasterBufferAndPrint [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]written 0, free lines is 3327 [14:36:44]MH_Cut [14:36:44]Write to MH i2c: D1 01 00 3B 56 01 63 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 3B 56 00 62 [14:36:44]Write to MH i2c: 01 00 00 3C 56 92 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]OFD Sender: No OFD packet to send [14:36:45]*** Cut start [14:36:45]*** Partial cut [14:36:45]*** CUTSNS_PIN = 1 [14:36:45]*** CUTSNS_PIN = 0 [14:36:45]*** Brake cut motor [14:36:45]Read from MH i2c: 01 [14:36:45]MH_I2C_Read... [14:36:45]*** Stop cut motor [14:36:45]*** Cut end [14:36:45]Read from MH i2c: 01 07 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: 01 07 00 3C 56 00 00 00 00 00 FF 0F A7 [14:36:45]process_action close_receipt done [14:36:45]requested_data is exist [14:36:45]produce_requested_data [14:36:45]requested_item fm.sn is exist - process it [14:36:45]wFMCommunicate request_size=4 [14:36:45]MH_SAM_APDU [14:36:45]CAPDU: 80 11 00 00 [14:36:45]Write to MH i2c: E2 08 00 3D 56 80 11 00 00 00 00 00 00 0D [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:45]Read from MH i2c: E2 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 17 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 17 00 3D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [14:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:36:45]wFMCommunicate OK [14:36:45]requested_item fd.num is exist - process it [14:36:45]SAM_PROTO_GetFieldsCounters [14:36:45]wFMCommunicate request_size=4 [14:36:45]MH_SAM_APDU [14:36:45]CAPDU: 80 13 00 00 [14:36:45]Write to MH i2c: E2 08 00 3E 56 80 13 00 00 00 00 00 00 10 [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:45]Read from MH i2c: E2 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 62 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 62 00 3E 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [14:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:45]wFMCommunicate OK [14:36:45]SAM_PROTO_GetFieldsCounters done [14:36:45]requested_item shift.num is exist - process it [14:36:45]requested_item shift.opened is exist - process it [14:36:45]req_shift_opened [14:36:45]FM_GetShiftState [14:36:45]SAM_PROTO_GetShiftState [14:36:45]wFMCommunicate request_size=4 [14:36:45]MH_SAM_APDU [14:36:45]CAPDU: 80 13 01 00 [14:36:45]Write to MH i2c: E2 08 00 3F 56 80 13 01 00 00 00 00 00 12 [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:45]Read from MH i2c: E2 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 0E 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: E2 0E 00 3F 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CC [14:36:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:36:45]wFMCommunicate OK [14:36:45]SAM_PROTO_GetShiftState done [14:36:45]FM_GetShiftState done [14:36:45]req_shift_opened done [14:36:45]requested_item shift.open_date is exist - process it [14:36:45]req_shift_open_date [14:36:45]req_shift_open_date done [14:36:45]produce_requested_data done [14:36:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31195,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:36:45]process_action_free close_receipt [14:36:45]json_value_free [14:36:45]json_value_free done [14:36:45]process_json_proto returns [14:36:45]Send response to host [14:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31195,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:36:45]free response buf [14:36:45]execute_script done [14:36:45]execute_script returns [14:36:45]free content buf [14:36:45]Sock 7.Close socket [14:36:45]Sock 7.Thread stoped [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]accept exits with 9 [14:37:34]New connection [14:37:34]New thread 3066899812 created [14:37:34]Thread 3067043172 joined [14:37:34]Waiting for new connection... [14:37:34] Sock 9.Parse request [14:37:34]Sock 9.Check first char [14:37:34]Sock 9.First char is OK [14:37:34]request: POST /json_proto HTTP/1.0 [14:37:34]Method: POST [14:37:34]URL: /json_proto [14:37:34]Method is POST - this is cgi request [14:37:34]url: /json_proto [14:37:34]query_string will be loaded in cgi processing [14:37:34]execute_cgi json_proto POST (null) [14:37:34]execute_cgi path=json_proto method=POST [14:37:34]POST find Content-Length [14:37:34]Host: 172.17.51.3:8080 [14:37:34]Content-Length: 677 [14:37:34]Content-Type: application/json [14:37:34] [14:37:34]POST finish read [14:37:34]Found Content-Length = 677 [14:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:34]execute_script... [14:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:34]POST & json_proto [14:37:34]process_json_proto [14:37:34]json parsed OK: [14:37:34]protocol is kg_v1.0 [14:37:34]action value=close_receipt [14:37:34]process_action close_receipt [14:37:34]cmd_close_receipt [14:37:34]MH_GetDate [14:37:34]Write to MH i2c: F0 00 00 40 56 85 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 09 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 09 00 40 56 00 35 0A 19 67 04 C1 95 66 0D [14:37:34]GetLastDocTimeStamp 1729694208 [14:37:34]current date 1729694261 [14:37:34]FM_GetShiftState [14:37:34]SAM_PROTO_GetShiftState [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 01 00 [14:37:34]Write to MH i2c: E2 08 00 41 56 80 13 01 00 00 00 00 00 14 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 41 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CE [14:37:34]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetShiftState done [14:37:34]FM_GetShiftState done [14:37:34]opened in 1729643755 [14:37:34]opened+sec_in_day 1729730155 [14:37:34]quantity*price = 50041 [14:37:34]sum+1 = 50042 [14:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 140 23.10.2024 14:37 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31196 ФПД: 164397705003301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143741&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31196&fm=164397705003301&tin=02508201610067®Number=0000000000186857&sum=50000 [14:37:35]StoreToDocumentArchive [14:37:35]shift 117 fd 31196 [14:37:35]save to /storage/0117/doc_00031196 [14:37:35]save last doc name /storage/0117/doc_00031196 to /storage/kkm_last_doc_name [14:37:35]save OK [14:37:35]Clear old archive folders... [14:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:35]tlvbuf is 00D31410 [14:37:35]SAM_PROTO_ClearQueue [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 09 00 00 [14:37:35]Write to MH i2c: E2 08 00 4E 56 80 09 00 00 00 00 00 00 16 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 4E 56 00 90 00 18 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]SAM_PROTO_ClearQueue done [14:37:35]KKMCreateOFDPacket [14:37:35]OFDProtocolAddRootSTLVToBuf [14:37:35]FM_MakeSignedData [14:37:35]FM_MakeSignedData [14:37:35]SAM_PROTO_SignData [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 01 02 [14:37:35]Write to MH i2c: E2 08 00 4F 56 80 0D 01 02 00 00 00 00 1E [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 4F 56 00 90 00 19 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=255 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 35 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 79 00 00 35 04 06 00 95 [14:37:35]Write to MH i2c: E2 02 01 50 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 35 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 79 00 00 35 04 06 00 95 00 00 59 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 50 56 00 90 00 1A [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=10 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 02 02 05 84 D2 CF 01 25 [14:37:35]Write to MH i2c: E2 0D 00 51 56 80 0D 02 02 05 00 84 D2 CF 01 25 00 00 76 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 51 56 00 90 00 1B [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 03 02 [14:37:35]Write to MH i2c: E2 08 00 52 56 80 0D 03 02 00 00 00 00 23 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0B 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0B 00 52 56 00 0F BD D9 1C DB 66 70 A2 90 00 38 [14:37:36]RAPDU: 0F BD D9 1C DB 66 70 A2 90 00 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_SignData done [14:37:36]FM_MakeSignedData done [14:37:36]CreateOFDProtocolMessage [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 11 00 00 [14:37:36]Write to MH i2c: E2 08 00 53 56 80 11 00 00 00 00 00 00 23 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 17 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 17 00 53 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [14:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:37:36]wFMCommunicate OK [14:37:36]CreateOFDProtocolMessage done [14:37:36]OFDSenderStorePacket 31196 [14:37:36]StoreOFDPacket docnum=31196 [14:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D D9 07 01 9A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 35 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 79 00 00 35 04 06 00 95 84 D2 CF 01 25 0F BD D9 1C DB 66 70 A2 [14:37:36]CheckFolder [14:37:36]dirname=/storage/ofd_packets [14:37:36]CheckFolder done [14:37:36]ProducePacketName [14:37:36]name=ofd_packets/00031196 [14:37:36]NVStorageSaveData ofd_packets/00031196 [14:37:36]File name is /storage/ofd_packets/00031196 [14:37:36]Write 301 bytes [14:37:36]NVStorageSaveData done [14:37:36]OFDSenderStorePacket done [14:37:36]KKMCreateOFDPacket done [14:37:36]NVStorageSaveData kkm_last_timestamp [14:37:36]File name is /storage/kkm_last_timestamp [14:37:36]Write 4 bytes [14:37:36]NVStorageSaveData done [14:37:36]ExternCall_PrintAddStr [14:37:36]wPrintStart [14:37:36]Write to MH i2c: 01 00 00 54 56 AA [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 54 56 00 00 00 00 00 FF 0F BF [14:37:36]RasterBufferAndPrint [14:37:36]line Счет N : (1)343643 [14:37:36]line ИНН: 02508201610067 [14:37:36]line Контрольно-Кассовый Чек [14:37:36]line ПРОДАЖА [14:37:36]line ТРК (МРК, ГНК) : 33 [14:37:36]line Товар: 2710124130 [14:37:36]line Аи-92-К-2 [14:37:36]line 7.480 * 66.90 [14:37:36]line = 500.41 [14:37:36]line НДС 12% НСП 1% [14:37:36]line > о реализуемом товаре [14:37:36]line ОКРУГЛЕНИЕ: -0.41 [14:37:36]line ИТОГО: 500.00 [14:37:36]line Внесено: 500.00 [14:37:36]line СДАЧА: 0.00 [14:37:36]line НСП 1% : 4.43 [14:37:36]line НДС 12% : 53.14 [14:37:36]line Наличными: 500.00 [14:37:36]line Безнал.: 0.00 [14:37:36]line Место: АЗС № 78 "Партнер Нефть" [14:37:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:37:36]line СНО: Общий режим [14:37:36]line Чек 140 23.10.2024 14:37 [14:37:36]line Смена: 117 ФФД: 1.0 [14:37:36]line ЗНМ: 0300000137 [14:37:36]line РНМ: 0000000000186857 [14:37:36]line Версия ККМ: v1.0 [14:37:36]line ФМ: 0000000002094219 [14:37:36]line ФД: 31196 [14:37:36]line ФПД: 164397705003301 [14:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143741&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31196&fm=164397705003301&tin=02508201610067®Number=0000000000186857&sum=50000 [14:37:36]OFD Sender: Processing packet 31196 [packets to send 11, broken 10] [14:37:36]ProducePacketName [14:37:36]name=ofd_packets/00031196 [14:37:36]OFD Sender: To server: pG, [14:37:36]CommunicateWithHost lk.salyk.kg:30040 [14:37:36]ConnectInit lk.salyk.kg [14:37:36]written 0, free lines is 4095 [14:37:36]Connected sock=10 [14:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D D9 07 01 9A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 35 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 79 00 00 35 04 06 00 95 84 D2 CF 01 25 0F BD D9 1C DB 66 70 A2 [14:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 B4 47 00 77 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 79 00 00 F4 03 04 00 AF B4 18 67 B6 04 01 00 00 26 D2 12 F2 17 D8 AA 1F [14:37:36]CommunicateWithHost err = 0 [14:37:36]CheckOFDResponse [14:37:36]1017 (14) - 77093643461234 [14:37:36]1041 (16) - 0000000002094219 [14:37:36]1040 (4) - 31196 [14:37:36]1012 (4) - 23.10.2024 08:32 [14:37:36]1206 (1) - 0 [14:37:36]OFD Sender: Remove packet 31196 [14:37:36]ProducePacketName [14:37:36]name=ofd_packets/00031196 [14:37:36]NVStorageDeleteData [14:37:36]Write to MH i2c: 01 00 00 7F 56 D5 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 7F 56 00 00 00 00 00 E5 0C CD [14:37:36]RasterBufferAndPrint [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]written 0, free lines is 3307 [14:37:36]MH_Cut [14:37:36]Write to MH i2c: D1 01 00 86 56 01 AE [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 01 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 01 00 86 56 00 AD [14:37:36]Write to MH i2c: 01 00 00 87 56 DD [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:37]OFD Sender: No OFD packet to send [14:37:37]*** Cut start [14:37:37]*** Partial cut [14:37:37]*** CUTSNS_PIN = 1 [14:37:37]*** CUTSNS_PIN = 0 [14:37:37]*** Brake cut motor [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]*** Stop cut motor [14:37:38]*** Cut end [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 87 56 00 00 00 00 00 FF 0F F2 [14:37:38]process_action close_receipt done [14:37:38]requested_data is exist [14:37:38]produce_requested_data [14:37:38]requested_item fm.sn is exist - process it [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 11 00 00 [14:37:38]Write to MH i2c: E2 08 00 88 56 80 11 00 00 00 00 00 00 58 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 17 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 17 00 88 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [14:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:37:38]wFMCommunicate OK [14:37:38]requested_item fd.num is exist - process it [14:37:38]SAM_PROTO_GetFieldsCounters [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 13 00 00 [14:37:38]Write to MH i2c: E2 08 00 89 56 80 13 00 00 00 00 00 00 5B [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 62 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 62 00 89 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_GetFieldsCounters done [14:37:38]requested_item shift.num is exist - process it [14:37:38]requested_item shift.opened is exist - process it [14:37:38]req_shift_opened [14:37:38]FM_GetShiftState [14:37:38]SAM_PROTO_GetShiftState [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 13 01 00 [14:37:38]Write to MH i2c: E2 08 00 8A 56 80 13 01 00 00 00 00 00 5D [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 8A 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 17 [14:37:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_GetShiftState done [14:37:38]FM_GetShiftState done [14:37:38]req_shift_opened done [14:37:38]requested_item shift.open_date is exist - process it [14:37:38]req_shift_open_date [14:37:38]req_shift_open_date done [14:37:38]produce_requested_data done [14:37:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31196,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:37:38]process_action_free close_receipt [14:37:38]json_value_free [14:37:38]json_value_free done [14:37:38]process_json_proto returns [14:37:38]Send response to host [14:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31196,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:37:38]free response buf [14:37:38]execute_script done [14:37:38]execute_script returns [14:37:38]free content buf [14:37:38]Sock 9.Close socket [14:37:38]Sock 9.Thread stoped [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:52]accept exits with 7 [14:39:52]New connection [14:39:52]New thread 3067043172 created [14:39:52]Thread 3066899812 joined [14:39:52]Waiting for new connection... [14:39:52] Sock 7.Parse request [14:39:52]Sock 7.Check first char [14:39:52]Sock 7.First char is OK [14:39:52]request: POST /json_proto HTTP/1.0 [14:39:52]Method: POST [14:39:52]URL: /json_proto [14:39:52]Method is POST - this is cgi request [14:39:52]url: /json_proto [14:39:52]query_string will be loaded in cgi processing [14:39:52]execute_cgi json_proto POST (null) [14:39:52]execute_cgi path=json_proto method=POST [14:39:52]POST find Content-Length [14:39:52]Host: 172.17.51.3:8080 [14:39:52]Content-Length: 752 [14:39:52]Content-Type: application/json [14:39:52] [14:39:52]POST finish read [14:39:52]Found Content-Length = 752 [14:39:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 170.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115077", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:52]execute_script... [14:39:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 170.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115077", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:52]POST & json_proto [14:39:52]process_json_proto [14:39:52]json parsed OK: [14:39:52]protocol is kg_v1.0 [14:39:52]action value=close_receipt [14:39:52]process_action close_receipt [14:39:52]cmd_close_receipt [14:39:52]MH_GetDate [14:39:52]Write to MH i2c: F0 00 00 8B 56 D0 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: F0 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: F0 09 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: F0 09 00 8B 56 00 BF 0A 19 67 04 C1 95 66 E2 [14:39:52]GetLastDocTimeStamp 1729694261 [14:39:52]current date 1729694399 [14:39:52]FM_GetShiftState [14:39:52]SAM_PROTO_GetShiftState [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 13 01 00 [14:39:52]Write to MH i2c: E2 08 00 8C 56 80 13 01 00 00 00 00 00 5F [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0E 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0E 00 8C 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 19 [14:39:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_GetShiftState done [14:39:52]FM_GetShiftState done [14:39:52]opened in 1729643755 [14:39:52]opened+sec_in_day 1729730155 [14:39:52]quantity*price = 0 [14:39:52]sum+1 = 1 [14:39:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 141 23.10.2024 14:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30115077 ФМ: 0000000002094219 ФД: 31197 ФПД: 118521095895922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31197&fm=118521095895922&tin=02508201610067®Number=0000000000186857&sum=0 [14:39:53]StoreToDocumentArchive [14:39:53]shift 117 fd 31197 [14:39:53]save to /storage/0117/doc_00031197 [14:39:53]save last doc name /storage/0117/doc_00031197 to /storage/kkm_last_doc_name [14:39:53]save OK [14:39:53]Clear old archive folders... [14:39:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:39:53]tlvbuf is B6DBE7B0 [14:39:53]SAM_PROTO_ClearQueue [14:39:53]wFMCommunicate request_size=4 [14:39:53]MH_SAM_APDU [14:39:53]CAPDU: 80 09 00 00 [14:39:53]Write to MH i2c: E2 08 00 99 56 80 09 00 00 00 00 00 00 61 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:53]Read from MH i2c: E2 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 03 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 03 00 99 56 00 90 00 63 [14:39:53]RAPDU: 90 00 [14:39:53]wFMCommunicate OK [14:39:53]SAM_PROTO_ClearQueue done [14:39:53]KKMCreateOFDPacket [14:39:53]OFDProtocolAddRootSTLVToBuf [14:39:53]FM_MakeSignedData [14:39:53]FM_MakeSignedData [14:39:53]SAM_PROTO_SignData [14:39:53]wFMCommunicate request_size=4 [14:39:53]MH_SAM_APDU [14:39:53]CAPDU: 80 0D 01 02 [14:39:53]Write to MH i2c: E2 08 00 9A 56 80 0D 01 02 00 00 00 00 69 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:53]Read from MH i2c: E2 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 03 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 03 00 9A 56 00 90 00 64 [14:39:53]RAPDU: 90 00 [14:39:53]wFMCommunicate OK [14:39:53]wFMCommunicate request_size=255 [14:39:53]MH_SAM_APDU [14:39:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 98 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BF 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 79 00 00 35 04 06 00 6B CB 57 D1 [14:39:53]Write to MH i2c: E2 02 01 9B 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 98 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BF 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 79 00 00 35 04 06 00 6B CB 57 D1 00 00 71 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 9B 56 00 90 00 65 [14:39:54]RAPDU: 90 00 [14:39:54]wFMCommunicate OK [14:39:54]wFMCommunicate request_size=7 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 0D 02 02 02 BB 72 [14:39:54]Write to MH i2c: E2 0A 00 9C 56 80 0D 02 02 02 00 BB 72 00 00 9D [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 9C 56 00 90 00 66 [14:39:54]RAPDU: 90 00 [14:39:54]wFMCommunicate OK [14:39:54]wFMCommunicate request_size=4 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 0D 03 02 [14:39:54]Write to MH i2c: E2 08 00 9D 56 80 0D 03 02 00 00 00 00 6E [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 0B 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 0B 00 9D 56 00 FA 95 27 BB 60 C5 72 F0 90 00 67 [14:39:54]RAPDU: FA 95 27 BB 60 C5 72 F0 90 00 [14:39:54]wFMCommunicate OK [14:39:54]SAM_PROTO_SignData done [14:39:54]FM_MakeSignedData done [14:39:54]CreateOFDProtocolMessage [14:39:54]wFMCommunicate request_size=4 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 11 00 00 [14:39:54]Write to MH i2c: E2 08 00 9E 56 80 11 00 00 00 00 00 00 6E [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 17 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 17 00 9E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [14:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:39:54]wFMCommunicate OK [14:39:54]CreateOFDProtocolMessage done [14:39:54]OFDSenderStorePacket 31197 [14:39:54]StoreOFDPacket docnum=31197 [14:39:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CE 38 04 01 6B 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 98 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BF 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 79 00 00 35 04 06 00 6B CB 57 D1 BB 72 FA 95 27 BB 60 C5 72 F0 [14:39:54]CheckFolder [14:39:54]dirname=/storage/ofd_packets [14:39:54]CheckFolder done [14:39:54]ProducePacketName [14:39:54]name=ofd_packets/00031197 [14:39:54]NVStorageSaveData ofd_packets/00031197 [14:39:54]File name is /storage/ofd_packets/00031197 [14:39:54]Write 298 bytes [14:39:54]NVStorageSaveData done [14:39:54]OFDSenderStorePacket done [14:39:54]KKMCreateOFDPacket done [14:39:54]NVStorageSaveData kkm_last_timestamp [14:39:54]File name is /storage/kkm_last_timestamp [14:39:54]Write 4 bytes [14:39:54]NVStorageSaveData done [14:39:54]ExternCall_PrintAddStr [14:39:54]wPrintStart [14:39:54]Write to MH i2c: 01 00 00 9F 56 F5 [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: 01 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: 01 07 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: 01 07 00 9F 56 00 00 00 00 00 FF 0F 0A [14:39:54]RasterBufferAndPrint [14:39:54]line Счет N : (1)343642 [14:39:54]line ИНН: 02508201610067 [14:39:54]line Контрольно-Кассовый Чек [14:39:54]line ПРОДАЖА [14:39:54]line ТРК (МРК, ГНК) : 64 [14:39:54]line Товар: 2710194210 [14:39:54]line ДТ-К-2 [14:39:54]line 170.000 * 0.00 [14:39:54]line = 0.00 [14:39:54]line НДС 12% НСП 1% [14:39:54]line > о реализуемом товаре [14:39:54]line ИТОГО: 0.00 [14:39:54]line НСП 1% : 0.00 [14:39:54]line НДС 12% : 0.00 [14:39:54]line Наличными: 0.00 [14:39:54]line Безнал.: 0.00 [14:39:54]line Место: АЗС № 78 "Партнер Нефть" [14:39:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:39:54]line СНО: Общий режим [14:39:54]line Чек 141 23.10.2024 14:39 [14:39:54]line Смена: 117 ФФД: 1.0 [14:39:54]line ЗНМ: 0300000137 [14:39:54]line РНМ: 0000000000186857 [14:39:54]line Версия ККМ: v1.0 [14:39:54]line Талоны: ТК ГПНА Online [14:39:54]line 30115077 [14:39:54]line ФМ: 0000000002094219 [14:39:54]line ФД: 31197 [14:39:54]line ФПД: 118521095895922 [14:39:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T143959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31197&fm=118521095895922&tin=02508201610067®Number=0000000000186857&sum=0 [14:39:54]OFD Sender: Processing packet 31197 [packets to send 11, broken 10] [14:39:54]ProducePacketName [14:39:54]name=ofd_packets/00031197 [14:39:54]OFD Sender: To server: pG, [14:39:54]CommunicateWithHost lk.salyk.kg:30040 [14:39:54]ConnectInit lk.salyk.kg [14:39:54]written 0, free lines is 4095 [14:39:54]Connected sock=11 [14:39:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CE 38 04 01 6B 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 98 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BF 0A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 79 00 00 35 04 06 00 6B CB 57 D1 BB 72 FA 95 27 BB 60 C5 72 F0 [14:39:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A8 58 47 00 CC 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 32 30 39 34 32 31 39 10 04 04 00 DD 79 00 00 F4 03 04 00 39 B5 18 67 B6 04 01 00 00 D3 A8 87 FA B1 28 44 AE [14:39:54]CommunicateWithHost err = 0 [14:39:54]CheckOFDResponse [14:39:54]1017 (14) - 77093643461234 [14:39:54]1041 (16) - 0000000002094219 [14:39:54]1040 (4) - 31197 [14:39:54]1012 (4) - 23.10.2024 08:35 [14:39:54]1206 (1) - 0 [14:39:54]OFD Sender: Remove packet 31197 [14:39:54]ProducePacketName [14:39:54]name=ofd_packets/00031197 [14:39:54]NVStorageDeleteData [14:39:55]Write to MH i2c: 01 00 00 C9 56 1F [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 C9 56 00 00 00 00 00 F3 0C 25 [14:39:55]RasterBufferAndPrint [14:39:55]line [14:39:55]line [14:39:55]line [14:39:55]line [14:39:55]line [14:39:55]written 0, free lines is 3321 [14:39:55]MH_Cut [14:39:55]Write to MH i2c: D1 01 00 D0 56 01 F8 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: D1 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: D1 01 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: D1 01 00 D0 56 00 F7 [14:39:55]Write to MH i2c: 01 00 00 D1 56 27 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]OFD Sender: No OFD packet to send [14:39:55]*** Cut start [14:39:55]*** Partial cut [14:39:55]*** CUTSNS_PIN = 1 [14:39:55]*** CUTSNS_PIN = 0 [14:39:55]*** Brake cut motor [14:39:56]Read from MH i2c: 01 [14:39:56]MH_I2C_Read... [14:39:56]*** Stop cut motor [14:39:56]*** Cut end [14:39:56]Read from MH i2c: 01 07 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: 01 07 00 D1 56 00 00 00 00 00 FF 0F 3C [14:39:56]process_action close_receipt done [14:39:56]requested_data is exist [14:39:56]produce_requested_data [14:39:56]requested_item fm.sn is exist - process it [14:39:56]wFMCommunicate request_size=4 [14:39:56]MH_SAM_APDU [14:39:56]CAPDU: 80 11 00 00 [14:39:56]Write to MH i2c: E2 08 00 D2 56 80 11 00 00 00 00 00 00 A2 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:56]Read from MH i2c: E2 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 17 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 17 00 D2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [14:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:39:56]wFMCommunicate OK [14:39:56]requested_item fd.num is exist - process it [14:39:56]SAM_PROTO_GetFieldsCounters [14:39:56]wFMCommunicate request_size=4 [14:39:56]MH_SAM_APDU [14:39:56]CAPDU: 80 13 00 00 [14:39:56]Write to MH i2c: E2 08 00 D3 56 80 13 00 00 00 00 00 00 A5 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:56]Read from MH i2c: E2 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 62 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 62 00 D3 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:39:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:56]wFMCommunicate OK [14:39:56]SAM_PROTO_GetFieldsCounters done [14:39:56]requested_item shift.num is exist - process it [14:39:56]requested_item shift.opened is exist - process it [14:39:56]req_shift_opened [14:39:56]FM_GetShiftState [14:39:56]SAM_PROTO_GetShiftState [14:39:56]wFMCommunicate request_size=4 [14:39:56]MH_SAM_APDU [14:39:56]CAPDU: 80 13 01 00 [14:39:56]Write to MH i2c: E2 08 00 D4 56 80 13 01 00 00 00 00 00 A7 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:56]Read from MH i2c: E2 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 0E 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 0E 00 D4 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 61 [14:39:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:39:56]wFMCommunicate OK [14:39:56]SAM_PROTO_GetShiftState done [14:39:56]FM_GetShiftState done [14:39:56]req_shift_opened done [14:39:56]requested_item shift.open_date is exist - process it [14:39:56]req_shift_open_date [14:39:56]req_shift_open_date done [14:39:56]produce_requested_data done [14:39:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31197,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:39:56]process_action_free close_receipt [14:39:56]json_value_free [14:39:56]json_value_free done [14:39:56]process_json_proto returns [14:39:56]Send response to host [14:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31197,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:39:56]free response buf [14:39:56]execute_script done [14:39:56]execute_script returns [14:39:56]free content buf [14:39:56]Sock 7.Close socket [14:39:56]Sock 7.Thread stoped [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:26]accept exits with 9 [14:41:26]New connection [14:41:26]New thread 3066899812 created [14:41:26]Thread 3067043172 joined [14:41:26]Waiting for new connection... [14:41:26] Sock 9.Parse request [14:41:26]Sock 9.Check first char [14:41:26]Sock 9.First char is OK [14:41:26]request: POST /json_proto HTTP/1.0 [14:41:26]Method: POST [14:41:26]URL: /json_proto [14:41:26]Method is POST - this is cgi request [14:41:26]url: /json_proto [14:41:26]query_string will be loaded in cgi processing [14:41:26]execute_cgi json_proto POST (null) [14:41:26]execute_cgi path=json_proto method=POST [14:41:26]POST find Content-Length [14:41:26]Host: 172.17.51.3:8080 [14:41:26]Content-Length: 677 [14:41:26]Content-Type: application/json [14:41:26] [14:41:26]POST finish read [14:41:26]Found Content-Length = 677 [14:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:26]execute_script... [14:41:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:26]POST & json_proto [14:41:26]process_json_proto [14:41:26]json parsed OK: [14:41:26]protocol is kg_v1.0 [14:41:26]action value=close_receipt [14:41:26]process_action close_receipt [14:41:26]cmd_close_receipt [14:41:26]MH_GetDate [14:41:26]Write to MH i2c: F0 00 00 D5 56 1A [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 09 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 09 00 D5 56 00 1C 0B 19 67 04 C1 95 66 8A [14:41:26]GetLastDocTimeStamp 1729694399 [14:41:26]current date 1729694492 [14:41:26]FM_GetShiftState [14:41:26]SAM_PROTO_GetShiftState [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 13 01 00 [14:41:26]Write to MH i2c: E2 08 00 D6 56 80 13 01 00 00 00 00 00 A9 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0E 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0E 00 D6 56 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 63 [14:41:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:41:26]wFMCommunicate OK [14:41:26]SAM_PROTO_GetShiftState done [14:41:26]FM_GetShiftState done [14:41:26]opened in 1729643755 [14:41:26]opened+sec_in_day 1729730155 [14:41:26]quantity*price = 30038 [14:41:26]sum+1 = 30039 [14:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 142 23.10.2024 14:41 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31198 ФПД: 227194727679918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31198&fm=227194727679918&tin=02508201610067®Number=0000000000186857&sum=30000 [14:41:27]StoreToDocumentArchive [14:41:27]shift 117 fd 31198 [14:41:27]save to /storage/0117/doc_00031198 [14:41:27]save last doc name /storage/0117/doc_00031198 to /storage/kkm_last_doc_name [14:41:27]save OK [14:41:27]Clear old archive folders... [14:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:27]tlvbuf is 00CC5690 [14:41:27]SAM_PROTO_ClearQueue [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 09 00 00 [14:41:27]Write to MH i2c: E2 08 00 E3 56 80 09 00 00 00 00 00 00 AB [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 E3 56 00 90 00 AD [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_ClearQueue done [14:41:27]KKMCreateOFDPacket [14:41:27]OFDProtocolAddRootSTLVToBuf [14:41:27]FM_MakeSignedData [14:41:27]FM_MakeSignedData [14:41:27]SAM_PROTO_SignData [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 01 02 [14:41:27]Write to MH i2c: E2 08 00 E4 56 80 0D 01 02 00 00 00 00 B3 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 E4 56 00 90 00 AE [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=255 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1C 0B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 79 00 00 35 04 06 00 CE [14:41:27]Write to MH i2c: E2 02 01 E5 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1C 0B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 79 00 00 35 04 06 00 CE 00 00 07 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 E5 56 00 90 00 AF [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=10 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 02 02 05 A1 E5 09 C7 AE [14:41:27]Write to MH i2c: E2 0D 00 E6 56 80 0D 02 02 05 00 A1 E5 09 C7 AE 00 00 C4 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 E6 56 00 90 00 B0 [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 03 02 [14:41:27]Write to MH i2c: E2 08 00 E7 56 80 0D 03 02 00 00 00 00 B8 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0B 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0B 00 E7 56 00 A3 89 41 45 10 30 C4 5F 90 00 CE [14:41:27]RAPDU: A3 89 41 45 10 30 C4 5F 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_SignData done [14:41:27]FM_MakeSignedData done [14:41:27]CreateOFDProtocolMessage [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 11 00 00 [14:41:27]Write to MH i2c: E2 08 00 E8 56 80 11 00 00 00 00 00 00 B8 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 E8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [14:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:41:27]wFMCommunicate OK [14:41:27]CreateOFDProtocolMessage done [14:41:27]OFDSenderStorePacket 31198 [14:41:27]StoreOFDPacket docnum=31198 [14:41:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D8 C3 07 01 A7 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1C 0B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 79 00 00 35 04 06 00 CE A1 E5 09 C7 AE A3 89 41 45 10 30 C4 5F [14:41:27]CheckFolder [14:41:27]dirname=/storage/ofd_packets [14:41:27]CheckFolder done [14:41:27]ProducePacketName [14:41:27]name=ofd_packets/00031198 [14:41:27]NVStorageSaveData ofd_packets/00031198 [14:41:27]File name is /storage/ofd_packets/00031198 [14:41:27]Write 301 bytes [14:41:27]NVStorageSaveData done [14:41:27]OFDSenderStorePacket done [14:41:27]KKMCreateOFDPacket done [14:41:27]NVStorageSaveData kkm_last_timestamp [14:41:27]File name is /storage/kkm_last_timestamp [14:41:27]Write 4 bytes [14:41:27]NVStorageSaveData done [14:41:27]ExternCall_PrintAddStr [14:41:27]wPrintStart [14:41:27]Write to MH i2c: 01 00 00 E9 56 3F [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 E9 56 00 00 00 00 00 FF 0F 54 [14:41:27]RasterBufferAndPrint [14:41:27]line Счет N : (1)343644 [14:41:27]line ИНН: 02508201610067 [14:41:27]line Контрольно-Кассовый Чек [14:41:27]line ПРОДАЖА [14:41:27]line ТРК (МРК, ГНК) : 43 [14:41:27]line Товар: 2710124130 [14:41:27]line Аи-92-К-2 [14:41:27]line 4.490 * 66.90 [14:41:27]line = 300.38 [14:41:27]line НДС 12% НСП 1% [14:41:27]line > о реализуемом товаре [14:41:27]line ОКРУГЛЕНИЕ: -0.38 [14:41:27]line ИТОГО: 300.00 [14:41:27]line Внесено: 300.00 [14:41:27]line СДАЧА: 0.00 [14:41:27]line НСП 1% : 2.66 [14:41:27]line НДС 12% : 31.90 [14:41:27]line Наличными: 300.00 [14:41:27]line Безнал.: 0.00 [14:41:27]line Место: АЗС № 78 "Партнер Нефть" [14:41:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:41:27]line СНО: Общий режим [14:41:27]line Чек 142 23.10.2024 14:41 [14:41:27]line Смена: 117 ФФД: 1.0 [14:41:27]line ЗНМ: 0300000137 [14:41:27]line РНМ: 0000000000186857 [14:41:27]line Версия ККМ: v1.0 [14:41:27]line ФМ: 0000000002094219 [14:41:27]line ФД: 31198 [14:41:27]line ФПД: 227194727679918 [14:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31198&fm=227194727679918&tin=02508201610067®Number=0000000000186857&sum=30000 [14:41:28]OFD Sender: Processing packet 31198 [packets to send 11, broken 10] [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00031198 [14:41:28]OFD Sender: To server: pG, [14:41:28]CommunicateWithHost lk.salyk.kg:30040 [14:41:28]ConnectInit lk.salyk.kg [14:41:28]written 0, free lines is 4095 [14:41:28]Connected sock=10 [14:41:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D8 C3 07 01 A7 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 1C 0B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 79 00 00 35 04 06 00 CE A1 E5 09 C7 AE A3 89 41 45 10 30 C4 5F [14:41:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A2 70 47 00 4F 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 79 00 00 F4 03 04 00 97 B5 18 67 B6 04 01 00 00 12 BD CA 09 C4 C5 75 55 [14:41:28]CommunicateWithHost err = 0 [14:41:28]CheckOFDResponse [14:41:28]1017 (14) - 77093643461234 [14:41:28]1041 (16) - 0000000002094219 [14:41:28]1040 (4) - 31198 [14:41:28]1012 (4) - 23.10.2024 08:36 [14:41:28]1206 (1) - 0 [14:41:28]OFD Sender: Remove packet 31198 [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00031198 [14:41:28]NVStorageDeleteData [14:41:28]Write to MH i2c: 01 00 00 14 57 6B [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 14 57 00 00 00 00 00 F6 0C 74 [14:41:28]RasterBufferAndPrint [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]written 0, free lines is 3324 [14:41:28]MH_Cut [14:41:28]Write to MH i2c: D1 01 00 1B 57 01 44 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 01 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 01 00 1B 57 00 43 [14:41:28]Write to MH i2c: 01 00 00 1C 57 73 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:29]OFD Sender: No OFD packet to send [14:41:29]*** Cut start [14:41:29]*** Partial cut [14:41:29]*** CUTSNS_PIN = 1 [14:41:29]*** CUTSNS_PIN = 0 [14:41:29]*** Brake cut motor [14:41:29]Read from MH i2c: 01 [14:41:30]MH_I2C_Read... [14:41:30]*** Stop cut motor [14:41:30]*** Cut end [14:41:30]Read from MH i2c: 01 07 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: 01 07 00 1C 57 00 00 00 00 00 FF 0F 88 [14:41:30]process_action close_receipt done [14:41:30]requested_data is exist [14:41:30]produce_requested_data [14:41:30]requested_item fm.sn is exist - process it [14:41:30]wFMCommunicate request_size=4 [14:41:30]MH_SAM_APDU [14:41:30]CAPDU: 80 11 00 00 [14:41:30]Write to MH i2c: E2 08 00 1D 57 80 11 00 00 00 00 00 00 EE [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:30]Read from MH i2c: E2 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 17 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 17 00 1D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [14:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:41:30]wFMCommunicate OK [14:41:30]requested_item fd.num is exist - process it [14:41:30]SAM_PROTO_GetFieldsCounters [14:41:30]wFMCommunicate request_size=4 [14:41:30]MH_SAM_APDU [14:41:30]CAPDU: 80 13 00 00 [14:41:30]Write to MH i2c: E2 08 00 1E 57 80 13 00 00 00 00 00 00 F1 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:30]Read from MH i2c: E2 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 62 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 62 00 1E 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:41:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:30]wFMCommunicate OK [14:41:30]SAM_PROTO_GetFieldsCounters done [14:41:30]requested_item shift.num is exist - process it [14:41:30]requested_item shift.opened is exist - process it [14:41:30]req_shift_opened [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 1F 57 80 13 01 00 00 00 00 00 F3 [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 1F 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AD [14:41:30]RAPDU: 09 00 01 EB 44 18 67 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]req_shift_opened done [14:41:30]requested_item shift.open_date is exist - process it [14:41:30]req_shift_open_date [14:41:30]req_shift_open_date done [14:41:30]produce_requested_data done [14:41:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31198,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:41:30]process_action_free close_receipt [14:41:30]json_value_free [14:41:30]json_value_free done [14:41:30]process_json_proto returns [14:41:30]Send response to host [14:41:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31198,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:41:30]free response buf [14:41:30]execute_script done [14:41:30]execute_script returns [14:41:30]free content buf [14:41:30]Sock 9.Close socket [14:41:30]Sock 9.Thread stoped [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51: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]accept exits with 7 [14:55:49]New connection [14:55:49]New thread 3067043172 created [14:55:49]Thread 3066899812 joined [14:55:49]Waiting for new connection... [14:55:49] Sock 7.Parse request [14:55:49]Sock 7.Check first char [14:55:49]Sock 7.First char is OK [14:55:49]request: POST /json_proto HTTP/1.0 [14:55:49]Method: POST [14:55:49]URL: /json_proto [14:55:49]Method is POST - this is cgi request [14:55:49]url: /json_proto [14:55:49]query_string will be loaded in cgi processing [14:55:49]execute_cgi json_proto POST (null) [14:55:49]execute_cgi path=json_proto method=POST [14:55:49]POST find Content-Length [14:55:49]Host: 172.17.51.3:8080 [14:55:49]Content-Length: 792 [14:55:49]Content-Type: application/json [14:55:49] [14:55:49]POST finish read [14:55:49]Found Content-Length = 792 [14:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03579", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:49]execute_script... [14:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03579", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:49]POST & json_proto [14:55:49]process_json_proto [14:55:49]json parsed OK: [14:55:49]protocol is kg_v1.0 [14:55:49]action value=close_receipt [14:55:49]process_action close_receipt [14:55:49]cmd_close_receipt [14:55:49]MH_GetDate [14:55:49]Write to MH i2c: F0 00 00 20 57 66 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 09 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 09 00 20 57 00 7C 0E 19 67 04 C1 95 66 39 [14:55:49]GetLastDocTimeStamp 1729694492 [14:55:49]current date 1729695356 [14:55:49]FM_GetShiftState [14:55:49]SAM_PROTO_GetShiftState [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 13 01 00 [14:55:49]Write to MH i2c: E2 08 00 21 57 80 13 01 00 00 00 00 00 F5 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0E 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0E 00 21 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AF [14:55:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:55:49]wFMCommunicate OK [14:55:49]SAM_PROTO_GetShiftState done [14:55:49]FM_GetShiftState done [14:55:49]opened in 1729643755 [14:55:49]opened+sec_in_day 1729730155 [14:55:49]quantity*price = 0 [14:55:49]sum+1 = 1 [14:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 143 23.10.2024 14:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 03579 ФМ: 0000000002094219 ФД: 31199 ФПД: 258404293052491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31199&fm=258404293052491&tin=02508201610067®Number=0000000000186857&sum=0 [14:55:50]StoreToDocumentArchive [14:55:50]shift 117 fd 31199 [14:55:50]save to /storage/0117/doc_00031199 [14:55:50]save last doc name /storage/0117/doc_00031199 to /storage/kkm_last_doc_name [14:55:50]save OK [14:55:50]Clear old archive folders... [14:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:50]tlvbuf is 00D4D2D0 [14:55:50]SAM_PROTO_ClearQueue [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 09 00 00 [14:55:50]Write to MH i2c: E2 08 00 2E 57 80 09 00 00 00 00 00 00 F7 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 2E 57 00 90 00 F9 [14:55:50]RAPDU: 90 00 [14:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_ClearQueue done [14:55:50]KKMCreateOFDPacket [14:55:50]OFDProtocolAddRootSTLVToBuf [14:55:50]FM_MakeSignedData [14:55:50]FM_MakeSignedData [14:55:50]SAM_PROTO_SignData [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 0D 01 02 [14:55:50]Write to MH i2c: E2 08 00 2F 57 80 0D 01 02 00 00 00 00 FF [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 2F 57 00 90 00 FA [14:55:50]RAPDU: 90 00 [14:55:50]wFMCommunicate OK [14:55:50]wFMCommunicate request_size=255 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7C 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 79 00 00 35 04 06 00 EB [14:55:50]Write to MH i2c: E2 02 01 30 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7C 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 79 00 00 35 04 06 00 EB 00 00 01 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 30 57 00 90 00 FB [14:55:51]RAPDU: 90 00 [14:55:51]wFMCommunicate OK [14:55:51]wFMCommunicate request_size=10 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 0D 02 02 05 04 70 18 88 4B [14:55:51]Write to MH i2c: E2 0D 00 31 57 80 0D 02 02 05 00 04 70 18 88 4B 00 00 6B [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 31 57 00 90 00 FC [14:55:51]RAPDU: 90 00 [14:55:51]wFMCommunicate OK [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 0D 03 02 [14:55:51]Write to MH i2c: E2 08 00 32 57 80 0D 03 02 00 00 00 00 04 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0B 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0B 00 32 57 00 CD 3C 51 BD F8 A3 6A 87 90 00 A8 [14:55:51]RAPDU: CD 3C 51 BD F8 A3 6A 87 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_SignData done [14:55:51]FM_MakeSignedData done [14:55:51]CreateOFDProtocolMessage [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 11 00 00 [14:55:51]Write to MH i2c: E2 08 00 33 57 80 11 00 00 00 00 00 00 04 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 17 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 17 00 33 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [14:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:55:51]wFMCommunicate OK [14:55:51]CreateOFDProtocolMessage done [14:55:51]OFDSenderStorePacket 31199 [14:55:51]StoreOFDPacket docnum=31199 [14:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 FC 07 01 33 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7C 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 79 00 00 35 04 06 00 EB 04 70 18 88 4B CD 3C 51 BD F8 A3 6A 87 [14:55:51]CheckFolder [14:55:51]dirname=/storage/ofd_packets [14:55:51]CheckFolder done [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00031199 [14:55:51]NVStorageSaveData ofd_packets/00031199 [14:55:51]File name is /storage/ofd_packets/00031199 [14:55:51]Write 301 bytes [14:55:51]NVStorageSaveData done [14:55:51]OFDSenderStorePacket done [14:55:51]KKMCreateOFDPacket done [14:55:51]NVStorageSaveData kkm_last_timestamp [14:55:51]File name is /storage/kkm_last_timestamp [14:55:51]Write 4 bytes [14:55:51]NVStorageSaveData done [14:55:51]ExternCall_PrintAddStr [14:55:51]wPrintStart [14:55:51]Write to MH i2c: 01 00 00 34 57 8B [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 34 57 00 00 00 00 00 FF 0F A0 [14:55:51]RasterBufferAndPrint [14:55:51]line Счет N : (1)343645 [14:55:51]line ИНН: 02508201610067 [14:55:51]line Контрольно-Кассовый Чек [14:55:51]line ПРОДАЖА [14:55:51]line ТРК (МРК, ГНК) : 33 [14:55:51]line Товар: 2710124130 [14:55:51]line Аи-92-К-2 [14:55:51]line 30.000 * 0.00 [14:55:51]line = 0.00 [14:55:51]line НДС 12% НСП 1% [14:55:51]line > о реализуемом товаре [14:55:51]line ИТОГО: 0.00 [14:55:51]line НСП 1% : 0.00 [14:55:51]line НДС 12% : 0.00 [14:55:51]line Наличными: 0.00 [14:55:51]line Безнал.: 0.00 [14:55:51]line Место: АЗС № 78 "Партнер Нефть" [14:55:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:55:51]line СНО: Общий режим [14:55:51]line Чек 143 23.10.2024 14:55 [14:55:51]line Смена: 117 ФФД: 1.0 [14:55:51]line ЗНМ: 0300000137 [14:55:51]line РНМ: 0000000000186857 [14:55:51]line Версия ККМ: v1.0 [14:55:51]line Талоны: Топливная Карта [14:55:51]line 03579 [14:55:51]line ФМ: 0000000002094219 [14:55:51]line ФД: 31199 [14:55:51]line ФПД: 258404293052491 [14:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145556&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31199&fm=258404293052491&tin=02508201610067®Number=0000000000186857&sum=0 [14:55:51]OFD Sender: Processing packet 31199 [packets to send 11, broken 10] [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00031199 [14:55:51]OFD Sender: To server: pG, [14:55:51]CommunicateWithHost lk.salyk.kg:30040 [14:55:51]ConnectInit lk.salyk.kg [14:55:51]written 0, free lines is 4095 [14:55:51]Connected sock=10 [14:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 14 FC 07 01 33 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7C 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 79 00 00 35 04 06 00 EB 04 70 18 88 4B CD 3C 51 BD F8 A3 6A 87 [14:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2B 11 47 00 F5 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 79 00 00 F4 03 04 00 F6 B8 18 67 B6 04 01 00 00 5E B8 C3 66 E8 F7 8B 90 [14:55:52]CommunicateWithHost err = 0 [14:55:52]CheckOFDResponse [14:55:52]1017 (14) - 77093643461234 [14:55:52]1041 (16) - 0000000002094219 [14:55:52]1040 (4) - 31199 [14:55:52]1012 (4) - 23.10.2024 08:51 [14:55:52]1206 (1) - 0 [14:55:52]OFD Sender: Remove packet 31199 [14:55:52]ProducePacketName [14:55:52]name=ofd_packets/00031199 [14:55:52]NVStorageDeleteData [14:55:52]Write to MH i2c: 01 00 00 5E 57 B5 [14:55:52]Write i2c OK [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: 01 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: 01 07 00 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: 01 07 00 5E 57 00 00 00 00 00 00 0D C9 [14:55:52]RasterBufferAndPrint [14:55:52]line [14:55:52]line [14:55:52]line [14:55:52]line [14:55:52]line [14:55:52]written 0, free lines is 3337 [14:55:52]MH_Cut [14:55:52]Write to MH i2c: D1 01 00 65 57 01 8E [14:55:52]Write i2c OK [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: D1 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: D1 01 00 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: D1 01 00 65 57 00 8D [14:55:52]Write to MH i2c: 01 00 00 66 57 BD [14:55:52]Write i2c OK [14:55:52]MH_I2C_Read... [14:55:52]OFD Sender: No OFD packet to send [14:55:52]*** Cut start [14:55:52]*** Partial cut [14:55:52]*** CUTSNS_PIN = 1 [14:55:52]*** CUTSNS_PIN = 0 [14:55:53]*** Brake cut motor [14:55:53]Read from MH i2c: 01 [14:55:53]MH_I2C_Read... [14:55:53]*** Stop cut motor [14:55:53]*** Cut end [14:55:53]Read from MH i2c: 01 07 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: 01 07 00 66 57 00 00 00 00 00 FF 0F D2 [14:55:53]process_action close_receipt done [14:55:53]requested_data is exist [14:55:53]produce_requested_data [14:55:53]requested_item fm.sn is exist - process it [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 11 00 00 [14:55:53]Write to MH i2c: E2 08 00 67 57 80 11 00 00 00 00 00 00 38 [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 17 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 17 00 67 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [14:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:55:53]wFMCommunicate OK [14:55:53]requested_item fd.num is exist - process it [14:55:53]SAM_PROTO_GetFieldsCounters [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 13 00 00 [14:55:53]Write to MH i2c: E2 08 00 68 57 80 13 00 00 00 00 00 00 3B [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 62 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 62 00 68 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:53]wFMCommunicate OK [14:55:53]SAM_PROTO_GetFieldsCounters done [14:55:53]requested_item shift.num is exist - process it [14:55:53]requested_item shift.opened is exist - process it [14:55:53]req_shift_opened [14:55:53]FM_GetShiftState [14:55:53]SAM_PROTO_GetShiftState [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 13 01 00 [14:55:53]Write to MH i2c: E2 08 00 69 57 80 13 01 00 00 00 00 00 3D [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 69 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F7 [14:55:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:55:53]wFMCommunicate OK [14:55:53]SAM_PROTO_GetShiftState done [14:55:53]FM_GetShiftState done [14:55:53]req_shift_opened done [14:55:53]requested_item shift.open_date is exist - process it [14:55:53]req_shift_open_date [14:55:53]req_shift_open_date done [14:55:53]produce_requested_data done [14:55:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31199,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:55:53]process_action_free close_receipt [14:55:53]json_value_free [14:55:53]json_value_free done [14:55:53]process_json_proto returns [14:55:53]Send response to host [14:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31199,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:55:53]free response buf [14:55:53]execute_script done [14:55:53]execute_script returns [14:55:53]free content buf [14:55:53]Sock 7.Close socket [14:55:53]Sock 7.Thread stoped [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:15]accept exits with 9 [14:56:15]New connection [14:56:15]New thread 3066899812 created [14:56:15]Thread 3067043172 joined [14:56:15]Waiting for new connection... [14:56:15] Sock 9.Parse request [14:56:15]Sock 9.Check first char [14:56:15]Sock 9.First char is OK [14:56:15]request: POST /json_proto HTTP/1.0 [14:56:15]Method: POST [14:56:15]URL: /json_proto [14:56:15]Method is POST - this is cgi request [14:56:15]url: /json_proto [14:56:15]query_string will be loaded in cgi processing [14:56:15]execute_cgi json_proto POST (null) [14:56:15]execute_cgi path=json_proto method=POST [14:56:15]POST find Content-Length [14:56:15]Host: 172.17.51.3:8080 [14:56:15]Content-Length: 677 [14:56:15]Content-Type: application/json [14:56:15] [14:56:15]POST finish read [14:56:15]Found Content-Length = 677 [14:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:15]execute_script... [14:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:15]POST & json_proto [14:56:15]process_json_proto [14:56:15]json parsed OK: [14:56:15]protocol is kg_v1.0 [14:56:15]action value=close_receipt [14:56:15]process_action close_receipt [14:56:15]cmd_close_receipt [14:56:15]MH_GetDate [14:56:15]Write to MH i2c: F0 00 00 6A 57 B0 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: F0 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: F0 09 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: F0 09 00 6A 57 00 96 0E 19 67 04 C1 95 66 9D [14:56:15]GetLastDocTimeStamp 1729695356 [14:56:15]current date 1729695382 [14:56:15]FM_GetShiftState [14:56:15]SAM_PROTO_GetShiftState [14:56:15]wFMCommunicate request_size=4 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 13 01 00 [14:56:15]Write to MH i2c: E2 08 00 6B 57 80 13 01 00 00 00 00 00 3F [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0E 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0E 00 6B 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F9 [14:56:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:56:15]wFMCommunicate OK [14:56:15]SAM_PROTO_GetShiftState done [14:56:15]FM_GetShiftState done [14:56:15]opened in 1729643755 [14:56:15]opened+sec_in_day 1729730155 [14:56:15]quantity*price = 20003 [14:56:15]sum+1 = 20004 [14:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 144 23.10.2024 14:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31200 ФПД: 49812441963766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31200&fm=49812441963766&tin=02508201610067®Number=0000000000186857&sum=20000 [14:56:16]StoreToDocumentArchive [14:56:16]shift 117 fd 31200 [14:56:16]save to /storage/0117/doc_00031200 [14:56:16]save last doc name /storage/0117/doc_00031200 to /storage/kkm_last_doc_name [14:56:16]save OK [14:56:16]Clear old archive folders... [14:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:16]tlvbuf is 00D14E70 [14:56:16]SAM_PROTO_ClearQueue [14:56:16]wFMCommunicate request_size=4 [14:56:16]MH_SAM_APDU [14:56:16]CAPDU: 80 09 00 00 [14:56:16]Write to MH i2c: E2 08 00 78 57 80 09 00 00 00 00 00 00 41 [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:16]Read from MH i2c: E2 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 03 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 03 00 78 57 00 90 00 43 [14:56:16]RAPDU: 90 00 [14:56:16]wFMCommunicate OK [14:56:16]SAM_PROTO_ClearQueue done [14:56:16]KKMCreateOFDPacket [14:56:16]OFDProtocolAddRootSTLVToBuf [14:56:16]FM_MakeSignedData [14:56:16]FM_MakeSignedData [14:56:16]SAM_PROTO_SignData [14:56:16]wFMCommunicate request_size=4 [14:56:16]MH_SAM_APDU [14:56:16]CAPDU: 80 0D 01 02 [14:56:16]Write to MH i2c: E2 08 00 79 57 80 0D 01 02 00 00 00 00 49 [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 79 57 00 90 00 44 [14:56:17]RAPDU: 90 00 [14:56:17]wFMCommunicate OK [14:56:17]wFMCommunicate request_size=255 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 96 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 79 00 00 35 04 06 00 2D [14:56:17]Write to MH i2c: E2 02 01 7A 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 96 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 79 00 00 35 04 06 00 2D 00 00 4B [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 7A 57 00 90 00 45 [14:56:17]RAPDU: 90 00 [14:56:17]wFMCommunicate OK [14:56:17]wFMCommunicate request_size=10 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 0D 02 02 05 4D DC E8 9C F6 [14:56:17]Write to MH i2c: E2 0D 00 7B 57 80 0D 02 02 05 00 4D DC E8 9C F6 00 00 F9 [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 03 00 7B 57 00 90 00 46 [14:56:17]RAPDU: 90 00 [14:56:17]wFMCommunicate OK [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 0D 03 02 [14:56:17]Write to MH i2c: E2 08 00 7C 57 80 0D 03 02 00 00 00 00 4E [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0B 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0B 00 7C 57 00 B8 6D 33 12 F3 F1 6E CE 90 00 D9 [14:56:17]RAPDU: B8 6D 33 12 F3 F1 6E CE 90 00 [14:56:17]wFMCommunicate OK [14:56:17]SAM_PROTO_SignData done [14:56:17]FM_MakeSignedData done [14:56:17]CreateOFDProtocolMessage [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 11 00 00 [14:56:17]Write to MH i2c: E2 08 00 7D 57 80 11 00 00 00 00 00 00 4E [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 7D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [14:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:17]wFMCommunicate OK [14:56:17]CreateOFDProtocolMessage done [14:56:17]OFDSenderStorePacket 31200 [14:56:17]StoreOFDPacket docnum=31200 [14:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 FE 07 01 CF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 96 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 79 00 00 35 04 06 00 2D 4D DC E8 9C F6 B8 6D 33 12 F3 F1 6E CE [14:56:17]CheckFolder [14:56:17]dirname=/storage/ofd_packets [14:56:17]CheckFolder done [14:56:17]ProducePacketName [14:56:17]name=ofd_packets/00031200 [14:56:17]NVStorageSaveData ofd_packets/00031200 [14:56:17]File name is /storage/ofd_packets/00031200 [14:56:17]Write 301 bytes [14:56:17]NVStorageSaveData done [14:56:17]OFDSenderStorePacket done [14:56:17]KKMCreateOFDPacket done [14:56:17]NVStorageSaveData kkm_last_timestamp [14:56:17]File name is /storage/kkm_last_timestamp [14:56:17]Write 4 bytes [14:56:17]NVStorageSaveData done [14:56:17]ExternCall_PrintAddStr [14:56:17]wPrintStart [14:56:17]Write to MH i2c: 01 00 00 7E 57 D5 [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: 01 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: 01 07 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: 01 07 00 7E 57 00 00 00 00 00 FF 0F EA [14:56:17]RasterBufferAndPrint [14:56:17]line Счет N : (1)343646 [14:56:17]line ИНН: 02508201610067 [14:56:17]line Контрольно-Кассовый Чек [14:56:17]line ПРОДАЖА [14:56:17]line ТРК (МРК, ГНК) : 43 [14:56:17]line Товар: 2710124130 [14:56:17]line Аи-92-К-2 [14:56:17]line 2.990 * 66.90 [14:56:17]line = 200.03 [14:56:17]line НДС 12% НСП 1% [14:56:17]line > о реализуемом товаре [14:56:17]line ОКРУГЛЕНИЕ: -0.03 [14:56:17]line ИТОГО: 200.00 [14:56:17]line Внесено: 200.00 [14:56:17]line СДАЧА: 0.00 [14:56:17]line НСП 1% : 1.77 [14:56:17]line НДС 12% : 21.24 [14:56:17]line Наличными: 200.00 [14:56:17]line Безнал.: 0.00 [14:56:17]line Место: АЗС № 78 "Партнер Нефть" [14:56:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:56:17]line СНО: Общий режим [14:56:17]line Чек 144 23.10.2024 14:56 [14:56:17]line Смена: 117 ФФД: 1.0 [14:56:17]line ЗНМ: 0300000137 [14:56:17]line РНМ: 0000000000186857 [14:56:17]line Версия ККМ: v1.0 [14:56:17]line ФМ: 0000000002094219 [14:56:17]line ФД: 31200 [14:56:17]line ФПД: 49812441963766 [14:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31200&fm=49812441963766&tin=02508201610067®Number=0000000000186857&sum=20000 [14:56:17]OFD Sender: Processing packet 31200 [packets to send 11, broken 10] [14:56:17]ProducePacketName [14:56:17]name=ofd_packets/00031200 [14:56:17]OFD Sender: To server: pG, [14:56:17]CommunicateWithHost lk.salyk.kg:30040 [14:56:17]ConnectInit lk.salyk.kg [14:56:17]written 0, free lines is 4095 [14:56:17]Connected sock=10 [14:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 FE 07 01 CF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 96 0E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 79 00 00 35 04 06 00 2D 4D DC E8 9C F6 B8 6D 33 12 F3 F1 6E CE [14:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A2 F1 47 00 1F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 79 00 00 F4 03 04 00 10 B9 18 67 B6 04 01 00 00 43 6A CD E5 9E 51 B4 10 [14:56:18]CommunicateWithHost err = 0 [14:56:18]CheckOFDResponse [14:56:18]1017 (14) - 77093643461234 [14:56:18]1041 (16) - 0000000002094219 [14:56:18]1040 (4) - 31200 [14:56:18]1012 (4) - 23.10.2024 08:51 [14:56:18]1206 (1) - 0 [14:56:18]OFD Sender: Remove packet 31200 [14:56:18]ProducePacketName [14:56:18]name=ofd_packets/00031200 [14:56:18]NVStorageDeleteData [14:56:18]Write to MH i2c: 01 00 00 A9 57 00 [14:56:18]Write i2c OK [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: 01 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: 01 07 00 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: 01 07 00 A9 57 00 00 00 00 00 ED 0C 00 [14:56:18]RasterBufferAndPrint [14:56:18]line [14:56:18]line [14:56:18]line [14:56:18]line [14:56:18]line [14:56:18]written 0, free lines is 3315 [14:56:18]MH_Cut [14:56:18]Write to MH i2c: D1 01 00 B0 57 01 D9 [14:56:18]Write i2c OK [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: D1 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: D1 01 00 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: D1 01 00 B0 57 00 D8 [14:56:18]Write to MH i2c: 01 00 00 B1 57 08 [14:56:18]Write i2c OK [14:56:18]MH_I2C_Read... [14:56:18]OFD Sender: No OFD packet to send [14:56:18]*** Cut start [14:56:18]*** Partial cut [14:56:18]*** CUTSNS_PIN = 1 [14:56:18]*** CUTSNS_PIN = 0 [14:56:19]*** Brake cut motor [14:56:19]Read from MH i2c: 01 [14:56:19]MH_I2C_Read... [14:56:19]*** Stop cut motor [14:56:19]*** Cut end [14:56:19]Read from MH i2c: 01 07 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: 01 07 00 B1 57 00 00 00 00 00 FF 0F 1D [14:56:19]process_action close_receipt done [14:56:19]requested_data is exist [14:56:19]produce_requested_data [14:56:19]requested_item fm.sn is exist - process it [14:56:19]wFMCommunicate request_size=4 [14:56:19]MH_SAM_APDU [14:56:19]CAPDU: 80 11 00 00 [14:56:19]Write to MH i2c: E2 08 00 B2 57 80 11 00 00 00 00 00 00 83 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:19]Read from MH i2c: E2 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 17 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 17 00 B2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [14:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:19]wFMCommunicate OK [14:56:19]requested_item fd.num is exist - process it [14:56:19]SAM_PROTO_GetFieldsCounters [14:56:19]wFMCommunicate request_size=4 [14:56:19]MH_SAM_APDU [14:56:19]CAPDU: 80 13 00 00 [14:56:19]Write to MH i2c: E2 08 00 B3 57 80 13 00 00 00 00 00 00 86 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:19]Read from MH i2c: E2 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 62 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 62 00 B3 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:19]wFMCommunicate OK [14:56:19]SAM_PROTO_GetFieldsCounters done [14:56:19]requested_item shift.num is exist - process it [14:56:19]requested_item shift.opened is exist - process it [14:56:19]req_shift_opened [14:56:19]FM_GetShiftState [14:56:19]SAM_PROTO_GetShiftState [14:56:19]wFMCommunicate request_size=4 [14:56:19]MH_SAM_APDU [14:56:19]CAPDU: 80 13 01 00 [14:56:19]Write to MH i2c: E2 08 00 B4 57 80 13 01 00 00 00 00 00 88 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:19]Read from MH i2c: E2 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 B4 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 42 [14:56:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [14:56:19]wFMCommunicate OK [14:56:19]SAM_PROTO_GetShiftState done [14:56:19]FM_GetShiftState done [14:56:19]req_shift_opened done [14:56:19]requested_item shift.open_date is exist - process it [14:56:19]req_shift_open_date [14:56:19]req_shift_open_date done [14:56:19]produce_requested_data done [14:56:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31200,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [14:56:19]process_action_free close_receipt [14:56:19]json_value_free [14:56:19]json_value_free done [14:56:19]process_json_proto returns [14:56:19]Send response to host [14:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31200,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [14:56:19]free response buf [14:56:19]execute_script done [14:56:19]execute_script returns [14:56:19]free content buf [14:56:19]Sock 9.Close socket [14:56:19]Sock 9.Thread stoped [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]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:26]accept exits with 7 [15:03:26]New connection [15:03:26]New thread 3067043172 created [15:03:26]Thread 3066899812 joined [15:03:26]Waiting for new connection... [15:03:26] Sock 7.Parse request [15:03:26]Sock 7.Check first char [15:03:26]Sock 7.First char is OK [15:03:26]request: POST /json_proto HTTP/1.0 [15:03:26]Method: POST [15:03:26]URL: /json_proto [15:03:26]Method is POST - this is cgi request [15:03:26]url: /json_proto [15:03:26]query_string will be loaded in cgi processing [15:03:26]execute_cgi json_proto POST (null) [15:03:26]execute_cgi path=json_proto method=POST [15:03:26]POST find Content-Length [15:03:26]Host: 172.17.51.3:8080 [15:03:26]Content-Length: 754 [15:03:26]Content-Type: application/json [15:03:26] [15:03:26]POST finish read [15:03:26]Found Content-Length = 754 [15:03:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:26]execute_script... [15:03:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118634", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:26]POST & json_proto [15:03:26]process_json_proto [15:03:26]json parsed OK: [15:03:26]protocol is kg_v1.0 [15:03:26]action value=close_receipt [15:03:26]process_action close_receipt [15:03:26]cmd_close_receipt [15:03:26]MH_GetDate [15:03:26]Write to MH i2c: F0 00 00 B5 57 FB [15:03:26]Write i2c OK [15:03:26]MH_I2C_Read... [15:03:26]Read from MH i2c: F0 [15:03:26]MH_I2C_Read... [15:03:26]Read from MH i2c: F0 09 00 [15:03:26]MH_I2C_Read... [15:03:26]Read from MH i2c: F0 09 00 B5 57 00 45 10 19 67 04 C1 95 66 99 [15:03:26]GetLastDocTimeStamp 1729695382 [15:03:26]current date 1729695813 [15:03:26]FM_GetShiftState [15:03:26]SAM_PROTO_GetShiftState [15:03:26]wFMCommunicate request_size=4 [15:03:26]MH_SAM_APDU [15:03:26]CAPDU: 80 13 01 00 [15:03:26]Write to MH i2c: E2 08 00 B6 57 80 13 01 00 00 00 00 00 8A [15:03:26]Write i2c OK [15:03:26]MH_I2C_Read... [15:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:26]Read from MH i2c: E2 [15:03:26]MH_I2C_Read... [15:03:26]Read from MH i2c: E2 0E 00 [15:03:26]MH_I2C_Read... [15:03:26]Read from MH i2c: E2 0E 00 B6 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 44 [15:03:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:03:26]wFMCommunicate OK [15:03:26]SAM_PROTO_GetShiftState done [15:03:26]FM_GetShiftState done [15:03:26]opened in 1729643755 [15:03:26]opened+sec_in_day 1729730155 [15:03:26]quantity*price = 0 [15:03:26]sum+1 = 1 [15:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 145 23.10.2024 15:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118634 ФМ: 0000000002094219 ФД: 31201 ФПД: 65060820513914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150333&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31201&fm=65060820513914&tin=02508201610067®Number=0000000000186857&sum=0 [15:03:28]StoreToDocumentArchive [15:03:28]shift 117 fd 31201 [15:03:28]save to /storage/0117/doc_00031201 [15:03:28]save last doc name /storage/0117/doc_00031201 to /storage/kkm_last_doc_name [15:03:28]save OK [15:03:28]Clear old archive folders... [15:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:28]tlvbuf is 00D154F0 [15:03:28]SAM_PROTO_ClearQueue [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 09 00 00 [15:03:28]Write to MH i2c: E2 08 00 C3 57 80 09 00 00 00 00 00 00 8C [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 C3 57 00 90 00 8E [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]SAM_PROTO_ClearQueue done [15:03:28]KKMCreateOFDPacket [15:03:28]OFDProtocolAddRootSTLVToBuf [15:03:28]FM_MakeSignedData [15:03:28]FM_MakeSignedData [15:03:28]SAM_PROTO_SignData [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 01 02 [15:03:28]Write to MH i2c: E2 08 00 C4 57 80 0D 01 02 00 00 00 00 94 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 C4 57 00 90 00 8F [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=255 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 45 10 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 79 00 00 35 04 06 00 3B [15:03:28]Write to MH i2c: E2 02 01 C5 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 45 10 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 79 00 00 35 04 06 00 3B 00 00 55 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 C5 57 00 90 00 90 [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=10 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 02 02 05 2C 27 18 74 7A [15:03:28]Write to MH i2c: E2 0D 00 C6 57 80 0D 02 02 05 00 2C 27 18 74 7A 00 00 FA [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 C6 57 00 90 00 91 [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 03 02 [15:03:28]Write to MH i2c: E2 08 00 C7 57 80 0D 03 02 00 00 00 00 99 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 0B 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 0B 00 C7 57 00 F9 30 E2 30 99 22 BF 20 90 00 6F [15:03:28]RAPDU: F9 30 E2 30 99 22 BF 20 90 00 [15:03:28]wFMCommunicate OK [15:03:28]SAM_PROTO_SignData done [15:03:28]FM_MakeSignedData done [15:03:28]CreateOFDProtocolMessage [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 11 00 00 [15:03:28]Write to MH i2c: E2 08 00 C8 57 80 11 00 00 00 00 00 00 99 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 17 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 17 00 C8 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [15:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:28]wFMCommunicate OK [15:03:28]CreateOFDProtocolMessage done [15:03:28]OFDSenderStorePacket 31201 [15:03:28]StoreOFDPacket docnum=31201 [15:03:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 B1 07 01 C5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 45 10 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 79 00 00 35 04 06 00 3B 2C 27 18 74 7A F9 30 E2 30 99 22 BF 20 [15:03:28]CheckFolder [15:03:28]dirname=/storage/ofd_packets [15:03:28]CheckFolder done [15:03:28]ProducePacketName [15:03:28]name=ofd_packets/00031201 [15:03:28]NVStorageSaveData ofd_packets/00031201 [15:03:28]File name is /storage/ofd_packets/00031201 [15:03:28]Write 301 bytes [15:03:28]NVStorageSaveData done [15:03:28]OFDSenderStorePacket done [15:03:28]KKMCreateOFDPacket done [15:03:28]NVStorageSaveData kkm_last_timestamp [15:03:28]File name is /storage/kkm_last_timestamp [15:03:28]Write 4 bytes [15:03:28]NVStorageSaveData done [15:03:28]ExternCall_PrintAddStr [15:03:28]wPrintStart [15:03:28]Write to MH i2c: 01 00 00 C9 57 20 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 C9 57 00 00 00 00 00 FF 0F 35 [15:03:28]RasterBufferAndPrint [15:03:28]line Счет N : (1)343647 [15:03:28]line ИНН: 02508201610067 [15:03:28]line Контрольно-Кассовый Чек [15:03:28]line ПРОДАЖА [15:03:28]line ТРК (МРК, ГНК) : 32 [15:03:28]line Товар: 2710124500 [15:03:28]line Аи-95-К-3 [15:03:28]line 35.000 * 0.00 [15:03:28]line = 0.00 [15:03:28]line НДС 12% НСП 1% [15:03:28]line > о реализуемом товаре [15:03:28]line ИТОГО: 0.00 [15:03:28]line НСП 1% : 0.00 [15:03:28]line НДС 12% : 0.00 [15:03:28]line Наличными: 0.00 [15:03:28]line Безнал.: 0.00 [15:03:28]line Место: АЗС № 78 "Партнер Нефть" [15:03:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:03:28]line СНО: Общий режим [15:03:28]line Чек 145 23.10.2024 15:03 [15:03:28]line Смена: 117 ФФД: 1.0 [15:03:28]line ЗНМ: 0300000137 [15:03:28]line РНМ: 0000000000186857 [15:03:28]line Версия ККМ: v1.0 [15:03:28]line Талоны: ТК ГПНА Online [15:03:28]line 30118634 [15:03:28]line ФМ: 0000000002094219 [15:03:28]line ФД: 31201 [15:03:28]line ФПД: 65060820513914 [15:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150333&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31201&fm=65060820513914&tin=02508201610067®Number=0000000000186857&sum=0 [15:03:28]OFD Sender: Processing packet 31201 [packets to send 11, broken 10] [15:03:28]ProducePacketName [15:03:28]name=ofd_packets/00031201 [15:03:28]OFD Sender: To server: pG, [15:03:28]CommunicateWithHost lk.salyk.kg:30040 [15:03:28]ConnectInit lk.salyk.kg [15:03:28]written 0, free lines is 4095 [15:03:29]Connected sock=10 [15:03:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 B1 07 01 C5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 45 10 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 79 00 00 35 04 06 00 3B 2C 27 18 74 7A F9 30 E2 30 99 22 BF 20 [15:03:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8C 68 47 00 E3 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 79 00 00 F4 03 04 00 BF BA 18 67 B6 04 01 00 00 49 09 DB 49 2E 79 39 B7 [15:03:29]CommunicateWithHost err = 0 [15:03:29]CheckOFDResponse [15:03:29]1017 (14) - 77093643461234 [15:03:29]1041 (16) - 0000000002094219 [15:03:29]1040 (4) - 31201 [15:03:29]1012 (4) - 23.10.2024 08:58 [15:03:29]1206 (1) - 0 [15:03:29]OFD Sender: Remove packet 31201 [15:03:29]ProducePacketName [15:03:29]name=ofd_packets/00031201 [15:03:29]NVStorageDeleteData [15:03:29]Write to MH i2c: 01 00 00 F3 57 4A [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 F3 57 00 00 00 00 00 13 0D 71 [15:03:29]RasterBufferAndPrint [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]written 0, free lines is 3353 [15:03:29]MH_Cut [15:03:29]Write to MH i2c: D1 01 00 FA 57 01 23 [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 01 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 01 00 FA 57 00 22 [15:03:29]Write to MH i2c: 01 00 00 FB 57 52 [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]OFD Sender: No OFD packet to send [15:03:29]*** Cut start [15:03:29]*** Partial cut [15:03:29]*** CUTSNS_PIN = 1 [15:03:30]*** CUTSNS_PIN = 0 [15:03:30]*** Brake cut motor [15:03:30]Read from MH i2c: 01 [15:03:30]MH_I2C_Read... [15:03:30]*** Stop cut motor [15:03:30]*** Cut end [15:03:30]Read from MH i2c: 01 07 00 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: 01 07 00 FB 57 00 00 00 00 00 FF 0F 67 [15:03:30]process_action close_receipt done [15:03:30]requested_data is exist [15:03:30]produce_requested_data [15:03:30]requested_item fm.sn is exist - process it [15:03:30]wFMCommunicate request_size=4 [15:03:30]MH_SAM_APDU [15:03:30]CAPDU: 80 11 00 00 [15:03:30]Write to MH i2c: E2 08 00 FC 57 80 11 00 00 00 00 00 00 CD [15:03:30]Write i2c OK [15:03:30]MH_I2C_Read... [15:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:30]Read from MH i2c: E2 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 17 00 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 17 00 FC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [15:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:30]wFMCommunicate OK [15:03:30]requested_item fd.num is exist - process it [15:03:30]SAM_PROTO_GetFieldsCounters [15:03:30]wFMCommunicate request_size=4 [15:03:30]MH_SAM_APDU [15:03:30]CAPDU: 80 13 00 00 [15:03:30]Write to MH i2c: E2 08 00 FD 57 80 13 00 00 00 00 00 00 D0 [15:03:30]Write i2c OK [15:03:30]MH_I2C_Read... [15:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:30]Read from MH i2c: E2 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 62 00 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 62 00 FD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [15:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:30]wFMCommunicate OK [15:03:30]SAM_PROTO_GetFieldsCounters done [15:03:30]requested_item shift.num is exist - process it [15:03:30]requested_item shift.opened is exist - process it [15:03:30]req_shift_opened [15:03:30]FM_GetShiftState [15:03:30]SAM_PROTO_GetShiftState [15:03:30]wFMCommunicate request_size=4 [15:03:30]MH_SAM_APDU [15:03:30]CAPDU: 80 13 01 00 [15:03:30]Write to MH i2c: E2 08 00 FE 57 80 13 01 00 00 00 00 00 D2 [15:03:30]Write i2c OK [15:03:30]MH_I2C_Read... [15:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:30]Read from MH i2c: E2 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 0E 00 [15:03:30]MH_I2C_Read... [15:03:30]Read from MH i2c: E2 0E 00 FE 57 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8C [15:03:30]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:03:30]wFMCommunicate OK [15:03:30]SAM_PROTO_GetShiftState done [15:03:30]FM_GetShiftState done [15:03:30]req_shift_opened done [15:03:30]requested_item shift.open_date is exist - process it [15:03:30]req_shift_open_date [15:03:30]req_shift_open_date done [15:03:30]produce_requested_data done [15:03:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31201,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:03:30]process_action_free close_receipt [15:03:30]json_value_free [15:03:30]json_value_free done [15:03:30]process_json_proto returns [15:03:30]Send response to host [15:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31201,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:03:30]free response buf [15:03:30]execute_script done [15:03:30]execute_script returns [15:03:30]free content buf [15:03:30]Sock 7.Close socket [15:03:30]Sock 7.Thread stoped [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:09]accept exits with 9 [15:08:09]New connection [15:08:09]New thread 3066899812 created [15:08:09]Thread 3067043172 joined [15:08:09]Waiting for new connection... [15:08:09] Sock 9.Parse request [15:08:09]Sock 9.Check first char [15:08:09]Sock 9.First char is OK [15:08:09]request: POST /json_proto HTTP/1.0 [15:08:09]Method: POST [15:08:09]URL: /json_proto [15:08:09]Method is POST - this is cgi request [15:08:09]url: /json_proto [15:08:09]query_string will be loaded in cgi processing [15:08:09]execute_cgi json_proto POST (null) [15:08:09]execute_cgi path=json_proto method=POST [15:08:09]POST find Content-Length [15:08:09]Host: 172.17.51.3:8080 [15:08:09]Content-Length: 800 [15:08:09]Content-Type: application/json [15:08:09] [15:08:09]POST finish read [15:08:09]Found Content-Length = 800 [15:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3947521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]execute_script... [15:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3947521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]POST & json_proto [15:08:09]process_json_proto [15:08:09]json parsed OK: [15:08:09]protocol is kg_v1.0 [15:08:09]action value=close_receipt [15:08:09]process_action close_receipt [15:08:09]cmd_close_receipt [15:08:09]MH_GetDate [15:08:09]Write to MH i2c: F0 00 00 FF 57 45 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 FF 57 00 60 11 19 67 04 C1 95 66 FF [15:08:09]GetLastDocTimeStamp 1729695813 [15:08:09]current date 1729696096 [15:08:09]FM_GetShiftState [15:08:09]SAM_PROTO_GetShiftState [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 13 01 00 [15:08:09]Write to MH i2c: E2 08 00 00 58 80 13 01 00 00 00 00 00 D5 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 00 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8F [15:08:09]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:08:09]wFMCommunicate OK [15:08:09]SAM_PROTO_GetShiftState done [15:08:09]FM_GetShiftState done [15:08:09]opened in 1729643755 [15:08:09]opened+sec_in_day 1729730155 [15:08:09]quantity*price = 0 [15:08:09]sum+1 = 1 [15:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 146 23.10.2024 15:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3947521 ФМ: 0000000002094219 ФД: 31202 ФПД: 251836689233194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31202&fm=251836689233194&tin=02508201610067®Number=0000000000186857&sum=0 [15:08:11]StoreToDocumentArchive [15:08:11]shift 117 fd 31202 [15:08:11]save to /storage/0117/doc_00031202 [15:08:11]save last doc name /storage/0117/doc_00031202 to /storage/kkm_last_doc_name [15:08:11]save OK [15:08:11]Clear old archive folders... [15:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:11]tlvbuf is 00CDAF20 [15:08:11]SAM_PROTO_ClearQueue [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 09 00 00 [15:08:11]Write to MH i2c: E2 08 00 0D 58 80 09 00 00 00 00 00 00 D7 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 0D 58 00 90 00 D9 [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_ClearQueue done [15:08:11]KKMCreateOFDPacket [15:08:11]OFDProtocolAddRootSTLVToBuf [15:08:11]FM_MakeSignedData [15:08:11]FM_MakeSignedData [15:08:11]SAM_PROTO_SignData [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 01 02 [15:08:11]Write to MH i2c: E2 08 00 0E 58 80 0D 01 02 00 00 00 00 DF [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 0E 58 00 90 00 DA [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=255 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 60 11 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 79 00 00 35 04 06 00 E5 [15:08:11]Write to MH i2c: E2 02 01 0F 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 60 11 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 79 00 00 35 04 06 00 E5 00 00 91 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 0F 58 00 90 00 DB [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=10 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 02 02 05 0B 4C 67 35 2A [15:08:11]Write to MH i2c: E2 0D 00 10 58 80 0D 02 02 05 00 0B 4C 67 35 2A 00 00 09 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 10 58 00 90 00 DC [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 03 02 [15:08:11]Write to MH i2c: E2 08 00 11 58 80 0D 03 02 00 00 00 00 E4 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 11 58 00 4B 6B A9 4D DF E8 A2 8E 90 00 88 [15:08:11]RAPDU: 4B 6B A9 4D DF E8 A2 8E 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_SignData done [15:08:11]FM_MakeSignedData done [15:08:11]CreateOFDProtocolMessage [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 11 00 00 [15:08:11]Write to MH i2c: E2 08 00 12 58 80 11 00 00 00 00 00 00 E4 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 12 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [15:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:08:11]wFMCommunicate OK [15:08:11]CreateOFDProtocolMessage done [15:08:11]OFDSenderStorePacket 31202 [15:08:11]StoreOFDPacket docnum=31202 [15:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3D A2 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 60 11 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 79 00 00 35 04 06 00 E5 0B 4C 67 35 2A 4B 6B A9 4D DF E8 A2 8E [15:08:11]CheckFolder [15:08:11]dirname=/storage/ofd_packets [15:08:11]CheckFolder done [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00031202 [15:08:11]NVStorageSaveData ofd_packets/00031202 [15:08:11]File name is /storage/ofd_packets/00031202 [15:08:11]Write 301 bytes [15:08:11]NVStorageSaveData done [15:08:11]OFDSenderStorePacket done [15:08:11]KKMCreateOFDPacket done [15:08:11]NVStorageSaveData kkm_last_timestamp [15:08:11]File name is /storage/kkm_last_timestamp [15:08:11]Write 4 bytes [15:08:11]NVStorageSaveData done [15:08:11]ExternCall_PrintAddStr [15:08:11]wPrintStart [15:08:11]Write to MH i2c: 01 00 00 13 58 6B [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 13 58 00 00 00 00 00 FF 0F 80 [15:08:11]RasterBufferAndPrint [15:08:11]line Счет N : (1)343648 [15:08:11]line ИНН: 02508201610067 [15:08:11]line Контрольно-Кассовый Чек [15:08:11]line ПРОДАЖА [15:08:11]line ТРК (МРК, ГНК) : 63 [15:08:11]line Товар: 2710124130 [15:08:11]line Аи-92-К-2 [15:08:11]line 20.000 * 0.00 [15:08:11]line = 0.00 [15:08:11]line НДС 12% НСП 1% [15:08:11]line > о реализуемом товаре [15:08:11]line ИТОГО: 0.00 [15:08:11]line НСП 1% : 0.00 [15:08:11]line НДС 12% : 0.00 [15:08:11]line Наличными: 0.00 [15:08:11]line Безнал.: 0.00 [15:08:11]line Место: АЗС № 78 "Партнер Нефть" [15:08:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:08:11]line СНО: Общий режим [15:08:11]line Чек 146 23.10.2024 15:08 [15:08:11]line Смена: 117 ФФД: 1.0 [15:08:11]line ЗНМ: 0300000137 [15:08:11]line РНМ: 0000000000186857 [15:08:11]line Версия ККМ: v1.0 [15:08:11]line Талоны: Топливные Талоны [15:08:11]line 3947521 [15:08:11]line ФМ: 0000000002094219 [15:08:11]line ФД: 31202 [15:08:11]line ФПД: 251836689233194 [15:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31202&fm=251836689233194&tin=02508201610067®Number=0000000000186857&sum=0 [15:08:11]OFD Sender: Processing packet 31202 [packets to send 11, broken 10] [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00031202 [15:08:11]OFD Sender: To server: pG, [15:08:11]CommunicateWithHost lk.salyk.kg:30040 [15:08:11]ConnectInit lk.salyk.kg [15:08:11]written 0, free lines is 4095 [15:08:12]Connected sock=10 [15:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3D A2 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 60 11 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 79 00 00 35 04 06 00 E5 0B 4C 67 35 2A 4B 6B A9 4D DF E8 A2 8E [15:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 39 F3 47 00 9A 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 79 00 00 F4 03 04 00 DA BB 18 67 B6 04 01 00 00 77 1A 40 47 66 4C 7C 7F [15:08:12]CommunicateWithHost err = 0 [15:08:12]CheckOFDResponse [15:08:12]1017 (14) - 77093643461234 [15:08:12]1041 (16) - 0000000002094219 [15:08:12]1040 (4) - 31202 [15:08:12]1012 (4) - 23.10.2024 09:03 [15:08:12]1206 (1) - 0 [15:08:12]OFD Sender: Remove packet 31202 [15:08:12]ProducePacketName [15:08:12]name=ofd_packets/00031202 [15:08:12]NVStorageDeleteData [15:08:12]Write to MH i2c: 01 00 00 3D 58 95 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 07 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 07 00 3D 58 00 00 00 00 00 0A 0D B3 [15:08:12]RasterBufferAndPrint [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]written 0, free lines is 3345 [15:08:12]MH_Cut [15:08:12]Write to MH i2c: D1 01 00 44 58 01 6E [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 01 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 01 00 44 58 00 6D [15:08:12]Write to MH i2c: 01 00 00 45 58 9D [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]OFD Sender: No OFD packet to send [15:08:13]*** Cut start [15:08:13]*** Partial cut [15:08:13]*** CUTSNS_PIN = 1 [15:08:13]*** CUTSNS_PIN = 0 [15:08:13]*** Brake cut motor [15:08:13]Read from MH i2c: 01 [15:08:13]MH_I2C_Read... [15:08:13]*** Stop cut motor [15:08:13]*** Cut end [15:08:13]Read from MH i2c: 01 07 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 45 58 00 00 00 00 00 FF 0F B2 [15:08:13]process_action close_receipt done [15:08:13]requested_data is exist [15:08:13]produce_requested_data [15:08:13]requested_item fm.sn is exist - process it [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 11 00 00 [15:08:13]Write to MH i2c: E2 08 00 46 58 80 11 00 00 00 00 00 00 18 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 46 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 66 [15:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:08:13]wFMCommunicate OK [15:08:13]requested_item fd.num is exist - process it [15:08:13]SAM_PROTO_GetFieldsCounters [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 00 00 [15:08:13]Write to MH i2c: E2 08 00 47 58 80 13 00 00 00 00 00 00 1B [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 47 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [15:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetFieldsCounters done [15:08:13]requested_item shift.num is exist - process it [15:08:13]requested_item shift.opened is exist - process it [15:08:13]req_shift_opened [15:08:13]FM_GetShiftState [15:08:13]SAM_PROTO_GetShiftState [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 01 00 [15:08:13]Write to MH i2c: E2 08 00 48 58 80 13 01 00 00 00 00 00 1D [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 48 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D7 [15:08:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetShiftState done [15:08:13]FM_GetShiftState done [15:08:13]req_shift_opened done [15:08:13]requested_item shift.open_date is exist - process it [15:08:13]req_shift_open_date [15:08:13]req_shift_open_date done [15:08:13]produce_requested_data done [15:08:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31202,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:08:13]process_action_free close_receipt [15:08:13]json_value_free [15:08:13]json_value_free done [15:08:13]process_json_proto returns [15:08:13]Send response to host [15:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31202,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:08:13]free response buf [15:08:13]execute_script done [15:08:13]execute_script returns [15:08:13]free content buf [15:08:13]Sock 9.Close socket [15:08:13]Sock 9.Thread stoped [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:41]accept exits with 7 [15:11:41]New connection [15:11:41]New thread 3067043172 created [15:11:41]Thread 3066899812 joined [15:11:41]Waiting for new connection... [15:11:41] Sock 7.Parse request [15:11:41]Sock 7.Check first char [15:11:41]Sock 7.First char is OK [15:11:41]request: POST /json_proto HTTP/1.0 [15:11:41]Method: POST [15:11:41]URL: /json_proto [15:11:41]Method is POST - this is cgi request [15:11:41]url: /json_proto [15:11:41]query_string will be loaded in cgi processing [15:11:41]execute_cgi json_proto POST (null) [15:11:41]execute_cgi path=json_proto method=POST [15:11:41]POST find Content-Length [15:11:41]Host: 172.17.51.3:8080 [15:11:41]Content-Length: 677 [15:11:41]Content-Type: application/json [15:11:41] [15:11:41]POST finish read [15:11:41]Found Content-Length = 677 [15:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:41]execute_script... [15:11:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:41]POST & json_proto [15:11:41]process_json_proto [15:11:41]json parsed OK: [15:11:41]protocol is kg_v1.0 [15:11:41]action value=close_receipt [15:11:41]process_action close_receipt [15:11:41]cmd_close_receipt [15:11:41]MH_GetDate [15:11:41]Write to MH i2c: F0 00 00 49 58 90 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 09 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 09 00 49 58 00 34 12 19 67 04 C1 95 66 1F [15:11:41]GetLastDocTimeStamp 1729696096 [15:11:41]current date 1729696308 [15:11:41]FM_GetShiftState [15:11:41]SAM_PROTO_GetShiftState [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 13 01 00 [15:11:41]Write to MH i2c: E2 08 00 4A 58 80 13 01 00 00 00 00 00 1F [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 4A 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D9 [15:11:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:11:41]wFMCommunicate OK [15:11:41]SAM_PROTO_GetShiftState done [15:11:41]FM_GetShiftState done [15:11:41]opened in 1729643755 [15:11:41]opened+sec_in_day 1729730155 [15:11:41]quantity*price = 20003 [15:11:41]sum+1 = 20004 [15:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 147 23.10.2024 15:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31203 ФПД: 222363013618123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151148&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31203&fm=222363013618123&tin=02508201610067®Number=0000000000186857&sum=20000 [15:11:42]StoreToDocumentArchive [15:11:42]shift 117 fd 31203 [15:11:42]save to /storage/0117/doc_00031203 [15:11:42]save last doc name /storage/0117/doc_00031203 to /storage/kkm_last_doc_name [15:11:42]save OK [15:11:42]Clear old archive folders... [15:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:42]tlvbuf is 00D60A80 [15:11:42]SAM_PROTO_ClearQueue [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 09 00 00 [15:11:42]Write to MH i2c: E2 08 00 57 58 80 09 00 00 00 00 00 00 21 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 57 58 00 90 00 23 [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]SAM_PROTO_ClearQueue done [15:11:42]KKMCreateOFDPacket [15:11:42]OFDProtocolAddRootSTLVToBuf [15:11:42]FM_MakeSignedData [15:11:42]FM_MakeSignedData [15:11:42]SAM_PROTO_SignData [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 01 02 [15:11:42]Write to MH i2c: E2 08 00 58 58 80 0D 01 02 00 00 00 00 29 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 58 58 00 90 00 24 [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]wFMCommunicate request_size=255 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 34 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 79 00 00 35 04 06 00 CA [15:11:42]Write to MH i2c: E2 02 01 59 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 34 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 79 00 00 35 04 06 00 CA 00 00 70 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]OFD Sender: No OFD packet to send [15:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 59 58 00 90 00 25 [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]wFMCommunicate request_size=10 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 02 02 05 3C EC 70 19 CB [15:11:43]Write to MH i2c: E2 0D 00 5A 58 80 0D 02 02 05 00 3C EC 70 19 CB 00 00 B2 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 5A 58 00 90 00 26 [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 03 02 [15:11:43]Write to MH i2c: E2 08 00 5B 58 80 0D 03 02 00 00 00 00 2E [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 0B 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 0B 00 5B 58 00 57 CD 1D 75 4D 57 9E AA 90 00 D1 [15:11:43]RAPDU: 57 CD 1D 75 4D 57 9E AA 90 00 [15:11:43]wFMCommunicate OK [15:11:43]SAM_PROTO_SignData done [15:11:43]FM_MakeSignedData done [15:11:43]CreateOFDProtocolMessage [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 11 00 00 [15:11:43]Write to MH i2c: E2 08 00 5C 58 80 11 00 00 00 00 00 00 2E [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 17 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 17 00 5C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [15:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:11:43]wFMCommunicate OK [15:11:43]CreateOFDProtocolMessage done [15:11:43]OFDSenderStorePacket 31203 [15:11:43]StoreOFDPacket docnum=31203 [15:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EA 9B 07 01 6C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 34 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 79 00 00 35 04 06 00 CA 3C EC 70 19 CB 57 CD 1D 75 4D 57 9E AA [15:11:43]CheckFolder [15:11:43]dirname=/storage/ofd_packets [15:11:43]CheckFolder done [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00031203 [15:11:43]NVStorageSaveData ofd_packets/00031203 [15:11:43]File name is /storage/ofd_packets/00031203 [15:11:43]Write 301 bytes [15:11:43]NVStorageSaveData done [15:11:43]OFDSenderStorePacket done [15:11:43]KKMCreateOFDPacket done [15:11:43]NVStorageSaveData kkm_last_timestamp [15:11:43]File name is /storage/kkm_last_timestamp [15:11:43]Write 4 bytes [15:11:43]NVStorageSaveData done [15:11:43]ExternCall_PrintAddStr [15:11:43]wPrintStart [15:11:43]Write to MH i2c: 01 00 00 5D 58 B5 [15:11:43]OFD Sender: Processing packet 31203 [packets to send 11, broken 10] [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00031203 [15:11:43]OFD Sender: To server: pG, [15:11:43]CommunicateWithHost lk.salyk.kg:30040 [15:11:43]ConnectInit lk.salyk.kg [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 5D 58 00 00 00 00 00 FF 0F CA [15:11:43]RasterBufferAndPrint [15:11:43]line Счет N : (1)343649 [15:11:43]line ИНН: 02508201610067 [15:11:43]line Контрольно-Кассовый Чек [15:11:43]line ПРОДАЖА [15:11:43]line ТРК (МРК, ГНК) : 53 [15:11:43]line Товар: 2710124130 [15:11:43]line Аи-92-К-2 [15:11:43]line 2.990 * 66.90 [15:11:43]line = 200.03 [15:11:43]line НДС 12% НСП 1% [15:11:43]line > о реализуемом товаре [15:11:43]line ОКРУГЛЕНИЕ: -0.03 [15:11:43]line ИТОГО: 200.00 [15:11:43]line Внесено: 200.00 [15:11:43]line СДАЧА: 0.00 [15:11:43]line НСП 1% : 1.77 [15:11:43]line НДС 12% : 21.24 [15:11:43]line Наличными: 200.00 [15:11:43]line Безнал.: 0.00 [15:11:43]line Место: АЗС № 78 "Партнер Нефть" [15:11:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:11:43]line СНО: Общий режим [15:11:43]line Чек 147 23.10.2024 15:11 [15:11:43]line Смена: 117 ФФД: 1.0 [15:11:43]line ЗНМ: 0300000137 [15:11:43]line РНМ: 0000000000186857 [15:11:43]line Версия ККМ: v1.0 [15:11:43]line ФМ: 0000000002094219 [15:11:43]line ФД: 31203 [15:11:43]line ФПД: 222363013618123 [15:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151148&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31203&fm=222363013618123&tin=02508201610067®Number=0000000000186857&sum=20000 [15:11:43]Connected sock=10 [15:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EA 9B 07 01 6C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 34 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 79 00 00 35 04 06 00 CA 3C EC 70 19 CB 57 CD 1D 75 4D 57 9E AA [15:11:43]written 0, free lines is 4095 [15:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 55 FC 47 00 7A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 79 00 00 F4 03 04 00 AE BC 18 67 B6 04 01 00 00 DB 97 89 79 9E 93 73 11 [15:11:43]CommunicateWithHost err = 0 [15:11:43]CheckOFDResponse [15:11:43]1017 (14) - 77093643461234 [15:11:43]1041 (16) - 0000000002094219 [15:11:43]1040 (4) - 31203 [15:11:43]1012 (4) - 23.10.2024 09:06 [15:11:43]1206 (1) - 0 [15:11:43]OFD Sender: Remove packet 31203 [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00031203 [15:11:43]NVStorageDeleteData [15:11:44]Write to MH i2c: 01 00 00 88 58 E0 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 07 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 07 00 88 58 00 00 00 00 00 F3 0C E6 [15:11:44]RasterBufferAndPrint [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]written 0, free lines is 3324 [15:11:44]MH_Cut [15:11:44]Write to MH i2c: D1 01 00 8F 58 01 B9 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 01 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 01 00 8F 58 00 B8 [15:11:44]Write to MH i2c: 01 00 00 90 58 E8 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]OFD Sender: No OFD packet to send [15:11:44]*** Cut start [15:11:44]*** Partial cut [15:11:44]*** CUTSNS_PIN = 1 [15:11:44]*** CUTSNS_PIN = 0 [15:11:45]*** Brake cut motor [15:11:45]Read from MH i2c: 01 [15:11:45]MH_I2C_Read... [15:11:45]*** Stop cut motor [15:11:45]*** Cut end [15:11:45]Read from MH i2c: 01 07 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: 01 07 00 90 58 00 00 00 00 00 FF 0F FD [15:11:45]process_action close_receipt done [15:11:45]requested_data is exist [15:11:45]produce_requested_data [15:11:45]requested_item fm.sn is exist - process it [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 11 00 00 [15:11:45]Write to MH i2c: E2 08 00 91 58 80 11 00 00 00 00 00 00 63 [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 17 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 17 00 91 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B1 [15:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:11:45]wFMCommunicate OK [15:11:45]requested_item fd.num is exist - process it [15:11:45]SAM_PROTO_GetFieldsCounters [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 13 00 00 [15:11:45]Write to MH i2c: E2 08 00 92 58 80 13 00 00 00 00 00 00 66 [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 62 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 62 00 92 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [15:11:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:45]wFMCommunicate OK [15:11:45]SAM_PROTO_GetFieldsCounters done [15:11:45]requested_item shift.num is exist - process it [15:11:45]requested_item shift.opened is exist - process it [15:11:45]req_shift_opened [15:11:45]FM_GetShiftState [15:11:45]SAM_PROTO_GetShiftState [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 13 01 00 [15:11:45]Write to MH i2c: E2 08 00 93 58 80 13 01 00 00 00 00 00 68 [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 0E 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 0E 00 93 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 22 [15:11:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:11:45]wFMCommunicate OK [15:11:45]SAM_PROTO_GetShiftState done [15:11:45]FM_GetShiftState done [15:11:45]req_shift_opened done [15:11:45]requested_item shift.open_date is exist - process it [15:11:45]req_shift_open_date [15:11:45]req_shift_open_date done [15:11:45]produce_requested_data done [15:11:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31203,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:11:45]process_action_free close_receipt [15:11:45]json_value_free [15:11:45]json_value_free done [15:11:45]process_json_proto returns [15:11:45]Send response to host [15:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31203,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:11:45]free response buf [15:11:45]execute_script done [15:11:45]execute_script returns [15:11:45]free content buf [15:11:45]Sock 7.Close socket [15:11:45]Sock 7.Thread stoped [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:28]accept exits with 9 [15:14:28]New connection [15:14:28]New thread 3066899812 created [15:14:28]Thread 3067043172 joined [15:14:28]Waiting for new connection... [15:14:28] Sock 9.Parse request [15:14:28]Sock 9.Check first char [15:14:28]Sock 9.First char is OK [15:14:28]request: POST /json_proto HTTP/1.0 [15:14:28]Method: POST [15:14:28]URL: /json_proto [15:14:28]Method is POST - this is cgi request [15:14:28]url: /json_proto [15:14:28]query_string will be loaded in cgi processing [15:14:28]execute_cgi json_proto POST (null) [15:14:28]execute_cgi path=json_proto method=POST [15:14:28]POST find Content-Length [15:14:28]Host: 172.17.51.3:8080 [15:14:28]Content-Length: 840 [15:14:28]Content-Type: application/json [15:14:28] [15:14:28]POST finish read [15:14:28]Found Content-Length = 840 [15:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:28]execute_script... [15:14:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:28]POST & json_proto [15:14:28]process_json_proto [15:14:28]json parsed OK: [15:14:28]protocol is kg_v1.0 [15:14:28]action value=close_receipt [15:14:28]process_action close_receipt [15:14:28]cmd_close_receipt [15:14:28]MH_GetDate [15:14:28]Write to MH i2c: F0 00 00 94 58 DB [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: F0 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: F0 09 00 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: F0 09 00 94 58 00 DB 12 19 67 04 C1 95 66 11 [15:14:28]GetLastDocTimeStamp 1729696308 [15:14:28]current date 1729696475 [15:14:28]FM_GetShiftState [15:14:28]SAM_PROTO_GetShiftState [15:14:28]wFMCommunicate request_size=4 [15:14:28]MH_SAM_APDU [15:14:28]CAPDU: 80 13 01 00 [15:14:28]Write to MH i2c: E2 08 00 95 58 80 13 01 00 00 00 00 00 6A [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:28]Read from MH i2c: E2 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: E2 0E 00 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: E2 0E 00 95 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 24 [15:14:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:14:28]wFMCommunicate OK [15:14:28]SAM_PROTO_GetShiftState done [15:14:28]FM_GetShiftState done [15:14:28]opened in 1729643755 [15:14:28]opened+sec_in_day 1729730155 [15:14:28]quantity*price = 60009 [15:14:28]sum+1 = 60010 [15:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 148 23.10.2024 15:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31204 ФПД: 86388208216276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151435&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31204&fm=86388208216276&tin=02508201610067®Number=0000000000186857&sum=60009 [15:14:30]StoreToDocumentArchive [15:14:30]shift 117 fd 31204 [15:14:30]save to /storage/0117/doc_00031204 [15:14:30]save last doc name /storage/0117/doc_00031204 to /storage/kkm_last_doc_name [15:14:30]save OK [15:14:30]Clear old archive folders... [15:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:30]tlvbuf is 00CD1CF0 [15:14:30]SAM_PROTO_ClearQueue [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 09 00 00 [15:14:30]Write to MH i2c: E2 08 00 A2 58 80 09 00 00 00 00 00 00 6C [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 A2 58 00 90 00 6E [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]SAM_PROTO_ClearQueue done [15:14:30]KKMCreateOFDPacket [15:14:30]OFDProtocolAddRootSTLVToBuf [15:14:30]FM_MakeSignedData [15:14:30]FM_MakeSignedData [15:14:30]SAM_PROTO_SignData [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 01 02 [15:14:30]Write to MH i2c: E2 08 00 A3 58 80 0D 01 02 00 00 00 00 74 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 A3 58 00 90 00 6F [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=255 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 79 00 00 35 04 06 00 4E [15:14:30]Write to MH i2c: E2 02 01 A4 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 79 00 00 35 04 06 00 4E 00 00 15 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 A4 58 00 90 00 70 [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=10 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 02 02 05 91 D2 76 A8 D4 [15:14:30]Write to MH i2c: E2 0D 00 A5 58 80 0D 02 02 05 00 91 D2 76 A8 D4 00 00 D6 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 A5 58 00 90 00 71 [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 03 02 [15:14:30]Write to MH i2c: E2 08 00 A6 58 80 0D 03 02 00 00 00 00 79 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0B 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0B 00 A6 58 00 79 8A 14 E8 2E 5A 52 EF 90 00 42 [15:14:30]RAPDU: 79 8A 14 E8 2E 5A 52 EF 90 00 [15:14:30]wFMCommunicate OK [15:14:30]SAM_PROTO_SignData done [15:14:30]FM_MakeSignedData done [15:14:30]CreateOFDProtocolMessage [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 11 00 00 [15:14:30]Write to MH i2c: E2 08 00 A7 58 80 11 00 00 00 00 00 00 79 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 17 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 17 00 A7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [15:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:30]wFMCommunicate OK [15:14:30]CreateOFDProtocolMessage done [15:14:30]OFDSenderStorePacket 31204 [15:14:30]StoreOFDPacket docnum=31204 [15:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 13 07 01 18 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 79 00 00 35 04 06 00 4E 91 D2 76 A8 D4 79 8A 14 E8 2E 5A 52 EF [15:14:30]CheckFolder [15:14:30]dirname=/storage/ofd_packets [15:14:30]CheckFolder done [15:14:30]ProducePacketName [15:14:30]name=ofd_packets/00031204 [15:14:30]NVStorageSaveData ofd_packets/00031204 [15:14:30]File name is /storage/ofd_packets/00031204 [15:14:30]Write 301 bytes [15:14:30]NVStorageSaveData done [15:14:30]OFDSenderStorePacket done [15:14:30]KKMCreateOFDPacket done [15:14:30]NVStorageSaveData kkm_last_timestamp [15:14:30]File name is /storage/kkm_last_timestamp [15:14:30]Write 4 bytes [15:14:30]NVStorageSaveData done [15:14:30]ExternCall_PrintAddStr [15:14:30]wPrintStart [15:14:30]Write to MH i2c: 01 00 00 A8 58 00 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 07 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 07 00 A8 58 00 00 00 00 00 FF 0F 15 [15:14:30]RasterBufferAndPrint [15:14:30]line Счет N : (1)343650 [15:14:30]line ИНН: 02508201610067 [15:14:30]line Контрольно-Кассовый Чек [15:14:30]line ПРОДАЖА [15:14:30]line ТРК (МРК, ГНК) : 63 [15:14:30]line Товар: 2710124130 [15:14:30]line Аи-92-К-2 [15:14:30]line 8.970 * 66.90 [15:14:30]line = 600.09 [15:14:30]line НДС 12% НСП 1% [15:14:30]line > о реализуемом товаре [15:14:30]line ИТОГО: 600.09 [15:14:30]line НСП 1% : 5.31 [15:14:30]line НДС 12% : 63.73 [15:14:30]line Наличными: 0.00 [15:14:30]line Безнал.: 600.09 [15:14:30]line Место: АЗС № 78 "Партнер Нефть" [15:14:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:14:30]line СНО: Общий режим [15:14:30]line Чек 148 23.10.2024 15:14 [15:14:30]line Смена: 117 ФФД: 1.0 [15:14:30]line ЗНМ: 0300000137 [15:14:30]line РНМ: 0000000000186857 [15:14:30]line Версия ККМ: v1.0 [15:14:30]line Платежная система: АКБ Кыргызстан [15:14:30]line ФМ: 0000000002094219 [15:14:30]line ФД: 31204 [15:14:30]line ФПД: 86388208216276 [15:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151435&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31204&fm=86388208216276&tin=02508201610067®Number=0000000000186857&sum=60009 [15:14:30]OFD Sender: Processing packet 31204 [packets to send 11, broken 10] [15:14:30]ProducePacketName [15:14:30]name=ofd_packets/00031204 [15:14:30]OFD Sender: To server: pG, [15:14:30]CommunicateWithHost lk.salyk.kg:30040 [15:14:30]ConnectInit lk.salyk.kg [15:14:30]written 0, free lines is 4095 [15:14:31]Connected sock=10 [15:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 13 07 01 18 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 79 00 00 35 04 06 00 4E 91 D2 76 A8 D4 79 8A 14 E8 2E 5A 52 EF [15:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C3 74 47 00 BB C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 79 00 00 F4 03 04 00 55 BD 18 67 B6 04 01 00 00 35 EA 18 24 CF EE 2A F0 [15:14:31]CommunicateWithHost err = 0 [15:14:31]CheckOFDResponse [15:14:31]1017 (14) - 77093643461234 [15:14:31]1041 (16) - 0000000002094219 [15:14:31]1040 (4) - 31204 [15:14:31]1012 (4) - 23.10.2024 09:09 [15:14:31]1206 (1) - 0 [15:14:31]OFD Sender: Remove packet 31204 [15:14:31]ProducePacketName [15:14:31]name=ofd_packets/00031204 [15:14:31]NVStorageDeleteData [15:14:31]Write to MH i2c: 01 00 00 D2 58 2A [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 D2 58 00 00 00 00 00 13 0D 51 [15:14:31]RasterBufferAndPrint [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]written 0, free lines is 3354 [15:14:31]MH_Cut [15:14:31]Write to MH i2c: D1 01 00 D9 58 01 03 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 01 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 01 00 D9 58 00 02 [15:14:31]Write to MH i2c: 01 00 00 DA 58 32 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]OFD Sender: No OFD packet to send [15:14:32]*** Cut start [15:14:32]*** Partial cut [15:14:32]*** CUTSNS_PIN = 1 [15:14:32]*** CUTSNS_PIN = 0 [15:14:32]*** Brake cut motor [15:14:32]Read from MH i2c: 01 [15:14:32]MH_I2C_Read... [15:14:32]*** Stop cut motor [15:14:32]*** Cut end [15:14:32]Read from MH i2c: 01 07 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: 01 07 00 DA 58 00 00 00 00 00 FF 0F 47 [15:14:32]process_action close_receipt done [15:14:32]requested_data is exist [15:14:32]produce_requested_data [15:14:32]requested_item fm.sn is exist - process it [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 11 00 00 [15:14:32]Write to MH i2c: E2 08 00 DB 58 80 11 00 00 00 00 00 00 AD [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 17 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 17 00 DB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [15:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:32]wFMCommunicate OK [15:14:32]requested_item fd.num is exist - process it [15:14:32]SAM_PROTO_GetFieldsCounters [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 13 00 00 [15:14:32]Write to MH i2c: E2 08 00 DC 58 80 13 00 00 00 00 00 00 B0 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 62 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 62 00 DC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:32]wFMCommunicate OK [15:14:32]SAM_PROTO_GetFieldsCounters done [15:14:32]requested_item shift.num is exist - process it [15:14:32]requested_item shift.opened is exist - process it [15:14:32]req_shift_opened [15:14:32]FM_GetShiftState [15:14:32]SAM_PROTO_GetShiftState [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 13 01 00 [15:14:32]Write to MH i2c: E2 08 00 DD 58 80 13 01 00 00 00 00 00 B2 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 0E 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 0E 00 DD 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6C [15:14:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:14:32]wFMCommunicate OK [15:14:32]SAM_PROTO_GetShiftState done [15:14:32]FM_GetShiftState done [15:14:32]req_shift_opened done [15:14:32]requested_item shift.open_date is exist - process it [15:14:32]req_shift_open_date [15:14:32]req_shift_open_date done [15:14:32]produce_requested_data done [15:14:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31204,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:14:32]process_action_free close_receipt [15:14:32]json_value_free [15:14:32]json_value_free done [15:14:32]process_json_proto returns [15:14:32]Send response to host [15:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31204,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:14:32]free response buf [15:14:32]execute_script done [15:14:32]execute_script returns [15:14:32]free content buf [15:14:32]Sock 9.Close socket [15:14:32]Sock 9.Thread stoped [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:12]accept exits with 7 [15:16:12]New connection [15:16:12]New thread 3067043172 created [15:16:12]Thread 3066899812 joined [15:16:12]Waiting for new connection... [15:16:12] Sock 7.Parse request [15:16:12]Sock 7.Check first char [15:16:12]Sock 7.First char is OK [15:16:12]request: POST /json_proto HTTP/1.0 [15:16:12]Method: POST [15:16:12]URL: /json_proto [15:16:12]Method is POST - this is cgi request [15:16:12]url: /json_proto [15:16:12]query_string will be loaded in cgi processing [15:16:12]execute_cgi json_proto POST (null) [15:16:12]execute_cgi path=json_proto method=POST [15:16:12]POST find Content-Length [15:16:12]Host: 172.17.51.3:8080 [15:16:12]Content-Length: 677 [15:16:12]Content-Type: application/json [15:16:12] [15:16:12]POST finish read [15:16:12]Found Content-Length = 677 [15:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:12]execute_script... [15:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:12]POST & json_proto [15:16:12]process_json_proto [15:16:12]json parsed OK: [15:16:12]protocol is kg_v1.0 [15:16:12]action value=close_receipt [15:16:12]process_action close_receipt [15:16:12]cmd_close_receipt [15:16:12]MH_GetDate [15:16:12]Write to MH i2c: F0 00 00 DE 58 25 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 09 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: F0 09 00 DE 58 00 42 13 19 67 04 C1 95 66 C3 [15:16:12]GetLastDocTimeStamp 1729696475 [15:16:12]current date 1729696578 [15:16:12]FM_GetShiftState [15:16:12]SAM_PROTO_GetShiftState [15:16:12]wFMCommunicate request_size=4 [15:16:12]MH_SAM_APDU [15:16:12]CAPDU: 80 13 01 00 [15:16:12]Write to MH i2c: E2 08 00 DF 58 80 13 01 00 00 00 00 00 B4 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 DF 58 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6E [15:16:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:16:12]wFMCommunicate OK [15:16:12]SAM_PROTO_GetShiftState done [15:16:12]FM_GetShiftState done [15:16:12]opened in 1729643755 [15:16:12]opened+sec_in_day 1729730155 [15:16:12]quantity*price = 30038 [15:16:12]sum+1 = 30039 [15:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 149 23.10.2024 15:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31205 ФПД: 117959350287061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151618&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31205&fm=117959350287061&tin=02508201610067®Number=0000000000186857&sum=30000 [15:16:13]StoreToDocumentArchive [15:16:13]shift 117 fd 31205 [15:16:13]save to /storage/0117/doc_00031205 [15:16:13]save last doc name /storage/0117/doc_00031205 to /storage/kkm_last_doc_name [15:16:13]save OK [15:16:13]Clear old archive folders... [15:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:13]tlvbuf is 00E4AD50 [15:16:13]SAM_PROTO_ClearQueue [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 09 00 00 [15:16:13]Write to MH i2c: E2 08 00 EC 58 80 09 00 00 00 00 00 00 B6 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 EC 58 00 90 00 B8 [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]SAM_PROTO_ClearQueue done [15:16:13]KKMCreateOFDPacket [15:16:13]OFDProtocolAddRootSTLVToBuf [15:16:13]FM_MakeSignedData [15:16:13]FM_MakeSignedData [15:16:13]SAM_PROTO_SignData [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 01 02 [15:16:13]Write to MH i2c: E2 08 00 ED 58 80 0D 01 02 00 00 00 00 BE [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 ED 58 00 90 00 B9 [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]wFMCommunicate request_size=255 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 42 13 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 79 00 00 35 04 06 00 6B [15:16:13]Write to MH i2c: E2 02 01 EE 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 42 13 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 79 00 00 35 04 06 00 6B 00 00 EB [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 EE 58 00 90 00 BA [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]wFMCommunicate request_size=10 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 02 02 05 48 8D 2B FA D5 [15:16:13]Write to MH i2c: E2 0D 00 EF 58 80 0D 02 02 05 00 48 8D 2B FA D5 00 00 9A [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 03 00 EF 58 00 90 00 BB [15:16:13]RAPDU: 90 00 [15:16:13]wFMCommunicate OK [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 0D 03 02 [15:16:13]Write to MH i2c: E2 08 00 F0 58 80 0D 03 02 00 00 00 00 C3 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 0B 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 0B 00 F0 58 00 A7 3D 4E 15 61 E7 07 92 90 00 EC [15:16:13]RAPDU: A7 3D 4E 15 61 E7 07 92 90 00 [15:16:13]wFMCommunicate OK [15:16:13]SAM_PROTO_SignData done [15:16:13]FM_MakeSignedData done [15:16:13]CreateOFDProtocolMessage [15:16:13]wFMCommunicate request_size=4 [15:16:13]MH_SAM_APDU [15:16:13]CAPDU: 80 11 00 00 [15:16:13]Write to MH i2c: E2 08 00 F1 58 80 11 00 00 00 00 00 00 C3 [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:13]Read from MH i2c: E2 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 17 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: E2 17 00 F1 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [15:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:16:13]wFMCommunicate OK [15:16:13]CreateOFDProtocolMessage done [15:16:13]OFDSenderStorePacket 31205 [15:16:13]StoreOFDPacket docnum=31205 [15:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 47 07 01 B8 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 42 13 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 79 00 00 35 04 06 00 6B 48 8D 2B FA D5 A7 3D 4E 15 61 E7 07 92 [15:16:13]CheckFolder [15:16:13]dirname=/storage/ofd_packets [15:16:13]CheckFolder done [15:16:13]ProducePacketName [15:16:13]name=ofd_packets/00031205 [15:16:13]NVStorageSaveData ofd_packets/00031205 [15:16:13]File name is /storage/ofd_packets/00031205 [15:16:13]Write 301 bytes [15:16:13]NVStorageSaveData done [15:16:13]OFDSenderStorePacket done [15:16:13]KKMCreateOFDPacket done [15:16:13]NVStorageSaveData kkm_last_timestamp [15:16:13]File name is /storage/kkm_last_timestamp [15:16:13]Write 4 bytes [15:16:13]NVStorageSaveData done [15:16:13]ExternCall_PrintAddStr [15:16:13]wPrintStart [15:16:13]Write to MH i2c: 01 00 00 F2 58 4A [15:16:13]Write i2c OK [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: 01 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: 01 07 00 [15:16:13]MH_I2C_Read... [15:16:13]Read from MH i2c: 01 07 00 F2 58 00 00 00 00 00 FF 0F 5F [15:16:13]RasterBufferAndPrint [15:16:13]line Счет N : (1)343651 [15:16:13]line ИНН: 02508201610067 [15:16:13]line Контрольно-Кассовый Чек [15:16:13]line ПРОДАЖА [15:16:13]line ТРК (МРК, ГНК) : 63 [15:16:13]line Товар: 2710124130 [15:16:13]line Аи-92-К-2 [15:16:13]line 4.490 * 66.90 [15:16:13]line = 300.38 [15:16:13]line НДС 12% НСП 1% [15:16:13]line > о реализуемом товаре [15:16:13]line ОКРУГЛЕНИЕ: -0.38 [15:16:13]line ИТОГО: 300.00 [15:16:13]line Внесено: 300.00 [15:16:13]line СДАЧА: 0.00 [15:16:13]line НСП 1% : 2.66 [15:16:13]line НДС 12% : 31.90 [15:16:13]line Наличными: 300.00 [15:16:13]line Безнал.: 0.00 [15:16:13]line Место: АЗС № 78 "Партнер Нефть" [15:16:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:16:13]line СНО: Общий режим [15:16:13]line Чек 149 23.10.2024 15:16 [15:16:13]line Смена: 117 ФФД: 1.0 [15:16:13]line ЗНМ: 0300000137 [15:16:13]line РНМ: 0000000000186857 [15:16:13]line Версия ККМ: v1.0 [15:16:13]line ФМ: 0000000002094219 [15:16:13]line ФД: 31205 [15:16:13]line ФПД: 117959350287061 [15:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151618&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31205&fm=117959350287061&tin=02508201610067®Number=0000000000186857&sum=30000 [15:16:14]OFD Sender: Processing packet 31205 [packets to send 11, broken 10] [15:16:14]ProducePacketName [15:16:14]name=ofd_packets/00031205 [15:16:14]OFD Sender: To server: pG, [15:16:14]CommunicateWithHost lk.salyk.kg:30040 [15:16:14]ConnectInit lk.salyk.kg [15:16:14]written 0, free lines is 4095 [15:16:14]Connected sock=10 [15:16:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 47 07 01 B8 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 42 13 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 79 00 00 35 04 06 00 6B 48 8D 2B FA D5 A7 3D 4E 15 61 E7 07 92 [15:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 47 71 47 00 47 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 79 00 00 F4 03 04 00 BC BD 18 67 B6 04 01 00 00 AE BD 30 07 BC 62 5D DF [15:16:14]CommunicateWithHost err = 0 [15:16:14]CheckOFDResponse [15:16:14]1017 (14) - 77093643461234 [15:16:14]1041 (16) - 0000000002094219 [15:16:14]1040 (4) - 31205 [15:16:14]1012 (4) - 23.10.2024 09:11 [15:16:14]1206 (1) - 0 [15:16:14]OFD Sender: Remove packet 31205 [15:16:14]ProducePacketName [15:16:14]name=ofd_packets/00031205 [15:16:14]NVStorageDeleteData [15:16:14]Write to MH i2c: 01 00 00 1D 59 76 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 07 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 07 00 1D 59 00 00 00 00 00 FB 0C 84 [15:16:14]RasterBufferAndPrint [15:16:14]line [15:16:14]line [15:16:14]line [15:16:14]line [15:16:14]line [15:16:14]written 0, free lines is 3330 [15:16:14]MH_Cut [15:16:14]Write to MH i2c: D1 01 00 24 59 01 4F [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: D1 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: D1 01 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: D1 01 00 24 59 00 4E [15:16:14]Write to MH i2c: 01 00 00 25 59 7E [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:15]OFD Sender: No OFD packet to send [15:16:15]*** Cut start [15:16:15]*** Partial cut [15:16:15]*** CUTSNS_PIN = 1 [15:16:15]*** CUTSNS_PIN = 0 [15:16:15]*** Brake cut motor [15:16:15]Read from MH i2c: 01 [15:16:15]MH_I2C_Read... [15:16:15]*** Stop cut motor [15:16:15]*** Cut end [15:16:15]Read from MH i2c: 01 07 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: 01 07 00 25 59 00 00 00 00 00 FF 0F 93 [15:16:15]process_action close_receipt done [15:16:15]requested_data is exist [15:16:15]produce_requested_data [15:16:15]requested_item fm.sn is exist - process it [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 11 00 00 [15:16:15]Write to MH i2c: E2 08 00 26 59 80 11 00 00 00 00 00 00 F9 [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:15]Read from MH i2c: E2 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 17 00 [15:16:15]MH_I2C_Read... [15:16:15]Read from MH i2c: E2 17 00 26 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [15:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:16:15]wFMCommunicate OK [15:16:15]requested_item fd.num is exist - process it [15:16:15]SAM_PROTO_GetFieldsCounters [15:16:15]wFMCommunicate request_size=4 [15:16:15]MH_SAM_APDU [15:16:15]CAPDU: 80 13 00 00 [15:16:15]Write to MH i2c: E2 08 00 27 59 80 13 00 00 00 00 00 00 FC [15:16:15]Write i2c OK [15:16:15]MH_I2C_Read... [15:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 62 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 62 00 27 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetFieldsCounters done [15:16:16]requested_item shift.num is exist - process it [15:16:16]requested_item shift.opened is exist - process it [15:16:16]req_shift_opened [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 28 59 80 13 01 00 00 00 00 00 FE [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 28 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B8 [15:16:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetShiftState done [15:16:16]FM_GetShiftState done [15:16:16]req_shift_opened done [15:16:16]requested_item shift.open_date is exist - process it [15:16:16]req_shift_open_date [15:16:16]req_shift_open_date done [15:16:16]produce_requested_data done [15:16:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31205,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:16:16]process_action_free close_receipt [15:16:16]json_value_free [15:16:16]json_value_free done [15:16:16]process_json_proto returns [15:16:16]Send response to host [15:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31205,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:16:16]free response buf [15:16:16]execute_script done [15:16:16]execute_script returns [15:16:16]free content buf [15:16:16]Sock 7.Close socket [15:16:16]Sock 7.Thread stoped [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:37]accept exits with 9 [15:21:37]New connection [15:21:37]New thread 3066899812 created [15:21:37]Thread 3067043172 joined [15:21:37]Waiting for new connection... [15:21:37] Sock 9.Parse request [15:21:37]Sock 9.Check first char [15:21:37]Sock 9.First char is OK [15:21:37]request: POST /json_proto HTTP/1.0 [15:21:37]Method: POST [15:21:37]URL: /json_proto [15:21:37]Method is POST - this is cgi request [15:21:37]url: /json_proto [15:21:37]query_string will be loaded in cgi processing [15:21:37]execute_cgi json_proto POST (null) [15:21:37]execute_cgi path=json_proto method=POST [15:21:37]POST find Content-Length [15:21:37]Host: 172.17.51.3:8080 [15:21:37]Content-Length: 678 [15:21:37]Content-Type: application/json [15:21:37] [15:21:37]POST finish read [15:21:37]Found Content-Length = 678 [15:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:37]execute_script... [15:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:37]POST & json_proto [15:21:37]process_json_proto [15:21:37]json parsed OK: [15:21:37]protocol is kg_v1.0 [15:21:37]action value=close_receipt [15:21:37]process_action close_receipt [15:21:37]cmd_close_receipt [15:21:37]MH_GetDate [15:21:37]Write to MH i2c: F0 00 00 29 59 71 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: F0 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: F0 09 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: F0 09 00 29 59 00 88 14 19 67 04 C1 95 66 56 [15:21:37]GetLastDocTimeStamp 1729696578 [15:21:37]current date 1729696904 [15:21:37]FM_GetShiftState [15:21:37]SAM_PROTO_GetShiftState [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 13 01 00 [15:21:37]Write to MH i2c: E2 08 00 2A 59 80 13 01 00 00 00 00 00 00 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 2A 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BA [15:21:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_GetShiftState done [15:21:37]FM_GetShiftState done [15:21:37]opened in 1729643755 [15:21:37]opened+sec_in_day 1729730155 [15:21:37]quantity*price = 70044 [15:21:37]sum+1 = 70045 [15:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 150 23.10.2024 15:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31206 ФПД: 94400834704300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31206&fm=94400834704300&tin=02508201610067®Number=0000000000186857&sum=70000 [15:21:38]StoreToDocumentArchive [15:21:38]shift 117 fd 31206 [15:21:38]save to /storage/0117/doc_00031206 [15:21:38]save last doc name /storage/0117/doc_00031206 to /storage/kkm_last_doc_name [15:21:38]save OK [15:21:38]Clear old archive folders... [15:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:38]tlvbuf is 00CD4170 [15:21:38]SAM_PROTO_ClearQueue [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 09 00 00 [15:21:38]Write to MH i2c: E2 08 00 37 59 80 09 00 00 00 00 00 00 02 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 37 59 00 90 00 04 [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]SAM_PROTO_ClearQueue done [15:21:38]KKMCreateOFDPacket [15:21:38]OFDProtocolAddRootSTLVToBuf [15:21:38]FM_MakeSignedData [15:21:38]FM_MakeSignedData [15:21:38]SAM_PROTO_SignData [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 0D 01 02 [15:21:38]Write to MH i2c: E2 08 00 38 59 80 0D 01 02 00 00 00 00 0A [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 38 59 00 90 00 05 [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]wFMCommunicate request_size=255 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 14 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 79 00 00 35 04 06 00 55 [15:21:38]Write to MH i2c: E2 02 01 39 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 14 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 79 00 00 35 04 06 00 55 00 00 86 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:39]Read from MH i2c: E2 03 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 03 00 39 59 00 90 00 06 [15:21:39]RAPDU: 90 00 [15:21:39]wFMCommunicate OK [15:21:39]wFMCommunicate request_size=10 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 0D 02 02 05 DB 68 38 13 AC [15:21:39]Write to MH i2c: E2 0D 00 3A 59 80 0D 02 02 05 00 DB 68 38 13 AC 00 00 51 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 03 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 03 00 3A 59 00 90 00 07 [15:21:39]RAPDU: 90 00 [15:21:39]wFMCommunicate OK [15:21:39]wFMCommunicate request_size=4 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 0D 03 02 [15:21:39]Write to MH i2c: E2 08 00 3B 59 80 0D 03 02 00 00 00 00 0F [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 0B 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 0B 00 3B 59 00 8B B3 B0 F2 7E 58 8B 3D 90 00 8E [15:21:39]RAPDU: 8B B3 B0 F2 7E 58 8B 3D 90 00 [15:21:39]wFMCommunicate OK [15:21:39]SAM_PROTO_SignData done [15:21:39]FM_MakeSignedData done [15:21:39]CreateOFDProtocolMessage [15:21:39]wFMCommunicate request_size=4 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 11 00 00 [15:21:39]Write to MH i2c: E2 08 00 3C 59 80 11 00 00 00 00 00 00 0F [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 17 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 17 00 3C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [15:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:21:39]wFMCommunicate OK [15:21:39]CreateOFDProtocolMessage done [15:21:39]OFDSenderStorePacket 31206 [15:21:39]StoreOFDPacket docnum=31206 [15:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 54 07 01 28 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 14 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 79 00 00 35 04 06 00 55 DB 68 38 13 AC 8B B3 B0 F2 7E 58 8B 3D [15:21:39]CheckFolder [15:21:39]dirname=/storage/ofd_packets [15:21:39]CheckFolder done [15:21:39]ProducePacketName [15:21:39]name=ofd_packets/00031206 [15:21:39]NVStorageSaveData ofd_packets/00031206 [15:21:39]File name is /storage/ofd_packets/00031206 [15:21:39]Write 301 bytes [15:21:39]NVStorageSaveData done [15:21:39]OFDSenderStorePacket done [15:21:39]KKMCreateOFDPacket done [15:21:39]NVStorageSaveData kkm_last_timestamp [15:21:39]File name is /storage/kkm_last_timestamp [15:21:39]Write 4 bytes [15:21:39]NVStorageSaveData done [15:21:39]ExternCall_PrintAddStr [15:21:39]wPrintStart [15:21:39]Write to MH i2c: 01 00 00 3D 59 96 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 07 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 07 00 3D 59 00 00 00 00 00 FF 0F AB [15:21:39]RasterBufferAndPrint [15:21:39]line Счет N : (1)343652 [15:21:39]line ИНН: 02508201610067 [15:21:39]line Контрольно-Кассовый Чек [15:21:39]line ПРОДАЖА [15:21:39]line ТРК (МРК, ГНК) : 63 [15:21:39]line Товар: 2710124130 [15:21:39]line Аи-92-К-2 [15:21:39]line 10.470 * 66.90 [15:21:39]line = 700.44 [15:21:39]line НДС 12% НСП 1% [15:21:39]line > о реализуемом товаре [15:21:39]line ОКРУГЛЕНИЕ: -0.44 [15:21:39]line ИТОГО: 700.00 [15:21:39]line Внесено: 700.00 [15:21:39]line СДАЧА: 0.00 [15:21:39]line НСП 1% : 6.20 [15:21:39]line НДС 12% : 74.38 [15:21:39]line Наличными: 700.00 [15:21:39]line Безнал.: 0.00 [15:21:39]line Место: АЗС № 78 "Партнер Нефть" [15:21:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:21:39]line СНО: Общий режим [15:21:39]line Чек 150 23.10.2024 15:21 [15:21:39]line Смена: 117 ФФД: 1.0 [15:21:39]line ЗНМ: 0300000137 [15:21:39]line РНМ: 0000000000186857 [15:21:39]line Версия ККМ: v1.0 [15:21:39]line ФМ: 0000000002094219 [15:21:39]line ФД: 31206 [15:21:39]line ФПД: 94400834704300 [15:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31206&fm=94400834704300&tin=02508201610067®Number=0000000000186857&sum=70000 [15:21:39]OFD Sender: Processing packet 31206 [packets to send 11, broken 10] [15:21:39]ProducePacketName [15:21:39]name=ofd_packets/00031206 [15:21:39]OFD Sender: To server: pG, [15:21:39]CommunicateWithHost lk.salyk.kg:30040 [15:21:39]ConnectInit lk.salyk.kg [15:21:39]written 0, free lines is 4095 [15:21:39]Connected sock=10 [15:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 54 07 01 28 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 14 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 79 00 00 35 04 06 00 55 DB 68 38 13 AC 8B B3 B0 F2 7E 58 8B 3D [15:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C5 69 47 00 FA 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 32 30 39 34 32 31 39 10 04 04 00 E6 79 00 00 F4 03 04 00 02 BF 18 67 B6 04 01 00 00 68 3A 35 62 F2 65 C5 FB [15:21:40]CommunicateWithHost err = 0 [15:21:40]CheckOFDResponse [15:21:40]1017 (14) - 77093643461234 [15:21:40]1041 (16) - 0000000002094219 [15:21:40]1040 (4) - 31206 [15:21:40]1012 (4) - 23.10.2024 09:16 [15:21:40]1206 (1) - 0 [15:21:40]OFD Sender: Remove packet 31206 [15:21:40]ProducePacketName [15:21:40]name=ofd_packets/00031206 [15:21:40]NVStorageDeleteData [15:21:40]Write to MH i2c: 01 00 00 68 59 C1 [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 68 59 00 00 00 00 00 F3 0C C7 [15:21:40]RasterBufferAndPrint [15:21:40]line [15:21:40]line [15:21:40]line [15:21:40]line [15:21:40]line [15:21:40]written 0, free lines is 3321 [15:21:40]MH_Cut [15:21:40]Write to MH i2c: D1 01 00 6F 59 01 9A [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: D1 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: D1 01 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: D1 01 00 6F 59 00 99 [15:21:40]Write to MH i2c: 01 00 00 70 59 C9 [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]OFD Sender: No OFD packet to send [15:21:40]*** Cut start [15:21:40]*** Partial cut [15:21:40]*** CUTSNS_PIN = 1 [15:21:40]*** CUTSNS_PIN = 0 [15:21:41]*** Brake cut motor [15:21:41]Read from MH i2c: 01 [15:21:41]MH_I2C_Read... [15:21:41]*** Stop cut motor [15:21:41]*** Cut end [15:21:41]Read from MH i2c: 01 07 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: 01 07 00 70 59 00 00 00 00 00 FF 0F DE [15:21:41]process_action close_receipt done [15:21:41]requested_data is exist [15:21:41]produce_requested_data [15:21:41]requested_item fm.sn is exist - process it [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 11 00 00 [15:21:41]Write to MH i2c: E2 08 00 71 59 80 11 00 00 00 00 00 00 44 [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 17 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 17 00 71 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [15:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:21:41]wFMCommunicate OK [15:21:41]requested_item fd.num is exist - process it [15:21:41]SAM_PROTO_GetFieldsCounters [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 13 00 00 [15:21:41]Write to MH i2c: E2 08 00 72 59 80 13 00 00 00 00 00 00 47 [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 62 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 62 00 72 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetFieldsCounters done [15:21:41]requested_item shift.num is exist - process it [15:21:41]requested_item shift.opened is exist - process it [15:21:41]req_shift_opened [15:21:41]FM_GetShiftState [15:21:41]SAM_PROTO_GetShiftState [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 13 01 00 [15:21:41]Write to MH i2c: E2 08 00 73 59 80 13 01 00 00 00 00 00 49 [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 73 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 03 [15:21:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetShiftState done [15:21:41]FM_GetShiftState done [15:21:41]req_shift_opened done [15:21:41]requested_item shift.open_date is exist - process it [15:21:41]req_shift_open_date [15:21:41]req_shift_open_date done [15:21:41]produce_requested_data done [15:21:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31206,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:21:41]process_action_free close_receipt [15:21:41]json_value_free [15:21:41]json_value_free done [15:21:41]process_json_proto returns [15:21:41]Send response to host [15:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31206,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:21:41]free response buf [15:21:41]execute_script done [15:21:41]execute_script returns [15:21:41]free content buf [15:21:41]Sock 9.Close socket [15:21:41]Sock 9.Thread stoped [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [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:18]accept exits with 7 [15:24:18]New connection [15:24:18]New thread 3067043172 created [15:24:18]Thread 3066899812 joined [15:24:18]Waiting for new connection... [15:24:18] Sock 7.Parse request [15:24:18]Sock 7.Check first char [15:24:18]Sock 7.First char is OK [15:24:18]request: POST /json_proto HTTP/1.0 [15:24:18]Method: POST [15:24:18]URL: /json_proto [15:24:18]Method is POST - this is cgi request [15:24:18]url: /json_proto [15:24:18]query_string will be loaded in cgi processing [15:24:18]execute_cgi json_proto POST (null) [15:24:18]execute_cgi path=json_proto method=POST [15:24:18]POST find Content-Length [15:24:18]Host: 172.17.51.3:8080 [15:24:18]Content-Length: 682 [15:24:18]Content-Type: application/json [15:24:18] [15:24:18]POST finish read [15:24:18]Found Content-Length = 682 [15:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:18]execute_script... [15:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:18]POST & json_proto [15:24:18]process_json_proto [15:24:18]json parsed OK: [15:24:18]protocol is kg_v1.0 [15:24:18]action value=close_receipt [15:24:18]process_action close_receipt [15:24:18]cmd_close_receipt [15:24:18]MH_GetDate [15:24:18]Write to MH i2c: F0 00 00 74 59 BC [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: F0 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: F0 09 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: F0 09 00 74 59 00 29 15 19 67 04 C1 95 66 43 [15:24:18]GetLastDocTimeStamp 1729696904 [15:24:18]current date 1729697065 [15:24:18]FM_GetShiftState [15:24:18]SAM_PROTO_GetShiftState [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 13 01 00 [15:24:18]Write to MH i2c: E2 08 00 75 59 80 13 01 00 00 00 00 00 4B [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:19]Read from MH i2c: E2 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: E2 0E 00 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: E2 0E 00 75 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 05 [15:24:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:24:19]wFMCommunicate OK [15:24:19]SAM_PROTO_GetShiftState done [15:24:19]FM_GetShiftState done [15:24:19]opened in 1729643755 [15:24:19]opened+sec_in_day 1729730155 [15:24:19]quantity*price = 150032 [15:24:19]sum+1 = 150033 [15:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 151 23.10.2024 15:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31207 ФПД: 8458582518934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152425&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31207&fm=8458582518934&tin=02508201610067®Number=0000000000186857&sum=150000 [15:24:20]StoreToDocumentArchive [15:24:20]shift 117 fd 31207 [15:24:20]save to /storage/0117/doc_00031207 [15:24:20]save last doc name /storage/0117/doc_00031207 to /storage/kkm_last_doc_name [15:24:20]save OK [15:24:20]Clear old archive folders... [15:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:20]tlvbuf is 00D62C70 [15:24:20]SAM_PROTO_ClearQueue [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 09 00 00 [15:24:20]Write to MH i2c: E2 08 00 82 59 80 09 00 00 00 00 00 00 4D [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 82 59 00 90 00 4F [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_ClearQueue done [15:24:20]KKMCreateOFDPacket [15:24:20]OFDProtocolAddRootSTLVToBuf [15:24:20]FM_MakeSignedData [15:24:20]FM_MakeSignedData [15:24:20]SAM_PROTO_SignData [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 01 02 [15:24:20]Write to MH i2c: E2 08 00 83 59 80 0D 01 02 00 00 00 00 55 [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 83 59 00 90 00 50 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=255 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 29 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 79 00 00 35 04 06 00 07 [15:24:20]Write to MH i2c: E2 02 01 84 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 29 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 79 00 00 35 04 06 00 07 00 00 7B [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 84 59 00 90 00 51 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=10 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 02 02 05 B1 6A CE 6C 96 [15:24:20]Write to MH i2c: E2 0D 00 85 59 80 0D 02 02 05 00 B1 6A CE 6C 96 00 00 4D [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 85 59 00 90 00 52 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 03 02 [15:24:20]Write to MH i2c: E2 08 00 86 59 80 0D 03 02 00 00 00 00 5A [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0B 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0B 00 86 59 00 3B F0 89 1F 3E DC 3E 49 90 00 CF [15:24:20]RAPDU: 3B F0 89 1F 3E DC 3E 49 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_SignData done [15:24:20]FM_MakeSignedData done [15:24:20]CreateOFDProtocolMessage [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 11 00 00 [15:24:20]Write to MH i2c: E2 08 00 87 59 80 11 00 00 00 00 00 00 5A [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 17 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 17 00 87 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [15:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:24:20]wFMCommunicate OK [15:24:20]CreateOFDProtocolMessage done [15:24:20]OFDSenderStorePacket 31207 [15:24:20]StoreOFDPacket docnum=31207 [15:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 58 43 07 01 F9 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 29 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 79 00 00 35 04 06 00 07 B1 6A CE 6C 96 3B F0 89 1F 3E DC 3E 49 [15:24:20]CheckFolder [15:24:20]dirname=/storage/ofd_packets [15:24:20]CheckFolder done [15:24:20]ProducePacketName [15:24:20]name=ofd_packets/00031207 [15:24:20]NVStorageSaveData ofd_packets/00031207 [15:24:20]File name is /storage/ofd_packets/00031207 [15:24:20]Write 301 bytes [15:24:20]NVStorageSaveData done [15:24:20]OFDSenderStorePacket done [15:24:20]KKMCreateOFDPacket done [15:24:20]NVStorageSaveData kkm_last_timestamp [15:24:20]File name is /storage/kkm_last_timestamp [15:24:20]Write 4 bytes [15:24:20]NVStorageSaveData done [15:24:20]ExternCall_PrintAddStr [15:24:20]wPrintStart [15:24:20]Write to MH i2c: 01 00 00 88 59 E1 [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: 01 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: 01 07 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: 01 07 00 88 59 00 00 00 00 00 FF 0F F6 [15:24:20]RasterBufferAndPrint [15:24:20]line Счет N : (1)343653 [15:24:20]line ИНН: 02508201610067 [15:24:20]line Контрольно-Кассовый Чек [15:24:20]line ПРОДАЖА [15:24:20]line ТРК (МРК, ГНК) : 42 [15:24:20]line Товар: 2710124500 [15:24:20]line Аи-95-К-3 [15:24:20]line 20.220 * 74.20 [15:24:20]line = 1500.32 [15:24:20]line НДС 12% НСП 1% [15:24:20]line > о реализуемом товаре [15:24:20]line ОКРУГЛЕНИЕ: -0.32 [15:24:20]line ИТОГО: 1500.00 [15:24:20]line Внесено: 1500.00 [15:24:20]line СДАЧА: 0.00 [15:24:20]line НСП 1% : 13.28 [15:24:20]line НДС 12% : 159.33 [15:24:20]line Наличными: 1500.00 [15:24:20]line Безнал.: 0.00 [15:24:20]line Место: АЗС № 78 "Партнер Нефть" [15:24:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:24:20]line СНО: Общий режим [15:24:20]line Чек 151 23.10.2024 15:24 [15:24:20]line Смена: 117 ФФД: 1.0 [15:24:20]line ЗНМ: 0300000137 [15:24:20]line РНМ: 0000000000186857 [15:24:20]line Версия ККМ: v1.0 [15:24:20]line ФМ: 0000000002094219 [15:24:20]line ФД: 31207 [15:24:20]line ФПД: 8458582518934 [15:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152425&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31207&fm=8458582518934&tin=02508201610067®Number=0000000000186857&sum=150000 [15:24:21]OFD Sender: Processing packet 31207 [packets to send 11, broken 10] [15:24:21]ProducePacketName [15:24:21]name=ofd_packets/00031207 [15:24:21]OFD Sender: To server: pG, [15:24:21]CommunicateWithHost lk.salyk.kg:30040 [15:24:21]ConnectInit lk.salyk.kg [15:24:21]written 0, free lines is 4095 [15:24:21]Connected sock=10 [15:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 58 43 07 01 F9 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 29 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 79 00 00 35 04 06 00 07 B1 6A CE 6C 96 3B F0 89 1F 3E DC 3E 49 [15:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FB A2 47 00 C1 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 79 00 00 F4 03 04 00 A3 BF 18 67 B6 04 01 00 00 6A 1E CE 08 BB 58 4A 55 [15:24:21]CommunicateWithHost err = 0 [15:24:21]CheckOFDResponse [15:24:21]1017 (14) - 77093643461234 [15:24:21]1041 (16) - 0000000002094219 [15:24:21]1040 (4) - 31207 [15:24:21]1012 (4) - 23.10.2024 09:19 [15:24:21]1206 (1) - 0 [15:24:21]OFD Sender: Remove packet 31207 [15:24:21]ProducePacketName [15:24:21]name=ofd_packets/00031207 [15:24:21]NVStorageDeleteData [15:24:21]Write to MH i2c: 01 00 00 B3 59 0C [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 B3 59 00 00 00 00 00 FE 0C 1D [15:24:21]RasterBufferAndPrint [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]written 0, free lines is 3334 [15:24:21]MH_Cut [15:24:21]Write to MH i2c: D1 01 00 BA 59 01 E5 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: D1 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: D1 01 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: D1 01 00 BA 59 00 E4 [15:24:21]Write to MH i2c: 01 00 00 BB 59 14 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]OFD Sender: No OFD packet to send [15:24:22]*** Cut start [15:24:22]*** Partial cut [15:24:22]*** CUTSNS_PIN = 1 [15:24:22]*** CUTSNS_PIN = 0 [15:24:22]*** Brake cut motor [15:24:22]Read from MH i2c: 01 [15:24:22]MH_I2C_Read... [15:24:22]*** Stop cut motor [15:24:22]*** Cut end [15:24:22]Read from MH i2c: 01 07 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: 01 07 00 BB 59 00 00 00 00 00 FF 0F 29 [15:24:22]process_action close_receipt done [15:24:22]requested_data is exist [15:24:22]produce_requested_data [15:24:22]requested_item fm.sn is exist - process it [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 11 00 00 [15:24:22]Write to MH i2c: E2 08 00 BC 59 80 11 00 00 00 00 00 00 8F [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 17 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 17 00 BC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [15:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:24:22]wFMCommunicate OK [15:24:22]requested_item fd.num is exist - process it [15:24:22]SAM_PROTO_GetFieldsCounters [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 00 00 [15:24:22]Write to MH i2c: E2 08 00 BD 59 80 13 00 00 00 00 00 00 92 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 62 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 62 00 BD 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetFieldsCounters done [15:24:22]requested_item shift.num is exist - process it [15:24:22]requested_item shift.opened is exist - process it [15:24:22]req_shift_opened [15:24:22]FM_GetShiftState [15:24:22]SAM_PROTO_GetShiftState [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 01 00 [15:24:22]Write to MH i2c: E2 08 00 BE 59 80 13 01 00 00 00 00 00 94 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0E 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 0E 00 BE 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4E [15:24:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:24:23]wFMCommunicate OK [15:24:23]SAM_PROTO_GetShiftState done [15:24:23]FM_GetShiftState done [15:24:23]req_shift_opened done [15:24:23]requested_item shift.open_date is exist - process it [15:24:23]req_shift_open_date [15:24:23]req_shift_open_date done [15:24:23]produce_requested_data done [15:24:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31207,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:24:23]process_action_free close_receipt [15:24:23]json_value_free [15:24:23]json_value_free done [15:24:23]process_json_proto returns [15:24:23]Send response to host [15:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31207,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:24:23]free response buf [15:24:23]execute_script done [15:24:23]execute_script returns [15:24:23]free content buf [15:24:23]Sock 7.Close socket [15:24:23]Sock 7.Thread stoped [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:47]accept exits with 9 [15:24:47]New connection [15:24:47]New thread 3066899812 created [15:24:47]Thread 3067043172 joined [15:24:47]Waiting for new connection... [15:24:47] Sock 9.Parse request [15:24:47]Sock 9.Check first char [15:24:47]Sock 9.First char is OK [15:24:47]request: POST /json_proto HTTP/1.0 [15:24:47]Method: POST [15:24:47]URL: /json_proto [15:24:47]Method is POST - this is cgi request [15:24:47]url: /json_proto [15:24:47]query_string will be loaded in cgi processing [15:24:47]execute_cgi json_proto POST (null) [15:24:47]execute_cgi path=json_proto method=POST [15:24:47]POST find Content-Length [15:24:47]Host: 172.17.51.3:8080 [15:24:47]Content-Length: 840 [15:24:47]Content-Type: application/json [15:24:47] [15:24:47]POST finish read [15:24:47]Found Content-Length = 840 [15:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:47]execute_script... [15:24:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:47]POST & json_proto [15:24:47]process_json_proto [15:24:47]json parsed OK: [15:24:47]protocol is kg_v1.0 [15:24:47]action value=close_receipt [15:24:47]process_action close_receipt [15:24:47]cmd_close_receipt [15:24:47]MH_GetDate [15:24:47]Write to MH i2c: F0 00 00 BF 59 07 [15:24:47]Write i2c OK [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: F0 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: F0 09 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: F0 09 00 BF 59 00 46 15 19 67 04 C1 95 66 AB [15:24:47]GetLastDocTimeStamp 1729697065 [15:24:47]current date 1729697094 [15:24:47]FM_GetShiftState [15:24:47]SAM_PROTO_GetShiftState [15:24:47]wFMCommunicate request_size=4 [15:24:47]MH_SAM_APDU [15:24:47]CAPDU: 80 13 01 00 [15:24:47]Write to MH i2c: E2 08 00 C0 59 80 13 01 00 00 00 00 00 96 [15:24:47]Write i2c OK [15:24:47]MH_I2C_Read... [15:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:47]Read from MH i2c: E2 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 0E 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 0E 00 C0 59 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 50 [15:24:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:24:47]wFMCommunicate OK [15:24:47]SAM_PROTO_GetShiftState done [15:24:47]FM_GetShiftState done [15:24:47]opened in 1729643755 [15:24:47]opened+sec_in_day 1729730155 [15:24:47]quantity*price = 50010 [15:24:47]sum+1 = 50012 [15:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 152 23.10.2024 15:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31208 ФПД: 51115666412823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152454&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31208&fm=51115666412823&tin=02508201610067®Number=0000000000186857&sum=50011 [15:24:48]StoreToDocumentArchive [15:24:48]shift 117 fd 31208 [15:24:48]save to /storage/0117/doc_00031208 [15:24:48]save last doc name /storage/0117/doc_00031208 to /storage/kkm_last_doc_name [15:24:48]save OK [15:24:48]Clear old archive folders... [15:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:48]tlvbuf is 00CEB6C0 [15:24:48]SAM_PROTO_ClearQueue [15:24:48]wFMCommunicate request_size=4 [15:24:48]MH_SAM_APDU [15:24:48]CAPDU: 80 09 00 00 [15:24:48]Write to MH i2c: E2 08 00 CD 59 80 09 00 00 00 00 00 00 98 [15:24:48]Write i2c OK [15:24:48]MH_I2C_Read... [15:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:48]Read from MH i2c: E2 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 03 00 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 03 00 CD 59 00 90 00 9A [15:24:48]RAPDU: 90 00 [15:24:48]wFMCommunicate OK [15:24:48]SAM_PROTO_ClearQueue done [15:24:48]KKMCreateOFDPacket [15:24:48]OFDProtocolAddRootSTLVToBuf [15:24:48]FM_MakeSignedData [15:24:48]FM_MakeSignedData [15:24:48]SAM_PROTO_SignData [15:24:48]wFMCommunicate request_size=4 [15:24:48]MH_SAM_APDU [15:24:48]CAPDU: 80 0D 01 02 [15:24:48]Write to MH i2c: E2 08 00 CE 59 80 0D 01 02 00 00 00 00 A0 [15:24:48]Write i2c OK [15:24:48]MH_I2C_Read... [15:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:48]Read from MH i2c: E2 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 03 00 [15:24:48]MH_I2C_Read... [15:24:48]Read from MH i2c: E2 03 00 CE 59 00 90 00 9B [15:24:48]RAPDU: 90 00 [15:24:48]wFMCommunicate OK [15:24:48]wFMCommunicate request_size=255 [15:24:48]MH_SAM_APDU [15:24:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 46 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 79 00 00 35 04 06 00 2E [15:24:48]Write to MH i2c: E2 02 01 CF 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 46 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 79 00 00 35 04 06 00 2E 00 00 97 [15:24:48]Write i2c OK [15:24:48]MH_I2C_Read... [15:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:49]Read from MH i2c: E2 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 03 00 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 03 00 CF 59 00 90 00 9C [15:24:49]RAPDU: 90 00 [15:24:49]wFMCommunicate OK [15:24:49]wFMCommunicate request_size=10 [15:24:49]MH_SAM_APDU [15:24:49]CAPDU: 80 0D 02 02 05 7D 4B 23 95 17 [15:24:49]Write to MH i2c: E2 0D 00 D0 59 80 0D 02 02 05 00 7D 4B 23 95 17 00 00 44 [15:24:49]Write i2c OK [15:24:49]MH_I2C_Read... [15:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:49]Read from MH i2c: E2 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 03 00 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 03 00 D0 59 00 90 00 9D [15:24:49]RAPDU: 90 00 [15:24:49]wFMCommunicate OK [15:24:49]wFMCommunicate request_size=4 [15:24:49]MH_SAM_APDU [15:24:49]CAPDU: 80 0D 03 02 [15:24:49]Write to MH i2c: E2 08 00 D1 59 80 0D 03 02 00 00 00 00 A5 [15:24:49]Write i2c OK [15:24:49]MH_I2C_Read... [15:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:49]Read from MH i2c: E2 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 0B 00 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 0B 00 D1 59 00 FC 61 23 B6 DE 0F FD A9 90 00 6F [15:24:49]RAPDU: FC 61 23 B6 DE 0F FD A9 90 00 [15:24:49]wFMCommunicate OK [15:24:49]SAM_PROTO_SignData done [15:24:49]FM_MakeSignedData done [15:24:49]CreateOFDProtocolMessage [15:24:49]wFMCommunicate request_size=4 [15:24:49]MH_SAM_APDU [15:24:49]CAPDU: 80 11 00 00 [15:24:49]Write to MH i2c: E2 08 00 D2 59 80 11 00 00 00 00 00 00 A5 [15:24:49]Write i2c OK [15:24:49]MH_I2C_Read... [15:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:49]Read from MH i2c: E2 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 17 00 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: E2 17 00 D2 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [15:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:24:49]wFMCommunicate OK [15:24:49]CreateOFDProtocolMessage done [15:24:49]OFDSenderStorePacket 31208 [15:24:49]StoreOFDPacket docnum=31208 [15:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A F4 07 01 7A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 46 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 79 00 00 35 04 06 00 2E 7D 4B 23 95 17 FC 61 23 B6 DE 0F FD A9 [15:24:49]CheckFolder [15:24:49]dirname=/storage/ofd_packets [15:24:49]CheckFolder done [15:24:49]ProducePacketName [15:24:49]name=ofd_packets/00031208 [15:24:49]NVStorageSaveData ofd_packets/00031208 [15:24:49]File name is /storage/ofd_packets/00031208 [15:24:49]Write 301 bytes [15:24:49]NVStorageSaveData done [15:24:49]OFDSenderStorePacket done [15:24:49]KKMCreateOFDPacket done [15:24:49]NVStorageSaveData kkm_last_timestamp [15:24:49]File name is /storage/kkm_last_timestamp [15:24:49]Write 4 bytes [15:24:49]NVStorageSaveData done [15:24:49]ExternCall_PrintAddStr [15:24:49]wPrintStart [15:24:49]Write to MH i2c: 01 00 00 D3 59 2C [15:24:49]Write i2c OK [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: 01 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: 01 07 00 [15:24:49]MH_I2C_Read... [15:24:49]Read from MH i2c: 01 07 00 D3 59 00 00 00 00 00 FF 0F 41 [15:24:49]RasterBufferAndPrint [15:24:49]line Счет N : (1)343654 [15:24:49]line ИНН: 02508201610067 [15:24:49]line Контрольно-Кассовый Чек [15:24:49]line ПРОДАЖА [15:24:49]line ТРК (МРК, ГНК) : 42 [15:24:49]line Товар: 2710124500 [15:24:49]line Аи-95-К-3 [15:24:49]line 6.740 * 74.20 [15:24:49]line = 500.11 [15:24:49]line НДС 12% НСП 1% [15:24:49]line > о реализуемом товаре [15:24:49]line ИТОГО: 500.11 [15:24:49]line НСП 1% : 4.43 [15:24:49]line НДС 12% : 53.11 [15:24:49]line Наличными: 0.00 [15:24:49]line Безнал.: 500.11 [15:24:49]line Место: АЗС № 78 "Партнер Нефть" [15:24:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:24:49]line СНО: Общий режим [15:24:49]line Чек 152 23.10.2024 15:24 [15:24:49]line Смена: 117 ФФД: 1.0 [15:24:49]line ЗНМ: 0300000137 [15:24:49]line РНМ: 0000000000186857 [15:24:49]line Версия ККМ: v1.0 [15:24:49]line Платежная система: АКБ Кыргызстан [15:24:49]line ФМ: 0000000002094219 [15:24:49]line ФД: 31208 [15:24:49]line ФПД: 51115666412823 [15:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152454&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31208&fm=51115666412823&tin=02508201610067®Number=0000000000186857&sum=50011 [15:24:49]OFD Sender: Processing packet 31208 [packets to send 11, broken 10] [15:24:49]ProducePacketName [15:24:49]name=ofd_packets/00031208 [15:24:49]OFD Sender: To server: pG, [15:24:49]CommunicateWithHost lk.salyk.kg:30040 [15:24:49]ConnectInit lk.salyk.kg [15:24:49]written 0, free lines is 4095 [15:24:49]Connected sock=10 [15:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A F4 07 01 7A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 46 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 79 00 00 35 04 06 00 2E 7D 4B 23 95 17 FC 61 23 B6 DE 0F FD A9 [15:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 62 85 47 00 91 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 32 30 39 34 32 31 39 10 04 04 00 E8 79 00 00 F4 03 04 00 C0 BF 18 67 B6 04 01 00 00 55 33 BB 6B 28 A9 C7 1A [15:24:49]CommunicateWithHost err = 0 [15:24:49]CheckOFDResponse [15:24:49]1017 (14) - 77093643461234 [15:24:49]1041 (16) - 0000000002094219 [15:24:49]1040 (4) - 31208 [15:24:49]1012 (4) - 23.10.2024 09:20 [15:24:49]1206 (1) - 0 [15:24:49]OFD Sender: Remove packet 31208 [15:24:49]ProducePacketName [15:24:49]name=ofd_packets/00031208 [15:24:49]NVStorageDeleteData [15:24:50]Write to MH i2c: 01 00 00 FD 59 56 [15:24:50]Write i2c OK [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: 01 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: 01 07 00 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: 01 07 00 FD 59 00 00 00 00 00 04 0D 6E [15:24:50]RasterBufferAndPrint [15:24:50]line [15:24:50]line [15:24:50]line [15:24:50]line [15:24:50]line [15:24:50]written 0, free lines is 3339 [15:24:50]MH_Cut [15:24:50]Write to MH i2c: D1 01 00 04 5A 01 30 [15:24:50]Write i2c OK [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: D1 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: D1 01 00 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: D1 01 00 04 5A 00 2F [15:24:50]Write to MH i2c: 01 00 00 05 5A 5F [15:24:50]Write i2c OK [15:24:50]MH_I2C_Read... [15:24:50]OFD Sender: No OFD packet to send [15:24:50]*** Cut start [15:24:50]*** Partial cut [15:24:50]*** CUTSNS_PIN = 1 [15:24:50]*** CUTSNS_PIN = 0 [15:24:50]*** Brake cut motor [15:24:51]Read from MH i2c: 01 [15:24:51]MH_I2C_Read... [15:24:51]*** Stop cut motor [15:24:51]*** Cut end [15:24:51]Read from MH i2c: 01 07 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: 01 07 00 05 5A 00 00 00 00 00 FF 0F 74 [15:24:51]process_action close_receipt done [15:24:51]requested_data is exist [15:24:51]produce_requested_data [15:24:51]requested_item fm.sn is exist - process it [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 11 00 00 [15:24:51]Write to MH i2c: E2 08 00 06 5A 80 11 00 00 00 00 00 00 DA [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 17 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 17 00 06 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [15:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:24:51]wFMCommunicate OK [15:24:51]requested_item fd.num is exist - process it [15:24:51]SAM_PROTO_GetFieldsCounters [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 13 00 00 [15:24:51]Write to MH i2c: E2 08 00 07 5A 80 13 00 00 00 00 00 00 DD [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 62 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 62 00 07 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [15:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:51]wFMCommunicate OK [15:24:51]SAM_PROTO_GetFieldsCounters done [15:24:51]requested_item shift.num is exist - process it [15:24:51]requested_item shift.opened is exist - process it [15:24:51]req_shift_opened [15:24:51]FM_GetShiftState [15:24:51]SAM_PROTO_GetShiftState [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 13 01 00 [15:24:51]Write to MH i2c: E2 08 00 08 5A 80 13 01 00 00 00 00 00 DF [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 0E 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 0E 00 08 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 99 [15:24:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:24:51]wFMCommunicate OK [15:24:51]SAM_PROTO_GetShiftState done [15:24:51]FM_GetShiftState done [15:24:51]req_shift_opened done [15:24:51]requested_item shift.open_date is exist - process it [15:24:51]req_shift_open_date [15:24:51]req_shift_open_date done [15:24:51]produce_requested_data done [15:24:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31208,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:24:51]process_action_free close_receipt [15:24:51]json_value_free [15:24:51]json_value_free done [15:24:51]process_json_proto returns [15:24:51]Send response to host [15:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31208,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:24:51]free response buf [15:24:51]execute_script done [15:24:51]execute_script returns [15:24:51]free content buf [15:24:51]Sock 9.Close socket [15:24:51]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]accept exits with 7 [15:26:35]New connection [15:26:35]New thread 3067043172 created [15:26:35]Thread 3066899812 joined [15:26:35]Waiting for new connection... [15:26:35] Sock 7.Parse request [15:26:35]Sock 7.Check first char [15:26:35]Sock 7.First char is OK [15:26:35]request: POST /json_proto HTTP/1.0 [15:26:35]Method: POST [15:26:35]URL: /json_proto [15:26:35]Method is POST - this is cgi request [15:26:35]url: /json_proto [15:26:35]query_string will be loaded in cgi processing [15:26:35]execute_cgi json_proto POST (null) [15:26:35]execute_cgi path=json_proto method=POST [15:26:35]POST find Content-Length [15:26:35]Host: 172.17.51.3:8080 [15:26:35]Content-Length: 677 [15:26:35]Content-Type: application/json [15:26:35] [15:26:35]POST finish read [15:26:35]Found Content-Length = 677 [15:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:35]execute_script... [15:26:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:35]POST & json_proto [15:26:35]process_json_proto [15:26:35]json parsed OK: [15:26:35]protocol is kg_v1.0 [15:26:35]action value=close_receipt [15:26:35]process_action close_receipt [15:26:35]cmd_close_receipt [15:26:35]MH_GetDate [15:26:35]Write to MH i2c: F0 00 00 09 5A 52 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 09 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 09 00 09 5A 00 B1 15 19 67 04 C1 95 66 61 [15:26:35]GetLastDocTimeStamp 1729697094 [15:26:35]current date 1729697201 [15:26:35]FM_GetShiftState [15:26:35]SAM_PROTO_GetShiftState [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 13 01 00 [15:26:35]Write to MH i2c: E2 08 00 0A 5A 80 13 01 00 00 00 00 00 E1 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0E 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0E 00 0A 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9B [15:26:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:26:35]wFMCommunicate OK [15:26:35]SAM_PROTO_GetShiftState done [15:26:35]FM_GetShiftState done [15:26:35]opened in 1729643755 [15:26:35]opened+sec_in_day 1729730155 [15:26:35]quantity*price = 20003 [15:26:35]sum+1 = 20004 [15:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 153 23.10.2024 15:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31209 ФПД: 277916167243355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152641&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31209&fm=277916167243355&tin=02508201610067®Number=0000000000186857&sum=20000 [15:26:36]StoreToDocumentArchive [15:26:36]shift 117 fd 31209 [15:26:36]save to /storage/0117/doc_00031209 [15:26:36]save last doc name /storage/0117/doc_00031209 to /storage/kkm_last_doc_name [15:26:36]save OK [15:26:36]Clear old archive folders... [15:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:36]tlvbuf is 00CD4220 [15:26:36]SAM_PROTO_ClearQueue [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 09 00 00 [15:26:36]Write to MH i2c: E2 08 00 17 5A 80 09 00 00 00 00 00 00 E3 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 17 5A 00 90 00 E5 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_ClearQueue done [15:26:36]KKMCreateOFDPacket [15:26:36]OFDProtocolAddRootSTLVToBuf [15:26:36]FM_MakeSignedData [15:26:36]FM_MakeSignedData [15:26:36]SAM_PROTO_SignData [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 01 02 [15:26:36]Write to MH i2c: E2 08 00 18 5A 80 0D 01 02 00 00 00 00 EB [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 18 5A 00 90 00 E6 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]wFMCommunicate request_size=255 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B1 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 79 00 00 35 04 06 00 FC [15:26:36]Write to MH i2c: E2 02 01 19 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B1 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 79 00 00 35 04 06 00 FC 00 00 F0 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 19 5A 00 90 00 E7 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]wFMCommunicate request_size=10 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 02 02 05 C3 66 6D 06 5B [15:26:36]Write to MH i2c: E2 0D 00 1A 5A 80 0D 02 02 05 00 C3 66 6D 06 5B 00 00 EF [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 1A 5A 00 90 00 E8 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 03 02 [15:26:36]Write to MH i2c: E2 08 00 1B 5A 80 0D 03 02 00 00 00 00 F0 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0B 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0B 00 1B 5A 00 9F 6F 08 55 01 B8 B2 1A 90 00 E1 [15:26:36]RAPDU: 9F 6F 08 55 01 B8 B2 1A 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_SignData done [15:26:36]FM_MakeSignedData done [15:26:36]CreateOFDProtocolMessage [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 11 00 00 [15:26:36]Write to MH i2c: E2 08 00 1C 5A 80 11 00 00 00 00 00 00 F0 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 1C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [15:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:36]wFMCommunicate OK [15:26:36]CreateOFDProtocolMessage done [15:26:36]OFDSenderStorePacket 31209 [15:26:36]StoreOFDPacket docnum=31209 [15:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 4F 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B1 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 79 00 00 35 04 06 00 FC C3 66 6D 06 5B 9F 6F 08 55 01 B8 B2 1A [15:26:36]CheckFolder [15:26:36]dirname=/storage/ofd_packets [15:26:36]CheckFolder done [15:26:36]ProducePacketName [15:26:36]name=ofd_packets/00031209 [15:26:36]NVStorageSaveData ofd_packets/00031209 [15:26:36]File name is /storage/ofd_packets/00031209 [15:26:36]Write 301 bytes [15:26:36]NVStorageSaveData done [15:26:36]OFDSenderStorePacket done [15:26:36]KKMCreateOFDPacket done [15:26:36]NVStorageSaveData kkm_last_timestamp [15:26:36]File name is /storage/kkm_last_timestamp [15:26:36]Write 4 bytes [15:26:36]NVStorageSaveData done [15:26:36]ExternCall_PrintAddStr [15:26:36]wPrintStart [15:26:36]Write to MH i2c: 01 00 00 1D 5A 77 [15:26:36]OFD Sender: Processing packet 31209 [packets to send 11, broken 10] [15:26:36]ProducePacketName [15:26:36]name=ofd_packets/00031209 [15:26:36]OFD Sender: To server: pG, [15:26:36]CommunicateWithHost lk.salyk.kg:30040 [15:26:36]ConnectInit lk.salyk.kg [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 1D 5A 00 00 00 00 00 FF 0F 8C [15:26:36]RasterBufferAndPrint [15:26:36]line Счет N : (1)343655 [15:26:36]line ИНН: 02508201610067 [15:26:36]line Контрольно-Кассовый Чек [15:26:36]line ПРОДАЖА [15:26:36]line ТРК (МРК, ГНК) : 53 [15:26:36]line Товар: 2710124130 [15:26:36]line Аи-92-К-2 [15:26:36]line 2.990 * 66.90 [15:26:36]line = 200.03 [15:26:36]line НДС 12% НСП 1% [15:26:36]line > о реализуемом товаре [15:26:36]line ОКРУГЛЕНИЕ: -0.03 [15:26:36]line ИТОГО: 200.00 [15:26:36]line Внесено: 200.00 [15:26:36]line СДАЧА: 0.00 [15:26:36]line НСП 1% : 1.77 [15:26:36]line НДС 12% : 21.24 [15:26:36]line Наличными: 200.00 [15:26:36]line Безнал.: 0.00 [15:26:36]line Место: АЗС № 78 "Партнер Нефть" [15:26:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:26:36]line СНО: Общий режим [15:26:36]line Чек 153 23.10.2024 15:26 [15:26:36]line Смена: 117 ФФД: 1.0 [15:26:36]line ЗНМ: 0300000137 [15:26:37]line РНМ: 0000000000186857 [15:26:37]line Версия ККМ: v1.0 [15:26:37]line ФМ: 0000000002094219 [15:26:37]line ФД: 31209 [15:26:37]line ФПД: 277916167243355 [15:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152641&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31209&fm=277916167243355&tin=02508201610067®Number=0000000000186857&sum=20000 [15:26:37]Connected sock=11 [15:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 4F 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B1 15 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 79 00 00 35 04 06 00 FC C3 66 6D 06 5B 9F 6F 08 55 01 B8 B2 1A [15:26:37]written 0, free lines is 4095 [15:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 25 47 00 57 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 32 30 39 34 32 31 39 10 04 04 00 E9 79 00 00 F4 03 04 00 2B C0 18 67 B6 04 01 00 00 6C 43 22 62 CF 60 57 F6 [15:26:37]CommunicateWithHost err = 0 [15:26:37]CheckOFDResponse [15:26:37]1017 (14) - 77093643461234 [15:26:37]1041 (16) - 0000000002094219 [15:26:37]1040 (4) - 31209 [15:26:37]1012 (4) - 23.10.2024 09:21 [15:26:37]1206 (1) - 0 [15:26:37]OFD Sender: Remove packet 31209 [15:26:37]ProducePacketName [15:26:37]name=ofd_packets/00031209 [15:26:37]NVStorageDeleteData [15:26:37]Write to MH i2c: 01 00 00 48 5A A2 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 48 5A 00 00 00 00 00 ED 0C A2 [15:26:37]RasterBufferAndPrint [15:26:37]line [15:26:37]line [15:26:37]line [15:26:37]line [15:26:37]line [15:26:37]written 0, free lines is 3315 [15:26:37]MH_Cut [15:26:37]Write to MH i2c: D1 01 00 4F 5A 01 7B [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D1 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D1 01 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D1 01 00 4F 5A 00 7A [15:26:37]Write to MH i2c: 01 00 00 50 5A AA [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]OFD Sender: No OFD packet to send [15:26:38]*** Cut start [15:26:38]*** Partial cut [15:26:38]*** CUTSNS_PIN = 1 [15:26:38]*** CUTSNS_PIN = 0 [15:26:38]*** Brake cut motor [15:26:38]Read from MH i2c: 01 [15:26:38]MH_I2C_Read... [15:26:38]*** Stop cut motor [15:26:38]*** Cut end [15:26:38]Read from MH i2c: 01 07 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 50 5A 00 00 00 00 00 FF 0F BF [15:26:38]process_action close_receipt done [15:26:38]requested_data is exist [15:26:38]produce_requested_data [15:26:38]requested_item fm.sn is exist - process it [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 11 00 00 [15:26:38]Write to MH i2c: E2 08 00 51 5A 80 11 00 00 00 00 00 00 25 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:38]Read from MH i2c: E2 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: E2 17 00 51 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 73 [15:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:38]wFMCommunicate OK [15:26:38]requested_item fd.num is exist - process it [15:26:38]SAM_PROTO_GetFieldsCounters [15:26:38]wFMCommunicate request_size=4 [15:26:38]MH_SAM_APDU [15:26:38]CAPDU: 80 13 00 00 [15:26:38]Write to MH i2c: E2 08 00 52 5A 80 13 00 00 00 00 00 00 28 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 62 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 62 00 52 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [15:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:39]wFMCommunicate OK [15:26:39]SAM_PROTO_GetFieldsCounters done [15:26:39]requested_item shift.num is exist - process it [15:26:39]requested_item shift.opened is exist - process it [15:26:39]req_shift_opened [15:26:39]FM_GetShiftState [15:26:39]SAM_PROTO_GetShiftState [15:26:39]wFMCommunicate request_size=4 [15:26:39]MH_SAM_APDU [15:26:39]CAPDU: 80 13 01 00 [15:26:39]Write to MH i2c: E2 08 00 53 5A 80 13 01 00 00 00 00 00 2A [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 53 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E4 [15:26:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:26:39]wFMCommunicate OK [15:26:39]SAM_PROTO_GetShiftState done [15:26:39]FM_GetShiftState done [15:26:39]req_shift_opened done [15:26:39]requested_item shift.open_date is exist - process it [15:26:39]req_shift_open_date [15:26:39]req_shift_open_date done [15:26:39]produce_requested_data done [15:26:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31209,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:26:39]process_action_free close_receipt [15:26:39]json_value_free [15:26:39]json_value_free done [15:26:39]process_json_proto returns [15:26:39]Send response to host [15:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31209,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:26:39]free response buf [15:26:39]execute_script done [15:26:39]execute_script returns [15:26:39]free content buf [15:26:39]Sock 7.Close socket [15:26:39]Sock 7.Thread stoped [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:56]accept exits with 9 [15:38:56]New connection [15:38:56]New thread 3066899812 created [15:38:56]Thread 3067043172 joined [15:38:56]Waiting for new connection... [15:38:56] Sock 9.Parse request [15:38:56]Sock 9.Check first char [15:38:56]Sock 9.First char is OK [15:38:56]request: POST /json_proto HTTP/1.0 [15:38:56]Method: POST [15:38:56]URL: /json_proto [15:38:56]Method is POST - this is cgi request [15:38:56]url: /json_proto [15:38:56]query_string will be loaded in cgi processing [15:38:56]execute_cgi json_proto POST (null) [15:38:56]execute_cgi path=json_proto method=POST [15:38:56]POST find Content-Length [15:38:56]Host: 172.17.51.3:8080 [15:38:56]Content-Length: 677 [15:38:56]Content-Type: application/json [15:38:56] [15:38:56]POST finish read [15:38:56]Found Content-Length = 677 [15:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:56]execute_script... [15:38:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:56]POST & json_proto [15:38:56]process_json_proto [15:38:56]json parsed OK: [15:38:56]protocol is kg_v1.0 [15:38:56]action value=close_receipt [15:38:56]process_action close_receipt [15:38:56]cmd_close_receipt [15:38:56]MH_GetDate [15:38:56]Write to MH i2c: F0 00 00 54 5A 9D [15:38:56]Write i2c OK [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: F0 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: F0 09 00 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: F0 09 00 54 5A 00 97 18 19 67 04 C1 95 66 95 [15:38:56]GetLastDocTimeStamp 1729697201 [15:38:56]current date 1729697943 [15:38:56]FM_GetShiftState [15:38:56]SAM_PROTO_GetShiftState [15:38:56]wFMCommunicate request_size=4 [15:38:56]MH_SAM_APDU [15:38:56]CAPDU: 80 13 01 00 [15:38:56]Write to MH i2c: E2 08 00 55 5A 80 13 01 00 00 00 00 00 2C [15:38:56]Write i2c OK [15:38:56]MH_I2C_Read... [15:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:56]Read from MH i2c: E2 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 0E 00 [15:38:56]MH_I2C_Read... [15:38:56]Read from MH i2c: E2 0E 00 55 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E6 [15:38:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:38:56]wFMCommunicate OK [15:38:56]SAM_PROTO_GetShiftState done [15:38:56]FM_GetShiftState done [15:38:56]opened in 1729643755 [15:38:56]opened+sec_in_day 1729730155 [15:38:56]quantity*price = 30038 [15:38:56]sum+1 = 30039 [15:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 154 23.10.2024 15:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31210 ФПД: 168412206272410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31210&fm=168412206272410&tin=02508201610067®Number=0000000000186857&sum=30000 [15:38:57]StoreToDocumentArchive [15:38:57]shift 117 fd 31210 [15:38:57]save to /storage/0117/doc_00031210 [15:38:57]save last doc name /storage/0117/doc_00031210 to /storage/kkm_last_doc_name [15:38:57]save OK [15:38:57]Clear old archive folders... [15:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:57]tlvbuf is 00E65A00 [15:38:57]SAM_PROTO_ClearQueue [15:38:57]wFMCommunicate request_size=4 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 09 00 00 [15:38:57]Write to MH i2c: E2 08 00 62 5A 80 09 00 00 00 00 00 00 2E [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 62 5A 00 90 00 30 [15:38:57]RAPDU: 90 00 [15:38:57]wFMCommunicate OK [15:38:57]SAM_PROTO_ClearQueue done [15:38:57]KKMCreateOFDPacket [15:38:57]OFDProtocolAddRootSTLVToBuf [15:38:57]FM_MakeSignedData [15:38:57]FM_MakeSignedData [15:38:57]SAM_PROTO_SignData [15:38:57]wFMCommunicate request_size=4 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 0D 01 02 [15:38:57]Write to MH i2c: E2 08 00 63 5A 80 0D 01 02 00 00 00 00 36 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 63 5A 00 90 00 31 [15:38:57]RAPDU: 90 00 [15:38:57]wFMCommunicate OK [15:38:57]wFMCommunicate request_size=255 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 97 18 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 79 00 00 35 04 06 00 99 [15:38:57]Write to MH i2c: E2 02 01 64 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 97 18 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 79 00 00 35 04 06 00 99 00 00 F5 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 64 5A 00 90 00 32 [15:38:57]RAPDU: 90 00 [15:38:57]wFMCommunicate OK [15:38:57]wFMCommunicate request_size=10 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 0D 02 02 05 2B 85 BB 0F 9A [15:38:57]Write to MH i2c: E2 0D 00 65 5A 80 0D 02 02 05 00 2B 85 BB 0F 9A 00 00 57 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 03 00 65 5A 00 90 00 33 [15:38:57]RAPDU: 90 00 [15:38:57]wFMCommunicate OK [15:38:57]wFMCommunicate request_size=4 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 0D 03 02 [15:38:57]Write to MH i2c: E2 08 00 66 5A 80 0D 03 02 00 00 00 00 3B [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 0B 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 0B 00 66 5A 00 4E 2E 9E 54 38 92 9D 1A 90 00 2B [15:38:57]RAPDU: 4E 2E 9E 54 38 92 9D 1A 90 00 [15:38:57]wFMCommunicate OK [15:38:57]SAM_PROTO_SignData done [15:38:57]FM_MakeSignedData done [15:38:57]CreateOFDProtocolMessage [15:38:57]wFMCommunicate request_size=4 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 11 00 00 [15:38:57]Write to MH i2c: E2 08 00 67 5A 80 11 00 00 00 00 00 00 3B [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 17 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 17 00 67 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [15:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:38:57]wFMCommunicate OK [15:38:57]CreateOFDProtocolMessage done [15:38:57]OFDSenderStorePacket 31210 [15:38:57]StoreOFDPacket docnum=31210 [15:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 60 07 01 AD 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 97 18 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 79 00 00 35 04 06 00 99 2B 85 BB 0F 9A 4E 2E 9E 54 38 92 9D 1A [15:38:57]CheckFolder [15:38:57]dirname=/storage/ofd_packets [15:38:57]CheckFolder done [15:38:57]ProducePacketName [15:38:57]name=ofd_packets/00031210 [15:38:57]NVStorageSaveData ofd_packets/00031210 [15:38:57]File name is /storage/ofd_packets/00031210 [15:38:57]Write 301 bytes [15:38:57]NVStorageSaveData done [15:38:57]OFDSenderStorePacket done [15:38:57]KKMCreateOFDPacket done [15:38:57]NVStorageSaveData kkm_last_timestamp [15:38:57]File name is /storage/kkm_last_timestamp [15:38:57]Write 4 bytes [15:38:57]NVStorageSaveData done [15:38:57]ExternCall_PrintAddStr [15:38:57]wPrintStart [15:38:57]Write to MH i2c: 01 00 00 68 5A C2 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: 01 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: 01 07 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: 01 07 00 68 5A 00 00 00 00 00 FF 0F D7 [15:38:57]RasterBufferAndPrint [15:38:57]line Счет N : (1)343656 [15:38:57]line ИНН: 02508201610067 [15:38:57]line Контрольно-Кассовый Чек [15:38:57]line ПРОДАЖА [15:38:57]line ТРК (МРК, ГНК) : 63 [15:38:57]line Товар: 2710124130 [15:38:57]line Аи-92-К-2 [15:38:57]line 4.490 * 66.90 [15:38:57]line = 300.38 [15:38:57]line НДС 12% НСП 1% [15:38:57]line > о реализуемом товаре [15:38:57]line ОКРУГЛЕНИЕ: -0.38 [15:38:57]line ИТОГО: 300.00 [15:38:57]line Внесено: 300.00 [15:38:57]line СДАЧА: 0.00 [15:38:57]line НСП 1% : 2.66 [15:38:57]line НДС 12% : 31.90 [15:38:57]line Наличными: 300.00 [15:38:57]line Безнал.: 0.00 [15:38:57]line Место: АЗС № 78 "Партнер Нефть" [15:38:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:38:57]line СНО: Общий режим [15:38:57]line Чек 154 23.10.2024 15:39 [15:38:57]line Смена: 117 ФФД: 1.0 [15:38:57]line ЗНМ: 0300000137 [15:38:57]line РНМ: 0000000000186857 [15:38:57]line Версия ККМ: v1.0 [15:38:57]line ФМ: 0000000002094219 [15:38:57]line ФД: 31210 [15:38:57]line ФПД: 168412206272410 [15:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31210&fm=168412206272410&tin=02508201610067®Number=0000000000186857&sum=30000 [15:38:58]OFD Sender: Processing packet 31210 [packets to send 11, broken 10] [15:38:58]ProducePacketName [15:38:58]name=ofd_packets/00031210 [15:38:58]OFD Sender: To server: pG, [15:38:58]CommunicateWithHost lk.salyk.kg:30040 [15:38:58]ConnectInit lk.salyk.kg [15:38:58]written 0, free lines is 4095 [15:38:58]Connected sock=10 [15:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 60 07 01 AD 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 97 18 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 79 00 00 35 04 06 00 99 2B 85 BB 0F 9A 4E 2E 9E 54 38 92 9D 1A [15:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A5 B2 47 00 35 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 79 00 00 F4 03 04 00 10 C3 18 67 B6 04 01 00 00 CA CB 6C EF 3C 39 2A D6 [15:38:58]CommunicateWithHost err = 0 [15:38:58]CheckOFDResponse [15:38:58]1017 (14) - 77093643461234 [15:38:58]1041 (16) - 0000000002094219 [15:38:58]1040 (4) - 31210 [15:38:58]1012 (4) - 23.10.2024 09:34 [15:38:58]1206 (1) - 0 [15:38:58]OFD Sender: Remove packet 31210 [15:38:58]ProducePacketName [15:38:58]name=ofd_packets/00031210 [15:38:58]NVStorageDeleteData [15:38:58]Write to MH i2c: 01 00 00 93 5A ED [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: 01 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: 01 07 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: 01 07 00 93 5A 00 00 00 00 00 F6 0C F6 [15:38:58]RasterBufferAndPrint [15:38:58]line [15:38:58]line [15:38:58]line [15:38:58]line [15:38:58]line [15:38:58]written 0, free lines is 3324 [15:38:58]MH_Cut [15:38:58]Write to MH i2c: D1 01 00 9A 5A 01 C6 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: D1 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: D1 01 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: D1 01 00 9A 5A 00 C5 [15:38:58]Write to MH i2c: 01 00 00 9B 5A F5 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:59]OFD Sender: No OFD packet to send [15:38:59]*** Cut start [15:38:59]*** Partial cut [15:38:59]*** CUTSNS_PIN = 1 [15:38:59]*** CUTSNS_PIN = 0 [15:38:59]*** Brake cut motor [15:38:59]Read from MH i2c: 01 [15:38:59]MH_I2C_Read... [15:38:59]*** Stop cut motor [15:38:59]*** Cut end [15:38:59]Read from MH i2c: 01 07 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: 01 07 00 9B 5A 00 00 00 00 00 FF 0F 0A [15:38:59]process_action close_receipt done [15:38:59]requested_data is exist [15:38:59]produce_requested_data [15:38:59]requested_item fm.sn is exist - process it [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 11 00 00 [15:38:59]Write to MH i2c: E2 08 00 9C 5A 80 11 00 00 00 00 00 00 70 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 17 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 17 00 9C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BE [15:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:38:59]wFMCommunicate OK [15:38:59]requested_item fd.num is exist - process it [15:38:59]SAM_PROTO_GetFieldsCounters [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 13 00 00 [15:38:59]Write to MH i2c: E2 08 00 9D 5A 80 13 00 00 00 00 00 00 73 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 62 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 62 00 9D 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:00]wFMCommunicate OK [15:39:00]SAM_PROTO_GetFieldsCounters done [15:39:00]requested_item shift.num is exist - process it [15:39:00]requested_item shift.opened is exist - process it [15:39:00]req_shift_opened [15:39:00]FM_GetShiftState [15:39:00]SAM_PROTO_GetShiftState [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 13 01 00 [15:39:00]Write to MH i2c: E2 08 00 9E 5A 80 13 01 00 00 00 00 00 75 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0E 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0E 00 9E 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2F [15:39:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:39:00]wFMCommunicate OK [15:39:00]SAM_PROTO_GetShiftState done [15:39:00]FM_GetShiftState done [15:39:00]req_shift_opened done [15:39:00]requested_item shift.open_date is exist - process it [15:39:00]req_shift_open_date [15:39:00]req_shift_open_date done [15:39:00]produce_requested_data done [15:39:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31210,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:39:00]process_action_free close_receipt [15:39:00]json_value_free [15:39:00]json_value_free done [15:39:00]process_json_proto returns [15:39:00]Send response to host [15:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31210,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:39:00]free response buf [15:39:00]execute_script done [15:39:00]execute_script returns [15:39:00]free content buf [15:39:00]Sock 9.Close socket [15:39:00]Sock 9.Thread stoped [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:02]accept exits with 7 [15:45:02]New connection [15:45:02]New thread 3067043172 created [15:45:02]Thread 3066899812 joined [15:45:02]Waiting for new connection... [15:45:02] Sock 7.Parse request [15:45:02]Sock 7.Check first char [15:45:02]Sock 7.First char is OK [15:45:02]request: POST /json_proto HTTP/1.0 [15:45:02]Method: POST [15:45:02]URL: /json_proto [15:45:02]Method is POST - this is cgi request [15:45:02]url: /json_proto [15:45:02]query_string will be loaded in cgi processing [15:45:02]execute_cgi json_proto POST (null) [15:45:02]execute_cgi path=json_proto method=POST [15:45:02]POST find Content-Length [15:45:02]Host: 172.17.51.3:8080 [15:45:02]Content-Length: 682 [15:45:02]Content-Type: application/json [15:45:02] [15:45:02]POST finish read [15:45:02]Found Content-Length = 682 [15:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:02]execute_script... [15:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:02]POST & json_proto [15:45:02]process_json_proto [15:45:02]json parsed OK: [15:45:02]protocol is kg_v1.0 [15:45:02]action value=close_receipt [15:45:02]process_action close_receipt [15:45:02]cmd_close_receipt [15:45:02]MH_GetDate [15:45:02]Write to MH i2c: F0 00 00 9F 5A E8 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: F0 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: F0 09 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: F0 09 00 9F 5A 00 05 1A 19 67 04 C1 95 66 50 [15:45:02]GetLastDocTimeStamp 1729697943 [15:45:02]current date 1729698309 [15:45:02]FM_GetShiftState [15:45:02]SAM_PROTO_GetShiftState [15:45:02]wFMCommunicate request_size=4 [15:45:02]MH_SAM_APDU [15:45:02]CAPDU: 80 13 01 00 [15:45:02]Write to MH i2c: E2 08 00 A0 5A 80 13 01 00 00 00 00 00 77 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:02]Read from MH i2c: E2 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0E 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: E2 0E 00 A0 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 31 [15:45:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:45:02]wFMCommunicate OK [15:45:02]SAM_PROTO_GetShiftState done [15:45:02]FM_GetShiftState done [15:45:02]opened in 1729643755 [15:45:02]opened+sec_in_day 1729730155 [15:45:02]quantity*price = 100015 [15:45:02]sum+1 = 100017 [15:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 155 23.10.2024 15:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31211 ФПД: 84457108964447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154509&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31211&fm=84457108964447&tin=02508201610067®Number=0000000000186857&sum=100000 [15:45:03]StoreToDocumentArchive [15:45:03]shift 117 fd 31211 [15:45:03]save to /storage/0117/doc_00031211 [15:45:03]save last doc name /storage/0117/doc_00031211 to /storage/kkm_last_doc_name [15:45:03]save OK [15:45:03]Clear old archive folders... [15:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:03]tlvbuf is 00D67B40 [15:45:03]SAM_PROTO_ClearQueue [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 09 00 00 [15:45:03]Write to MH i2c: E2 08 00 AD 5A 80 09 00 00 00 00 00 00 79 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 AD 5A 00 90 00 7B [15:45:03]RAPDU: 90 00 [15:45:03]wFMCommunicate OK [15:45:03]SAM_PROTO_ClearQueue done [15:45:03]KKMCreateOFDPacket [15:45:03]OFDProtocolAddRootSTLVToBuf [15:45:03]FM_MakeSignedData [15:45:03]FM_MakeSignedData [15:45:03]SAM_PROTO_SignData [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 0D 01 02 [15:45:03]Write to MH i2c: E2 08 00 AE 5A 80 0D 01 02 00 00 00 00 81 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 AE 5A 00 90 00 7C [15:45:03]RAPDU: 90 00 [15:45:03]wFMCommunicate OK [15:45:03]wFMCommunicate request_size=255 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 05 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 79 00 00 35 04 06 00 4C [15:45:03]Write to MH i2c: E2 02 01 AF 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 05 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 79 00 00 35 04 06 00 4C 00 00 6B [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 AF 5A 00 90 00 7D [15:45:03]RAPDU: 90 00 [15:45:03]wFMCommunicate OK [15:45:03]wFMCommunicate request_size=10 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 0D 02 02 05 D0 33 FA 84 5F [15:45:03]Write to MH i2c: E2 0D 00 B0 5A 80 0D 02 02 05 00 D0 33 FA 84 5F 00 00 6E [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 03 00 B0 5A 00 90 00 7E [15:45:03]RAPDU: 90 00 [15:45:03]wFMCommunicate OK [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 0D 03 02 [15:45:03]Write to MH i2c: E2 08 00 B1 5A 80 0D 03 02 00 00 00 00 86 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 0B 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 0B 00 B1 5A 00 DB E6 95 88 87 57 B0 D8 90 00 CB [15:45:03]RAPDU: DB E6 95 88 87 57 B0 D8 90 00 [15:45:03]wFMCommunicate OK [15:45:03]SAM_PROTO_SignData done [15:45:03]FM_MakeSignedData done [15:45:03]CreateOFDProtocolMessage [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 11 00 00 [15:45:03]Write to MH i2c: E2 08 00 B2 5A 80 11 00 00 00 00 00 00 86 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 17 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 17 00 B2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [15:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:45:03]wFMCommunicate OK [15:45:03]CreateOFDProtocolMessage done [15:45:03]OFDSenderStorePacket 31211 [15:45:03]StoreOFDPacket docnum=31211 [15:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6A 05 07 01 21 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 05 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 79 00 00 35 04 06 00 4C D0 33 FA 84 5F DB E6 95 88 87 57 B0 D8 [15:45:03]CheckFolder [15:45:03]dirname=/storage/ofd_packets [15:45:03]CheckFolder done [15:45:03]ProducePacketName [15:45:03]name=ofd_packets/00031211 [15:45:03]NVStorageSaveData ofd_packets/00031211 [15:45:03]File name is /storage/ofd_packets/00031211 [15:45:03]Write 301 bytes [15:45:03]NVStorageSaveData done [15:45:03]OFDSenderStorePacket done [15:45:03]KKMCreateOFDPacket done [15:45:03]NVStorageSaveData kkm_last_timestamp [15:45:03]File name is /storage/kkm_last_timestamp [15:45:03]Write 4 bytes [15:45:03]NVStorageSaveData done [15:45:03]ExternCall_PrintAddStr [15:45:03]wPrintStart [15:45:03]Write to MH i2c: 01 00 00 B3 5A 0D [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 B3 5A 00 00 00 00 00 FF 0F 22 [15:45:03]RasterBufferAndPrint [15:45:03]line Счет N : (1)343657 [15:45:03]line ИНН: 02508201610067 [15:45:03]line Контрольно-Кассовый Чек [15:45:03]line ПРОДАЖА [15:45:03]line ТРК (МРК, ГНК) : 33 [15:45:03]line Товар: 2710124130 [15:45:03]line Аи-92-К-2 [15:45:03]line 14.950 * 66.90 [15:45:03]line = 1000.16 [15:45:03]line НДС 12% НСП 1% [15:45:03]line > о реализуемом товаре [15:45:03]line ОКРУГЛЕНИЕ: -0.16 [15:45:03]line ИТОГО: 1000.00 [15:45:03]line Внесено: 1000.00 [15:45:03]line СДАЧА: 0.00 [15:45:03]line НСП 1% : 8.85 [15:45:03]line НДС 12% : 106.21 [15:45:03]line Наличными: 1000.00 [15:45:03]line Безнал.: 0.00 [15:45:03]line Место: АЗС № 78 "Партнер Нефть" [15:45:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:45:03]line СНО: Общий режим [15:45:03]line Чек 155 23.10.2024 15:45 [15:45:03]line Смена: 117 ФФД: 1.0 [15:45:03]line ЗНМ: 0300000137 [15:45:03]line РНМ: 0000000000186857 [15:45:03]line Версия ККМ: v1.0 [15:45:03]line ФМ: 0000000002094219 [15:45:03]line ФД: 31211 [15:45:03]line ФПД: 84457108964447 [15:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154509&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31211&fm=84457108964447&tin=02508201610067®Number=0000000000186857&sum=100000 [15:45:04]OFD Sender: Processing packet 31211 [packets to send 11, broken 10] [15:45:04]ProducePacketName [15:45:04]name=ofd_packets/00031211 [15:45:04]OFD Sender: To server: pG, [15:45:04]CommunicateWithHost lk.salyk.kg:30040 [15:45:04]ConnectInit lk.salyk.kg [15:45:04]written 0, free lines is 4095 [15:45:04]Connected sock=10 [15:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6A 05 07 01 21 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 05 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 79 00 00 35 04 06 00 4C D0 33 FA 84 5F DB E6 95 88 87 57 B0 D8 [15:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E2 21 47 00 FA 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 32 30 39 34 32 31 39 10 04 04 00 EB 79 00 00 F4 03 04 00 7F C4 18 67 B6 04 01 00 00 FF 77 E0 2D 2A F9 6B 9F [15:45:04]CommunicateWithHost err = 0 [15:45:04]CheckOFDResponse [15:45:04]1017 (14) - 77093643461234 [15:45:04]1041 (16) - 0000000002094219 [15:45:04]1040 (4) - 31211 [15:45:04]1012 (4) - 23.10.2024 09:40 [15:45:04]1206 (1) - 0 [15:45:04]OFD Sender: Remove packet 31211 [15:45:04]ProducePacketName [15:45:04]name=ofd_packets/00031211 [15:45:04]NVStorageDeleteData [15:45:04]Write to MH i2c: 01 00 00 DE 5A 38 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: 01 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: 01 07 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: 01 07 00 DE 5A 00 00 00 00 00 EC 0C 37 [15:45:04]RasterBufferAndPrint [15:45:04]line [15:45:04]line [15:45:04]line [15:45:04]line [15:45:04]line [15:45:04]written 0, free lines is 3314 [15:45:04]MH_Cut [15:45:04]Write to MH i2c: D1 01 00 E5 5A 01 11 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: D1 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: D1 01 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: D1 01 00 E5 5A 00 10 [15:45:04]Write to MH i2c: 01 00 00 E6 5A 40 [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:05]OFD Sender: No OFD packet to send [15:45:05]*** Cut start [15:45:05]*** Partial cut [15:45:05]*** CUTSNS_PIN = 1 [15:45:05]*** CUTSNS_PIN = 0 [15:45:05]*** Brake cut motor [15:45:05]Read from MH i2c: 01 [15:45:05]MH_I2C_Read... [15:45:05]*** Stop cut motor [15:45:05]*** Cut end [15:45:05]Read from MH i2c: 01 07 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: 01 07 00 E6 5A 00 00 00 00 00 FF 0F 55 [15:45:05]process_action close_receipt done [15:45:05]requested_data is exist [15:45:05]produce_requested_data [15:45:05]requested_item fm.sn is exist - process it [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 11 00 00 [15:45:05]Write to MH i2c: E2 08 00 E7 5A 80 11 00 00 00 00 00 00 BB [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 17 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 17 00 E7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 09 [15:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:45:05]wFMCommunicate OK [15:45:05]requested_item fd.num is exist - process it [15:45:05]SAM_PROTO_GetFieldsCounters [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 13 00 00 [15:45:05]Write to MH i2c: E2 08 00 E8 5A 80 13 00 00 00 00 00 00 BE [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 62 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 62 00 E8 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [15:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:06]wFMCommunicate OK [15:45:06]SAM_PROTO_GetFieldsCounters done [15:45:06]requested_item shift.num is exist - process it [15:45:06]requested_item shift.opened is exist - process it [15:45:06]req_shift_opened [15:45:06]FM_GetShiftState [15:45:06]SAM_PROTO_GetShiftState [15:45:06]wFMCommunicate request_size=4 [15:45:06]MH_SAM_APDU [15:45:06]CAPDU: 80 13 01 00 [15:45:06]Write to MH i2c: E2 08 00 E9 5A 80 13 01 00 00 00 00 00 C0 [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0E 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0E 00 E9 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7A [15:45:06]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:45:06]wFMCommunicate OK [15:45:06]SAM_PROTO_GetShiftState done [15:45:06]FM_GetShiftState done [15:45:06]req_shift_opened done [15:45:06]requested_item shift.open_date is exist - process it [15:45:06]req_shift_open_date [15:45:06]req_shift_open_date done [15:45:06]produce_requested_data done [15:45:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31211,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:45:06]process_action_free close_receipt [15:45:06]json_value_free [15:45:06]json_value_free done [15:45:06]process_json_proto returns [15:45:06]Send response to host [15:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31211,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:45:06]free response buf [15:45:06]execute_script done [15:45:06]execute_script returns [15:45:06]free content buf [15:45:06]Sock 7.Close socket [15:45:06]Sock 7.Thread stoped [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:54]accept exits with 9 [15:46:54]New connection [15:46:54]New thread 3066899812 created [15:46:54]Thread 3067043172 joined [15:46:54]Waiting for new connection... [15:46:54] Sock 9.Parse request [15:46:54]Sock 9.Check first char [15:46:54]Sock 9.First char is OK [15:46:54]request: POST /json_proto HTTP/1.0 [15:46:54]Method: POST [15:46:54]URL: /json_proto [15:46:54]Method is POST - this is cgi request [15:46:54]url: /json_proto [15:46:54]query_string will be loaded in cgi processing [15:46:54]execute_cgi json_proto POST (null) [15:46:54]execute_cgi path=json_proto method=POST [15:46:54]POST find Content-Length [15:46:54]Host: 172.17.51.3:8080 [15:46:54]Content-Length: 682 [15:46:54]Content-Type: application/json [15:46:54] [15:46:54]POST finish read [15:46:54]Found Content-Length = 682 [15:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:54]execute_script... [15:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:54]POST & json_proto [15:46:54]process_json_proto [15:46:54]json parsed OK: [15:46:54]protocol is kg_v1.0 [15:46:54]action value=close_receipt [15:46:54]process_action close_receipt [15:46:54]cmd_close_receipt [15:46:54]MH_GetDate [15:46:54]Write to MH i2c: F0 00 00 EA 5A 33 [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: F0 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: F0 09 00 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: F0 09 00 EA 5A 00 75 1A 19 67 04 C1 95 66 0B [15:46:54]GetLastDocTimeStamp 1729698309 [15:46:54]current date 1729698421 [15:46:54]FM_GetShiftState [15:46:54]SAM_PROTO_GetShiftState [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 13 01 00 [15:46:54]Write to MH i2c: E2 08 00 EB 5A 80 13 01 00 00 00 00 00 C2 [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:54]Read from MH i2c: E2 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 0E 00 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 0E 00 EB 5A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7C [15:46:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:46:54]wFMCommunicate OK [15:46:54]SAM_PROTO_GetShiftState done [15:46:54]FM_GetShiftState done [15:46:54]opened in 1729643755 [15:46:54]opened+sec_in_day 1729730155 [15:46:54]quantity*price = 100021 [15:46:54]sum+1 = 100023 [15:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 156 23.10.2024 15:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31212 ФПД: 6599391308697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31212&fm=6599391308697&tin=02508201610067®Number=0000000000186857&sum=100000 [15:46:55]StoreToDocumentArchive [15:46:55]shift 117 fd 31212 [15:46:55]save to /storage/0117/doc_00031212 [15:46:55]save last doc name /storage/0117/doc_00031212 to /storage/kkm_last_doc_name [15:46:55]save OK [15:46:55]Clear old archive folders... [15:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:55]tlvbuf is 00E84E00 [15:46:55]SAM_PROTO_ClearQueue [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 09 00 00 [15:46:55]Write to MH i2c: E2 08 00 F8 5A 80 09 00 00 00 00 00 00 C4 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 F8 5A 00 90 00 C6 [15:46:55]RAPDU: 90 00 [15:46:55]wFMCommunicate OK [15:46:55]SAM_PROTO_ClearQueue done [15:46:55]KKMCreateOFDPacket [15:46:55]OFDProtocolAddRootSTLVToBuf [15:46:55]FM_MakeSignedData [15:46:55]FM_MakeSignedData [15:46:55]SAM_PROTO_SignData [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 0D 01 02 [15:46:55]Write to MH i2c: E2 08 00 F9 5A 80 0D 01 02 00 00 00 00 CC [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 F9 5A 00 90 00 C7 [15:46:55]RAPDU: 90 00 [15:46:55]wFMCommunicate OK [15:46:55]wFMCommunicate request_size=255 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 75 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 79 00 00 35 04 06 00 06 [15:46:55]Write to MH i2c: E2 02 01 FA 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 75 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 79 00 00 35 04 06 00 06 00 00 06 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 FA 5A 00 90 00 C8 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]wFMCommunicate request_size=10 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 0D 02 02 05 00 8A 5F EB 99 [15:46:56]Write to MH i2c: E2 0D 00 FB 5A 80 0D 02 02 05 00 00 8A 5F EB 99 00 00 46 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 FB 5A 00 90 00 C9 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 0D 03 02 [15:46:56]Write to MH i2c: E2 08 00 FC 5A 80 0D 03 02 00 00 00 00 D1 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 0B 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 0B 00 FC 5A 00 CD 41 51 EF E3 22 AA DC 90 00 AB [15:46:56]RAPDU: CD 41 51 EF E3 22 AA DC 90 00 [15:46:56]wFMCommunicate OK [15:46:56]SAM_PROTO_SignData done [15:46:56]FM_MakeSignedData done [15:46:56]CreateOFDProtocolMessage [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 11 00 00 [15:46:56]Write to MH i2c: E2 08 00 FD 5A 80 11 00 00 00 00 00 00 D1 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 17 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 17 00 FD 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [15:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:46:56]wFMCommunicate OK [15:46:56]CreateOFDProtocolMessage done [15:46:56]OFDSenderStorePacket 31212 [15:46:56]StoreOFDPacket docnum=31212 [15:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D0 DC 07 01 73 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 75 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 79 00 00 35 04 06 00 06 00 8A 5F EB 99 CD 41 51 EF E3 22 AA DC [15:46:56]CheckFolder [15:46:56]dirname=/storage/ofd_packets [15:46:56]CheckFolder done [15:46:56]ProducePacketName [15:46:56]name=ofd_packets/00031212 [15:46:56]NVStorageSaveData ofd_packets/00031212 [15:46:56]File name is /storage/ofd_packets/00031212 [15:46:56]Write 301 bytes [15:46:56]NVStorageSaveData done [15:46:56]OFDSenderStorePacket done [15:46:56]KKMCreateOFDPacket done [15:46:56]NVStorageSaveData kkm_last_timestamp [15:46:56]File name is /storage/kkm_last_timestamp [15:46:56]Write 4 bytes [15:46:56]NVStorageSaveData done [15:46:56]ExternCall_PrintAddStr [15:46:56]wPrintStart [15:46:56]Write to MH i2c: 01 00 00 FE 5A 58 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 07 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 07 00 FE 5A 00 00 00 00 00 FF 0F 6D [15:46:56]RasterBufferAndPrint [15:46:56]line Счет N : (1)343658 [15:46:56]line ИНН: 02508201610067 [15:46:56]line Контрольно-Кассовый Чек [15:46:56]line ПРОДАЖА [15:46:56]line ТРК (МРК, ГНК) : 62 [15:46:56]line Товар: 2710124500 [15:46:56]line Аи-95-К-3 [15:46:56]line 13.480 * 74.20 [15:46:56]line = 1000.22 [15:46:56]line НДС 12% НСП 1% [15:46:56]line > о реализуемом товаре [15:46:56]line ОКРУГЛЕНИЕ: -0.22 [15:46:56]line ИТОГО: 1000.00 [15:46:56]line Внесено: 1000.00 [15:46:56]line СДАЧА: 0.00 [15:46:56]line НСП 1% : 8.85 [15:46:56]line НДС 12% : 106.22 [15:46:56]line Наличными: 1000.00 [15:46:56]line Безнал.: 0.00 [15:46:56]line Место: АЗС № 78 "Партнер Нефть" [15:46:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:46:56]line СНО: Общий режим [15:46:56]line Чек 156 23.10.2024 15:47 [15:46:56]line Смена: 117 ФФД: 1.0 [15:46:56]line ЗНМ: 0300000137 [15:46:56]line РНМ: 0000000000186857 [15:46:56]line Версия ККМ: v1.0 [15:46:56]line ФМ: 0000000002094219 [15:46:56]line ФД: 31212 [15:46:56]line ФПД: 6599391308697 [15:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31212&fm=6599391308697&tin=02508201610067®Number=0000000000186857&sum=100000 [15:46:56]OFD Sender: Processing packet 31212 [packets to send 11, broken 10] [15:46:56]ProducePacketName [15:46:56]name=ofd_packets/00031212 [15:46:56]OFD Sender: To server: pG, [15:46:56]CommunicateWithHost lk.salyk.kg:30040 [15:46:56]ConnectInit lk.salyk.kg [15:46:56]written 0, free lines is 4095 [15:46:56]Connected sock=10 [15:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D0 DC 07 01 73 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 75 1A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 79 00 00 35 04 06 00 06 00 8A 5F EB 99 CD 41 51 EF E3 22 AA DC [15:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 36 47 00 DB 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 79 00 00 F4 03 04 00 EF C4 18 67 B6 04 01 00 00 89 A5 62 BA B3 57 D2 25 [15:46:57]CommunicateWithHost err = 0 [15:46:57]CheckOFDResponse [15:46:57]1017 (14) - 77093643461234 [15:46:57]1041 (16) - 0000000002094219 [15:46:57]1040 (4) - 31212 [15:46:57]1012 (4) - 23.10.2024 09:42 [15:46:57]1206 (1) - 0 [15:46:57]OFD Sender: Remove packet 31212 [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00031212 [15:46:57]NVStorageDeleteData [15:46:57]Write to MH i2c: 01 00 00 29 5B 84 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 29 5B 00 00 00 00 00 EF 0C 86 [15:46:57]RasterBufferAndPrint [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]written 0, free lines is 3317 [15:46:57]MH_Cut [15:46:57]Write to MH i2c: D1 01 00 30 5B 01 5D [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 01 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 01 00 30 5B 00 5C [15:46:57]Write to MH i2c: 01 00 00 31 5B 8C [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]OFD Sender: No OFD packet to send [15:46:57]*** Cut start [15:46:57]*** Partial cut [15:46:57]*** CUTSNS_PIN = 1 [15:46:57]*** CUTSNS_PIN = 0 [15:46:58]*** Brake cut motor [15:46:58]Read from MH i2c: 01 [15:46:58]MH_I2C_Read... [15:46:58]*** Stop cut motor [15:46:58]*** Cut end [15:46:58]Read from MH i2c: 01 07 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: 01 07 00 31 5B 00 00 00 00 00 FF 0F A1 [15:46:58]process_action close_receipt done [15:46:58]requested_data is exist [15:46:58]produce_requested_data [15:46:58]requested_item fm.sn is exist - process it [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 11 00 00 [15:46:58]Write to MH i2c: E2 08 00 32 5B 80 11 00 00 00 00 00 00 07 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 17 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 17 00 32 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [15:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:46:58]wFMCommunicate OK [15:46:58]requested_item fd.num is exist - process it [15:46:58]SAM_PROTO_GetFieldsCounters [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 13 00 00 [15:46:58]Write to MH i2c: E2 08 00 33 5B 80 13 00 00 00 00 00 00 0A [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 62 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 62 00 33 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [15:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_GetFieldsCounters done [15:46:58]requested_item shift.num is exist - process it [15:46:58]requested_item shift.opened is exist - process it [15:46:58]req_shift_opened [15:46:58]FM_GetShiftState [15:46:58]SAM_PROTO_GetShiftState [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 13 01 00 [15:46:58]Write to MH i2c: E2 08 00 34 5B 80 13 01 00 00 00 00 00 0C [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 34 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C6 [15:46:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_GetShiftState done [15:46:58]FM_GetShiftState done [15:46:58]req_shift_opened done [15:46:58]requested_item shift.open_date is exist - process it [15:46:58]req_shift_open_date [15:46:58]req_shift_open_date done [15:46:58]produce_requested_data done [15:46:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31212,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:46:58]process_action_free close_receipt [15:46:58]json_value_free [15:46:58]json_value_free done [15:46:58]process_json_proto returns [15:46:58]Send response to host [15:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31212,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:46:58]free response buf [15:46:58]execute_script done [15:46:58]execute_script returns [15:46:58]free content buf [15:46:58]Sock 9.Close socket [15:46:58]Sock 9.Thread stoped [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]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:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56: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:54]accept exits with 7 [15:56:54]New connection [15:56:54]New thread 3067043172 created [15:56:54]Thread 3066899812 joined [15:56:54]Waiting for new connection... [15:56:54] Sock 7.Parse request [15:56:54]Sock 7.Check first char [15:56:54]Sock 7.First char is OK [15:56:54]request: POST /json_proto HTTP/1.0 [15:56:54]Method: POST [15:56:54]URL: /json_proto [15:56:54]Method is POST - this is cgi request [15:56:54]url: /json_proto [15:56:54]query_string will be loaded in cgi processing [15:56:54]execute_cgi json_proto POST (null) [15:56:54]execute_cgi path=json_proto method=POST [15:56:54]POST find Content-Length [15:56:54]Host: 172.17.51.3:8080 [15:56:54]Content-Length: 682 [15:56:54]Content-Type: application/json [15:56:54] [15:56:54]POST finish read [15:56:54]Found Content-Length = 682 [15:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:54]execute_script... [15:56:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:54]POST & json_proto [15:56:54]process_json_proto [15:56:54]json parsed OK: [15:56:54]protocol is kg_v1.0 [15:56:54]action value=close_receipt [15:56:54]process_action close_receipt [15:56:54]cmd_close_receipt [15:56:54]MH_GetDate [15:56:54]Write to MH i2c: F0 00 00 35 5B 7F [15:56:54]Write i2c OK [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: F0 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: F0 09 00 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: F0 09 00 35 5B 00 CD 1C 19 67 04 C1 95 66 B1 [15:56:54]GetLastDocTimeStamp 1729698421 [15:56:54]current date 1729699021 [15:56:54]FM_GetShiftState [15:56:54]SAM_PROTO_GetShiftState [15:56:54]wFMCommunicate request_size=4 [15:56:54]MH_SAM_APDU [15:56:54]CAPDU: 80 13 01 00 [15:56:54]Write to MH i2c: E2 08 00 36 5B 80 13 01 00 00 00 00 00 0E [15:56:54]Write i2c OK [15:56:54]MH_I2C_Read... [15:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:54]Read from MH i2c: E2 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: E2 0E 00 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: E2 0E 00 36 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C8 [15:56:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:56:54]wFMCommunicate OK [15:56:54]SAM_PROTO_GetShiftState done [15:56:54]FM_GetShiftState done [15:56:54]opened in 1729643755 [15:56:54]opened+sec_in_day 1729730155 [15:56:54]quantity*price = 100021 [15:56:54]sum+1 = 100023 [15:56:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 157 23.10.2024 15:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31213 ФПД: 62534029471154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31213&fm=62534029471154&tin=02508201610067®Number=0000000000186857&sum=100000 [15:56:55]StoreToDocumentArchive [15:56:55]shift 117 fd 31213 [15:56:55]save to /storage/0117/doc_00031213 [15:56:55]save last doc name /storage/0117/doc_00031213 to /storage/kkm_last_doc_name [15:56:55]save OK [15:56:55]Clear old archive folders... [15:56:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:55]tlvbuf is 00D76F20 [15:56:55]SAM_PROTO_ClearQueue [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 09 00 00 [15:56:55]Write to MH i2c: E2 08 00 43 5B 80 09 00 00 00 00 00 00 10 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 43 5B 00 90 00 12 [15:56:55]RAPDU: 90 00 [15:56:55]wFMCommunicate OK [15:56:55]SAM_PROTO_ClearQueue done [15:56:55]KKMCreateOFDPacket [15:56:55]OFDProtocolAddRootSTLVToBuf [15:56:55]FM_MakeSignedData [15:56:55]FM_MakeSignedData [15:56:55]SAM_PROTO_SignData [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 0D 01 02 [15:56:55]Write to MH i2c: E2 08 00 44 5B 80 0D 01 02 00 00 00 00 18 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 44 5B 00 90 00 13 [15:56:55]RAPDU: 90 00 [15:56:55]wFMCommunicate OK [15:56:55]wFMCommunicate request_size=255 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CD 1C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 79 00 00 35 04 06 00 38 [15:56:55]Write to MH i2c: E2 02 01 45 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CD 1C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 79 00 00 35 04 06 00 38 00 00 E0 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 45 5B 00 90 00 14 [15:56:55]RAPDU: 90 00 [15:56:55]wFMCommunicate OK [15:56:55]wFMCommunicate request_size=10 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 0D 02 02 05 DF D6 9C ED B2 [15:56:55]Write to MH i2c: E2 0D 00 46 5B 80 0D 02 02 05 00 DF D6 9C ED B2 00 00 15 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 03 00 46 5B 00 90 00 15 [15:56:55]RAPDU: 90 00 [15:56:55]wFMCommunicate OK [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 0D 03 02 [15:56:55]Write to MH i2c: E2 08 00 47 5B 80 0D 03 02 00 00 00 00 1D [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 0B 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 0B 00 47 5B 00 87 96 11 B8 40 0B 17 A1 90 00 07 [15:56:55]RAPDU: 87 96 11 B8 40 0B 17 A1 90 00 [15:56:55]wFMCommunicate OK [15:56:55]SAM_PROTO_SignData done [15:56:55]FM_MakeSignedData done [15:56:55]CreateOFDProtocolMessage [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 11 00 00 [15:56:55]Write to MH i2c: E2 08 00 48 5B 80 11 00 00 00 00 00 00 1D [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 17 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 17 00 48 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [15:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:56:55]wFMCommunicate OK [15:56:55]CreateOFDProtocolMessage done [15:56:55]OFDSenderStorePacket 31213 [15:56:55]StoreOFDPacket docnum=31213 [15:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AB 64 07 01 06 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CD 1C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 79 00 00 35 04 06 00 38 DF D6 9C ED B2 87 96 11 B8 40 0B 17 A1 [15:56:55]CheckFolder [15:56:55]dirname=/storage/ofd_packets [15:56:55]CheckFolder done [15:56:55]ProducePacketName [15:56:55]name=ofd_packets/00031213 [15:56:55]NVStorageSaveData ofd_packets/00031213 [15:56:55]File name is /storage/ofd_packets/00031213 [15:56:55]Write 301 bytes [15:56:55]NVStorageSaveData done [15:56:55]OFDSenderStorePacket done [15:56:55]KKMCreateOFDPacket done [15:56:55]NVStorageSaveData kkm_last_timestamp [15:56:55]File name is /storage/kkm_last_timestamp [15:56:55]Write 4 bytes [15:56:55]NVStorageSaveData done [15:56:55]ExternCall_PrintAddStr [15:56:55]wPrintStart [15:56:55]Write to MH i2c: 01 00 00 49 5B A4 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: 01 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: 01 07 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: 01 07 00 49 5B 00 00 00 00 00 FF 0F B9 [15:56:55]RasterBufferAndPrint [15:56:55]line Счет N : (1)343659 [15:56:55]line ИНН: 02508201610067 [15:56:55]line Контрольно-Кассовый Чек [15:56:55]line ПРОДАЖА [15:56:55]line ТРК (МРК, ГНК) : 32 [15:56:55]line Товар: 2710124500 [15:56:55]line Аи-95-К-3 [15:56:55]line 13.480 * 74.20 [15:56:55]line = 1000.22 [15:56:55]line НДС 12% НСП 1% [15:56:55]line > о реализуемом товаре [15:56:55]line ОКРУГЛЕНИЕ: -0.22 [15:56:55]line ИТОГО: 1000.00 [15:56:55]line Внесено: 1000.00 [15:56:55]line СДАЧА: 0.00 [15:56:55]line НСП 1% : 8.85 [15:56:55]line НДС 12% : 106.22 [15:56:55]line Наличными: 1000.00 [15:56:55]line Безнал.: 0.00 [15:56:55]line Место: АЗС № 78 "Партнер Нефть" [15:56:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:56:55]line СНО: Общий режим [15:56:55]line Чек 157 23.10.2024 15:57 [15:56:55]line Смена: 117 ФФД: 1.0 [15:56:55]line ЗНМ: 0300000137 [15:56:55]line РНМ: 0000000000186857 [15:56:55]line Версия ККМ: v1.0 [15:56:55]line ФМ: 0000000002094219 [15:56:55]line ФД: 31213 [15:56:55]line ФПД: 62534029471154 [15:56:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31213&fm=62534029471154&tin=02508201610067®Number=0000000000186857&sum=100000 [15:56:56]OFD Sender: Processing packet 31213 [packets to send 11, broken 10] [15:56:56]ProducePacketName [15:56:56]name=ofd_packets/00031213 [15:56:56]OFD Sender: To server: pG, [15:56:56]CommunicateWithHost lk.salyk.kg:30040 [15:56:56]ConnectInit lk.salyk.kg [15:56:56]written 0, free lines is 4095 [15:56:56]Connected sock=10 [15:56:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AB 64 07 01 06 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 CD 1C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 79 00 00 35 04 06 00 38 DF D6 9C ED B2 87 96 11 B8 40 0B 17 A1 [15:56:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 7B 47 00 93 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 79 00 00 F4 03 04 00 47 C7 18 67 B6 04 01 00 00 80 8E 9D E8 56 8D 37 E1 [15:56:56]CommunicateWithHost err = 0 [15:56:56]CheckOFDResponse [15:56:56]1017 (14) - 77093643461234 [15:56:56]1041 (16) - 0000000002094219 [15:56:56]1040 (4) - 31213 [15:56:56]1012 (4) - 23.10.2024 09:52 [15:56:56]1206 (1) - 0 [15:56:56]OFD Sender: Remove packet 31213 [15:56:56]ProducePacketName [15:56:56]name=ofd_packets/00031213 [15:56:56]NVStorageDeleteData [15:56:56]Write to MH i2c: 01 00 00 74 5B CF [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 74 5B 00 00 00 00 00 E3 0C C5 [15:56:56]RasterBufferAndPrint [15:56:56]line [15:56:56]line [15:56:56]line [15:56:56]line [15:56:56]line [15:56:56]written 0, free lines is 3305 [15:56:56]MH_Cut [15:56:56]Write to MH i2c: D1 01 00 7B 5B 01 A8 [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D1 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D1 01 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D1 01 00 7B 5B 00 A7 [15:56:56]Write to MH i2c: 01 00 00 7C 5B D7 [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:57]OFD Sender: No OFD packet to send [15:56:57]*** Cut start [15:56:57]*** Partial cut [15:56:57]*** CUTSNS_PIN = 1 [15:56:57]*** CUTSNS_PIN = 0 [15:56:57]*** Brake cut motor [15:56:57]Read from MH i2c: 01 [15:56:57]MH_I2C_Read... [15:56:57]*** Stop cut motor [15:56:57]*** Cut end [15:56:57]Read from MH i2c: 01 07 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: 01 07 00 7C 5B 00 00 00 00 00 FF 0F EC [15:56:57]process_action close_receipt done [15:56:57]requested_data is exist [15:56:57]produce_requested_data [15:56:57]requested_item fm.sn is exist - process it [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 11 00 00 [15:56:57]Write to MH i2c: E2 08 00 7D 5B 80 11 00 00 00 00 00 00 52 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 7D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [15:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:56:57]wFMCommunicate OK [15:56:57]requested_item fd.num is exist - process it [15:56:57]SAM_PROTO_GetFieldsCounters [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 13 00 00 [15:56:57]Write to MH i2c: E2 08 00 7E 5B 80 13 00 00 00 00 00 00 55 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 62 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 62 00 7E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 ED 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [15:56:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 ED 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:58]wFMCommunicate OK [15:56:58]SAM_PROTO_GetFieldsCounters done [15:56:58]requested_item shift.num is exist - process it [15:56:58]requested_item shift.opened is exist - process it [15:56:58]req_shift_opened [15:56:58]FM_GetShiftState [15:56:58]SAM_PROTO_GetShiftState [15:56:58]wFMCommunicate request_size=4 [15:56:58]MH_SAM_APDU [15:56:58]CAPDU: 80 13 01 00 [15:56:58]Write to MH i2c: E2 08 00 7F 5B 80 13 01 00 00 00 00 00 57 [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 0E 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 0E 00 7F 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 11 [15:56:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [15:56:58]wFMCommunicate OK [15:56:58]SAM_PROTO_GetShiftState done [15:56:58]FM_GetShiftState done [15:56:58]req_shift_opened done [15:56:58]requested_item shift.open_date is exist - process it [15:56:58]req_shift_open_date [15:56:58]req_shift_open_date done [15:56:58]produce_requested_data done [15:56:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31213,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [15:56:58]process_action_free close_receipt [15:56:58]json_value_free [15:56:58]json_value_free done [15:56:58]process_json_proto returns [15:56:58]Send response to host [15:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31213,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [15:56:58]free response buf [15:56:58]execute_script done [15:56:58]execute_script returns [15:56:58]free content buf [15:56:58]Sock 7.Close socket [15:56:58]Sock 7.Thread stoped [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:05:26]ConnectInit Can't connect to host [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:20]accept exits with 9 [16:08:20]New connection [16:08:20]New thread 3066899812 created [16:08:20]Thread 3067043172 joined [16:08:20]Waiting for new connection... [16:08:20] Sock 9.Parse request [16:08:20]Sock 9.Check first char [16:08:20]Sock 9.First char is OK [16:08:20]request: POST /json_proto HTTP/1.0 [16:08:20]Method: POST [16:08:20]URL: /json_proto [16:08:20]Method is POST - this is cgi request [16:08:20]url: /json_proto [16:08:20]query_string will be loaded in cgi processing [16:08:20]execute_cgi json_proto POST (null) [16:08:20]execute_cgi path=json_proto method=POST [16:08:20]POST find Content-Length [16:08:20]Host: 172.17.51.3:8080 [16:08:20]Content-Length: 849 [16:08:20]Content-Type: application/json [16:08:20] [16:08:20]POST finish read [16:08:20]Found Content-Length = 849 [16:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.920, "sum" : 2001.02, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2001.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:20]execute_script... [16:08:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.920, "sum" : 2001.02, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2001.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:20]POST & json_proto [16:08:20]process_json_proto [16:08:20]json parsed OK: [16:08:20]protocol is kg_v1.0 [16:08:20]action value=close_receipt [16:08:20]process_action close_receipt [16:08:20]cmd_close_receipt [16:08:20]MH_GetDate [16:08:20]Write to MH i2c: F0 00 00 80 5B CA [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: F0 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: F0 09 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: F0 09 00 80 5B 00 7B 1F 19 67 04 C1 95 66 AD [16:08:20]GetLastDocTimeStamp 1729699021 [16:08:20]current date 1729699707 [16:08:20]FM_GetShiftState [16:08:20]SAM_PROTO_GetShiftState [16:08:20]wFMCommunicate request_size=4 [16:08:20]MH_SAM_APDU [16:08:20]CAPDU: 80 13 01 00 [16:08:20]Write to MH i2c: E2 08 00 81 5B 80 13 01 00 00 00 00 00 59 [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:20]Read from MH i2c: E2 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 0E 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 0E 00 81 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 13 [16:08:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:08:20]wFMCommunicate OK [16:08:20]SAM_PROTO_GetShiftState done [16:08:20]FM_GetShiftState done [16:08:20]opened in 1729643755 [16:08:20]opened+sec_in_day 1729730155 [16:08:20]quantity*price = 200102 [16:08:20]sum+1 = 200103 [16:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2001.02 НСП 1% : 17.71 НДС 12% : 212.50 Наличными: 0.00 Безнал.: 2001.02 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 158 23.10.2024 16:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31214 ФПД: 116585992826150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31214&fm=116585992826150&tin=02508201610067®Number=0000000000186857&sum=200102 [16:08:21]StoreToDocumentArchive [16:08:21]shift 117 fd 31214 [16:08:21]save to /storage/0117/doc_00031214 [16:08:21]save last doc name /storage/0117/doc_00031214 to /storage/kkm_last_doc_name [16:08:21]save OK [16:08:21]Clear old archive folders... [16:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:08:21]tlvbuf is 00D65470 [16:08:21]SAM_PROTO_ClearQueue [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 09 00 00 [16:08:21]Write to MH i2c: E2 08 00 8E 5B 80 09 00 00 00 00 00 00 5B [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 8E 5B 00 90 00 5D [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]SAM_PROTO_ClearQueue done [16:08:21]KKMCreateOFDPacket [16:08:21]OFDProtocolAddRootSTLVToBuf [16:08:21]FM_MakeSignedData [16:08:21]FM_MakeSignedData [16:08:21]SAM_PROTO_SignData [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 01 02 [16:08:21]Write to MH i2c: E2 08 00 8F 5B 80 0D 01 02 00 00 00 00 63 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 8F 5B 00 90 00 5E [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]wFMCommunicate request_size=255 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A6 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7B 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 79 00 [16:08:21]Write to MH i2c: E2 02 01 90 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A6 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7B 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 79 00 00 00 C2 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 90 5B 00 90 00 5F [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]wFMCommunicate request_size=16 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6A 08 CA B0 2D 26 [16:08:21]Write to MH i2c: E2 13 00 91 5B 80 0D 02 02 0B 00 00 35 04 06 00 6A 08 CA B0 2D 26 00 00 FA [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 91 5B 00 90 00 60 [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 03 02 [16:08:21]Write to MH i2c: E2 08 00 92 5B 80 0D 03 02 00 00 00 00 68 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 0B 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 0B 00 92 5B 00 9D 4B C2 7F BD 36 5A 88 90 00 67 [16:08:21]RAPDU: 9D 4B C2 7F BD 36 5A 88 90 00 [16:08:21]wFMCommunicate OK [16:08:21]SAM_PROTO_SignData done [16:08:21]FM_MakeSignedData done [16:08:21]CreateOFDProtocolMessage [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 11 00 00 [16:08:21]Write to MH i2c: E2 08 00 93 5B 80 11 00 00 00 00 00 00 68 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 93 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [16:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:08:21]wFMCommunicate OK [16:08:21]CreateOFDProtocolMessage done [16:08:21]OFDSenderStorePacket 31214 [16:08:21]StoreOFDPacket docnum=31214 [16:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 29 D1 0D 01 72 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A6 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7B 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 79 00 00 35 04 06 00 6A 08 CA B0 2D 26 9D 4B C2 7F BD 36 5A 88 [16:08:21]CheckFolder [16:08:21]dirname=/storage/ofd_packets [16:08:21]CheckFolder done [16:08:21]ProducePacketName [16:08:21]name=ofd_packets/00031214 [16:08:21]NVStorageSaveData ofd_packets/00031214 [16:08:21]File name is /storage/ofd_packets/00031214 [16:08:21]Write 307 bytes [16:08:21]NVStorageSaveData done [16:08:21]OFDSenderStorePacket done [16:08:21]KKMCreateOFDPacket done [16:08:21]NVStorageSaveData kkm_last_timestamp [16:08:21]File name is /storage/kkm_last_timestamp [16:08:21]Write 4 bytes [16:08:21]NVStorageSaveData done [16:08:21]ExternCall_PrintAddStr [16:08:21]wPrintStart [16:08:21]Write to MH i2c: 01 00 00 94 5B EF [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 07 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 07 00 94 5B 00 00 00 00 00 FF 0F 04 [16:08:21]RasterBufferAndPrint [16:08:21]line Счет N : (1)343660 [16:08:21]line ИНН: 02508201610067 [16:08:21]line Контрольно-Кассовый Чек [16:08:21]line ПРОДАЖА [16:08:21]line ТРК (МРК, ГНК) : 61 [16:08:21]line Товар: 2710194210 [16:08:21]line D-ENERGY Дт-К-2 [16:08:21]line 25.920 * 77.20 [16:08:21]line = 2001.02 [16:08:21]line НДС 12% НСП 1% [16:08:21]line > о реализуемом товаре [16:08:21]line ИТОГО: 2001.02 [16:08:21]line НСП 1% : 17.71 [16:08:21]line НДС 12% : 212.50 [16:08:21]line Наличными: 0.00 [16:08:21]line Безнал.: 2001.02 [16:08:21]line Место: АЗС № 78 "Партнер Нефть" [16:08:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:08:21]line СНО: Общий режим [16:08:21]line Чек 158 23.10.2024 16:08 [16:08:21]line Смена: 117 ФФД: 1.0 [16:08:21]line ЗНМ: 0300000137 [16:08:21]line РНМ: 0000000000186857 [16:08:21]line Версия ККМ: v1.0 [16:08:21]line Платежная система: АКБ Кыргызстан [16:08:21]line ФМ: 0000000002094219 [16:08:21]line ФД: 31214 [16:08:21]line ФПД: 116585992826150 [16:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T160827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31214&fm=116585992826150&tin=02508201610067®Number=0000000000186857&sum=200102 [16:08:22]OFD Sender: Processing packet 31214 [packets to send 11, broken 10] [16:08:22]ProducePacketName [16:08:22]name=ofd_packets/00031214 [16:08:22]OFD Sender: To server: pG, [16:08:22]CommunicateWithHost lk.salyk.kg:30040 [16:08:22]ConnectInit lk.salyk.kg [16:08:22]written 0, free lines is 4095 [16:08:22]Connected sock=10 [16:08:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 29 D1 0D 01 72 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A6 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 53 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7B 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 79 00 00 35 04 06 00 6A 08 CA B0 2D 26 9D 4B C2 7F BD 36 5A 88 [16:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4B 4B 47 00 0F 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 32 30 39 34 32 31 39 10 04 04 00 EE 79 00 00 F4 03 04 00 F5 C9 18 67 B6 04 01 00 00 75 D1 38 F5 94 AE 9C AE [16:08:22]CommunicateWithHost err = 0 [16:08:22]CheckOFDResponse [16:08:22]1017 (14) - 77093643461234 [16:08:22]1041 (16) - 0000000002094219 [16:08:22]1040 (4) - 31214 [16:08:22]1012 (4) - 23.10.2024 10:03 [16:08:22]1206 (1) - 0 [16:08:22]OFD Sender: Remove packet 31214 [16:08:22]ProducePacketName [16:08:22]name=ofd_packets/00031214 [16:08:22]NVStorageDeleteData [16:08:22]Write to MH i2c: 01 00 00 BE 5B 19 [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 07 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 07 00 BE 5B 00 00 00 00 00 0B 0D 38 [16:08:22]RasterBufferAndPrint [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]written 0, free lines is 3345 [16:08:22]MH_Cut [16:08:22]Write to MH i2c: D1 01 00 C5 5B 01 F2 [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 01 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 01 00 C5 5B 00 F1 [16:08:22]Write to MH i2c: 01 00 00 C6 5B 21 [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:23]OFD Sender: No OFD packet to send [16:08:23]*** Cut start [16:08:23]*** Partial cut [16:08:23]*** CUTSNS_PIN = 1 [16:08:23]*** CUTSNS_PIN = 0 [16:08:23]*** Brake cut motor [16:08:23]Read from MH i2c: 01 [16:08:23]MH_I2C_Read... [16:08:23]*** Stop cut motor [16:08:23]*** Cut end [16:08:23]Read from MH i2c: 01 07 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: 01 07 00 C6 5B 00 00 00 00 00 FF 0F 36 [16:08:23]process_action close_receipt done [16:08:23]requested_data is exist [16:08:23]produce_requested_data [16:08:23]requested_item fm.sn is exist - process it [16:08:23]wFMCommunicate request_size=4 [16:08:23]MH_SAM_APDU [16:08:23]CAPDU: 80 11 00 00 [16:08:23]Write to MH i2c: E2 08 00 C7 5B 80 11 00 00 00 00 00 00 9C [16:08:23]Write i2c OK [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 [16:08:23]MH_I2C_Read... [16:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:23]Read from MH i2c: E2 17 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 17 00 C7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [16:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:08:23]wFMCommunicate OK [16:08:23]requested_item fd.num is exist - process it [16:08:23]SAM_PROTO_GetFieldsCounters [16:08:23]wFMCommunicate request_size=4 [16:08:23]MH_SAM_APDU [16:08:23]CAPDU: 80 13 00 00 [16:08:23]Write to MH i2c: E2 08 00 C8 5B 80 13 00 00 00 00 00 00 9F [16:08:23]Write i2c OK [16:08:23]MH_I2C_Read... [16:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:24]Read from MH i2c: E2 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 62 00 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 62 00 C8 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:24]wFMCommunicate OK [16:08:24]SAM_PROTO_GetFieldsCounters done [16:08:24]requested_item shift.num is exist - process it [16:08:24]requested_item shift.opened is exist - process it [16:08:24]req_shift_opened [16:08:24]FM_GetShiftState [16:08:24]SAM_PROTO_GetShiftState [16:08:24]wFMCommunicate request_size=4 [16:08:24]MH_SAM_APDU [16:08:24]CAPDU: 80 13 01 00 [16:08:24]Write to MH i2c: E2 08 00 C9 5B 80 13 01 00 00 00 00 00 A1 [16:08:24]Write i2c OK [16:08:24]MH_I2C_Read... [16:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:24]Read from MH i2c: E2 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 0E 00 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 0E 00 C9 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5B [16:08:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:08:24]wFMCommunicate OK [16:08:24]SAM_PROTO_GetShiftState done [16:08:24]FM_GetShiftState done [16:08:24]req_shift_opened done [16:08:24]requested_item shift.open_date is exist - process it [16:08:24]req_shift_open_date [16:08:24]req_shift_open_date done [16:08:24]produce_requested_data done [16:08:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31214,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:08:24]process_action_free close_receipt [16:08:24]json_value_free [16:08:24]json_value_free done [16:08:24]process_json_proto returns [16:08:24]Send response to host [16:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31214,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:08:24]free response buf [16:08:24]execute_script done [16:08:24]execute_script returns [16:08:24]free content buf [16:08:24]Sock 9.Close socket [16:08:24]Sock 9.Thread stoped [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:27]accept exits with 7 [16:10:27]New connection [16:10:27]New thread 3067043172 created [16:10:27]Thread 3066899812 joined [16:10:27]Waiting for new connection... [16:10:27] Sock 7.Parse request [16:10:27]Sock 7.Check first char [16:10:27]Sock 7.First char is OK [16:10:27]request: POST /json_proto HTTP/1.0 [16:10:27]Method: POST [16:10:27]URL: /json_proto [16:10:27]Method is POST - this is cgi request [16:10:27]url: /json_proto [16:10:27]query_string will be loaded in cgi processing [16:10:27]execute_cgi json_proto POST (null) [16:10:27]execute_cgi path=json_proto method=POST [16:10:27]POST find Content-Length [16:10:27]Host: 172.17.51.3:8080 [16:10:27]Content-Length: 677 [16:10:27]Content-Type: application/json [16:10:27] [16:10:27]POST finish read [16:10:27]Found Content-Length = 677 [16:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:27]execute_script... [16:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:27]POST & json_proto [16:10:27]process_json_proto [16:10:27]json parsed OK: [16:10:27]protocol is kg_v1.0 [16:10:27]action value=close_receipt [16:10:27]process_action close_receipt [16:10:27]cmd_close_receipt [16:10:27]MH_GetDate [16:10:27]Write to MH i2c: F0 00 00 CA 5B 14 [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 CA 5B 00 FA 1F 19 67 04 C1 95 66 76 [16:10:27]GetLastDocTimeStamp 1729699707 [16:10:27]current date 1729699834 [16:10:27]FM_GetShiftState [16:10:27]SAM_PROTO_GetShiftState [16:10:27]wFMCommunicate request_size=4 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 13 01 00 [16:10:27]Write to MH i2c: E2 08 00 CB 5B 80 13 01 00 00 00 00 00 A3 [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 CB 5B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5D [16:10:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:10:27]wFMCommunicate OK [16:10:27]SAM_PROTO_GetShiftState done [16:10:27]FM_GetShiftState done [16:10:27]opened in 1729643755 [16:10:27]opened+sec_in_day 1729730155 [16:10:27]quantity*price = 50041 [16:10:27]sum+1 = 50042 [16:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 159 23.10.2024 16:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31215 ФПД: 60298770020102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161034&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31215&fm=60298770020102&tin=02508201610067®Number=0000000000186857&sum=50000 [16:10:28]StoreToDocumentArchive [16:10:28]shift 117 fd 31215 [16:10:28]save to /storage/0117/doc_00031215 [16:10:28]save last doc name /storage/0117/doc_00031215 to /storage/kkm_last_doc_name [16:10:28]save OK [16:10:28]Clear old archive folders... [16:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:28]tlvbuf is 00DB7470 [16:10:28]SAM_PROTO_ClearQueue [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 09 00 00 [16:10:28]Write to MH i2c: E2 08 00 D8 5B 80 09 00 00 00 00 00 00 A5 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 D8 5B 00 90 00 A7 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_ClearQueue done [16:10:28]KKMCreateOFDPacket [16:10:28]OFDProtocolAddRootSTLVToBuf [16:10:28]FM_MakeSignedData [16:10:28]FM_MakeSignedData [16:10:28]SAM_PROTO_SignData [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 01 02 [16:10:28]Write to MH i2c: E2 08 00 D9 5B 80 0D 01 02 00 00 00 00 AD [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 D9 5B 00 90 00 A8 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=255 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FA 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 79 00 00 35 04 06 00 36 [16:10:28]Write to MH i2c: E2 02 01 DA 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FA 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 79 00 00 35 04 06 00 36 00 00 89 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 DA 5B 00 90 00 A9 [16:10:29]RAPDU: 90 00 [16:10:29]wFMCommunicate OK [16:10:29]wFMCommunicate request_size=10 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 0D 02 02 05 D7 66 C4 77 06 [16:10:29]Write to MH i2c: E2 0D 00 DB 5B 80 0D 02 02 05 00 D7 66 C4 77 06 00 00 38 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 DB 5B 00 90 00 AA [16:10:29]RAPDU: 90 00 [16:10:29]wFMCommunicate OK [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 0D 03 02 [16:10:29]Write to MH i2c: E2 08 00 DC 5B 80 0D 03 02 00 00 00 00 B2 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0B 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0B 00 DC 5B 00 43 A2 C8 CF 84 79 B4 F4 90 00 D4 [16:10:29]RAPDU: 43 A2 C8 CF 84 79 B4 F4 90 00 [16:10:29]wFMCommunicate OK [16:10:29]SAM_PROTO_SignData done [16:10:29]FM_MakeSignedData done [16:10:29]CreateOFDProtocolMessage [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 11 00 00 [16:10:29]Write to MH i2c: E2 08 00 DD 5B 80 11 00 00 00 00 00 00 B2 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 DD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [16:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:10:29]wFMCommunicate OK [16:10:29]CreateOFDProtocolMessage done [16:10:29]OFDSenderStorePacket 31215 [16:10:29]StoreOFDPacket docnum=31215 [16:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 1D 07 01 57 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FA 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 79 00 00 35 04 06 00 36 D7 66 C4 77 06 43 A2 C8 CF 84 79 B4 F4 [16:10:29]CheckFolder [16:10:29]dirname=/storage/ofd_packets [16:10:29]CheckFolder done [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00031215 [16:10:29]NVStorageSaveData ofd_packets/00031215 [16:10:29]File name is /storage/ofd_packets/00031215 [16:10:29]Write 301 bytes [16:10:29]NVStorageSaveData done [16:10:29]OFDSenderStorePacket done [16:10:29]KKMCreateOFDPacket done [16:10:29]NVStorageSaveData kkm_last_timestamp [16:10:29]File name is /storage/kkm_last_timestamp [16:10:29]Write 4 bytes [16:10:29]NVStorageSaveData done [16:10:29]ExternCall_PrintAddStr [16:10:29]wPrintStart [16:10:29]Write to MH i2c: 01 00 00 DE 5B 39 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 DE 5B 00 00 00 00 00 FF 0F 4E [16:10:29]RasterBufferAndPrint [16:10:29]line Счет N : (1)343661 [16:10:29]line ИНН: 02508201610067 [16:10:29]line Контрольно-Кассовый Чек [16:10:29]line ПРОДАЖА [16:10:29]line ТРК (МРК, ГНК) : 53 [16:10:29]line Товар: 2710124130 [16:10:29]line Аи-92-К-2 [16:10:29]line 7.480 * 66.90 [16:10:29]line = 500.41 [16:10:29]line НДС 12% НСП 1% [16:10:29]line > о реализуемом товаре [16:10:29]line ОКРУГЛЕНИЕ: -0.41 [16:10:29]line ИТОГО: 500.00 [16:10:29]line Внесено: 500.00 [16:10:29]line СДАЧА: 0.00 [16:10:29]line НСП 1% : 4.43 [16:10:29]line НДС 12% : 53.14 [16:10:29]line Наличными: 500.00 [16:10:29]line Безнал.: 0.00 [16:10:29]line Место: АЗС № 78 "Партнер Нефть" [16:10:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:10:29]line СНО: Общий режим [16:10:29]line Чек 159 23.10.2024 16:10 [16:10:29]line Смена: 117 ФФД: 1.0 [16:10:29]line ЗНМ: 0300000137 [16:10:29]line РНМ: 0000000000186857 [16:10:29]line Версия ККМ: v1.0 [16:10:29]line ФМ: 0000000002094219 [16:10:29]line ФД: 31215 [16:10:29]line ФПД: 60298770020102 [16:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161034&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31215&fm=60298770020102&tin=02508201610067®Number=0000000000186857&sum=50000 [16:10:29]written 0, free lines is 4095 [16:10:29]OFD Sender: Processing packet 31215 [packets to send 11, broken 10] [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00031215 [16:10:29]OFD Sender: To server: pG, [16:10:29]CommunicateWithHost lk.salyk.kg:30040 [16:10:29]ConnectInit lk.salyk.kg [16:10:29]Connected sock=10 [16:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 1D 07 01 57 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FA 1F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 79 00 00 35 04 06 00 36 D7 66 C4 77 06 43 A2 C8 CF 84 79 B4 F4 [16:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 99 4B 47 00 02 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 79 00 00 F4 03 04 00 74 CA 18 67 B6 04 01 00 00 BD D1 B4 FF 0F 0C 07 98 [16:10:29]CommunicateWithHost err = 0 [16:10:29]CheckOFDResponse [16:10:29]1017 (14) - 77093643461234 [16:10:29]1041 (16) - 0000000002094219 [16:10:29]1040 (4) - 31215 [16:10:29]1012 (4) - 23.10.2024 10:05 [16:10:29]1206 (1) - 0 [16:10:29]OFD Sender: Remove packet 31215 [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00031215 [16:10:29]NVStorageDeleteData [16:10:29]Write to MH i2c: 01 00 00 09 5C 65 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 09 5C 00 00 00 00 00 E7 0C 5F [16:10:29]RasterBufferAndPrint [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]written 0, free lines is 3310 [16:10:29]MH_Cut [16:10:29]Write to MH i2c: D1 01 00 10 5C 01 3E [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 10 5C 00 3D [16:10:29]Write to MH i2c: 01 00 00 11 5C 6D [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:30]OFD Sender: No OFD packet to send [16:10:30]*** Cut start [16:10:30]*** Partial cut [16:10:30]*** CUTSNS_PIN = 1 [16:10:30]*** CUTSNS_PIN = 0 [16:10:30]*** Brake cut motor [16:10:31]Read from MH i2c: 01 [16:10:31]MH_I2C_Read... [16:10:31]*** Stop cut motor [16:10:31]*** Cut end [16:10:31]Read from MH i2c: 01 07 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: 01 07 00 11 5C 00 00 00 00 00 FF 0F 82 [16:10:31]process_action close_receipt done [16:10:31]requested_data is exist [16:10:31]produce_requested_data [16:10:31]requested_item fm.sn is exist - process it [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 11 00 00 [16:10:31]Write to MH i2c: E2 08 00 12 5C 80 11 00 00 00 00 00 00 E8 [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 17 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 17 00 12 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [16:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:10:31]wFMCommunicate OK [16:10:31]requested_item fd.num is exist - process it [16:10:31]SAM_PROTO_GetFieldsCounters [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 13 00 00 [16:10:31]Write to MH i2c: E2 08 00 13 5C 80 13 00 00 00 00 00 00 EB [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 13 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetFieldsCounters done [16:10:31]requested_item shift.num is exist - process it [16:10:31]requested_item shift.opened is exist - process it [16:10:31]req_shift_opened [16:10:31]FM_GetShiftState [16:10:31]SAM_PROTO_GetShiftState [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 13 01 00 [16:10:31]Write to MH i2c: E2 08 00 14 5C 80 13 01 00 00 00 00 00 ED [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 14 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A7 [16:10:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetShiftState done [16:10:31]FM_GetShiftState done [16:10:31]req_shift_opened done [16:10:31]requested_item shift.open_date is exist - process it [16:10:31]req_shift_open_date [16:10:31]req_shift_open_date done [16:10:31]produce_requested_data done [16:10:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31215,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:10:31]process_action_free close_receipt [16:10:31]json_value_free [16:10:31]json_value_free done [16:10:31]process_json_proto returns [16:10:31]Send response to host [16:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31215,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:10:31]free response buf [16:10:31]execute_script done [16:10:31]execute_script returns [16:10:31]free content buf [16:10:31]Sock 7.Close socket [16:10:31]Sock 7.Thread stoped [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]accept exits with 9 [16:14:25]New connection [16:14:25]New thread 3066899812 created [16:14:25]Thread 3067043172 joined [16:14:25]Waiting for new connection... [16:14:25] Sock 9.Parse request [16:14:25]Sock 9.Check first char [16:14:25]Sock 9.First char is OK [16:14:25]request: POST /json_proto HTTP/1.0 [16:14:25]Method: POST [16:14:25]URL: /json_proto [16:14:25]Method is POST - this is cgi request [16:14:25]url: /json_proto [16:14:25]query_string will be loaded in cgi processing [16:14:25]execute_cgi json_proto POST (null) [16:14:25]execute_cgi path=json_proto method=POST [16:14:25]POST find Content-Length [16:14:25]Host: 172.17.51.3:8080 [16:14:25]Content-Length: 679 [16:14:25]Content-Type: application/json [16:14:25] [16:14:25]POST finish read [16:14:25]Found Content-Length = 679 [16:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:25]execute_script... [16:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:25]POST & json_proto [16:14:25]process_json_proto [16:14:25]json parsed OK: [16:14:25]protocol is kg_v1.0 [16:14:25]action value=close_receipt [16:14:25]process_action close_receipt [16:14:25]cmd_close_receipt [16:14:25]MH_GetDate [16:14:25]Write to MH i2c: F0 00 00 15 5C 60 [16:14:25]Write i2c OK [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 09 00 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 09 00 15 5C 00 E8 20 19 67 04 C1 95 66 B1 [16:14:25]GetLastDocTimeStamp 1729699834 [16:14:25]current date 1729700072 [16:14:25]FM_GetShiftState [16:14:25]SAM_PROTO_GetShiftState [16:14:25]wFMCommunicate request_size=4 [16:14:25]MH_SAM_APDU [16:14:25]CAPDU: 80 13 01 00 [16:14:25]Write to MH i2c: E2 08 00 16 5C 80 13 01 00 00 00 00 00 EF [16:14:25]Write i2c OK [16:14:25]MH_I2C_Read... [16:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:25]Read from MH i2c: E2 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: E2 0E 00 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: E2 0E 00 16 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A9 [16:14:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:14:25]wFMCommunicate OK [16:14:25]SAM_PROTO_GetShiftState done [16:14:25]FM_GetShiftState done [16:14:25]opened in 1729643755 [16:14:25]opened+sec_in_day 1729730155 [16:14:25]quantity*price = 150037 [16:14:25]sum+1 = 150039 [16:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 160 23.10.2024 16:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31216 ФПД: 151136710823036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161432&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31216&fm=151136710823036&tin=02508201610067®Number=0000000000186857&sum=150000 [16:14:26]StoreToDocumentArchive [16:14:26]shift 117 fd 31216 [16:14:26]save to /storage/0117/doc_00031216 [16:14:26]save last doc name /storage/0117/doc_00031216 to /storage/kkm_last_doc_name [16:14:26]save OK [16:14:26]Clear old archive folders... [16:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:26]tlvbuf is 00F62950 [16:14:26]SAM_PROTO_ClearQueue [16:14:26]wFMCommunicate request_size=4 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 09 00 00 [16:14:26]Write to MH i2c: E2 08 00 23 5C 80 09 00 00 00 00 00 00 F1 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 23 5C 00 90 00 F3 [16:14:26]RAPDU: 90 00 [16:14:26]wFMCommunicate OK [16:14:26]SAM_PROTO_ClearQueue done [16:14:26]KKMCreateOFDPacket [16:14:26]OFDProtocolAddRootSTLVToBuf [16:14:26]FM_MakeSignedData [16:14:26]FM_MakeSignedData [16:14:26]SAM_PROTO_SignData [16:14:26]wFMCommunicate request_size=4 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 0D 01 02 [16:14:26]Write to MH i2c: E2 08 00 24 5C 80 0D 01 02 00 00 00 00 F9 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 24 5C 00 90 00 F4 [16:14:26]RAPDU: 90 00 [16:14:26]wFMCommunicate OK [16:14:26]wFMCommunicate request_size=255 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E8 20 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 79 00 00 35 04 06 00 89 75 41 F6 [16:14:26]Write to MH i2c: E2 02 01 25 5C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E8 20 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 79 00 00 35 04 06 00 89 75 41 F6 00 00 32 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 25 5C 00 90 00 F5 [16:14:26]RAPDU: 90 00 [16:14:26]wFMCommunicate OK [16:14:26]wFMCommunicate request_size=7 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 0D 02 02 02 0C 7C [16:14:26]Write to MH i2c: E2 0A 00 26 5C 80 0D 02 02 02 00 0C 7C 00 00 88 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 03 00 26 5C 00 90 00 F6 [16:14:26]RAPDU: 90 00 [16:14:26]wFMCommunicate OK [16:14:26]wFMCommunicate request_size=4 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 0D 03 02 [16:14:26]Write to MH i2c: E2 08 00 27 5C 80 0D 03 02 00 00 00 00 FE [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0B 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0B 00 27 5C 00 A7 CA A6 05 E7 C8 B8 2A 90 00 AC [16:14:26]RAPDU: A7 CA A6 05 E7 C8 B8 2A 90 00 [16:14:26]wFMCommunicate OK [16:14:26]SAM_PROTO_SignData done [16:14:26]FM_MakeSignedData done [16:14:26]CreateOFDProtocolMessage [16:14:26]wFMCommunicate request_size=4 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 11 00 00 [16:14:26]Write to MH i2c: E2 08 00 28 5C 80 11 00 00 00 00 00 00 FE [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 17 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 17 00 28 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4C [16:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:14:26]wFMCommunicate OK [16:14:26]CreateOFDProtocolMessage done [16:14:26]OFDSenderStorePacket 31216 [16:14:26]StoreOFDPacket docnum=31216 [16:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 80 1C 04 01 F7 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E8 20 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 79 00 00 35 04 06 00 89 75 41 F6 0C 7C A7 CA A6 05 E7 C8 B8 2A [16:14:26]CheckFolder [16:14:26]dirname=/storage/ofd_packets [16:14:26]CheckFolder done [16:14:26]ProducePacketName [16:14:26]name=ofd_packets/00031216 [16:14:26]NVStorageSaveData ofd_packets/00031216 [16:14:26]File name is /storage/ofd_packets/00031216 [16:14:26]Write 298 bytes [16:14:26]NVStorageSaveData done [16:14:26]OFDSenderStorePacket done [16:14:26]KKMCreateOFDPacket done [16:14:26]NVStorageSaveData kkm_last_timestamp [16:14:26]File name is /storage/kkm_last_timestamp [16:14:26]Write 4 bytes [16:14:26]NVStorageSaveData done [16:14:26]ExternCall_PrintAddStr [16:14:26]wPrintStart [16:14:26]Write to MH i2c: 01 00 00 29 5C 85 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: 01 07 00 29 5C 00 00 00 00 00 FF 0F 9A [16:14:26]RasterBufferAndPrint [16:14:26]line Счет N : (1)343662 [16:14:26]line ИНН: 02508201610067 [16:14:26]line Контрольно-Кассовый Чек [16:14:26]line ПРОДАЖА [16:14:26]line ТРК (МРК, ГНК) : 54 [16:14:26]line Товар: 2710194210 [16:14:26]line ДТ-К-2 [16:14:26]line 19.690 * 76.20 [16:14:26]line = 1500.38 [16:14:26]line НДС 12% НСП 1% [16:14:26]line > о реализуемом товаре [16:14:26]line ОКРУГЛЕНИЕ: -0.38 [16:14:26]line ИТОГО: 1500.00 [16:14:26]line Внесено: 1500.00 [16:14:26]line СДАЧА: 0.00 [16:14:26]line НСП 1% : 13.28 [16:14:26]line НДС 12% : 159.33 [16:14:26]line Наличными: 1500.00 [16:14:26]line Безнал.: 0.00 [16:14:26]line Место: АЗС № 78 "Партнер Нефть" [16:14:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:14:26]line СНО: Общий режим [16:14:26]line Чек 160 23.10.2024 16:14 [16:14:26]line Смена: 117 ФФД: 1.0 [16:14:26]line ЗНМ: 0300000137 [16:14:26]line РНМ: 0000000000186857 [16:14:26]line Версия ККМ: v1.0 [16:14:26]line ФМ: 0000000002094219 [16:14:26]line ФД: 31216 [16:14:26]line ФПД: 151136710823036 [16:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161432&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31216&fm=151136710823036&tin=02508201610067®Number=0000000000186857&sum=150000 [16:14:27]OFD Sender: Processing packet 31216 [packets to send 11, broken 10] [16:14:27]ProducePacketName [16:14:27]name=ofd_packets/00031216 [16:14:27]OFD Sender: To server: pG, [16:14:27]CommunicateWithHost lk.salyk.kg:30040 [16:14:27]ConnectInit lk.salyk.kg [16:14:27]written 0, free lines is 4095 [16:14:27]Connected sock=10 [16:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 80 1C 04 01 F7 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 E8 20 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 79 00 00 35 04 06 00 89 75 41 F6 0C 7C A7 CA A6 05 E7 C8 B8 2A [16:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 42 5C 47 00 AB FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 79 00 00 F4 03 04 00 62 CB 18 67 B6 04 01 00 00 12 71 F0 0A 41 90 1C D4 [16:14:27]CommunicateWithHost err = 0 [16:14:27]CheckOFDResponse [16:14:27]1017 (14) - 77093643461234 [16:14:27]1041 (16) - 0000000002094219 [16:14:27]1040 (4) - 31216 [16:14:27]1012 (4) - 23.10.2024 10:09 [16:14:27]1206 (1) - 0 [16:14:27]OFD Sender: Remove packet 31216 [16:14:27]ProducePacketName [16:14:27]name=ofd_packets/00031216 [16:14:27]NVStorageDeleteData [16:14:27]Write to MH i2c: 01 00 00 54 5C B0 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 07 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 07 00 54 5C 00 00 00 00 00 E9 0C AC [16:14:27]RasterBufferAndPrint [16:14:27]line [16:14:27]line [16:14:27]line [16:14:27]line [16:14:27]line [16:14:27]written 0, free lines is 3311 [16:14:27]MH_Cut [16:14:27]Write to MH i2c: D1 01 00 5B 5C 01 89 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: D1 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: D1 01 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: D1 01 00 5B 5C 00 88 [16:14:27]Write to MH i2c: 01 00 00 5C 5C B8 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:28]OFD Sender: No OFD packet to send [16:14:28]*** Cut start [16:14:28]*** Partial cut [16:14:28]*** CUTSNS_PIN = 1 [16:14:28]*** CUTSNS_PIN = 0 [16:14:28]*** Brake cut motor [16:14:28]Read from MH i2c: 01 [16:14:28]MH_I2C_Read... [16:14:28]*** Stop cut motor [16:14:28]*** Cut end [16:14:28]Read from MH i2c: 01 07 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 5C 5C 00 00 00 00 00 FF 0F CD [16:14:28]process_action close_receipt done [16:14:28]requested_data is exist [16:14:28]produce_requested_data [16:14:28]requested_item fm.sn is exist - process it [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 11 00 00 [16:14:28]Write to MH i2c: E2 08 00 5D 5C 80 11 00 00 00 00 00 00 33 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 5D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [16:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:14:28]wFMCommunicate OK [16:14:28]requested_item fd.num is exist - process it [16:14:28]SAM_PROTO_GetFieldsCounters [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 13 00 00 [16:14:28]Write to MH i2c: E2 08 00 5E 5C 80 13 00 00 00 00 00 00 36 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 62 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 62 00 5E 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [16:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F0 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:29]wFMCommunicate OK [16:14:29]SAM_PROTO_GetFieldsCounters done [16:14:29]requested_item shift.num is exist - process it [16:14:29]requested_item shift.opened is exist - process it [16:14:29]req_shift_opened [16:14:29]FM_GetShiftState [16:14:29]SAM_PROTO_GetShiftState [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 13 01 00 [16:14:29]Write to MH i2c: E2 08 00 5F 5C 80 13 01 00 00 00 00 00 38 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 0E 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 0E 00 5F 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F2 [16:14:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:14:29]wFMCommunicate OK [16:14:29]SAM_PROTO_GetShiftState done [16:14:29]FM_GetShiftState done [16:14:29]req_shift_opened done [16:14:29]requested_item shift.open_date is exist - process it [16:14:29]req_shift_open_date [16:14:29]req_shift_open_date done [16:14:29]produce_requested_data done [16:14:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31216,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:14:29]process_action_free close_receipt [16:14:29]json_value_free [16:14:29]json_value_free done [16:14:29]process_json_proto returns [16:14:29]Send response to host [16:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31216,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:14:29]free response buf [16:14:29]execute_script done [16:14:29]execute_script returns [16:14:29]free content buf [16:14:29]Sock 9.Close socket [16:14:29]Sock 9.Thread stoped [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:54]accept exits with 7 [16:14:54]New connection [16:14:54]New thread 3067043172 created [16:14:54]Thread 3066899812 joined [16:14:54]Waiting for new connection... [16:14:54] Sock 7.Parse request [16:14:54]Sock 7.Check first char [16:14:54]Sock 7.First char is OK [16:14:54]request: POST /json_proto HTTP/1.0 [16:14:54]Method: POST [16:14:54]URL: /json_proto [16:14:54]Method is POST - this is cgi request [16:14:54]url: /json_proto [16:14:54]query_string will be loaded in cgi processing [16:14:54]execute_cgi json_proto POST (null) [16:14:54]execute_cgi path=json_proto method=POST [16:14:54]POST find Content-Length [16:14:54]Host: 172.17.51.3:8080 [16:14:54]Content-Length: 677 [16:14:54]Content-Type: application/json [16:14:54] [16:14:54]POST finish read [16:14:54]Found Content-Length = 677 [16:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:54]execute_script... [16: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 : (1)343663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:54]POST & json_proto [16:14:54]process_json_proto [16:14:54]json parsed OK: [16:14:54]protocol is kg_v1.0 [16:14:54]action value=close_receipt [16:14:54]process_action close_receipt [16:14:54]cmd_close_receipt [16:14:54]MH_GetDate [16:14:54]Write to MH i2c: F0 00 00 60 5C AB [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 09 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 09 00 60 5C 00 05 21 19 67 04 C1 95 66 1A [16:14:54]GetLastDocTimeStamp 1729700072 [16:14:54]current date 1729700101 [16:14:54]FM_GetShiftState [16:14:54]SAM_PROTO_GetShiftState [16:14:54]wFMCommunicate request_size=4 [16:14:54]MH_SAM_APDU [16:14:54]CAPDU: 80 13 01 00 [16:14:54]Write to MH i2c: E2 08 00 61 5C 80 13 01 00 00 00 00 00 3A [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:54]Read from MH i2c: E2 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 0E 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 0E 00 61 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F4 [16:14:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:14:54]wFMCommunicate OK [16:14:54]SAM_PROTO_GetShiftState done [16:14:54]FM_GetShiftState done [16:14:54]opened in 1729643755 [16:14:54]opened+sec_in_day 1729730155 [16:14:54]quantity*price = 50041 [16:14:54]sum+1 = 50042 [16:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 161 23.10.2024 16:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31217 ФПД: 135722430620825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161501&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31217&fm=135722430620825&tin=02508201610067®Number=0000000000186857&sum=50000 [16:14:55]StoreToDocumentArchive [16:14:55]shift 117 fd 31217 [16:14:55]save to /storage/0117/doc_00031217 [16:14:55]save last doc name /storage/0117/doc_00031217 to /storage/kkm_last_doc_name [16:14:55]save OK [16:14:55]Clear old archive folders... [16:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:55]tlvbuf is 00CC9680 [16:14:55]SAM_PROTO_ClearQueue [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 09 00 00 [16:14:55]Write to MH i2c: E2 08 00 6E 5C 80 09 00 00 00 00 00 00 3C [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 6E 5C 00 90 00 3E [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]SAM_PROTO_ClearQueue done [16:14:55]KKMCreateOFDPacket [16:14:55]OFDProtocolAddRootSTLVToBuf [16:14:55]FM_MakeSignedData [16:14:55]FM_MakeSignedData [16:14:55]SAM_PROTO_SignData [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 01 02 [16:14:55]Write to MH i2c: E2 08 00 6F 5C 80 0D 01 02 00 00 00 00 44 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 6F 5C 00 90 00 3F [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=255 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 05 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 79 00 00 35 04 06 00 7B [16:14:55]Write to MH i2c: E2 02 01 70 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 05 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 79 00 00 35 04 06 00 7B 00 00 76 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 70 5C 00 90 00 40 [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=10 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 02 02 05 70 57 43 E4 99 [16:14:55]Write to MH i2c: E2 0D 00 71 5C 80 0D 02 02 05 00 70 57 43 E4 99 00 00 D8 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 71 5C 00 90 00 41 [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 03 02 [16:14:55]Write to MH i2c: E2 08 00 72 5C 80 0D 03 02 00 00 00 00 49 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 72 5C 00 C5 B7 32 39 94 69 A4 0C 90 00 DE [16:14:56]RAPDU: C5 B7 32 39 94 69 A4 0C 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_SignData done [16:14:56]FM_MakeSignedData done [16:14:56]CreateOFDProtocolMessage [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 11 00 00 [16:14:56]Write to MH i2c: E2 08 00 73 5C 80 11 00 00 00 00 00 00 49 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 73 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [16:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:14:56]wFMCommunicate OK [16:14:56]CreateOFDProtocolMessage done [16:14:56]OFDSenderStorePacket 31217 [16:14:56]StoreOFDPacket docnum=31217 [16:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3F D2 07 01 1A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 05 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 79 00 00 35 04 06 00 7B 70 57 43 E4 99 C5 B7 32 39 94 69 A4 0C [16:14:56]CheckFolder [16:14:56]dirname=/storage/ofd_packets [16:14:56]CheckFolder done [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00031217 [16:14:56]NVStorageSaveData ofd_packets/00031217 [16:14:56]File name is /storage/ofd_packets/00031217 [16:14:56]Write 301 bytes [16:14:56]NVStorageSaveData done [16:14:56]OFDSenderStorePacket done [16:14:56]KKMCreateOFDPacket done [16:14:56]NVStorageSaveData kkm_last_timestamp [16:14:56]File name is /storage/kkm_last_timestamp [16:14:56]Write 4 bytes [16:14:56]NVStorageSaveData done [16:14:56]ExternCall_PrintAddStr [16:14:56]wPrintStart [16:14:56]Write to MH i2c: 01 00 00 74 5C D0 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 74 5C 00 00 00 00 00 FF 0F E5 [16:14:56]RasterBufferAndPrint [16:14:56]line Счет N : (1)343663 [16:14:56]line ИНН: 02508201610067 [16:14:56]line Контрольно-Кассовый Чек [16:14:56]line ПРОДАЖА [16:14:56]line ТРК (МРК, ГНК) : 63 [16:14:56]line Товар: 2710124130 [16:14:56]line Аи-92-К-2 [16:14:56]line 7.480 * 66.90 [16:14:56]line = 500.41 [16:14:56]line НДС 12% НСП 1% [16:14:56]line > о реализуемом товаре [16:14:56]line ОКРУГЛЕНИЕ: -0.41 [16:14:56]line ИТОГО: 500.00 [16:14:56]line Внесено: 500.00 [16:14:56]line СДАЧА: 0.00 [16:14:56]line НСП 1% : 4.43 [16:14:56]line НДС 12% : 53.14 [16:14:56]line Наличными: 500.00 [16:14:56]line Безнал.: 0.00 [16:14:56]line Место: АЗС № 78 "Партнер Нефть" [16:14:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:14:56]line СНО: Общий режим [16:14:56]line Чек 161 23.10.2024 16:15 [16:14:56]line Смена: 117 ФФД: 1.0 [16:14:56]line ЗНМ: 0300000137 [16:14:56]line РНМ: 0000000000186857 [16:14:56]line Версия ККМ: v1.0 [16:14:56]line ФМ: 0000000002094219 [16:14:56]line ФД: 31217 [16:14:56]line ФПД: 135722430620825 [16:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161501&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31217&fm=135722430620825&tin=02508201610067®Number=0000000000186857&sum=50000 [16:14:56]OFD Sender: Processing packet 31217 [packets to send 11, broken 10] [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00031217 [16:14:56]OFD Sender: To server: pG, [16:14:56]CommunicateWithHost lk.salyk.kg:30040 [16:14:56]ConnectInit lk.salyk.kg [16:14:56]written 0, free lines is 4095 [16:14:56]Connected sock=9 [16:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3F D2 07 01 1A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 05 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 79 00 00 35 04 06 00 7B 70 57 43 E4 99 C5 B7 32 39 94 69 A4 0C [16:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 EB 47 00 05 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 79 00 00 F4 03 04 00 7F CB 18 67 B6 04 01 00 00 C6 DF 3D 0D 0C 92 19 5A [16:14:56]CommunicateWithHost err = 0 [16:14:56]CheckOFDResponse [16:14:56]1017 (14) - 77093643461234 [16:14:56]1041 (16) - 0000000002094219 [16:14:56]1040 (4) - 31217 [16:14:56]1012 (4) - 23.10.2024 10:10 [16:14:56]1206 (1) - 0 [16:14:56]OFD Sender: Remove packet 31217 [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00031217 [16:14:56]NVStorageDeleteData [16:14:56]Write to MH i2c: 01 00 00 9F 5C FB [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 9F 5C 00 00 00 00 00 E4 0C F2 [16:14:56]RasterBufferAndPrint [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]written 0, free lines is 3306 [16:14:56]MH_Cut [16:14:56]Write to MH i2c: D1 01 00 A6 5C 01 D4 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 01 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 01 00 A6 5C 00 D3 [16:14:56]Write to MH i2c: 01 00 00 A7 5C 03 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]int [16:14:56]*** FLAG_PRN_PAP2 set [16:14:56]*** Cut start [16:14:56]*** Partial cut [16:14:56]*** CUTSNS_PIN = 1 [16:14:56]*** CUTSNS_PIN = 0 [16:14:57]*** Brake cut motor [16:14:57]OFD Sender: No OFD packet to send [16:14:57]Read from MH i2c: 01 [16:14:57]MH_I2C_Read... [16:14:57]*** Stop cut motor [16:14:57]Read from MH i2c: *** Cut end [16:14:57]01 07 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 07 00 A7 5C 00 02 00 00 00 FF 0F 1A [16:14:57]process_action close_receipt done [16:14:57]requested_data is exist [16:14:57]produce_requested_data [16:14:57]requested_item fm.sn is exist - process it [16:14:57]wFMCommunicate request_size=4 [16:14:57]MH_SAM_APDU [16:14:57]CAPDU: 80 11 00 00 [16:14:57]Write to MH i2c: E2 08 00 A8 5C 80 11 00 00 00 00 00 00 7E [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:57]Read from MH i2c: E2 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 17 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 17 00 A8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CC [16:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:14:57]wFMCommunicate OK [16:14:57]requested_item fd.num is exist - process it [16:14:57]SAM_PROTO_GetFieldsCounters [16:14:57]wFMCommunicate request_size=4 [16:14:57]MH_SAM_APDU [16:14:57]CAPDU: 80 13 00 00 [16:14:57]Write to MH i2c: E2 08 00 A9 5C 80 13 00 00 00 00 00 00 81 [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:57]Read from MH i2c: E2 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 62 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 62 00 A9 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F1 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:57]wFMCommunicate OK [16:14:57]SAM_PROTO_GetFieldsCounters done [16:14:57]requested_item shift.num is exist - process it [16:14:57]requested_item shift.opened is exist - process it [16:14:57]req_shift_opened [16:14:57]FM_GetShiftState [16:14:57]SAM_PROTO_GetShiftState [16:14:57]wFMCommunicate request_size=4 [16:14:57]MH_SAM_APDU [16:14:57]CAPDU: 80 13 01 00 [16:14:57]Write to MH i2c: 01 00 00 AA 5C 06 [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 07 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 07 00 AA 5C 00 02 00 00 00 FF 0F 1D [16:14:57]state=0 [16:14:57]Cover opened [16:14:57]Write to MH i2c: E2 08 00 AB 5C 80 13 01 00 00 00 00 00 84 [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:57]Read from MH i2c: E2 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 0E 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 0E 00 AB 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3E [16:14:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:14:57]wFMCommunicate OK [16:14:57]SAM_PROTO_GetShiftState done [16:14:57]FM_GetShiftState done [16:14:57]req_shift_opened done [16:14:57]requested_item shift.open_date is exist - process it [16:14:57]req_shift_open_date [16:14:57]req_shift_open_date done [16:14:57]produce_requested_data done [16:14:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31217,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:14:57]process_action_free close_receipt [16:14:57]json_value_free [16:14:57]json_value_free done [16:14:57]process_json_proto returns [16:14:57]Send response to host [16:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31217,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:14:57]free response buf [16:14:57]execute_script done [16:14:57]execute_script returns [16:14:57]free content buf [16:14:57]Sock 7.Close socket [16:14:57]Sock 7.Thread stoped [16:15:02]OFD Sender: No OFD packet to send [16:15:02]Write to MH i2c: 01 00 00 AC 5C 08 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: 01 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: 01 07 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: 01 07 00 AC 5C 00 02 00 00 00 FF 0F 1F [16:15:02]state=3 [16:15:02]Cover opened [16:15:07]OFD Sender: No OFD packet to send [16:15:07]Write to MH i2c: 01 00 00 AD 5C 09 [16:15:07]Write i2c OK [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: 01 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: 01 07 00 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: 01 07 00 AD 5C 00 02 00 00 00 FF 0F 20 [16:15:07]state=3 [16:15:07]Cover opened [16:15:12]OFD Sender: No OFD packet to send [16:15:12]Write to MH i2c: 01 00 00 AE 5C 0A [16:15:12]Write i2c OK [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: 01 [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: 01 07 00 [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: 01 07 00 AE 5C 00 02 00 00 00 FF 0F 21 [16:15:12]state=3 [16:15:12]Cover opened [16:15:17]OFD Sender: No OFD packet to send [16:15:17]Write to MH i2c: 01 00 00 AF 5C 0B [16:15:17]Write i2c OK [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: 01 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: 01 07 00 [16:15:17]MH_I2C_Read... [16:15:17]Read from MH i2c: 01 07 00 AF 5C 00 02 00 00 00 FF 0F 22 [16:15:17]state=3 [16:15:17]Cover opened [16:15:20]accept exits with 10 [16:15:20]New connection [16:15:20]New thread 3066899812 created [16:15:20]Thread 3067043172 joined [16:15:20]Waiting for new connection... [16:15:20] Sock 10.Parse request [16:15:20]Sock 10.Check first char [16:15:20]Sock 10.First char is OK [16:15:20]request: POST /json_proto HTTP/1.0 [16:15:20]Method: POST [16:15:20]URL: /json_proto [16:15:20]Method is POST - this is cgi request [16:15:20]url: /json_proto [16:15:20]query_string will be loaded in cgi processing [16:15:20]execute_cgi json_proto POST (null) [16:15:20]execute_cgi path=json_proto method=POST [16:15:20]POST find Content-Length [16:15:20]Host: 172.17.51.3:8080 [16:15:20]Content-Length: 677 [16:15:20]Content-Type: application/json [16:15:20] [16:15:20]POST finish read [16:15:20]Found Content-Length = 677 [16:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.340, "sum" : 470.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:20]execute_script... [16:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.340, "sum" : 470.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:20]POST & json_proto [16:15:20]process_json_proto [16:15:20]json parsed OK: [16:15:20]protocol is kg_v1.0 [16:15:20]action value=close_receipt [16:15:20]process_action close_receipt [16:15:20]cmd_close_receipt [16:15:20]MH_GetDate [16:15:20]Write to MH i2c: F0 00 00 B0 5C FB [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 09 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 09 00 B0 5C 00 1F 21 19 67 04 C1 95 66 84 [16:15:20]GetLastDocTimeStamp 1729700101 [16:15:20]current date 1729700127 [16:15:20]FM_GetShiftState [16:15:20]SAM_PROTO_GetShiftState [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 13 01 00 [16:15:20]Write to MH i2c: E2 08 00 B1 5C 80 13 01 00 00 00 00 00 8A [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0E 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0E 00 B1 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 44 [16:15:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:15:20]wFMCommunicate OK [16:15:20]SAM_PROTO_GetShiftState done [16:15:20]FM_GetShiftState done [16:15:20]opened in 1729643755 [16:15:20]opened+sec_in_day 1729730155 [16:15:20]quantity*price = 47042 [16:15:20]sum+1 = 47044 [16:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.96 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 162 23.10.2024 16:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31218 ФПД: 229017963632950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161527&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31218&fm=229017963632950&tin=02508201610067®Number=0000000000186857&sum=47000 [16:15:21]StoreToDocumentArchive [16:15:21]shift 117 fd 31218 [16:15:21]save to /storage/0117/doc_00031218 [16:15:21]save last doc name /storage/0117/doc_00031218 to /storage/kkm_last_doc_name [16:15:21]save OK [16:15:21]Clear old archive folders... [16:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:21]tlvbuf is 00E4B560 [16:15:21]SAM_PROTO_ClearQueue [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 09 00 00 [16:15:21]Write to MH i2c: E2 08 00 BE 5C 80 09 00 00 00 00 00 00 8C [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 BE 5C 00 90 00 8E [16:15:22]RAPDU: 90 00 [16:15:22]wFMCommunicate OK [16:15:22]SAM_PROTO_ClearQueue done [16:15:22]KKMCreateOFDPacket [16:15:22]OFDProtocolAddRootSTLVToBuf [16:15:22]FM_MakeSignedData [16:15:22]FM_MakeSignedData [16:15:22]SAM_PROTO_SignData [16:15:22]wFMCommunicate request_size=4 [16:15:22]MH_SAM_APDU [16:15:22]CAPDU: 80 0D 01 02 [16:15:22]Write to MH i2c: E2 08 00 BF 5C 80 0D 01 02 00 00 00 00 94 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 BF 5C 00 90 00 8F [16:15:22]RAPDU: 90 00 [16:15:22]wFMCommunicate OK [16:15:22]wFMCommunicate request_size=255 [16:15:22]MH_SAM_APDU [16:15:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1F 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 79 00 00 35 04 06 00 D0 [16:15:22]Write to MH i2c: E2 02 01 C0 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1F 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 79 00 00 35 04 06 00 D0 00 00 FB [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]OFD Sender: No OFD packet to send [16:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 C0 5C 00 90 00 90 [16:15:22]RAPDU: 90 00 [16:15:22]wFMCommunicate OK [16:15:22]wFMCommunicate request_size=10 [16:15:22]MH_SAM_APDU [16:15:22]CAPDU: 80 0D 02 02 05 4A 66 5E 99 36 [16:15:22]Write to MH i2c: E2 0D 00 C1 5C 80 0D 02 02 05 00 4A 66 5E 99 36 00 00 7E [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 03 00 C1 5C 00 90 00 91 [16:15:22]RAPDU: 90 00 [16:15:22]wFMCommunicate OK [16:15:22]wFMCommunicate request_size=4 [16:15:22]MH_SAM_APDU [16:15:22]CAPDU: 80 0D 03 02 [16:15:22]Write to MH i2c: E2 08 00 C2 5C 80 0D 03 02 00 00 00 00 99 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 0B 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 0B 00 C2 5C 00 83 7F 53 6C 07 5A 4B EB 90 00 F2 [16:15:22]RAPDU: 83 7F 53 6C 07 5A 4B EB 90 00 [16:15:22]wFMCommunicate OK [16:15:22]SAM_PROTO_SignData done [16:15:22]FM_MakeSignedData done [16:15:22]CreateOFDProtocolMessage [16:15:22]wFMCommunicate request_size=4 [16:15:22]MH_SAM_APDU [16:15:22]CAPDU: 80 11 00 00 [16:15:22]Write to MH i2c: E2 08 00 C3 5C 80 11 00 00 00 00 00 00 99 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:22]Read from MH i2c: E2 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 17 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: E2 17 00 C3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [16:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:15:22]wFMCommunicate OK [16:15:22]CreateOFDProtocolMessage done [16:15:22]OFDSenderStorePacket 31218 [16:15:22]StoreOFDPacket docnum=31218 [16:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 7B 07 01 A7 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1F 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 79 00 00 35 04 06 00 D0 4A 66 5E 99 36 83 7F 53 6C 07 5A 4B EB [16:15:22]CheckFolder [16:15:22]dirname=/storage/ofd_packets [16:15:22]CheckFolder done [16:15:22]ProducePacketName [16:15:22]name=ofd_packets/00031218 [16:15:22]NVStorageSaveData ofd_packets/00031218 [16:15:22]File name is /storage/ofd_packets/00031218 [16:15:22]Write 301 bytes [16:15:22]NVStorageSaveData done [16:15:22]OFDSenderStorePacket done [16:15:22]KKMCreateOFDPacket done [16:15:22]NVStorageSaveData kkm_last_timestamp [16:15:22]File name is /storage/kkm_last_timestamp [16:15:22]Write 4 bytes [16:15:22]NVStorageSaveData done [16:15:22]ExternCall_PrintAddStr [16:15:22]wPrintStart [16:15:22]Write to MH i2c: 01 00 00 C4 5C 20 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 07 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 07 00 C4 5C 00 02 00 00 00 FF 0F 37 [16:15:22]RasterBufferAndPrint [16:15:22]line Счет N : (1)343664 [16:15:22]line ИНН: 02508201610067 [16:15:22]line Контрольно-Кассовый Чек [16:15:22]line ПРОДАЖА [16:15:22]line ТРК (МРК, ГНК) : 42 [16:15:22]line Товар: 2710124500 [16:15:22]line Аи-95-К-3 [16:15:22]line 6.340 * 74.20 [16:15:22]line = 470.43 [16:15:22]line НДС 12% НСП 1% [16:15:22]line > о реализуемом товаре [16:15:22]line ОКРУГЛЕНИЕ: -0.43 [16:15:22]line ИТОГО: 470.00 [16:15:22]line Внесено: 470.00 [16:15:22]line СДАЧА: 0.00 [16:15:22]line НСП 1% : 4.16 [16:15:22]line НДС 12% : 49.96 [16:15:22]line Наличными: 470.00 [16:15:22]line Безнал.: 0.00 [16:15:22]line Место: АЗС № 78 "Партнер Нефть" [16:15:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:15:22]line СНО: Общий режим [16:15:22]line Чек 162 23.10.2024 16:15 [16:15:22]line Смена: 117 ФФД: 1.0 [16:15:22]line ЗНМ: 0300000137 [16:15:22]line РНМ: 0000000000186857 [16:15:22]line Версия ККМ: v1.0 [16:15:22]line ФМ: 0000000002094219 [16:15:22]line ФД: 31218 [16:15:22]line ФПД: 229017963632950 [16:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161527&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31218&fm=229017963632950&tin=02508201610067®Number=0000000000186857&sum=47000 [16:15:22]Write to MH i2c: 01 00 00 C5 5C 21 [16:15:22]OFD Sender: Processing packet 31218 [packets to send 11, broken 10] [16:15:22]ProducePacketName [16:15:22]name=ofd_packets/00031218 [16:15:22]OFD Sender: To server: pG, [16:15:22]CommunicateWithHost lk.salyk.kg:30040 [16:15:22]ConnectInit lk.salyk.kg [16:15:22]state=3 [16:15:22]Cover opened [16:15:22]written 0, free lines is 4095 [16:15:22]Error from MH - 05 [16:15:22]process_action_free close_receipt [16:15:22]json_value_free [16:15:22]json_value_free done [16:15:22]process_json_proto returns [16:15:22]Send response to host [16:15:22]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [16:15:22]free response buf [16:15:22]execute_script done [16:15:22]execute_script returns [16:15:22]free content buf [16:15:22]Sock 10.Close socket [16:15:22]Sock 10.Thread stoped [16:15:22]Connected sock=6 [16:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 7B 07 01 A7 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 1F 21 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 79 00 00 35 04 06 00 D0 4A 66 5E 99 36 83 7F 53 6C 07 5A 4B EB [16:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EF DF 47 00 0D 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 79 00 00 F4 03 04 00 99 CB 18 67 B6 04 01 00 00 4E 0D D7 E0 D6 1B 4A B7 [16:15:23]CommunicateWithHost err = 0 [16:15:23]CheckOFDResponse [16:15:23]1017 (14) - 77093643461234 [16:15:23]1041 (16) - 0000000002094219 [16:15:23]1040 (4) - 31218 [16:15:23]1012 (4) - 23.10.2024 10:10 [16:15:23]1206 (1) - 0 [16:15:23]OFD Sender: Remove packet 31218 [16:15:23]ProducePacketName [16:15:23]name=ofd_packets/00031218 [16:15:23]NVStorageDeleteData [16:15:23]OFD Sender: No OFD packet to send [16:15:27]Write to MH i2c: 01 00 00 C8 5C 24 [16:15:27]Write i2c OK [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 07 00 [16:15:27]MH_I2C_Read... [16:15:27]Read from MH i2c: 01 07 00 C8 5C 00 02 00 00 00 FF 0F 3B [16:15:27]state=3 [16:15:27]Cover opened [16:15:28]OFD Sender: No OFD packet to send [16:15:32]Write to MH i2c: 01 00 00 C9 5C 25 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 C9 5C 00 02 00 00 00 FF 0F 3C [16:15:32]state=3 [16:15:32]Cover opened [16:15:33]OFD Sender: No OFD packet to send [16:15:37]Write to MH i2c: 01 00 00 CA 5C 26 [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 07 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 07 00 CA 5C 00 02 00 00 00 FF 0F 3D [16:15:37]state=3 [16:15:37]Cover opened [16:15:38]OFD Sender: No OFD packet to send [16:15:42]Write to MH i2c: 01 00 00 CB 5C 27 [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 07 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 07 00 CB 5C 00 02 00 00 00 FF 0F 3E [16:15:42]state=3 [16:15:42]Cover opened [16:15:43]OFD Sender: No OFD packet to send [16:15:47]Write to MH i2c: 01 00 00 CC 5C 28 [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 07 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 07 00 CC 5C 00 02 00 00 00 FF 0F 3F [16:15:47]state=3 [16:15:47]Cover opened [16:15:48]OFD Sender: No OFD packet to send [16:15:52]Write to MH i2c: 01 00 00 CD 5C 29 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 CD 5C 00 02 00 00 00 FF 0F 40 [16:15:52]state=3 [16:15:52]Cover opened [16:15:53]OFD Sender: No OFD packet to send [16:15:57]Write to MH i2c: 01 00 00 CE 5C 2A [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 CE 5C 00 02 00 00 00 FF 0F 41 [16:15:57]state=3 [16:15:57]Cover opened [16:15:58]OFD Sender: No OFD packet to send [16:16:02]Write to MH i2c: 01 00 00 CF 5C 2B [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 CF 5C 00 02 00 00 00 FF 0F 42 [16:16:02]state=3 [16:16:02]Cover opened [16:16:03]OFD Sender: No OFD packet to send [16:16:07]Write to MH i2c: 01 00 00 D0 5C 2C [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 D0 5C 00 02 00 00 00 FF 0F 43 [16:16:07]state=3 [16:16:07]Cover opened [16:16:08]OFD Sender: No OFD packet to send [16:16:12]Write to MH i2c: 01 00 00 D1 5C 2D [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: 01 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: 01 07 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: 01 07 00 D1 5C 00 02 00 00 00 FF 0F 44 [16:16:12]state=3 [16:16:12]Cover opened [16:16:13]OFD Sender: No OFD packet to send [16:16:17]Write to MH i2c: 01 00 00 D2 5C 2E [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 D2 5C 00 02 00 00 00 FF 0F 45 [16:16:17]state=3 [16:16:17]Cover opened [16:16:18]OFD Sender: No OFD packet to send [16:16:22]Write to MH i2c: 01 00 00 D3 5C 2F [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: 01 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: 01 07 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: 01 07 00 D3 5C 00 02 00 00 00 FF 0F 46 [16:16:22]state=3 [16:16:22]Cover opened [16:16:23]OFD Sender: No OFD packet to send [16:16:27]Write to MH i2c: 01 00 00 D4 5C 30 [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 07 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 07 00 D4 5C 00 02 00 00 00 FF 0F 47 [16:16:27]state=3 [16:16:27]Cover opened [16:16:28]OFD Sender: No OFD packet to send [16:16:32]Write to MH i2c: 01 00 00 D5 5C 31 [16:16:32]Write i2c OK [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: 01 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: 01 07 00 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: 01 07 00 D5 5C 00 02 00 00 00 FF 0F 48 [16:16:32]state=3 [16:16:32]Cover opened [16:16:33]OFD Sender: No OFD packet to send [16:16:37]Write to MH i2c: 01 00 00 D6 5C 32 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 D6 5C 00 02 00 00 00 FF 0F 49 [16:16:37]state=3 [16:16:37]Cover opened [16:16:38]OFD Sender: No OFD packet to send [16:16:41]int [16:16:41]Write to MH i2c: 01 00 00 D7 5C 33 [16:16:41]*** FLAG_PRN_PAP1 set [16:16:41]Write i2c OK [16:16:41]MH_I2C_Read... [16:16:41]Read from MH i2c: 01 [16:16:41]MH_I2C_Read... [16:16:41]Read from MH i2c: 01 07 00 [16:16:41]MH_I2C_Read... [16:16:41]Read from MH i2c: 01 07 00 D7 5C 00 03 00 00 00 FF 0F 4B [16:16:41]state=3 [16:16:41]No paper [16:16:41]Cover opened [16:16:43]OFD Sender: No OFD packet to send [16:16:46]Write to MH i2c: 01 00 00 D8 5C 34 [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 D8 5C 00 03 00 00 00 FF 0F 4C [16:16:46]state=3 [16:16:46]No paper [16:16:46]Cover opened [16:16:48]OFD Sender: No OFD packet to send [16:16:51]Write to MH i2c: 01 00 00 D9 5C 35 [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 07 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 07 00 D9 5C 00 03 00 00 00 FF 0F 4D [16:16:51]state=3 [16:16:51]No paper [16:16:51]Cover opened [16:16:53]OFD Sender: No OFD packet to send [16:16:56]Write to MH i2c: 01 00 00 DA 5C 36 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 DA 5C 00 03 00 00 00 FF 0F 4E [16:16:56]state=3 [16:16:56]No paper [16:16:56]Cover opened [16:16:58]OFD Sender: No OFD packet to send [16:17:01]Write to MH i2c: 01 00 00 DB 5C 37 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 DB 5C 00 03 00 00 00 FF 0F 4F [16:17:01]state=3 [16:17:01]No paper [16:17:01]Cover opened [16:17:03]int [16:17:03]Write to MH i2c: 01 00 00 DC 5C 38 [16:17:03]*** FLAG_PRN_PAP1 reset [16:17:03]*** FLAG_PRN_PAP2 reset [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 07 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 07 00 DC 5C 00 00 00 00 00 FF 0F 4D [16:17:03]state=3 [16:17:03]Cover closed [16:17:03]OFD Sender: No OFD packet to send [16:17:04]int [16:17:04]Write to MH i2c: 01 00 00 DD 5C 39 [16:17:04]*** FLAG_PRN_KEY set [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 DD 5C 00 08 00 00 00 FF 0F 56 [16:17:04]state=0 [16:17:04]Key pressed [16:17:04]Feed [16:17:04]Write to MH i2c: D8 00 00 DE 5C 11 [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D8 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D8 01 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D8 01 00 DE 5C 00 12 [16:17:04]int [16:17:04]Write to MH i2c: 01 00 00 DF 5C 3B [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 DF 5C 00 48 00 00 00 3C 00 C6 [16:17:04]state=2 [16:17:04]Key pressed [16:17:04]int [16:17:04]Write to MH i2c: 01 00 00 E0 5C 3C [16:17:04]*** FLAG_PRN_KEY reset [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 E0 5C 00 00 00 00 00 F6 0F 48 [16:17:04]state=2 [16:17:04]Stop feed [16:17:08]accept exits with 9 [16:17:08]New connection [16:17:08]New thread 3067043172 created [16:17:08]Thread 3066899812 joined [16:17:08]Waiting for new connection... [16:17:08] Sock 9.Parse request [16:17:08]Sock 9.Check first char [16:17:08]Sock 9.First char is OK [16:17:08]request: POST /json_proto HTTP/1.0 [16:17:08]Method: POST [16:17:08]URL: /json_proto [16:17:08]Method is POST - this is cgi request [16:17:08]url: /json_proto [16:17:08]query_string will be loaded in cgi processing [16:17:08]execute_cgi json_proto POST (null) [16:17:08]execute_cgi path=json_proto method=POST [16:17:08]POST find Content-Length [16:17:08]Host: 172.17.51.3:8080 [16:17:08]Content-Length: 215 [16:17:08]Content-Type: application/json [16:17:08] [16:17:08]POST finish read [16:17:08]Found Content-Length = 215 [16:17:08]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:17:08]execute_script... [16:17:08]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:17:08]POST & json_proto [16:17:08]process_json_proto [16:17:08]json parsed OK: [16:17:08]protocol is kg_v1.0 [16:17:08]action value=get_value [16:17:08]process_action get_value [16:17:08]cmd_get_value [16:17:08]process_action get_value done [16:17:08]requested_data is exist [16:17:08]produce_requested_data [16:17:08]requested_item kkm.sn is exist - process it [16:17:08]requested_item kkm.ver is exist - process it [16:17:08]requested_item fm.sn is exist - process it [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 E1 5C 80 11 00 00 00 00 00 00 B7 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]OFD Sender: No OFD packet to send [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 E1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 05 [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:17:08]wFMCommunicate OK [16:17:08]requested_item fd.num is exist - process it [16:17:08]SAM_PROTO_GetFieldsCounters [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 13 00 00 [16:17:08]Write to MH i2c: E2 08 00 E2 5C 80 13 00 00 00 00 00 00 BA [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 62 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 62 00 E2 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:17:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F2 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_GetFieldsCounters done [16:17:08]requested_item shift.num is exist - process it [16:17:08]requested_item shift.opened is exist - process it [16:17:08]req_shift_opened [16:17:08]FM_GetShiftState [16:17:08]SAM_PROTO_GetShiftState [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 13 01 00 [16:17:08]Write to MH i2c: E2 08 00 E3 5C 80 13 01 00 00 00 00 00 BC [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0E 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0E 00 E3 5C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 76 [16:17:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_GetShiftState done [16:17:08]FM_GetShiftState done [16:17:08]req_shift_opened done [16:17:08]requested_item shift.open_date is exist - process it [16:17:08]req_shift_open_date [16:17:08]req_shift_open_date done [16:17:08]produce_requested_data done [16:17:08]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31218,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:17:08]process_action_free get_value [16:17:08]json_value_free [16:17:08]json_value_free done [16:17:08]process_json_proto returns [16:17:08]Send response to host [16:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":31218,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:17:08]free response buf [16:17:08]execute_script done [16:17:08]execute_script returns [16:17:08]free content buf [16:17:08]Sock 9.Close socket [16:17:08]Sock 9.Thread stoped [16:17:08]accept exits with 7 [16:17:08]New connection [16:17:08]New thread 3066899812 created [16:17:08]Thread 3067043172 joined [16:17:08]Waiting for new connection... [16:17:08] Sock 7.Parse request [16:17:08]Sock 7.Check first char [16:17:08]Sock 7.First char is OK [16:17:08]request: POST /json_proto HTTP/1.0 [16:17:08]Method: POST [16:17:08]URL: /json_proto [16:17:08]Method is POST - this is cgi request [16:17:08]url: /json_proto [16:17:08]query_string will be loaded in cgi processing [16:17:08]execute_cgi json_proto POST (null) [16:17:08]execute_cgi path=json_proto method=POST [16:17:08]POST find Content-Length [16:17:08]Host: 172.17.51.3:8080 [16:17:08]Content-Length: 331 [16:17:08]Content-Type: application/json [16:17:08] [16:17:08]POST finish read [16:17:09]Found Content-Length = 331 [16:17:09]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:17:09]execute_script... [16:17:09]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:17:09]POST & json_proto [16:17:09]process_json_proto [16:17:09]json parsed OK: [16:17:09]protocol is kg_v1.0 [16:17:09]action value=get_value [16:17:09]process_action get_value [16:17:09]cmd_get_value [16:17:09]process_action get_value done [16:17:09]requested_data is exist [16:17:09]produce_requested_data [16:17:09]requested_item fm.sale.total is exist - process it [16:17:09]SAM_PROTO_GetFMData [16:17:09]wFMCommunicate request_size=4 [16:17:09]MH_SAM_APDU [16:17:09]CAPDU: 80 13 03 00 [16:17:09]Write to MH i2c: E2 08 00 E4 5C 80 13 03 00 00 00 00 00 BF [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:17:09]Read from MH i2c: E2 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 FD 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 FD 00 E4 5C 00 BF 04 85 04 BB 04 6E 04 04 00 08 79 00 00 69 04 A1 00 6F 04 04 00 F9 78 00 00 B1 04 04 00 97 F1 49 A7 70 04 04 00 58 04 36 86 72 04 04 00 3F ED 13 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 2A C5 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 16 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 58 [16:17:09]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 08 79 00 00 69 04 A1 00 6F 04 04 00 F9 78 00 00 B1 04 04 00 97 F1 49 A7 70 04 04 00 58 04 36 86 72 04 04 00 3F ED 13 21 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 2A C5 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 16 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [16:17:09]wFMCommunicate OK [16:17:09]wFMCommunicate request_size=4 [16:17:09]MH_SAM_APDU [16:17:09]CAPDU: 80 17 00 00 [16:17:09]Write to MH i2c: E2 08 00 E5 5C 80 17 00 00 00 00 00 00 C1 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 E5 5C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 92 [16:17:10]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [16:17:10]wFMCommunicate OK [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 17 00 00 [16:17:10]Write to MH i2c: E2 08 00 E6 5C 80 17 00 00 00 00 00 00 C2 [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 E6 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 66 [16:17:10]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [16:17:10]wFMCommunicate OK [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 17 00 00 [16:17:10]Write to MH i2c: E2 08 00 E7 5C 80 17 00 00 00 00 00 00 C3 [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 FD 00 E7 5C 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 3D [16:17:10]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [16:17:10]wFMCommunicate OK [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 17 00 00 [16:17:10]Write to MH i2c: E2 08 00 E8 5C 80 17 00 00 00 00 00 00 C4 [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 DC 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 DC 00 E8 5C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [16:17:10]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:17:10]wFMCommunicate OK [16:17:10]SAM_PROTO_GetFMData done [16:17:10]requested_item fm.sale_refund.total is exist - process it [16:17:10]requested_item fm.buy.total is exist - process it [16:17:10]requested_item shift.sale.total is exist - process it [16:17:10]SAM_PROTO_GetShiftData [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 13 02 00 [16:17:10]Write to MH i2c: E2 08 00 E9 5C 80 13 02 00 00 00 00 00 C3 [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 E9 5C 00 AF 04 AA 04 AB 04 6E 04 04 00 A2 00 00 00 69 04 9C 00 6F 04 04 00 A2 00 00 00 B1 04 03 00 9F A3 9E 70 04 03 00 EC AA 81 72 04 03 00 B3 F8 1C 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 1C DA 10 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 83 67 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 86 [16:17:11]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A2 00 00 00 69 04 9C 00 6F 04 04 00 A2 00 00 00 B1 04 03 00 9F A3 9E 70 04 03 00 EC AA 81 72 04 03 00 B3 F8 1C 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 1C DA 10 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 83 67 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [16:17:11]wFMCommunicate OK [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 17 00 00 [16:17:11]Write to MH i2c: E2 08 00 EA 5C 80 17 00 00 00 00 00 00 C6 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 EA 5C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 DF [16:17:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [16:17:11]wFMCommunicate OK [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 17 00 00 [16:17:11]Write to MH i2c: E2 08 00 EB 5C 80 17 00 00 00 00 00 00 C7 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 FD 00 EB 5C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 7B [16:17:11]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [16:17:11]wFMCommunicate OK [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 17 00 00 [16:17:11]Write to MH i2c: E2 08 00 EC 5C 80 17 00 00 00 00 00 00 C8 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 FD 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 FD 00 EC 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 46 [16:17:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [16:17:12]wFMCommunicate OK [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 17 00 00 [16:17:12]Write to MH i2c: E2 08 00 ED 5C 80 17 00 00 00 00 00 00 C9 [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 CC 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 CC 00 ED 5C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [16:17:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:17:12]wFMCommunicate OK [16:17:12]SAM_PROTO_GetShiftData done [16:17:12]requested_item shift.sale.total_cash is exist - process it [16:17:12]requested_item shift.sale_refund.total is exist - process it [16:17:12]requested_item shift.sale_refund.total_cash is exist - process it [16:17:12]requested_item shift.buy.total is exist - process it [16:17:12]requested_item shift.buy.total_cash is exist - process it [16:17:12]produce_requested_data done [16:17:12]produce_requested_data return {"fm.sale.total":28066410.47,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":103965.75,"shift.sale.total_cash":84979.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:17:12]process_action_free get_value [16:17:12]json_value_free [16:17:12]json_value_free done [16:17:12]process_json_proto returns [16:17:12]Send response to host [16:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":28066410.47,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":103965.75,"shift.sale.total_cash":84979.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:17:12]free response buf [16:17:12]execute_script done [16:17:12]execute_script returns [16:17:12]free content buf [16:17:12]Sock 7.Close socket [16:17:12]Sock 7.Thread stoped [16:17:12]accept exits with 9 [16:17:12]New connection [16:17:12]New thread 3067043172 created [16:17:12]Thread 3066899812 joined [16:17:12]Waiting for new connection... [16:17:12] Sock 9.Parse request [16:17:12]Sock 9.Check first char [16:17:12]Sock 9.First char is OK [16:17:12]request: POST /json_proto HTTP/1.0 [16:17:12]Method: POST [16:17:12]URL: /json_proto [16:17:12]Method is POST - this is cgi request [16:17:12]url: /json_proto [16:17:12]query_string will be loaded in cgi processing [16:17:12]execute_cgi json_proto POST (null) [16:17:12]execute_cgi path=json_proto method=POST [16:17:12]POST find Content-Length [16:17:12]Host: 172.17.51.3:8080 [16:17:12]Content-Length: 144 [16:17:12]Content-Type: application/json [16:17:12] [16:17:12]POST finish read [16:17:12]Found Content-Length = 144 [16:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:17:12]execute_script... [16:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:17:12]POST & json_proto [16:17:12]process_json_proto [16:17:12]json parsed OK: [16:17:12]protocol is kg_v1.0 [16:17:12]action value=print_doc [16:17:12]process_action print_doc [16:17:12]ExternCall_PrintAddStr [16:17:12]wPrintStart [16:17:12]Write to MH i2c: 01 00 00 EE 5C 4A [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: 01 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: 01 07 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: 01 07 00 EE 5C 00 00 00 00 00 FF 0F 5F [16:17:12]RasterBufferAndPrint [16:17:12]line Счет N : (1)343664 [16:17:12]line ИНН: 02508201610067 [16:17:12]line Контрольно-Кассовый Чек [16:17:12]line ПРОДАЖА [16:17:12]line ТРК (МРК, ГНК) : 42 [16:17:12]line Товар: 2710124500 [16:17:12]line Аи-95-К-3 [16:17:12]line 6.340 * 74.20 [16:17:12]line = 470.43 [16:17:12]line НДС 12% НСП 1% [16:17:12]line > о реализуемом товаре [16:17:12]line ОКРУГЛЕНИЕ: -0.43 [16:17:12]line ИТОГО: 470.00 [16:17:12]line Внесено: 470.00 [16:17:12]line СДАЧА: 0.00 [16:17:12]line НСП 1% : 4.16 [16:17:12]line НДС 12% : 49.96 [16:17:12]line Наличными: 470.00 [16:17:12]line Безнал.: 0.00 [16:17:12]line Место: АЗС № 78 "Партнер Нефть" [16:17:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:17:12]line СНО: Общий режим [16:17:12]line Чек 162 23.10.2024 16:15 [16:17:12]line Смена: 117 ФФД: 1.0 [16:17:12]line ЗНМ: 0300000137 [16:17:12]line РНМ: 0000000000186857 [16:17:12]line Версия ККМ: v1.0 [16:17:12]line ФМ: 0000000002094219 [16:17:12]line ФД: 31218 [16:17:12]line ФПД: 229017963632950 [16:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161527&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31218&fm=229017963632950&tin=02508201610067®Number=0000000000186857&sum=47000 [16:17:12]written 0, free lines is 4095 [16:17:13]Write to MH i2c: 01 00 00 19 5D 76 [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: 01 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: 01 07 00 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: 01 07 00 19 5D 00 00 00 00 00 EA 0C 73 [16:17:13]RasterBufferAndPrint [16:17:13]line [16:17:13]line [16:17:13]line [16:17:13]line [16:17:13]line [16:17:13]written 0, free lines is 3318 [16:17:13]MH_Cut [16:17:13]Write to MH i2c: D1 01 00 20 5D 01 4F [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: D1 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: D1 01 00 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: D1 01 00 20 5D 00 4E [16:17:13]Write to MH i2c: 01 00 00 21 5D 7E [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:13]*** Cut start [16:17:13]*** Partial cut [16:17:13]*** CUTSNS_PIN = 1 [16:17:13]*** CUTSNS_PIN = 0 [16:17:13]OFD Sender: No OFD packet to send [16:17:13]*** Brake cut motor [16:17:14]Read from MH i2c: 01 [16:17:14]MH_I2C_Read... [16:17:14]*** Stop cut motor [16:17:14]*** Cut end [16:17:14]Read from MH i2c: 01 07 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 21 5D 00 00 00 00 00 FF 0F 93 [16:17:14]process_action print_doc done [16:17:14]requested_data is exist [16:17:14]produce_requested_data [16:17:14]produce_requested_data return (null) [16:17:14]process_action_free print_doc [16:17:14]json_value_free [16:17:14]json_value_free done [16:17:14]process_json_proto returns [16:17:14]Send response to host [16:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:17:14]free response buf [16:17:14]execute_script done [16:17:14]execute_script returns [16:17:14]free content buf [16:17:14]Sock 9.Close socket [16:17:14]Sock 9.Thread stoped [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20: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:37]accept exits with 7 [16:23:37]New connection [16:23:37]New thread 3066899812 created [16:23:37]Thread 3067043172 joined [16:23:37]Waiting for new connection... [16:23:37] Sock 7.Parse request [16:23:37]Sock 7.Check first char [16:23:37]Sock 7.First char is OK [16:23:37]request: POST /json_proto HTTP/1.0 [16:23:37]Method: POST [16:23:37]URL: /json_proto [16:23:37]Method is POST - this is cgi request [16:23:37]url: /json_proto [16:23:37]query_string will be loaded in cgi processing [16:23:37]execute_cgi json_proto POST (null) [16:23:37]execute_cgi path=json_proto method=POST [16:23:37]POST find Content-Length [16:23:37]Host: 172.17.51.3:8080 [16:23:37]Content-Length: 682 [16:23:37]Content-Type: application/json [16:23:37] [16:23:37]POST finish read [16:23:37]Found Content-Length = 682 [16:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:37]execute_script... [16:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:37]POST & json_proto [16:23:37]process_json_proto [16:23:37]json parsed OK: [16:23:37]protocol is kg_v1.0 [16:23:37]action value=close_receipt [16:23:37]process_action close_receipt [16:23:37]cmd_close_receipt [16:23:37]MH_GetDate [16:23:37]Write to MH i2c: F0 00 00 22 5D 6E [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 09 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 09 00 22 5D 00 10 23 19 67 04 C1 95 66 EA [16:23:37]GetLastDocTimeStamp 1729700127 [16:23:37]current date 1729700624 [16:23:37]FM_GetShiftState [16:23:37]SAM_PROTO_GetShiftState [16:23:37]wFMCommunicate request_size=4 [16:23:37]MH_SAM_APDU [16:23:37]CAPDU: 80 13 01 00 [16:23:37]Write to MH i2c: E2 08 00 23 5D 80 13 01 00 00 00 00 00 FD [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:37]Read from MH i2c: E2 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 0E 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 0E 00 23 5D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B7 [16:23:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:23:37]wFMCommunicate OK [16:23:37]SAM_PROTO_GetShiftState done [16:23:37]FM_GetShiftState done [16:23:37]opened in 1729643755 [16:23:37]opened+sec_in_day 1729730155 [16:23:37]quantity*price = 100015 [16:23:37]sum+1 = 100017 [16:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 163 23.10.2024 16:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31219 ФПД: 91991006861819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31219&fm=91991006861819&tin=02508201610067®Number=0000000000186857&sum=100000 [16:23:38]StoreToDocumentArchive [16:23:38]shift 117 fd 31219 [16:23:38]save to /storage/0117/doc_00031219 [16:23:38]save last doc name /storage/0117/doc_00031219 to /storage/kkm_last_doc_name [16:23:38]save OK [16:23:38]Clear old archive folders... [16:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:38]tlvbuf is 00D27D60 [16:23:38]SAM_PROTO_ClearQueue [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 09 00 00 [16:23:38]Write to MH i2c: E2 08 00 30 5D 80 09 00 00 00 00 00 00 FF [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 30 5D 00 90 00 01 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]SAM_PROTO_ClearQueue done [16:23:38]KKMCreateOFDPacket [16:23:38]OFDProtocolAddRootSTLVToBuf [16:23:38]FM_MakeSignedData [16:23:38]FM_MakeSignedData [16:23:38]SAM_PROTO_SignData [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 01 02 [16:23:38]Write to MH i2c: E2 08 00 31 5D 80 0D 01 02 00 00 00 00 07 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 31 5D 00 90 00 02 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]wFMCommunicate request_size=255 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 10 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 79 00 00 35 04 06 00 53 [16:23:38]Write to MH i2c: E2 02 01 32 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 10 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 79 00 00 35 04 06 00 53 00 00 1C [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:39]OFD Sender: No OFD packet to send [16:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 03 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 03 00 32 5D 00 90 00 03 [16:23:39]RAPDU: 90 00 [16:23:39]wFMCommunicate OK [16:23:39]wFMCommunicate request_size=10 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 0D 02 02 05 AA 53 49 59 FB [16:23:39]Write to MH i2c: E2 0D 00 33 5D 80 0D 02 02 05 00 AA 53 49 59 FB 00 00 AE [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 03 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 03 00 33 5D 00 90 00 04 [16:23:39]RAPDU: 90 00 [16:23:39]wFMCommunicate OK [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 0D 03 02 [16:23:39]Write to MH i2c: E2 08 00 34 5D 80 0D 03 02 00 00 00 00 0C [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0B 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0B 00 34 5D 00 96 39 57 1D AB D9 AA 65 90 00 E3 [16:23:39]RAPDU: 96 39 57 1D AB D9 AA 65 90 00 [16:23:39]wFMCommunicate OK [16:23:39]SAM_PROTO_SignData done [16:23:39]FM_MakeSignedData done [16:23:39]CreateOFDProtocolMessage [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 11 00 00 [16:23:39]Write to MH i2c: E2 08 00 35 5D 80 11 00 00 00 00 00 00 0C [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 17 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 17 00 35 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [16:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:23:39]wFMCommunicate OK [16:23:39]CreateOFDProtocolMessage done [16:23:39]OFDSenderStorePacket 31219 [16:23:39]StoreOFDPacket docnum=31219 [16:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E9 2C 07 01 0F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 10 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 79 00 00 35 04 06 00 53 AA 53 49 59 FB 96 39 57 1D AB D9 AA 65 [16:23:39]CheckFolder [16:23:39]dirname=/storage/ofd_packets [16:23:39]CheckFolder done [16:23:39]ProducePacketName [16:23:39]name=ofd_packets/00031219 [16:23:39]NVStorageSaveData ofd_packets/00031219 [16:23:39]File name is /storage/ofd_packets/00031219 [16:23:39]Write 301 bytes [16:23:39]NVStorageSaveData done [16:23:39]OFDSenderStorePacket done [16:23:39]KKMCreateOFDPacket done [16:23:39]NVStorageSaveData kkm_last_timestamp [16:23:39]File name is /storage/kkm_last_timestamp [16:23:39]Write 4 bytes [16:23:39]NVStorageSaveData done [16:23:39]ExternCall_PrintAddStr [16:23:39]wPrintStart [16:23:39]Write to MH i2c: 01 00 00 36 5D 93 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 07 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 07 00 36 5D 00 00 00 00 00 FF 0F A8 [16:23:39]RasterBufferAndPrint [16:23:39]line Счет N : (1)343665 [16:23:39]line ИНН: 02508201610067 [16:23:39]line Контрольно-Кассовый Чек [16:23:39]line ПРОДАЖА [16:23:39]line ТРК (МРК, ГНК) : 53 [16:23:39]line Товар: 2710124130 [16:23:39]line Аи-92-К-2 [16:23:39]line 14.950 * 66.90 [16:23:39]line = 1000.16 [16:23:39]line НДС 12% НСП 1% [16:23:39]line > о реализуемом товаре [16:23:39]line ОКРУГЛЕНИЕ: -0.16 [16:23:39]line ИТОГО: 1000.00 [16:23:39]line Внесено: 1000.00 [16:23:39]line СДАЧА: 0.00 [16:23:39]line НСП 1% : 8.85 [16:23:39]line НДС 12% : 106.21 [16:23:39]line Наличными: 1000.00 [16:23:39]line Безнал.: 0.00 [16:23:39]line Место: АЗС № 78 "Партнер Нефть" [16:23:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:23:39]line СНО: Общий режим [16:23:39]line Чек 163 23.10.2024 16:23 [16:23:39]line Смена: 117 ФФД: 1.0 [16:23:39]line ЗНМ: 0300000137 [16:23:39]line РНМ: 0000000000186857 [16:23:39]line Версия ККМ: v1.0 [16:23:39]line ФМ: 0000000002094219 [16:23:39]line ФД: 31219 [16:23:39]line ФПД: 91991006861819 [16:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31219&fm=91991006861819&tin=02508201610067®Number=0000000000186857&sum=100000 [16:23:39]OFD Sender: Processing packet 31219 [packets to send 11, broken 10] [16:23:39]ProducePacketName [16:23:39]name=ofd_packets/00031219 [16:23:39]OFD Sender: To server: pG, [16:23:39]CommunicateWithHost lk.salyk.kg:30040 [16:23:39]ConnectInit lk.salyk.kg [16:23:39]written 0, free lines is 4095 [16:23:39]Connected sock=10 [16:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E9 2C 07 01 0F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 10 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 79 00 00 35 04 06 00 53 AA 53 49 59 FB 96 39 57 1D AB D9 AA 65 [16:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3B D9 47 00 A0 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 79 00 00 F4 03 04 00 8A CD 18 67 B6 04 01 00 00 95 75 E3 77 F6 4F AC 19 [16:23:40]CommunicateWithHost err = 0 [16:23:40]CheckOFDResponse [16:23:40]1017 (14) - 77093643461234 [16:23:40]1041 (16) - 0000000002094219 [16:23:40]1040 (4) - 31219 [16:23:40]1012 (4) - 23.10.2024 10:18 [16:23:40]1206 (1) - 0 [16:23:40]OFD Sender: Remove packet 31219 [16:23:40]ProducePacketName [16:23:40]name=ofd_packets/00031219 [16:23:40]NVStorageDeleteData [16:23:40]Write to MH i2c: 01 00 00 61 5D BE [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: 01 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: 01 07 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: 01 07 00 61 5D 00 00 00 00 00 F5 0C C6 [16:23:40]RasterBufferAndPrint [16:23:40]line [16:23:40]line [16:23:40]line [16:23:40]line [16:23:40]line [16:23:40]written 0, free lines is 3323 [16:23:40]MH_Cut [16:23:40]Write to MH i2c: D1 01 00 68 5D 01 97 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: D1 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: D1 01 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: D1 01 00 68 5D 00 96 [16:23:40]Write to MH i2c: 01 00 00 69 5D C6 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]OFD Sender: No OFD packet to send [16:23:40]*** Cut start [16:23:40]*** Partial cut [16:23:40]*** CUTSNS_PIN = 1 [16:23:40]*** CUTSNS_PIN = 0 [16:23:41]*** Brake cut motor [16:23:41]Read from MH i2c: 01 [16:23:41]MH_I2C_Read... [16:23:41]*** Stop cut motor [16:23:41]*** Cut end [16:23:41]Read from MH i2c: 01 07 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 69 5D 00 00 00 00 00 FF 0F DB [16:23:41]process_action close_receipt done [16:23:41]requested_data is exist [16:23:41]produce_requested_data [16:23:41]requested_item fm.sn is exist - process it [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 11 00 00 [16:23:41]Write to MH i2c: E2 08 00 6A 5D 80 11 00 00 00 00 00 00 41 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 17 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 17 00 6A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8F [16:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:23:41]wFMCommunicate OK [16:23:41]requested_item fd.num is exist - process it [16:23:41]SAM_PROTO_GetFieldsCounters [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 13 00 00 [16:23:41]Write to MH i2c: E2 08 00 6B 5D 80 13 00 00 00 00 00 00 44 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 62 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 62 00 6B 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [16:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F3 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_GetFieldsCounters done [16:23:41]requested_item shift.num is exist - process it [16:23:41]requested_item shift.opened is exist - process it [16:23:41]req_shift_opened [16:23:41]FM_GetShiftState [16:23:41]SAM_PROTO_GetShiftState [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 13 01 00 [16:23:41]Write to MH i2c: E2 08 00 6C 5D 80 13 01 00 00 00 00 00 46 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 6C 5D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 00 [16:23:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_GetShiftState done [16:23:41]FM_GetShiftState done [16:23:41]req_shift_opened done [16:23:41]requested_item shift.open_date is exist - process it [16:23:41]req_shift_open_date [16:23:41]req_shift_open_date done [16:23:41]produce_requested_data done [16:23:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31219,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:23:41]process_action_free close_receipt [16:23:41]json_value_free [16:23:41]json_value_free done [16:23:41]process_json_proto returns [16:23:41]Send response to host [16:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31219,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:23:41]free response buf [16:23:41]execute_script done [16:23:41]execute_script returns [16:23:41]free content buf [16:23:41]Sock 7.Close socket [16:23:41]Sock 7.Thread stoped [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:48]accept exits with 9 [16:24:48]New connection [16:24:48]New thread 3067043172 created [16:24:48]Thread 3066899812 joined [16:24:48]Waiting for new connection... [16:24:48] Sock 9.Parse request [16:24:48]Sock 9.Check first char [16:24:48]Sock 9.First char is OK [16:24:48]request: POST /json_proto HTTP/1.0 [16:24:48]Method: POST [16:24:48]URL: /json_proto [16:24:48]Method is POST - this is cgi request [16:24:48]url: /json_proto [16:24:48]query_string will be loaded in cgi processing [16:24:48]execute_cgi json_proto POST (null) [16:24:48]execute_cgi path=json_proto method=POST [16:24:48]POST find Content-Length [16:24:48]Host: 172.17.51.3:8080 [16:24:48]Content-Length: 674 [16:24:48]Content-Type: application/json [16:24:48] [16:24:48]POST finish read [16:24:48]Found Content-Length = 674 [16:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:48]execute_script... [16:24:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:48]POST & json_proto [16:24:48]process_json_proto [16:24:48]json parsed OK: [16:24:48]protocol is kg_v1.0 [16:24:48]action value=close_receipt [16:24:48]process_action close_receipt [16:24:48]cmd_close_receipt [16:24:48]MH_GetDate [16:24:48]Write to MH i2c: F0 00 00 6D 5D B9 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: F0 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: F0 09 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: F0 09 00 6D 5D 00 57 23 19 67 04 C1 95 66 7C [16:24:48]GetLastDocTimeStamp 1729700624 [16:24:48]current date 1729700695 [16:24:48]FM_GetShiftState [16:24:48]SAM_PROTO_GetShiftState [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 13 01 00 [16:24:48]Write to MH i2c: E2 08 00 6E 5D 80 13 01 00 00 00 00 00 48 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0E 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 0E 00 6E 5D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 02 [16:24:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_GetShiftState done [16:24:48]FM_GetShiftState done [16:24:48]opened in 1729643755 [16:24:48]opened+sec_in_day 1729730155 [16:24:48]quantity*price = 20040 [16:24:48]sum+1 = 20042 [16:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 164 23.10.2024 16:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31220 ФПД: 185899830759317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162455&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31220&fm=185899830759317&tin=02508201610067®Number=0000000000186857&sum=20000 [16:24:49]StoreToDocumentArchive [16:24:49]shift 117 fd 31220 [16:24:49]save to /storage/0117/doc_00031220 [16:24:49]save last doc name /storage/0117/doc_00031220 to /storage/kkm_last_doc_name [16:24:49]save OK [16:24:49]Clear old archive folders... [16:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:24:49]tlvbuf is 00CD6C30 [16:24:49]SAM_PROTO_ClearQueue [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 09 00 00 [16:24:49]Write to MH i2c: E2 08 00 7B 5D 80 09 00 00 00 00 00 00 4A [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 7B 5D 00 90 00 4C [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]SAM_PROTO_ClearQueue done [16:24:49]KKMCreateOFDPacket [16:24:49]OFDProtocolAddRootSTLVToBuf [16:24:49]FM_MakeSignedData [16:24:49]FM_MakeSignedData [16:24:49]SAM_PROTO_SignData [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 01 02 [16:24:49]Write to MH i2c: E2 08 00 7C 5D 80 0D 01 02 00 00 00 00 52 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 7C 5D 00 90 00 4D [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]wFMCommunicate request_size=255 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 57 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 79 00 00 35 04 06 00 A9 13 2D 60 [16:24:49]Write to MH i2c: E2 02 01 7D 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 57 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 79 00 00 35 04 06 00 A9 13 2D 60 00 00 27 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 7D 5D 00 90 00 4E [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]wFMCommunicate request_size=7 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 02 02 02 4F 95 [16:24:49]Write to MH i2c: E2 0A 00 7E 5D 80 0D 02 02 02 00 4F 95 00 00 3D [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 7E 5D 00 90 00 4F [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 03 02 [16:24:49]Write to MH i2c: E2 08 00 7F 5D 80 0D 03 02 00 00 00 00 57 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 0B 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 0B 00 7F 5D 00 46 36 71 DA 98 8D F3 55 90 00 8C [16:24:49]RAPDU: 46 36 71 DA 98 8D F3 55 90 00 [16:24:49]wFMCommunicate OK [16:24:49]SAM_PROTO_SignData done [16:24:49]FM_MakeSignedData done [16:24:49]CreateOFDProtocolMessage [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 11 00 00 [16:24:49]Write to MH i2c: E2 08 00 80 5D 80 11 00 00 00 00 00 00 57 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 17 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 17 00 80 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [16:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:49]wFMCommunicate OK [16:24:49]CreateOFDProtocolMessage done [16:24:49]OFDSenderStorePacket 31220 [16:24:49]StoreOFDPacket docnum=31220 [16:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0D 08 04 01 26 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 57 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 79 00 00 35 04 06 00 A9 13 2D 60 4F 95 46 36 71 DA 98 8D F3 55 [16:24:49]CheckFolder [16:24:49]dirname=/storage/ofd_packets [16:24:49]CheckFolder done [16:24:49]ProducePacketName [16:24:49]name=ofd_packets/00031220 [16:24:49]NVStorageSaveData ofd_packets/00031220 [16:24:49]File name is /storage/ofd_packets/00031220 [16:24:49]Write 298 bytes [16:24:49]NVStorageSaveData done [16:24:49]OFDSenderStorePacket done [16:24:49]KKMCreateOFDPacket done [16:24:49]NVStorageSaveData kkm_last_timestamp [16:24:49]File name is /storage/kkm_last_timestamp [16:24:49]Write 4 bytes [16:24:49]NVStorageSaveData done [16:24:49]ExternCall_PrintAddStr [16:24:49]wPrintStart [16:24:49]Write to MH i2c: 01 00 00 81 5D DE [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 81 5D 00 00 00 00 00 FF 0F F3 [16:24:49]RasterBufferAndPrint [16:24:49]line Счет N : (1)343666 [16:24:49]line ИНН: 02508201610067 [16:24:49]line Контрольно-Кассовый Чек [16:24:49]line ПРОДАЖА [16:24:49]line ТРК (МРК, ГНК) : 44 [16:24:49]line Товар: 2710194210 [16:24:49]line ДТ-К-2 [16:24:49]line 2.630 * 76.20 [16:24:49]line = 200.41 [16:24:49]line НДС 12% НСП 1% [16:24:49]line > о реализуемом товаре [16:24:49]line ОКРУГЛЕНИЕ: -0.41 [16:24:49]line ИТОГО: 200.00 [16:24:49]line Внесено: 200.00 [16:24:49]line СДАЧА: 0.00 [16:24:49]line НСП 1% : 1.77 [16:24:49]line НДС 12% : 21.28 [16:24:49]line Наличными: 200.00 [16:24:49]line Безнал.: 0.00 [16:24:49]line Место: АЗС № 78 "Партнер Нефть" [16:24:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:24:49]line СНО: Общий режим [16:24:49]line Чек 164 23.10.2024 16:24 [16:24:49]line Смена: 117 ФФД: 1.0 [16:24:49]line ЗНМ: 0300000137 [16:24:49]line РНМ: 0000000000186857 [16:24:49]line Версия ККМ: v1.0 [16:24:49]line ФМ: 0000000002094219 [16:24:49]line ФД: 31220 [16:24:49]line ФПД: 185899830759317 [16:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162455&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31220&fm=185899830759317&tin=02508201610067®Number=0000000000186857&sum=20000 [16:24:50]OFD Sender: Processing packet 31220 [packets to send 11, broken 10] [16:24:50]ProducePacketName [16:24:50]name=ofd_packets/00031220 [16:24:50]OFD Sender: To server: pG, [16:24:50]CommunicateWithHost lk.salyk.kg:30040 [16:24:50]ConnectInit lk.salyk.kg [16:24:50]written 0, free lines is 4095 [16:24:50]Connected sock=7 [16:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0D 08 04 01 26 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 57 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 79 00 00 35 04 06 00 A9 13 2D 60 4F 95 46 36 71 DA 98 8D F3 55 [16:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 98 8C 47 00 2C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 79 00 00 F4 03 04 00 D0 CD 18 67 B6 04 01 00 00 0A 6F 27 6F F1 35 44 DE [16:24:50]CommunicateWithHost err = 0 [16:24:50]CheckOFDResponse [16:24:50]1017 (14) - 77093643461234 [16:24:50]1041 (16) - 0000000002094219 [16:24:50]1040 (4) - 31220 [16:24:50]1012 (4) - 23.10.2024 10:20 [16:24:50]1206 (1) - 0 [16:24:50]OFD Sender: Remove packet 31220 [16:24:50]ProducePacketName [16:24:50]name=ofd_packets/00031220 [16:24:50]NVStorageDeleteData [16:24:50]Write to MH i2c: 01 00 00 AC 5D 09 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: 01 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: 01 07 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: 01 07 00 AC 5D 00 00 00 00 00 E7 0C 03 [16:24:50]RasterBufferAndPrint [16:24:50]line [16:24:50]line [16:24:50]line [16:24:50]line [16:24:50]line [16:24:50]written 0, free lines is 3312 [16:24:50]MH_Cut [16:24:50]Write to MH i2c: D1 01 00 B3 5D 01 E2 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: D1 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: D1 01 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: D1 01 00 B3 5D 00 E1 [16:24:50]Write to MH i2c: 01 00 00 B4 5D 11 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]OFD Sender: No OFD packet to send [16:24:51]*** Cut start [16:24:51]*** Partial cut [16:24:51]*** CUTSNS_PIN = 1 [16:24:51]*** CUTSNS_PIN = 0 [16:24:51]*** Brake cut motor [16:24:51]Read from MH i2c: 01 [16:24:51]MH_I2C_Read... [16:24:51]*** Stop cut motor [16:24:51]*** Cut end [16:24:51]Read from MH i2c: 01 07 00 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: 01 07 00 B4 5D 00 00 00 00 00 FF 0F 26 [16:24:51]process_action close_receipt done [16:24:51]requested_data is exist [16:24:51]produce_requested_data [16:24:51]requested_item fm.sn is exist - process it [16:24:51]wFMCommunicate request_size=4 [16:24:51]MH_SAM_APDU [16:24:51]CAPDU: 80 11 00 00 [16:24:51]Write to MH i2c: E2 08 00 B5 5D 80 11 00 00 00 00 00 00 8C [16:24:51]Write i2c OK [16:24:51]MH_I2C_Read... [16:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:51]Read from MH i2c: E2 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 17 00 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 17 00 B5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [16:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:51]wFMCommunicate OK [16:24:51]requested_item fd.num is exist - process it [16:24:51]SAM_PROTO_GetFieldsCounters [16:24:51]wFMCommunicate request_size=4 [16:24:51]MH_SAM_APDU [16:24:51]CAPDU: 80 13 00 00 [16:24:51]Write to MH i2c: E2 08 00 B6 5D 80 13 00 00 00 00 00 00 8F [16:24:51]Write i2c OK [16:24:51]MH_I2C_Read... [16:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:51]Read from MH i2c: E2 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 62 00 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 62 00 B6 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F4 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:51]wFMCommunicate OK [16:24:51]SAM_PROTO_GetFieldsCounters done [16:24:51]requested_item shift.num is exist - process it [16:24:51]requested_item shift.opened is exist - process it [16:24:51]req_shift_opened [16:24:51]FM_GetShiftState [16:24:51]SAM_PROTO_GetShiftState [16:24:51]wFMCommunicate request_size=4 [16:24:51]MH_SAM_APDU [16:24:51]CAPDU: 80 13 01 00 [16:24:51]Write to MH i2c: E2 08 00 B7 5D 80 13 01 00 00 00 00 00 91 [16:24:51]Write i2c OK [16:24:51]MH_I2C_Read... [16:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:52]Read from MH i2c: E2 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 B7 5D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4B [16:24:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:24:52]wFMCommunicate OK [16:24:52]SAM_PROTO_GetShiftState done [16:24:52]FM_GetShiftState done [16:24:52]req_shift_opened done [16:24:52]requested_item shift.open_date is exist - process it [16:24:52]req_shift_open_date [16:24:52]req_shift_open_date done [16:24:52]produce_requested_data done [16:24:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31220,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:24:52]process_action_free close_receipt [16:24:52]json_value_free [16:24:52]json_value_free done [16:24:52]process_json_proto returns [16:24:52]Send response to host [16:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31220,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:24:52]free response buf [16:24:52]execute_script done [16:24:52]execute_script returns [16:24:52]free content buf [16:24:52]Sock 9.Close socket [16:24:52]Sock 9.Thread stoped [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:14]accept exits with 10 [16:26:14]New connection [16:26:14]New thread 3066899812 created [16:26:14]Thread 3067043172 joined [16:26:14]Waiting for new connection... [16:26:14] Sock 10.Parse request [16:26:14]Sock 10.Check first char [16:26:14]Sock 10.First char is OK [16:26:14]request: POST /json_proto HTTP/1.0 [16:26:14]Method: POST [16:26:14]URL: /json_proto [16:26:14]Method is POST - this is cgi request [16:26:14]url: /json_proto [16:26:14]query_string will be loaded in cgi processing [16:26:14]execute_cgi json_proto POST (null) [16:26:14]execute_cgi path=json_proto method=POST [16:26:14]POST find Content-Length [16:26:14]Host: 172.17.51.3:8080 [16:26:14]Content-Length: 677 [16:26:14]Content-Type: application/json [16:26:14] [16:26:14]POST finish read [16:26:14]Found Content-Length = 677 [16:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:14]execute_script... [16:26:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:14]POST & json_proto [16:26:14]process_json_proto [16:26:14]json parsed OK: [16:26:14]protocol is kg_v1.0 [16:26:14]action value=close_receipt [16:26:14]process_action close_receipt [16:26:14]cmd_close_receipt [16:26:14]MH_GetDate [16:26:14]Write to MH i2c: F0 00 00 B8 5D 04 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: F0 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: F0 09 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: F0 09 00 B8 5D 00 AD 23 19 67 04 C1 95 66 1D [16:26:14]GetLastDocTimeStamp 1729700695 [16:26:14]current date 1729700781 [16:26:14]FM_GetShiftState [16:26:14]SAM_PROTO_GetShiftState [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 13 01 00 [16:26:14]Write to MH i2c: E2 08 00 B9 5D 80 13 01 00 00 00 00 00 93 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 B9 5D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4D [16:26:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:26:14]wFMCommunicate OK [16:26:14]SAM_PROTO_GetShiftState done [16:26:14]FM_GetShiftState done [16:26:14]opened in 1729643755 [16:26:14]opened+sec_in_day 1729730155 [16:26:14]quantity*price = 50041 [16:26:14]sum+1 = 50042 [16:26:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 165 23.10.2024 16:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31221 ФПД: 254962329460980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162621&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31221&fm=254962329460980&tin=02508201610067®Number=0000000000186857&sum=50000 [16:26:15]StoreToDocumentArchive [16:26:15]shift 117 fd 31221 [16:26:15]save to /storage/0117/doc_00031221 [16:26:15]save last doc name /storage/0117/doc_00031221 to /storage/kkm_last_doc_name [16:26:15]save OK [16:26:15]Clear old archive folders... [16:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:15]tlvbuf is 00F00310 [16:26:15]SAM_PROTO_ClearQueue [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 09 00 00 [16:26:15]Write to MH i2c: E2 08 00 C6 5D 80 09 00 00 00 00 00 00 95 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:15]OFD Sender: No OFD packet to send [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 C6 5D 00 90 00 97 [16:26:15]RAPDU: 90 00 [16:26:15]wFMCommunicate OK [16:26:15]SAM_PROTO_ClearQueue done [16:26:15]KKMCreateOFDPacket [16:26:15]OFDProtocolAddRootSTLVToBuf [16:26:15]FM_MakeSignedData [16:26:15]FM_MakeSignedData [16:26:15]SAM_PROTO_SignData [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 0D 01 02 [16:26:15]Write to MH i2c: E2 08 00 C7 5D 80 0D 01 02 00 00 00 00 9D [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 C7 5D 00 90 00 98 [16:26:16]RAPDU: 90 00 [16:26:16]wFMCommunicate OK [16:26:16]wFMCommunicate request_size=255 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 79 00 00 35 04 06 00 E7 [16:26:16]Write to MH i2c: E2 02 01 C8 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 79 00 00 35 04 06 00 E7 00 00 ED [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 C8 5D 00 90 00 99 [16:26:16]RAPDU: 90 00 [16:26:16]wFMCommunicate OK [16:26:16]wFMCommunicate request_size=10 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 0D 02 02 05 E3 0B 14 20 F4 [16:26:16]Write to MH i2c: E2 0D 00 C9 5D 80 0D 02 02 05 00 E3 0B 14 20 F4 00 00 C0 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 03 00 C9 5D 00 90 00 9A [16:26:16]RAPDU: 90 00 [16:26:16]wFMCommunicate OK [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 0D 03 02 [16:26:16]Write to MH i2c: E2 08 00 CA 5D 80 0D 03 02 00 00 00 00 A2 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0B 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 0B 00 CA 5D 00 9A FE 90 B0 8E D1 A5 8D 90 00 0C [16:26:16]RAPDU: 9A FE 90 B0 8E D1 A5 8D 90 00 [16:26:16]wFMCommunicate OK [16:26:16]SAM_PROTO_SignData done [16:26:16]FM_MakeSignedData done [16:26:16]CreateOFDProtocolMessage [16:26:16]wFMCommunicate request_size=4 [16:26:16]MH_SAM_APDU [16:26:16]CAPDU: 80 11 00 00 [16:26:16]Write to MH i2c: E2 08 00 CB 5D 80 11 00 00 00 00 00 00 A2 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:16]Read from MH i2c: E2 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 17 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: E2 17 00 CB 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [16:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:16]wFMCommunicate OK [16:26:16]CreateOFDProtocolMessage done [16:26:16]OFDSenderStorePacket 31221 [16:26:16]StoreOFDPacket docnum=31221 [16:26:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C 87 07 01 50 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 79 00 00 35 04 06 00 E7 E3 0B 14 20 F4 9A FE 90 B0 8E D1 A5 8D [16:26:16]CheckFolder [16:26:16]dirname=/storage/ofd_packets [16:26:16]CheckFolder done [16:26:16]ProducePacketName [16:26:16]name=ofd_packets/00031221 [16:26:16]NVStorageSaveData ofd_packets/00031221 [16:26:16]File name is /storage/ofd_packets/00031221 [16:26:16]Write 301 bytes [16:26:16]NVStorageSaveData done [16:26:16]OFDSenderStorePacket done [16:26:16]KKMCreateOFDPacket done [16:26:16]NVStorageSaveData kkm_last_timestamp [16:26:16]File name is /storage/kkm_last_timestamp [16:26:16]Write 4 bytes [16:26:16]NVStorageSaveData done [16:26:16]ExternCall_PrintAddStr [16:26:16]wPrintStart [16:26:16]Write to MH i2c: 01 00 00 CC 5D 29 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 07 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 07 00 CC 5D 00 00 00 00 00 FF 0F 3E [16:26:16]RasterBufferAndPrint [16:26:16]line Счет N : (1)343667 [16:26:16]line ИНН: 02508201610067 [16:26:16]line Контрольно-Кассовый Чек [16:26:16]line ПРОДАЖА [16:26:16]line ТРК (МРК, ГНК) : 63 [16:26:16]line Товар: 2710124130 [16:26:16]line Аи-92-К-2 [16:26:16]line 7.480 * 66.90 [16:26:16]line = 500.41 [16:26:16]line НДС 12% НСП 1% [16:26:16]line > о реализуемом товаре [16:26:16]line ОКРУГЛЕНИЕ: -0.41 [16:26:16]line ИТОГО: 500.00 [16:26:16]line Внесено: 500.00 [16:26:16]line СДАЧА: 0.00 [16:26:16]line НСП 1% : 4.43 [16:26:16]line НДС 12% : 53.14 [16:26:16]line Наличными: 500.00 [16:26:16]line Безнал.: 0.00 [16:26:16]line Место: АЗС № 78 "Партнер Нефть" [16:26:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:26:16]line СНО: Общий режим [16:26:16]line Чек 165 23.10.2024 16:26 [16:26:16]line Смена: 117 ФФД: 1.0 [16:26:16]line ЗНМ: 0300000137 [16:26:16]line РНМ: 0000000000186857 [16:26:16]line Версия ККМ: v1.0 [16:26:16]line ФМ: 0000000002094219 [16:26:16]line ФД: 31221 [16:26:16]line ФПД: 254962329460980 [16:26:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162621&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31221&fm=254962329460980&tin=02508201610067®Number=0000000000186857&sum=50000 [16:26:16]OFD Sender: Processing packet 31221 [packets to send 11, broken 10] [16:26:16]ProducePacketName [16:26:16]name=ofd_packets/00031221 [16:26:16]OFD Sender: To server: pG, [16:26:16]CommunicateWithHost lk.salyk.kg:30040 [16:26:16]ConnectInit lk.salyk.kg [16:26:16]written 0, free lines is 4095 [16:26:16]Connected sock=9 [16:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C 87 07 01 50 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AD 23 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 79 00 00 35 04 06 00 E7 E3 0B 14 20 F4 9A FE 90 B0 8E D1 A5 8D [16:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 89 01 47 00 96 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 79 00 00 F4 03 04 00 27 CE 18 67 B6 04 01 00 00 65 22 67 E9 51 A5 51 67 [16:26:17]CommunicateWithHost err = 0 [16:26:17]CheckOFDResponse [16:26:17]1017 (14) - 77093643461234 [16:26:17]1041 (16) - 0000000002094219 [16:26:17]1040 (4) - 31221 [16:26:17]1012 (4) - 23.10.2024 10:21 [16:26:17]1206 (1) - 0 [16:26:17]OFD Sender: Remove packet 31221 [16:26:17]ProducePacketName [16:26:17]name=ofd_packets/00031221 [16:26:17]NVStorageDeleteData [16:26:17]Write to MH i2c: 01 00 00 F7 5D 54 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 07 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 07 00 F7 5D 00 00 00 00 00 EA 0C 51 [16:26:17]RasterBufferAndPrint [16:26:17]line [16:26:17]line [16:26:17]line [16:26:17]line [16:26:17]line [16:26:17]written 0, free lines is 3313 [16:26:17]MH_Cut [16:26:17]Write to MH i2c: D1 01 00 FE 5D 01 2D [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: D1 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: D1 01 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: D1 01 00 FE 5D 00 2C [16:26:17]Write to MH i2c: 01 00 00 FF 5D 5C [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]OFD Sender: No OFD packet to send [16:26:17]*** Cut start [16:26:17]*** Partial cut [16:26:17]*** CUTSNS_PIN = 1 [16:26:17]*** CUTSNS_PIN = 0 [16:26:18]*** Brake cut motor [16:26:18]Read from MH i2c: 01 [16:26:18]MH_I2C_Read... [16:26:18]*** Stop cut motor [16:26:18]*** Cut end [16:26:18]Read from MH i2c: 01 07 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: 01 07 00 FF 5D 00 00 00 00 00 FF 0F 71 [16:26:18]process_action close_receipt done [16:26:18]requested_data is exist [16:26:18]produce_requested_data [16:26:18]requested_item fm.sn is exist - process it [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 11 00 00 [16:26:18]Write to MH i2c: E2 08 00 00 5E 80 11 00 00 00 00 00 00 D8 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 17 00 00 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [16:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:18]wFMCommunicate OK [16:26:18]requested_item fd.num is exist - process it [16:26:18]SAM_PROTO_GetFieldsCounters [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 13 00 00 [16:26:18]Write to MH i2c: E2 08 00 01 5E 80 13 00 00 00 00 00 00 DB [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 62 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 62 00 01 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F5 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:18]wFMCommunicate OK [16:26:18]SAM_PROTO_GetFieldsCounters done [16:26:18]requested_item shift.num is exist - process it [16:26:18]requested_item shift.opened is exist - process it [16:26:18]req_shift_opened [16:26:18]FM_GetShiftState [16:26:18]SAM_PROTO_GetShiftState [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 13 01 00 [16:26:18]Write to MH i2c: E2 08 00 02 5E 80 13 01 00 00 00 00 00 DD [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0E 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 0E 00 02 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 97 [16:26:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:26:18]wFMCommunicate OK [16:26:18]SAM_PROTO_GetShiftState done [16:26:18]FM_GetShiftState done [16:26:18]req_shift_opened done [16:26:18]requested_item shift.open_date is exist - process it [16:26:18]req_shift_open_date [16:26:18]req_shift_open_date done [16:26:18]produce_requested_data done [16:26:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31221,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:26:18]process_action_free close_receipt [16:26:18]json_value_free [16:26:18]json_value_free done [16:26:18]process_json_proto returns [16:26:18]Send response to host [16:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31221,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:26:18]free response buf [16:26:18]execute_script done [16:26:18]execute_script returns [16:26:18]free content buf [16:26:18]Sock 10.Close socket [16:26:18]Sock 10.Thread stoped [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:55]accept exits with 7 [16:33:55]New connection [16:33:55]New thread 3067043172 created [16:33:55]Thread 3066899812 joined [16:33:55]Waiting for new connection... [16:33:55] Sock 7.Parse request [16:33:55]Sock 7.Check first char [16:33:55]Sock 7.First char is OK [16:33:55]request: POST /json_proto HTTP/1.0 [16:33:55]Method: POST [16:33:55]URL: /json_proto [16:33:55]Method is POST - this is cgi request [16:33:55]url: /json_proto [16:33:55]query_string will be loaded in cgi processing [16:33:55]execute_cgi json_proto POST (null) [16:33:55]execute_cgi path=json_proto method=POST [16:33:55]POST find Content-Length [16:33:55]Host: 172.17.51.3:8080 [16:33:55]Content-Length: 677 [16:33:55]Content-Type: application/json [16:33:55] [16:33:55]POST finish read [16:33:55]Found Content-Length = 677 [16:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:55]execute_script... [16:33:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:55]POST & json_proto [16:33:55]process_json_proto [16:33:55]json parsed OK: [16:33:55]protocol is kg_v1.0 [16:33:55]action value=close_receipt [16:33:55]process_action close_receipt [16:33:55]cmd_close_receipt [16:33:55]MH_GetDate [16:33:55]Write to MH i2c: F0 00 00 03 5E 50 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 03 5E 00 7A 25 19 67 04 C1 95 66 38 [16:33:55]GetLastDocTimeStamp 1729700781 [16:33:55]current date 1729701242 [16:33:55]FM_GetShiftState [16:33:55]SAM_PROTO_GetShiftState [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 13 01 00 [16:33:55]Write to MH i2c: E2 08 00 04 5E 80 13 01 00 00 00 00 00 DF [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 04 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 99 [16:33:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_GetShiftState done [16:33:55]FM_GetShiftState done [16:33:55]opened in 1729643755 [16:33:55]opened+sec_in_day 1729730155 [16:33:55]quantity*price = 15052 [16:33:55]sum+1 = 15054 [16:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 166 23.10.2024 16:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31222 ФПД: 54252626424019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163402&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31222&fm=54252626424019&tin=02508201610067®Number=0000000000186857&sum=15000 [16:33:56]StoreToDocumentArchive [16:33:56]shift 117 fd 31222 [16:33:56]save to /storage/0117/doc_00031222 [16:33:56]save last doc name /storage/0117/doc_00031222 to /storage/kkm_last_doc_name [16:33:56]save OK [16:33:56]Clear old archive folders... [16:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:56]tlvbuf is 00F00220 [16:33:56]SAM_PROTO_ClearQueue [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 09 00 00 [16:33:56]Write to MH i2c: E2 08 00 11 5E 80 09 00 00 00 00 00 00 E1 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 11 5E 00 90 00 E3 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_ClearQueue done [16:33:56]KKMCreateOFDPacket [16:33:56]OFDProtocolAddRootSTLVToBuf [16:33:56]FM_MakeSignedData [16:33:56]FM_MakeSignedData [16:33:56]SAM_PROTO_SignData [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 01 02 [16:33:56]Write to MH i2c: E2 08 00 12 5E 80 0D 01 02 00 00 00 00 E9 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 12 5E 00 90 00 E4 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=255 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 7A 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 79 00 00 35 04 06 00 31 [16:33:56]Write to MH i2c: E2 02 01 13 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 7A 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 79 00 00 35 04 06 00 31 00 00 51 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 13 5E 00 90 00 E5 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=10 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 02 02 05 57 AC 86 B0 D3 [16:33:56]Write to MH i2c: E2 0D 00 14 5E 80 0D 02 02 05 00 57 AC 86 B0 D3 00 00 02 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 14 5E 00 90 00 E6 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 03 02 [16:33:56]Write to MH i2c: E2 08 00 15 5E 80 0D 03 02 00 00 00 00 EE [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0B 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0B 00 15 5E 00 4D 1F 59 F9 F4 57 81 19 90 00 92 [16:33:56]RAPDU: 4D 1F 59 F9 F4 57 81 19 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_SignData done [16:33:56]FM_MakeSignedData done [16:33:56]CreateOFDProtocolMessage [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 11 00 00 [16:33:56]Write to MH i2c: E2 08 00 16 5E 80 11 00 00 00 00 00 00 EE [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 16 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [16:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:33:56]wFMCommunicate OK [16:33:56]CreateOFDProtocolMessage done [16:33:56]OFDSenderStorePacket 31222 [16:33:56]StoreOFDPacket docnum=31222 [16:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 C2 07 01 E9 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 7A 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 79 00 00 35 04 06 00 31 57 AC 86 B0 D3 4D 1F 59 F9 F4 57 81 19 [16:33:56]CheckFolder [16:33:56]dirname=/storage/ofd_packets [16:33:56]CheckFolder done [16:33:56]ProducePacketName [16:33:56]name=ofd_packets/00031222 [16:33:56]NVStorageSaveData ofd_packets/00031222 [16:33:56]File name is /storage/ofd_packets/00031222 [16:33:56]Write 301 bytes [16:33:56]NVStorageSaveData done [16:33:56]OFDSenderStorePacket done [16:33:56]KKMCreateOFDPacket done [16:33:56]NVStorageSaveData kkm_last_timestamp [16:33:56]File name is /storage/kkm_last_timestamp [16:33:56]Write 4 bytes [16:33:56]NVStorageSaveData done [16:33:56]ExternCall_PrintAddStr [16:33:56]wPrintStart [16:33:56]Write to MH i2c: 01 00 00 17 5E 75 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 17 5E 00 00 00 00 00 FF 0F 8A [16:33:56]RasterBufferAndPrint [16:33:56]line Счет N : (1)343668 [16:33:56]line ИНН: 02508201610067 [16:33:56]line Контрольно-Кассовый Чек [16:33:56]line ПРОДАЖА [16:33:56]line ТРК (МРК, ГНК) : 63 [16:33:56]line Товар: 2710124130 [16:33:56]line Аи-92-К-2 [16:33:56]line 2.250 * 66.90 [16:33:56]line = 150.53 [16:33:56]line НДС 12% НСП 1% [16:33:56]line > о реализуемом товаре [16:33:56]line ОКРУГЛЕНИЕ: -0.53 [16:33:56]line ИТОГО: 150.00 [16:33:56]line Внесено: 150.00 [16:33:56]line СДАЧА: 0.00 [16:33:56]line НСП 1% : 1.33 [16:33:56]line НДС 12% : 15.98 [16:33:56]line Наличными: 150.00 [16:33:56]line Безнал.: 0.00 [16:33:56]line Место: АЗС № 78 "Партнер Нефть" [16:33:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:33:56]line СНО: Общий режим [16:33:56]line Чек 166 23.10.2024 16:34 [16:33:56]line Смена: 117 ФФД: 1.0 [16:33:56]line ЗНМ: 0300000137 [16:33:56]line РНМ: 0000000000186857 [16:33:56]line Версия ККМ: v1.0 [16:33:56]line ФМ: 0000000002094219 [16:33:56]line ФД: 31222 [16:33:56]line ФПД: 54252626424019 [16:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163402&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31222&fm=54252626424019&tin=02508201610067®Number=0000000000186857&sum=15000 [16:33:57]OFD Sender: Processing packet 31222 [packets to send 11, broken 10] [16:33:57]ProducePacketName [16:33:57]name=ofd_packets/00031222 [16:33:57]OFD Sender: To server: pG, [16:33:57]CommunicateWithHost lk.salyk.kg:30040 [16:33:57]ConnectInit lk.salyk.kg [16:33:57]written 0, free lines is 4095 [16:33:57]Connected sock=10 [16:33:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 C2 07 01 E9 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 7A 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 79 00 00 35 04 06 00 31 57 AC 86 B0 D3 4D 1F 59 F9 F4 57 81 19 [16:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB FB 47 00 6A 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 79 00 00 F4 03 04 00 F4 CF 18 67 B6 04 01 00 00 00 9F F4 B0 62 97 20 04 [16:33:57]CommunicateWithHost err = 0 [16:33:57]CheckOFDResponse [16:33:57]1017 (14) - 77093643461234 [16:33:57]1041 (16) - 0000000002094219 [16:33:57]1040 (4) - 31222 [16:33:57]1012 (4) - 23.10.2024 10:29 [16:33:57]1206 (1) - 0 [16:33:57]OFD Sender: Remove packet 31222 [16:33:57]ProducePacketName [16:33:57]name=ofd_packets/00031222 [16:33:57]NVStorageDeleteData [16:33:57]Write to MH i2c: 01 00 00 42 5E A0 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 42 5E 00 00 00 00 00 ED 0C A0 [16:33:57]RasterBufferAndPrint [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]line [16:33:57]written 0, free lines is 3315 [16:33:57]MH_Cut [16:33:57]Write to MH i2c: D1 01 00 49 5E 01 79 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 01 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: D1 01 00 49 5E 00 78 [16:33:57]Write to MH i2c: 01 00 00 4A 5E A8 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:58]OFD Sender: No OFD packet to send [16:33:58]*** Cut start [16:33:58]*** Partial cut [16:33:58]*** CUTSNS_PIN = 1 [16:33:58]*** CUTSNS_PIN = 0 [16:33:58]*** Brake cut motor [16:33:59]Read from MH i2c: 01 [16:33:59]MH_I2C_Read... [16:33:59]*** Stop cut motor [16:33:59]*** Cut end [16:33:59]Read from MH i2c: 01 07 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 07 00 4A 5E 00 00 00 00 00 FF 0F BD [16:33:59]process_action close_receipt done [16:33:59]requested_data is exist [16:33:59]produce_requested_data [16:33:59]requested_item fm.sn is exist - process it [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 11 00 00 [16:33:59]Write to MH i2c: E2 08 00 4B 5E 80 11 00 00 00 00 00 00 23 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 17 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 17 00 4B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [16:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:33:59]wFMCommunicate OK [16:33:59]requested_item fd.num is exist - process it [16:33:59]SAM_PROTO_GetFieldsCounters [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 13 00 00 [16:33:59]Write to MH i2c: E2 08 00 4C 5E 80 13 00 00 00 00 00 00 26 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 62 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 62 00 4C 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [16:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F6 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_GetFieldsCounters done [16:33:59]requested_item shift.num is exist - process it [16:33:59]requested_item shift.opened is exist - process it [16:33:59]req_shift_opened [16:33:59]FM_GetShiftState [16:33:59]SAM_PROTO_GetShiftState [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 13 01 00 [16:33:59]Write to MH i2c: E2 08 00 4D 5E 80 13 01 00 00 00 00 00 28 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0E 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0E 00 4D 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E2 [16:33:59]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_GetShiftState done [16:33:59]FM_GetShiftState done [16:33:59]req_shift_opened done [16:33:59]requested_item shift.open_date is exist - process it [16:33:59]req_shift_open_date [16:33:59]req_shift_open_date done [16:33:59]produce_requested_data done [16:33:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31222,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:33:59]process_action_free close_receipt [16:33:59]json_value_free [16:33:59]json_value_free done [16:33:59]process_json_proto returns [16:33:59]Send response to host [16:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31222,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:33:59]free response buf [16:33:59]execute_script done [16:33:59]execute_script returns [16:33:59]free content buf [16:33:59]Sock 7.Close socket [16:33:59]Sock 7.Thread stoped [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:03]accept exits with 9 [16:35:03]New connection [16:35:03]New thread 3066899812 created [16:35:03]Thread 3067043172 joined [16:35:03]Waiting for new connection... [16:35:03] Sock 9.Parse request [16:35:03]Sock 9.Check first char [16:35:03]Sock 9.First char is OK [16:35:03]request: POST /json_proto HTTP/1.0 [16:35:03]Method: POST [16:35:03]URL: /json_proto [16:35:03]Method is POST - this is cgi request [16:35:03]url: /json_proto [16:35:03]query_string will be loaded in cgi processing [16:35:03]execute_cgi json_proto POST (null) [16:35:03]execute_cgi path=json_proto method=POST [16:35:03]POST find Content-Length [16:35:03]Host: 172.17.51.3:8080 [16:35:03]Content-Length: 677 [16:35:03]Content-Type: application/json [16:35:03] [16:35:03]POST finish read [16:35:03]Found Content-Length = 677 [16:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:03]execute_script... [16:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:03]POST & json_proto [16:35:03]process_json_proto [16:35:03]json parsed OK: [16:35:03]protocol is kg_v1.0 [16:35:03]action value=close_receipt [16:35:03]process_action close_receipt [16:35:03]cmd_close_receipt [16:35:03]MH_GetDate [16:35:03]Write to MH i2c: F0 00 00 4E 5E 9B [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 09 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 09 00 4E 5E 00 BF 25 19 67 04 C1 95 66 C8 [16:35:03]GetLastDocTimeStamp 1729701242 [16:35:03]current date 1729701311 [16:35:03]FM_GetShiftState [16:35:03]SAM_PROTO_GetShiftState [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 13 01 00 [16:35:03]Write to MH i2c: E2 08 00 4F 5E 80 13 01 00 00 00 00 00 2A [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 4F 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E4 [16:35:03]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_GetShiftState done [16:35:03]FM_GetShiftState done [16:35:03]opened in 1729643755 [16:35:03]opened+sec_in_day 1729730155 [16:35:03]quantity*price = 54055 [16:35:03]sum+1 = 54056 [16:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 167 23.10.2024 16:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31223 ФПД: 115805628035948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163511&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31223&fm=115805628035948&tin=02508201610067®Number=0000000000186857&sum=54000 [16:35:05]StoreToDocumentArchive [16:35:05]shift 117 fd 31223 [16:35:05]save to /storage/0117/doc_00031223 [16:35:05]save last doc name /storage/0117/doc_00031223 to /storage/kkm_last_doc_name [16:35:05]save OK [16:35:05]Clear old archive folders... [16:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:05]tlvbuf is 00F62AA0 [16:35:05]SAM_PROTO_ClearQueue [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 09 00 00 [16:35:05]Write to MH i2c: E2 08 00 5C 5E 80 09 00 00 00 00 00 00 2C [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 5C 5E 00 90 00 2E [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]SAM_PROTO_ClearQueue done [16:35:05]KKMCreateOFDPacket [16:35:05]OFDProtocolAddRootSTLVToBuf [16:35:05]FM_MakeSignedData [16:35:05]FM_MakeSignedData [16:35:05]SAM_PROTO_SignData [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 01 02 [16:35:05]Write to MH i2c: E2 08 00 5D 5E 80 0D 01 02 00 00 00 00 34 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 5D 5E 00 90 00 2F [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]wFMCommunicate request_size=255 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 79 00 00 35 04 06 00 69 [16:35:05]Write to MH i2c: E2 02 01 5E 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 79 00 00 35 04 06 00 69 00 00 63 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 5E 5E 00 90 00 30 [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]wFMCommunicate request_size=10 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 02 02 05 53 19 52 73 6C [16:35:05]Write to MH i2c: E2 0D 00 5F 5E 80 0D 02 02 05 00 53 19 52 73 6C 00 00 DE [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 5F 5E 00 90 00 31 [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 03 02 [16:35:05]Write to MH i2c: E2 08 00 60 5E 80 0D 03 02 00 00 00 00 39 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 0B 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 0B 00 60 5E 00 A2 31 33 81 CC 8B 5C 83 90 00 F7 [16:35:05]RAPDU: A2 31 33 81 CC 8B 5C 83 90 00 [16:35:05]wFMCommunicate OK [16:35:05]SAM_PROTO_SignData done [16:35:05]FM_MakeSignedData done [16:35:05]CreateOFDProtocolMessage [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 11 00 00 [16:35:05]Write to MH i2c: E2 08 00 61 5E 80 11 00 00 00 00 00 00 39 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 17 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 17 00 61 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [16:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:35:05]wFMCommunicate OK [16:35:05]CreateOFDProtocolMessage done [16:35:05]OFDSenderStorePacket 31223 [16:35:05]StoreOFDPacket docnum=31223 [16:35:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 07 07 01 3E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 79 00 00 35 04 06 00 69 53 19 52 73 6C A2 31 33 81 CC 8B 5C 83 [16:35:05]CheckFolder [16:35:05]dirname=/storage/ofd_packets [16:35:05]CheckFolder done [16:35:05]ProducePacketName [16:35:05]name=ofd_packets/00031223 [16:35:05]NVStorageSaveData ofd_packets/00031223 [16:35:05]File name is /storage/ofd_packets/00031223 [16:35:05]Write 301 bytes [16:35:05]NVStorageSaveData done [16:35:05]OFDSenderStorePacket done [16:35:05]KKMCreateOFDPacket done [16:35:05]NVStorageSaveData kkm_last_timestamp [16:35:05]File name is /storage/kkm_last_timestamp [16:35:05]Write 4 bytes [16:35:05]NVStorageSaveData done [16:35:05]ExternCall_PrintAddStr [16:35:05]wPrintStart [16:35:05]Write to MH i2c: 01 00 00 62 5E C0 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 62 5E 00 00 00 00 00 FF 0F D5 [16:35:05]RasterBufferAndPrint [16:35:05]line Счет N : (1)343669 [16:35:05]line ИНН: 02508201610067 [16:35:05]line Контрольно-Кассовый Чек [16:35:05]line ПРОДАЖА [16:35:05]line ТРК (МРК, ГНК) : 33 [16:35:05]line Товар: 2710124130 [16:35:05]line Аи-92-К-2 [16:35:05]line 8.080 * 66.90 [16:35:05]line = 540.55 [16:35:05]line НДС 12% НСП 1% [16:35:05]line > о реализуемом товаре [16:35:05]line ОКРУГЛЕНИЕ: -0.55 [16:35:05]line ИТОГО: 540.00 [16:35:05]line Внесено: 540.00 [16:35:05]line СДАЧА: 0.00 [16:35:05]line НСП 1% : 4.78 [16:35:05]line НДС 12% : 57.40 [16:35:05]line Наличными: 540.00 [16:35:05]line Безнал.: 0.00 [16:35:05]line Место: АЗС № 78 "Партнер Нефть" [16:35:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:35:05]line СНО: Общий режим [16:35:05]line Чек 167 23.10.2024 16:35 [16:35:05]line Смена: 117 ФФД: 1.0 [16:35:05]line ЗНМ: 0300000137 [16:35:05]line РНМ: 0000000000186857 [16:35:05]line Версия ККМ: v1.0 [16:35:05]line ФМ: 0000000002094219 [16:35:05]line ФД: 31223 [16:35:05]line ФПД: 115805628035948 [16:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163511&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31223&fm=115805628035948&tin=02508201610067®Number=0000000000186857&sum=54000 [16:35:05]OFD Sender: Processing packet 31223 [packets to send 11, broken 10] [16:35:05]ProducePacketName [16:35:05]name=ofd_packets/00031223 [16:35:05]OFD Sender: To server: pG, [16:35:05]CommunicateWithHost lk.salyk.kg:30040 [16:35:05]ConnectInit lk.salyk.kg [16:35:05]written 0, free lines is 4095 [16:35:06]Connected sock=10 [16:35:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 07 07 01 3E 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 BF 25 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 79 00 00 35 04 06 00 69 53 19 52 73 6C A2 31 33 81 CC 8B 5C 83 [16:35:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E1 1E 47 00 B8 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 32 30 39 34 32 31 39 10 04 04 00 F7 79 00 00 F4 03 04 00 38 D0 18 67 B6 04 01 00 00 4C 15 51 1E 48 EB E8 64 [16:35:06]CommunicateWithHost err = 0 [16:35:06]CheckOFDResponse [16:35:06]1017 (14) - 77093643461234 [16:35:06]1041 (16) - 0000000002094219 [16:35:06]1040 (4) - 31223 [16:35:06]1012 (4) - 23.10.2024 10:30 [16:35:06]1206 (1) - 0 [16:35:06]OFD Sender: Remove packet 31223 [16:35:06]ProducePacketName [16:35:06]name=ofd_packets/00031223 [16:35:06]NVStorageDeleteData [16:35:06]Write to MH i2c: 01 00 00 8D 5E EB [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: 01 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: 01 07 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: 01 07 00 8D 5E 00 00 00 00 00 F6 0C F4 [16:35:06]RasterBufferAndPrint [16:35:06]line [16:35:06]line [16:35:06]line [16:35:06]line [16:35:06]line [16:35:06]written 0, free lines is 3324 [16:35:06]MH_Cut [16:35:06]Write to MH i2c: D1 01 00 94 5E 01 C4 [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: D1 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: D1 01 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: D1 01 00 94 5E 00 C3 [16:35:06]Write to MH i2c: 01 00 00 95 5E F3 [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]OFD Sender: No OFD packet to send [16:35:07]*** Cut start [16:35:07]*** Partial cut [16:35:07]*** CUTSNS_PIN = 1 [16:35:07]*** CUTSNS_PIN = 0 [16:35:07]*** Brake cut motor [16:35:07]Read from MH i2c: 01 [16:35:07]MH_I2C_Read... [16:35:07]*** Stop cut motor [16:35:07]*** Cut end [16:35:07]Read from MH i2c: 01 07 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: 01 07 00 95 5E 00 00 00 00 00 FF 0F 08 [16:35:07]process_action close_receipt done [16:35:07]requested_data is exist [16:35:07]produce_requested_data [16:35:07]requested_item fm.sn is exist - process it [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 11 00 00 [16:35:07]Write to MH i2c: E2 08 00 96 5E 80 11 00 00 00 00 00 00 6E [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 96 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [16:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:35:07]wFMCommunicate OK [16:35:07]requested_item fd.num is exist - process it [16:35:07]SAM_PROTO_GetFieldsCounters [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 00 00 [16:35:07]Write to MH i2c: E2 08 00 97 5E 80 13 00 00 00 00 00 00 71 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 62 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 62 00 97 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [16:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetFieldsCounters done [16:35:07]requested_item shift.num is exist - process it [16:35:07]requested_item shift.opened is exist - process it [16:35:07]req_shift_opened [16:35:07]FM_GetShiftState [16:35:07]SAM_PROTO_GetShiftState [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 01 00 [16:35:07]Write to MH i2c: E2 08 00 98 5E 80 13 01 00 00 00 00 00 73 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 98 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2D [16:35:07]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetShiftState done [16:35:07]FM_GetShiftState done [16:35:07]req_shift_opened done [16:35:07]requested_item shift.open_date is exist - process it [16:35:07]req_shift_open_date [16:35:07]req_shift_open_date done [16:35:07]produce_requested_data done [16:35:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31223,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:35:07]process_action_free close_receipt [16:35:07]json_value_free [16:35:07]json_value_free done [16:35:07]process_json_proto returns [16:35:07]Send response to host [16:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31223,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:35:07]free response buf [16:35:07]execute_script done [16:35:07]execute_script returns [16:35:07]free content buf [16:35:07]Sock 9.Close socket [16:35:07]Sock 9.Thread stoped [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:51]accept exits with 7 [16:38:51]New connection [16:38:51]New thread 3067043172 created [16:38:51]Thread 3066899812 joined [16:38:51]Waiting for new connection... [16:38:51] Sock 7.Parse request [16:38:51]Sock 7.Check first char [16:38:51]Sock 7.First char is OK [16:38:51]request: POST /json_proto HTTP/1.0 [16:38:51]Method: POST [16:38:51]URL: /json_proto [16:38:51]Method is POST - this is cgi request [16:38:51]url: /json_proto [16:38:51]query_string will be loaded in cgi processing [16:38:51]execute_cgi json_proto POST (null) [16:38:51]execute_cgi path=json_proto method=POST [16:38:51]POST find Content-Length [16:38:51]Host: 172.17.51.3:8080 [16:38:51]Content-Length: 688 [16:38:51]Content-Type: application/json [16:38:51] [16:38:51]POST finish read [16:38:51]Found Content-Length = 688 [16:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:51]execute_script... [16:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:51]POST & json_proto [16:38:51]process_json_proto [16:38:51]json parsed OK: [16:38:51]protocol is kg_v1.0 [16:38:51]action value=close_receipt [16:38:51]process_action close_receipt [16:38:51]cmd_close_receipt [16:38:51]MH_GetDate [16:38:51]Write to MH i2c: F0 00 00 99 5E E6 [16:38:51]Write i2c OK [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 09 00 [16:38:51]MH_I2C_Read... [16:38:51]Read from MH i2c: F0 09 00 99 5E 00 A3 26 19 67 04 C1 95 66 F8 [16:38:51]GetLastDocTimeStamp 1729701311 [16:38:51]current date 1729701539 [16:38:51]FM_GetShiftState [16:38:51]SAM_PROTO_GetShiftState [16:38:51]wFMCommunicate request_size=4 [16:38:51]MH_SAM_APDU [16:38:51]CAPDU: 80 13 01 00 [16:38:51]Write to MH i2c: E2 08 00 9A 5E 80 13 01 00 00 00 00 00 75 [16:38:51]Write i2c OK [16:38:51]MH_I2C_Read... [16:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:52]Read from MH i2c: E2 [16:38:52]MH_I2C_Read... [16:38:52]Read from MH i2c: E2 0E 00 [16:38:52]MH_I2C_Read... [16:38:52]Read from MH i2c: E2 0E 00 9A 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2F [16:38:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:38:52]wFMCommunicate OK [16:38:52]SAM_PROTO_GetShiftState done [16:38:52]FM_GetShiftState done [16:38:52]opened in 1729643755 [16:38:52]opened+sec_in_day 1729730155 [16:38:52]quantity*price = 150076 [16:38:52]sum+1 = 150078 [16:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 168 23.10.2024 16:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31224 ФПД: 151421959926249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31224&fm=151421959926249&tin=02508201610067®Number=0000000000186857&sum=150000 [16:38:53]StoreToDocumentArchive [16:38:53]shift 117 fd 31224 [16:38:53]save to /storage/0117/doc_00031224 [16:38:53]save last doc name /storage/0117/doc_00031224 to /storage/kkm_last_doc_name [16:38:53]save OK [16:38:53]Clear old archive folders... [16:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:38:53]tlvbuf is 00D547E0 [16:38:53]SAM_PROTO_ClearQueue [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 09 00 00 [16:38:53]Write to MH i2c: E2 08 00 A7 5E 80 09 00 00 00 00 00 00 77 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 A7 5E 00 90 00 79 [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]SAM_PROTO_ClearQueue done [16:38:53]KKMCreateOFDPacket [16:38:53]OFDProtocolAddRootSTLVToBuf [16:38:53]FM_MakeSignedData [16:38:53]FM_MakeSignedData [16:38:53]SAM_PROTO_SignData [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 01 02 [16:38:53]Write to MH i2c: E2 08 00 A8 5E 80 0D 01 02 00 00 00 00 7F [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 A8 5E 00 90 00 7A [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=255 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A3 26 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 79 00 [16:38:53]Write to MH i2c: E2 02 01 A9 5E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A3 26 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 79 00 00 00 02 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 A9 5E 00 90 00 7B [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=16 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 89 B7 AC 21 F1 E9 [16:38:53]Write to MH i2c: E2 13 00 AA 5E 80 0D 02 02 0B 00 00 35 04 06 00 89 B7 AC 21 F1 E9 00 00 BE [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 03 00 AA 5E 00 90 00 7C [16:38:53]RAPDU: 90 00 [16:38:53]wFMCommunicate OK [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 0D 03 02 [16:38:53]Write to MH i2c: E2 08 00 AB 5E 80 0D 03 02 00 00 00 00 84 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0B 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0B 00 AB 5E 00 DA 96 A5 DB 23 DF 60 82 90 00 59 [16:38:53]RAPDU: DA 96 A5 DB 23 DF 60 82 90 00 [16:38:53]wFMCommunicate OK [16:38:53]SAM_PROTO_SignData done [16:38:53]FM_MakeSignedData done [16:38:53]CreateOFDProtocolMessage [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 11 00 00 [16:38:53]Write to MH i2c: E2 08 00 AC 5E 80 11 00 00 00 00 00 00 84 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 17 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 17 00 AC 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [16:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:38:53]wFMCommunicate OK [16:38:53]CreateOFDProtocolMessage done [16:38:53]OFDSenderStorePacket 31224 [16:38:53]StoreOFDPacket docnum=31224 [16:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 09 91 0D 01 76 4A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A3 26 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 79 00 00 35 04 06 00 89 B7 AC 21 F1 E9 DA 96 A5 DB 23 DF 60 82 [16:38:53]CheckFolder [16:38:53]dirname=/storage/ofd_packets [16:38:53]CheckFolder done [16:38:53]ProducePacketName [16:38:53]name=ofd_packets/00031224 [16:38:53]NVStorageSaveData ofd_packets/00031224 [16:38:53]File name is /storage/ofd_packets/00031224 [16:38:53]Write 307 bytes [16:38:53]NVStorageSaveData done [16:38:53]OFDSenderStorePacket done [16:38:53]KKMCreateOFDPacket done [16:38:53]NVStorageSaveData kkm_last_timestamp [16:38:53]File name is /storage/kkm_last_timestamp [16:38:53]Write 4 bytes [16:38:53]NVStorageSaveData done [16:38:53]ExternCall_PrintAddStr [16:38:53]wPrintStart [16:38:53]Write to MH i2c: 01 00 00 AD 5E 0B [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 07 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: 01 07 00 AD 5E 00 00 00 00 00 FF 0F 20 [16:38:53]RasterBufferAndPrint [16:38:53]line Счет N : (1)343670 [16:38:53]line ИНН: 02508201610067 [16:38:53]line Контрольно-Кассовый Чек [16:38:53]line ПРОДАЖА [16:38:53]line ТРК (МРК, ГНК) : 51 [16:38:53]line Товар: 2710194210 [16:38:53]line D-ENERGY Дт-К-2 [16:38:53]line 19.440 * 77.20 [16:38:53]line = 1500.77 [16:38:53]line НДС 12% НСП 1% [16:38:53]line > о реализуемом товаре [16:38:53]line ОКРУГЛЕНИЕ: -0.77 [16:38:53]line ИТОГО: 1500.00 [16:38:53]line Внесено: 1500.00 [16:38:53]line СДАЧА: 0.00 [16:38:53]line НСП 1% : 13.28 [16:38:53]line НДС 12% : 159.37 [16:38:53]line Наличными: 1500.00 [16:38:53]line Безнал.: 0.00 [16:38:53]line Место: АЗС № 78 "Партнер Нефть" [16:38:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:38:53]line СНО: Общий режим [16:38:53]line Чек 168 23.10.2024 16:38 [16:38:53]line Смена: 117 ФФД: 1.0 [16:38:53]line ЗНМ: 0300000137 [16:38:53]line РНМ: 0000000000186857 [16:38:53]line Версия ККМ: v1.0 [16:38:53]line ФМ: 0000000002094219 [16:38:53]line ФД: 31224 [16:38:53]line ФПД: 151421959926249 [16:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163859&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31224&fm=151421959926249&tin=02508201610067®Number=0000000000186857&sum=150000 [16:38:54]OFD Sender: Processing packet 31224 [packets to send 11, broken 10] [16:38:54]ProducePacketName [16:38:54]name=ofd_packets/00031224 [16:38:54]OFD Sender: To server: pG, [16:38:54]CommunicateWithHost lk.salyk.kg:30040 [16:38:54]ConnectInit lk.salyk.kg [16:38:54]written 0, free lines is 4095 [16:38:54]Connected sock=10 [16:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 09 91 0D 01 76 4A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A3 26 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 79 00 00 35 04 06 00 89 B7 AC 21 F1 E9 DA 96 A5 DB 23 DF 60 82 [16:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 48 0F 47 00 57 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 79 00 00 F4 03 04 00 1C D1 18 67 B6 04 01 00 00 5A EB A4 C1 9B E9 0A 4E [16:38:54]CommunicateWithHost err = 0 [16:38:54]CheckOFDResponse [16:38:54]1017 (14) - 77093643461234 [16:38:54]1041 (16) - 0000000002094219 [16:38:54]1040 (4) - 31224 [16:38:54]1012 (4) - 23.10.2024 10:34 [16:38:54]1206 (1) - 0 [16:38:54]OFD Sender: Remove packet 31224 [16:38:54]ProducePacketName [16:38:54]name=ofd_packets/00031224 [16:38:54]NVStorageDeleteData [16:38:54]Write to MH i2c: 01 00 00 D8 5E 36 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 D8 5E 00 00 00 00 00 EC 0C 35 [16:38:54]RasterBufferAndPrint [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]line [16:38:54]written 0, free lines is 3314 [16:38:54]MH_Cut [16:38:54]Write to MH i2c: D1 01 00 DF 5E 01 0F [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 01 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: D1 01 00 DF 5E 00 0E [16:38:54]Write to MH i2c: 01 00 00 E0 5E 3E [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]OFD Sender: No OFD packet to send [16:38:55]*** Cut start [16:38:55]*** Partial cut [16:38:55]*** CUTSNS_PIN = 1 [16:38:55]*** CUTSNS_PIN = 0 [16:38:55]*** Brake cut motor [16:38:55]Read from MH i2c: 01 [16:38:55]MH_I2C_Read... [16:38:55]*** Stop cut motor [16:38:55]*** Cut end [16:38:55]Read from MH i2c: 01 07 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 E0 5E 00 00 00 00 00 FF 0F 53 [16:38:55]process_action close_receipt done [16:38:55]requested_data is exist [16:38:55]produce_requested_data [16:38:55]requested_item fm.sn is exist - process it [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 11 00 00 [16:38:55]Write to MH i2c: E2 08 00 E1 5E 80 11 00 00 00 00 00 00 B9 [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 E1 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [16:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:38:55]wFMCommunicate OK [16:38:55]requested_item fd.num is exist - process it [16:38:55]SAM_PROTO_GetFieldsCounters [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 13 00 00 [16:38:55]Write to MH i2c: E2 08 00 E2 5E 80 13 00 00 00 00 00 00 BC [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 62 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 62 00 E2 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_GetFieldsCounters done [16:38:55]requested_item shift.num is exist - process it [16:38:55]requested_item shift.opened is exist - process it [16:38:55]req_shift_opened [16:38:55]FM_GetShiftState [16:38:55]SAM_PROTO_GetShiftState [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 13 01 00 [16:38:55]Write to MH i2c: E2 08 00 E3 5E 80 13 01 00 00 00 00 00 BE [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:56]Read from MH i2c: E2 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 0E 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: E2 0E 00 E3 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 78 [16:38:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:38:56]wFMCommunicate OK [16:38:56]SAM_PROTO_GetShiftState done [16:38:56]FM_GetShiftState done [16:38:56]req_shift_opened done [16:38:56]requested_item shift.open_date is exist - process it [16:38:56]req_shift_open_date [16:38:56]req_shift_open_date done [16:38:56]produce_requested_data done [16:38:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31224,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:38:56]process_action_free close_receipt [16:38:56]json_value_free [16:38:56]json_value_free done [16:38:56]process_json_proto returns [16:38:56]Send response to host [16:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31224,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:38:56]free response buf [16:38:56]execute_script done [16:38:56]execute_script returns [16:38:56]free content buf [16:38:56]Sock 7.Close socket [16:38:56]Sock 7.Thread stoped [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41: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:41:56]accept exits with 9 [16:41:56]New connection [16:41:56]New thread 3066899812 created [16:41:56]Thread 3067043172 joined [16:41:56]Waiting for new connection... [16:41:56] Sock 9.Parse request [16:41:56]Sock 9.Check first char [16:41:56]Sock 9.First char is OK [16:41:56]request: POST /json_proto HTTP/1.0 [16:41:56]Method: POST [16:41:56]URL: /json_proto [16:41:56]Method is POST - this is cgi request [16:41:56]url: /json_proto [16:41:56]query_string will be loaded in cgi processing [16:41:56]execute_cgi json_proto POST (null) [16:41:56]execute_cgi path=json_proto method=POST [16:41:56]POST find Content-Length [16:41:56]Host: 172.17.51.3:8080 [16:41:56]Content-Length: 677 [16:41:56]Content-Type: application/json [16:41:56] [16:41:56]POST finish read [16:41:56]Found Content-Length = 677 [16:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:56]execute_script... [16:41:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:56]POST & json_proto [16:41:56]process_json_proto [16:41:56]json parsed OK: [16:41:56]protocol is kg_v1.0 [16:41:56]action value=close_receipt [16:41:56]process_action close_receipt [16:41:56]cmd_close_receipt [16:41:56]MH_GetDate [16:41:56]Write to MH i2c: F0 00 00 E4 5E 31 [16:41:56]Write i2c OK [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: F0 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: F0 09 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: F0 09 00 E4 5E 00 5B 27 19 67 04 C1 95 66 FC [16:41:56]GetLastDocTimeStamp 1729701539 [16:41:56]current date 1729701723 [16:41:56]FM_GetShiftState [16:41:56]SAM_PROTO_GetShiftState [16:41:56]wFMCommunicate request_size=4 [16:41:56]MH_SAM_APDU [16:41:56]CAPDU: 80 13 01 00 [16:41:56]Write to MH i2c: E2 08 00 E5 5E 80 13 01 00 00 00 00 00 C0 [16:41:56]Write i2c OK [16:41:56]MH_I2C_Read... [16:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:56]Read from MH i2c: E2 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 0E 00 [16:41:56]MH_I2C_Read... [16:41:56]Read from MH i2c: E2 0E 00 E5 5E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7A [16:41:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:41:56]wFMCommunicate OK [16:41:56]SAM_PROTO_GetShiftState done [16:41:56]FM_GetShiftState done [16:41:56]opened in 1729643755 [16:41:56]opened+sec_in_day 1729730155 [16:41:56]quantity*price = 60009 [16:41:56]sum+1 = 60010 [16:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 169 23.10.2024 16:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31225 ФПД: 19114940850207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31225&fm=19114940850207&tin=02508201610067®Number=0000000000186857&sum=60000 [16:41:57]StoreToDocumentArchive [16:41:57]shift 117 fd 31225 [16:41:57]save to /storage/0117/doc_00031225 [16:41:57]save last doc name /storage/0117/doc_00031225 to /storage/kkm_last_doc_name [16:41:57]save OK [16:41:57]Clear old archive folders... [16:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:57]tlvbuf is 00DA2380 [16:41:57]SAM_PROTO_ClearQueue [16:41:57]wFMCommunicate request_size=4 [16:41:57]MH_SAM_APDU [16:41:57]CAPDU: 80 09 00 00 [16:41:57]Write to MH i2c: E2 08 00 F2 5E 80 09 00 00 00 00 00 00 C2 [16:41:57]Write i2c OK [16:41:57]MH_I2C_Read... [16:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:57]Read from MH i2c: E2 [16:41:57]MH_I2C_Read... [16:41:57]Read from MH i2c: E2 03 00 [16:41:57]MH_I2C_Read... [16:41:57]Read from MH i2c: E2 03 00 F2 5E 00 90 00 C4 [16:41:57]RAPDU: 90 00 [16:41:57]wFMCommunicate OK [16:41:57]SAM_PROTO_ClearQueue done [16:41:57]KKMCreateOFDPacket [16:41:57]OFDProtocolAddRootSTLVToBuf [16:41:57]FM_MakeSignedData [16:41:57]FM_MakeSignedData [16:41:57]SAM_PROTO_SignData [16:41:57]wFMCommunicate request_size=4 [16:41:57]MH_SAM_APDU [16:41:57]CAPDU: 80 0D 01 02 [16:41:57]Write to MH i2c: E2 08 00 F3 5E 80 0D 01 02 00 00 00 00 CA [16:41:57]Write i2c OK [16:41:57]MH_I2C_Read... [16:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:58]Read from MH i2c: E2 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 F3 5E 00 90 00 C5 [16:41:58]RAPDU: 90 00 [16:41:58]wFMCommunicate OK [16:41:58]wFMCommunicate request_size=255 [16:41:58]MH_SAM_APDU [16:41:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5B 27 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 79 00 00 35 04 06 00 11 [16:41:58]Write to MH i2c: E2 02 01 F4 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5B 27 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 79 00 00 35 04 06 00 11 00 00 DB [16:41:58]Write i2c OK [16:41:58]MH_I2C_Read... [16:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:58]Read from MH i2c: E2 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 F4 5E 00 90 00 C6 [16:41:58]RAPDU: 90 00 [16:41:58]wFMCommunicate OK [16:41:58]wFMCommunicate request_size=10 [16:41:58]MH_SAM_APDU [16:41:58]CAPDU: 80 0D 02 02 05 62 8B 42 60 1F [16:41:58]Write to MH i2c: E2 0D 00 F5 5E 80 0D 02 02 05 00 62 8B 42 60 1F 00 00 85 [16:41:58]Write i2c OK [16:41:58]MH_I2C_Read... [16:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:58]Read from MH i2c: E2 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 03 00 F5 5E 00 90 00 C7 [16:41:58]RAPDU: 90 00 [16:41:58]wFMCommunicate OK [16:41:58]wFMCommunicate request_size=4 [16:41:58]MH_SAM_APDU [16:41:58]CAPDU: 80 0D 03 02 [16:41:58]Write to MH i2c: E2 08 00 F6 5E 80 0D 03 02 00 00 00 00 CF [16:41:58]Write i2c OK [16:41:58]MH_I2C_Read... [16:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:58]Read from MH i2c: E2 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 0B 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 0B 00 F6 5E 00 58 38 D6 F5 55 4B 41 B5 90 00 C1 [16:41:58]RAPDU: 58 38 D6 F5 55 4B 41 B5 90 00 [16:41:58]wFMCommunicate OK [16:41:58]SAM_PROTO_SignData done [16:41:58]FM_MakeSignedData done [16:41:58]CreateOFDProtocolMessage [16:41:58]wFMCommunicate request_size=4 [16:41:58]MH_SAM_APDU [16:41:58]CAPDU: 80 11 00 00 [16:41:58]Write to MH i2c: E2 08 00 F7 5E 80 11 00 00 00 00 00 00 CF [16:41:58]Write i2c OK [16:41:58]MH_I2C_Read... [16:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:58]Read from MH i2c: E2 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 17 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: E2 17 00 F7 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [16:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:41:58]wFMCommunicate OK [16:41:58]CreateOFDProtocolMessage done [16:41:58]OFDSenderStorePacket 31225 [16:41:58]StoreOFDPacket docnum=31225 [16:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 61 02 07 01 21 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5B 27 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 79 00 00 35 04 06 00 11 62 8B 42 60 1F 58 38 D6 F5 55 4B 41 B5 [16:41:58]CheckFolder [16:41:58]dirname=/storage/ofd_packets [16:41:58]CheckFolder done [16:41:58]ProducePacketName [16:41:58]name=ofd_packets/00031225 [16:41:58]NVStorageSaveData ofd_packets/00031225 [16:41:58]File name is /storage/ofd_packets/00031225 [16:41:58]Write 301 bytes [16:41:58]NVStorageSaveData done [16:41:58]OFDSenderStorePacket done [16:41:58]KKMCreateOFDPacket done [16:41:58]NVStorageSaveData kkm_last_timestamp [16:41:58]File name is /storage/kkm_last_timestamp [16:41:58]Write 4 bytes [16:41:58]NVStorageSaveData done [16:41:58]ExternCall_PrintAddStr [16:41:58]wPrintStart [16:41:58]Write to MH i2c: 01 00 00 F8 5E 56 [16:41:58]Write i2c OK [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: 01 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: 01 07 00 [16:41:58]MH_I2C_Read... [16:41:58]Read from MH i2c: 01 07 00 F8 5E 00 00 00 00 00 FF 0F 6B [16:41:58]RasterBufferAndPrint [16:41:58]line Счет N : (1)343671 [16:41:58]line ИНН: 02508201610067 [16:41:58]line Контрольно-Кассовый Чек [16:41:58]line ПРОДАЖА [16:41:58]line ТРК (МРК, ГНК) : 53 [16:41:58]line Товар: 2710124130 [16:41:58]line Аи-92-К-2 [16:41:58]line 8.970 * 66.90 [16:41:58]line = 600.09 [16:41:58]line НДС 12% НСП 1% [16:41:58]line > о реализуемом товаре [16:41:58]line ОКРУГЛЕНИЕ: -0.09 [16:41:58]line ИТОГО: 600.00 [16:41:58]line Внесено: 600.00 [16:41:58]line СДАЧА: 0.00 [16:41:58]line НСП 1% : 5.31 [16:41:58]line НДС 12% : 63.73 [16:41:58]line Наличными: 600.00 [16:41:58]line Безнал.: 0.00 [16:41:58]line Место: АЗС № 78 "Партнер Нефть" [16:41:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:41:58]line СНО: Общий режим [16:41:58]line Чек 169 23.10.2024 16:42 [16:41:58]line Смена: 117 ФФД: 1.0 [16:41:58]line ЗНМ: 0300000137 [16:41:58]line РНМ: 0000000000186857 [16:41:58]line Версия ККМ: v1.0 [16:41:58]line ФМ: 0000000002094219 [16:41:58]line ФД: 31225 [16:41:58]line ФПД: 19114940850207 [16:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31225&fm=19114940850207&tin=02508201610067®Number=0000000000186857&sum=60000 [16:41:58]OFD Sender: Processing packet 31225 [packets to send 11, broken 10] [16:41:58]ProducePacketName [16:41:58]name=ofd_packets/00031225 [16:41:58]OFD Sender: To server: pG, [16:41:58]CommunicateWithHost lk.salyk.kg:30040 [16:41:58]ConnectInit lk.salyk.kg [16:41:58]written 0, free lines is 4095 [16:41:58]Connected sock=7 [16:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 61 02 07 01 21 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5B 27 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 79 00 00 35 04 06 00 11 62 8B 42 60 1F 58 38 D6 F5 55 4B 41 B5 [16:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 17 21 47 00 56 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 79 00 00 F4 03 04 00 D5 D1 18 67 B6 04 01 00 00 A4 0D 84 72 C2 75 D5 B9 [16:41:59]CommunicateWithHost err = 0 [16:41:59]CheckOFDResponse [16:41:59]1017 (14) - 77093643461234 [16:41:59]1041 (16) - 0000000002094219 [16:41:59]1040 (4) - 31225 [16:41:59]1012 (4) - 23.10.2024 10:37 [16:41:59]1206 (1) - 0 [16:41:59]OFD Sender: Remove packet 31225 [16:41:59]ProducePacketName [16:41:59]name=ofd_packets/00031225 [16:41:59]NVStorageDeleteData [16:41:59]Write to MH i2c: 01 00 00 23 5F 82 [16:41:59]Write i2c OK [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: 01 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: 01 07 00 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: 01 07 00 23 5F 00 00 00 00 00 EE 0C 83 [16:41:59]RasterBufferAndPrint [16:41:59]line [16:41:59]line [16:41:59]line [16:41:59]line [16:41:59]line [16:41:59]written 0, free lines is 3319 [16:41:59]MH_Cut [16:41:59]Write to MH i2c: D1 01 00 2A 5F 01 5B [16:41:59]Write i2c OK [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: D1 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: D1 01 00 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: D1 01 00 2A 5F 00 5A [16:41:59]Write to MH i2c: 01 00 00 2B 5F 8A [16:41:59]Write i2c OK [16:41:59]MH_I2C_Read... [16:41:59]OFD Sender: No OFD packet to send [16:41:59]*** Cut start [16:41:59]*** Partial cut [16:41:59]*** CUTSNS_PIN = 1 [16:41:59]*** CUTSNS_PIN = 0 [16:42:00]*** Brake cut motor [16:42:00]Read from MH i2c: 01 [16:42:00]MH_I2C_Read... [16:42:00]*** Stop cut motor [16:42:00]*** Cut end [16:42:00]Read from MH i2c: 01 07 00 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: 01 07 00 2B 5F 00 00 00 00 00 FF 0F 9F [16:42:00]process_action close_receipt done [16:42:00]requested_data is exist [16:42:00]produce_requested_data [16:42:00]requested_item fm.sn is exist - process it [16:42:00]wFMCommunicate request_size=4 [16:42:00]MH_SAM_APDU [16:42:00]CAPDU: 80 11 00 00 [16:42:00]Write to MH i2c: E2 08 00 2C 5F 80 11 00 00 00 00 00 00 05 [16:42:00]Write i2c OK [16:42:00]MH_I2C_Read... [16:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:00]Read from MH i2c: E2 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 17 00 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 17 00 2C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [16:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:42:00]wFMCommunicate OK [16:42:00]requested_item fd.num is exist - process it [16:42:00]SAM_PROTO_GetFieldsCounters [16:42:00]wFMCommunicate request_size=4 [16:42:00]MH_SAM_APDU [16:42:00]CAPDU: 80 13 00 00 [16:42:00]Write to MH i2c: E2 08 00 2D 5F 80 13 00 00 00 00 00 00 08 [16:42:00]Write i2c OK [16:42:00]MH_I2C_Read... [16:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:00]Read from MH i2c: E2 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 62 00 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 62 00 2D 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:42:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:00]wFMCommunicate OK [16:42:00]SAM_PROTO_GetFieldsCounters done [16:42:00]requested_item shift.num is exist - process it [16:42:00]requested_item shift.opened is exist - process it [16:42:00]req_shift_opened [16:42:00]FM_GetShiftState [16:42:00]SAM_PROTO_GetShiftState [16:42:00]wFMCommunicate request_size=4 [16:42:00]MH_SAM_APDU [16:42:00]CAPDU: 80 13 01 00 [16:42:00]Write to MH i2c: E2 08 00 2E 5F 80 13 01 00 00 00 00 00 0A [16:42:00]Write i2c OK [16:42:00]MH_I2C_Read... [16:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:00]Read from MH i2c: E2 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 0E 00 [16:42:00]MH_I2C_Read... [16:42:00]Read from MH i2c: E2 0E 00 2E 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C4 [16:42:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:42:00]wFMCommunicate OK [16:42:00]SAM_PROTO_GetShiftState done [16:42:00]FM_GetShiftState done [16:42:00]req_shift_opened done [16:42:00]requested_item shift.open_date is exist - process it [16:42:00]req_shift_open_date [16:42:00]req_shift_open_date done [16:42:00]produce_requested_data done [16:42:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31225,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:42:00]process_action_free close_receipt [16:42:00]json_value_free [16:42:00]json_value_free done [16:42:00]process_json_proto returns [16:42:00]Send response to host [16:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31225,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:42:00]free response buf [16:42:00]execute_script done [16:42:00]execute_script returns [16:42:00]free content buf [16:42:00]Sock 9.Close socket [16:42:00]Sock 9.Thread stoped [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:16]accept exits with 10 [16:47:16]New connection [16:47:16]New thread 3067043172 created [16:47:16]Thread 3066899812 joined [16:47:16]Waiting for new connection... [16:47:16] Sock 10.Parse request [16:47:16]Sock 10.Check first char [16:47:16]Sock 10.First char is OK [16:47:16]request: POST /json_proto HTTP/1.0 [16:47:16]Method: POST [16:47:16]URL: /json_proto [16:47:16]Method is POST - this is cgi request [16:47:16]url: /json_proto [16:47:16]query_string will be loaded in cgi processing [16:47:16]execute_cgi json_proto POST (null) [16:47:16]execute_cgi path=json_proto method=POST [16:47:16]POST find Content-Length [16:47:16]Host: 172.17.51.3:8080 [16:47:16]Content-Length: 677 [16:47:16]Content-Type: application/json [16:47:16] [16:47:16]POST finish read [16:47:16]Found Content-Length = 677 [16:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.180, "sum" : 310.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:16]execute_script... [16:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.180, "sum" : 310.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:16]POST & json_proto [16:47:16]process_json_proto [16:47:16]json parsed OK: [16:47:16]protocol is kg_v1.0 [16:47:16]action value=close_receipt [16:47:16]process_action close_receipt [16:47:16]cmd_close_receipt [16:47:16]MH_GetDate [16:47:16]Write to MH i2c: F0 00 00 2F 5F 7D [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 09 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: F0 09 00 2F 5F 00 9B 28 19 67 04 C1 95 66 89 [16:47:16]GetLastDocTimeStamp 1729701723 [16:47:16]current date 1729702043 [16:47:16]FM_GetShiftState [16:47:16]SAM_PROTO_GetShiftState [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 13 01 00 [16:47:16]Write to MH i2c: E2 08 00 30 5F 80 13 01 00 00 00 00 00 0C [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 30 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C6 [16:47:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetShiftState done [16:47:16]FM_GetShiftState done [16:47:16]opened in 1729643755 [16:47:16]opened+sec_in_day 1729730155 [16:47:16]quantity*price = 31015 [16:47:16]sum+1 = 31017 [16:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.94 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 170 23.10.2024 16:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31226 ФПД: 263950470775281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164723&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31226&fm=263950470775281&tin=02508201610067®Number=0000000000186857&sum=31000 [16:47:17]StoreToDocumentArchive [16:47:17]shift 117 fd 31226 [16:47:17]save to /storage/0117/doc_00031226 [16:47:17]save last doc name /storage/0117/doc_00031226 to /storage/kkm_last_doc_name [16:47:17]save OK [16:47:17]Clear old archive folders... [16:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:17]tlvbuf is 00D5E0C0 [16:47:17]SAM_PROTO_ClearQueue [16:47:17]wFMCommunicate request_size=4 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 09 00 00 [16:47:17]Write to MH i2c: E2 08 00 3D 5F 80 09 00 00 00 00 00 00 0E [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 3D 5F 00 90 00 10 [16:47:17]RAPDU: 90 00 [16:47:17]wFMCommunicate OK [16:47:17]SAM_PROTO_ClearQueue done [16:47:17]KKMCreateOFDPacket [16:47:17]OFDProtocolAddRootSTLVToBuf [16:47:17]FM_MakeSignedData [16:47:17]FM_MakeSignedData [16:47:17]SAM_PROTO_SignData [16:47:17]wFMCommunicate request_size=4 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 0D 01 02 [16:47:17]Write to MH i2c: E2 08 00 3E 5F 80 0D 01 02 00 00 00 00 16 [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 3E 5F 00 90 00 11 [16:47:17]RAPDU: 90 00 [16:47:17]wFMCommunicate OK [16:47:17]wFMCommunicate request_size=255 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 28 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9B 28 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 79 00 00 35 04 06 00 F0 [16:47:17]Write to MH i2c: E2 02 01 3F 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 28 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9B 28 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 79 00 00 35 04 06 00 F0 00 00 28 [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 3F 5F 00 90 00 12 [16:47:17]RAPDU: 90 00 [16:47:17]wFMCommunicate OK [16:47:17]wFMCommunicate request_size=10 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 0D 02 02 05 0F C2 0C 81 F1 [16:47:17]Write to MH i2c: E2 0D 00 40 5F 80 0D 02 02 05 00 0F C2 0C 81 F1 00 00 72 [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 03 00 40 5F 00 90 00 13 [16:47:17]RAPDU: 90 00 [16:47:17]wFMCommunicate OK [16:47:17]wFMCommunicate request_size=4 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 0D 03 02 [16:47:17]Write to MH i2c: E2 08 00 41 5F 80 0D 03 02 00 00 00 00 1B [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 0B 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 0B 00 41 5F 00 A5 CF 50 AD D5 C9 C4 39 90 00 28 [16:47:17]RAPDU: A5 CF 50 AD D5 C9 C4 39 90 00 [16:47:17]wFMCommunicate OK [16:47:17]SAM_PROTO_SignData done [16:47:17]FM_MakeSignedData done [16:47:17]CreateOFDProtocolMessage [16:47:17]wFMCommunicate request_size=4 [16:47:17]MH_SAM_APDU [16:47:17]CAPDU: 80 11 00 00 [16:47:17]Write to MH i2c: E2 08 00 42 5F 80 11 00 00 00 00 00 00 1B [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:17]Read from MH i2c: E2 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 17 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: E2 17 00 42 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [16:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:17]wFMCommunicate OK [16:47:17]CreateOFDProtocolMessage done [16:47:17]OFDSenderStorePacket 31226 [16:47:17]StoreOFDPacket docnum=31226 [16:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 F2 07 01 91 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 28 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9B 28 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 79 00 00 35 04 06 00 F0 0F C2 0C 81 F1 A5 CF 50 AD D5 C9 C4 39 [16:47:17]CheckFolder [16:47:17]dirname=/storage/ofd_packets [16:47:17]CheckFolder done [16:47:17]ProducePacketName [16:47:17]name=ofd_packets/00031226 [16:47:17]NVStorageSaveData ofd_packets/00031226 [16:47:17]File name is /storage/ofd_packets/00031226 [16:47:17]Write 301 bytes [16:47:17]NVStorageSaveData done [16:47:17]OFDSenderStorePacket done [16:47:17]KKMCreateOFDPacket done [16:47:17]NVStorageSaveData kkm_last_timestamp [16:47:17]File name is /storage/kkm_last_timestamp [16:47:17]Write 4 bytes [16:47:17]NVStorageSaveData done [16:47:17]ExternCall_PrintAddStr [16:47:17]wPrintStart [16:47:17]Write to MH i2c: 01 00 00 43 5F A2 [16:47:17]Write i2c OK [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: 01 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: 01 07 00 [16:47:17]MH_I2C_Read... [16:47:17]Read from MH i2c: 01 07 00 43 5F 00 00 00 00 00 FF 0F B7 [16:47:17]RasterBufferAndPrint [16:47:17]line Счет N : (1)343672 [16:47:17]line ИНН: 02508201610067 [16:47:17]line Контрольно-Кассовый Чек [16:47:17]line ПРОДАЖА [16:47:17]line ТРК (МРК, ГНК) : 62 [16:47:17]line Товар: 2710124500 [16:47:17]line Аи-95-К-3 [16:47:17]line 4.180 * 74.20 [16:47:17]line = 310.16 [16:47:17]line НДС 12% НСП 1% [16:47:17]line > о реализуемом товаре [16:47:17]line ОКРУГЛЕНИЕ: -0.16 [16:47:17]line ИТОГО: 310.00 [16:47:17]line Внесено: 310.00 [16:47:17]line СДАЧА: 0.00 [16:47:17]line НСП 1% : 2.74 [16:47:17]line НДС 12% : 32.94 [16:47:17]line Наличными: 310.00 [16:47:17]line Безнал.: 0.00 [16:47:17]line Место: АЗС № 78 "Партнер Нефть" [16:47:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:47:17]line СНО: Общий режим [16:47:17]line Чек 170 23.10.2024 16:47 [16:47:17]line Смена: 117 ФФД: 1.0 [16:47:17]line ЗНМ: 0300000137 [16:47:17]line РНМ: 0000000000186857 [16:47:17]line Версия ККМ: v1.0 [16:47:17]line ФМ: 0000000002094219 [16:47:17]line ФД: 31226 [16:47:17]line ФПД: 263950470775281 [16:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164723&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31226&fm=263950470775281&tin=02508201610067®Number=0000000000186857&sum=31000 [16:47:18]OFD Sender: Processing packet 31226 [packets to send 11, broken 10] [16:47:18]ProducePacketName [16:47:18]name=ofd_packets/00031226 [16:47:18]OFD Sender: To server: pG, [16:47:18]CommunicateWithHost lk.salyk.kg:30040 [16:47:18]ConnectInit lk.salyk.kg [16:47:18]written 0, free lines is 4095 [16:47:18]Connected sock=9 [16:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 F2 07 01 91 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 28 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9B 28 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 79 00 00 35 04 06 00 F0 0F C2 0C 81 F1 A5 CF 50 AD D5 C9 C4 39 [16:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AB D6 47 00 91 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 79 00 00 F4 03 04 00 15 D3 18 67 B6 04 01 00 00 A0 F5 B6 B4 59 FC E3 F2 [16:47:18]CommunicateWithHost err = 0 [16:47:18]CheckOFDResponse [16:47:18]1017 (14) - 77093643461234 [16:47:18]1041 (16) - 0000000002094219 [16:47:18]1040 (4) - 31226 [16:47:18]1012 (4) - 23.10.2024 10:42 [16:47:18]1206 (1) - 0 [16:47:18]OFD Sender: Remove packet 31226 [16:47:18]ProducePacketName [16:47:18]name=ofd_packets/00031226 [16:47:18]NVStorageDeleteData [16:47:18]Write to MH i2c: 01 00 00 6E 5F CD [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 07 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: 01 07 00 6E 5F 00 00 00 00 00 EC 0C CC [16:47:18]RasterBufferAndPrint [16:47:18]line [16:47:18]line [16:47:18]line [16:47:18]line [16:47:18]line [16:47:18]written 0, free lines is 3317 [16:47:18]MH_Cut [16:47:18]Write to MH i2c: D1 01 00 75 5F 01 A6 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: D1 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: D1 01 00 [16:47:18]MH_I2C_Read... [16:47:18]Read from MH i2c: D1 01 00 75 5F 00 A5 [16:47:18]Write to MH i2c: 01 00 00 76 5F D5 [16:47:18]Write i2c OK [16:47:18]MH_I2C_Read... [16:47:19]OFD Sender: No OFD packet to send [16:47:19]*** Cut start [16:47:19]*** Partial cut [16:47:19]*** CUTSNS_PIN = 1 [16:47:19]*** CUTSNS_PIN = 0 [16:47:19]*** Brake cut motor [16:47:19]Read from MH i2c: 01 *** Stop cut motor [16:47:19]*** Cut end [16:47:19] [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: 01 07 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: 01 07 00 76 5F 00 00 00 00 00 FF 0F EA [16:47:19]process_action close_receipt done [16:47:19]requested_data is exist [16:47:19]produce_requested_data [16:47:19]requested_item fm.sn is exist - process it [16:47:19]wFMCommunicate request_size=4 [16:47:19]MH_SAM_APDU [16:47:19]CAPDU: 80 11 00 00 [16:47:19]Write to MH i2c: E2 08 00 77 5F 80 11 00 00 00 00 00 00 50 [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:19]Read from MH i2c: E2 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: E2 17 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: E2 17 00 77 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [16:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:19]wFMCommunicate OK [16:47:19]requested_item fd.num is exist - process it [16:47:19]SAM_PROTO_GetFieldsCounters [16:47:19]wFMCommunicate request_size=4 [16:47:19]MH_SAM_APDU [16:47:19]CAPDU: 80 13 00 00 [16:47:19]Write to MH i2c: E2 08 00 78 5F 80 13 00 00 00 00 00 00 53 [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:20]Read from MH i2c: E2 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 62 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 62 00 78 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [16:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:20]wFMCommunicate OK [16:47:20]SAM_PROTO_GetFieldsCounters done [16:47:20]requested_item shift.num is exist - process it [16:47:20]requested_item shift.opened is exist - process it [16:47:20]req_shift_opened [16:47:20]FM_GetShiftState [16:47:20]SAM_PROTO_GetShiftState [16:47:20]wFMCommunicate request_size=4 [16:47:20]MH_SAM_APDU [16:47:20]CAPDU: 80 13 01 00 [16:47:20]Write to MH i2c: E2 08 00 79 5F 80 13 01 00 00 00 00 00 55 [16:47:20]Write i2c OK [16:47:20]MH_I2C_Read... [16:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:20]Read from MH i2c: E2 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 0E 00 [16:47:20]MH_I2C_Read... [16:47:20]Read from MH i2c: E2 0E 00 79 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0F [16:47:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:47:20]wFMCommunicate OK [16:47:20]SAM_PROTO_GetShiftState done [16:47:20]FM_GetShiftState done [16:47:20]req_shift_opened done [16:47:20]requested_item shift.open_date is exist - process it [16:47:20]req_shift_open_date [16:47:20]req_shift_open_date done [16:47:20]produce_requested_data done [16:47:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31226,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:47:20]process_action_free close_receipt [16:47:20]json_value_free [16:47:20]json_value_free done [16:47:20]process_json_proto returns [16:47:20]Send response to host [16:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31226,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:47:20]free response buf [16:47:20]execute_script done [16:47:20]execute_script returns [16:47:20]free content buf [16:47:20]Sock 10.Close socket [16:47:20]Sock 10.Thread stoped [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:58]accept exits with 7 [16:48:58]New connection [16:48:58]New thread 3066899812 created [16:48:58]Thread 3067043172 joined [16:48:58]Waiting for new connection... [16:48:58] Sock 7.Parse request [16:48:58]Sock 7.Check first char [16:48:58]Sock 7.First char is OK [16:48:58]request: POST /json_proto HTTP/1.0 [16:48:58]Method: POST [16:48:58]URL: /json_proto [16:48:58]Method is POST - this is cgi request [16:48:58]url: /json_proto [16:48:58]query_string will be loaded in cgi processing [16:48:58]execute_cgi json_proto POST (null) [16:48:58]execute_cgi path=json_proto method=POST [16:48:58]POST find Content-Length [16:48:58]Host: 172.17.51.3:8080 [16:48:58]Content-Length: 677 [16:48:58]Content-Type: application/json [16:48:58] [16:48:58]POST finish read [16:48:58]Found Content-Length = 677 [16:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]execute_script... [16:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]POST & json_proto [16:48:58]process_json_proto [16:48:58]json parsed OK: [16:48:58]protocol is kg_v1.0 [16:48:58]action value=close_receipt [16:48:58]process_action close_receipt [16:48:58]cmd_close_receipt [16:48:58]MH_GetDate [16:48:58]Write to MH i2c: F0 00 00 7A 5F C8 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 7A 5F 00 01 29 19 67 04 C1 95 66 3B [16:48:58]GetLastDocTimeStamp 1729702043 [16:48:58]current date 1729702145 [16:48:58]FM_GetShiftState [16:48:58]SAM_PROTO_GetShiftState [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 13 01 00 [16:48:58]Write to MH i2c: E2 08 00 7B 5F 80 13 01 00 00 00 00 00 57 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 7B 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 11 [16:48:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:48:58]wFMCommunicate OK [16:48:58]SAM_PROTO_GetShiftState done [16:48:58]FM_GetShiftState done [16:48:58]opened in 1729643755 [16:48:58]opened+sec_in_day 1729730155 [16:48:58]quantity*price = 50041 [16:48:58]sum+1 = 50042 [16:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 171 23.10.2024 16:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31227 ФПД: 50441373600185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164905&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31227&fm=50441373600185&tin=02508201610067®Number=0000000000186857&sum=50000 [16:48:59]StoreToDocumentArchive [16:48:59]shift 117 fd 31227 [16:48:59]save to /storage/0117/doc_00031227 [16:48:59]save last doc name /storage/0117/doc_00031227 to /storage/kkm_last_doc_name [16:48:59]save OK [16:48:59]Clear old archive folders... [16:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:59]tlvbuf is 00CEB6A0 [16:48:59]SAM_PROTO_ClearQueue [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 09 00 00 [16:48:59]Write to MH i2c: E2 08 00 88 5F 80 09 00 00 00 00 00 00 59 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 88 5F 00 90 00 5B [16:48:59]RAPDU: 90 00 [16:48:59]wFMCommunicate OK [16:48:59]SAM_PROTO_ClearQueue done [16:48:59]KKMCreateOFDPacket [16:48:59]OFDProtocolAddRootSTLVToBuf [16:48:59]FM_MakeSignedData [16:48:59]FM_MakeSignedData [16:48:59]SAM_PROTO_SignData [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 0D 01 02 [16:48:59]Write to MH i2c: E2 08 00 89 5F 80 0D 01 02 00 00 00 00 61 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 89 5F 00 90 00 5C [16:48:59]RAPDU: 90 00 [16:48:59]wFMCommunicate OK [16:48:59]wFMCommunicate request_size=255 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 01 29 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 79 00 00 35 04 06 00 2D [16:48:59]Write to MH i2c: E2 02 01 8A 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 01 29 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 79 00 00 35 04 06 00 2D 00 00 5D [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 8A 5F 00 90 00 5D [16:48:59]RAPDU: 90 00 [16:48:59]wFMCommunicate OK [16:48:59]wFMCommunicate request_size=10 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 0D 02 02 05 E0 4C 27 C9 B9 [16:48:59]Write to MH i2c: E2 0D 00 8B 5F 80 0D 02 02 05 00 E0 4C 27 C9 B9 00 00 43 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 8B 5F 00 90 00 5E [16:49:00]RAPDU: 90 00 [16:49:00]wFMCommunicate OK [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 0D 03 02 [16:49:00]Write to MH i2c: E2 08 00 8C 5F 80 0D 03 02 00 00 00 00 66 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0B 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0B 00 8C 5F 00 99 2C 00 B2 B9 42 F7 93 90 00 63 [16:49:00]RAPDU: 99 2C 00 B2 B9 42 F7 93 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_SignData done [16:49:00]FM_MakeSignedData done [16:49:00]CreateOFDProtocolMessage [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 11 00 00 [16:49:00]Write to MH i2c: E2 08 00 8D 5F 80 11 00 00 00 00 00 00 66 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 8D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [16:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:49:00]wFMCommunicate OK [16:49:00]CreateOFDProtocolMessage done [16:49:00]OFDSenderStorePacket 31227 [16:49:00]StoreOFDPacket docnum=31227 [16:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 49 07 01 57 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 01 29 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 79 00 00 35 04 06 00 2D E0 4C 27 C9 B9 99 2C 00 B2 B9 42 F7 93 [16:49:00]CheckFolder [16:49:00]dirname=/storage/ofd_packets [16:49:00]CheckFolder done [16:49:00]ProducePacketName [16:49:00]name=ofd_packets/00031227 [16:49:00]NVStorageSaveData ofd_packets/00031227 [16:49:00]File name is /storage/ofd_packets/00031227 [16:49:00]Write 301 bytes [16:49:00]NVStorageSaveData done [16:49:00]OFDSenderStorePacket done [16:49:00]KKMCreateOFDPacket done [16:49:00]NVStorageSaveData kkm_last_timestamp [16:49:00]File name is /storage/kkm_last_timestamp [16:49:00]Write 4 bytes [16:49:00]NVStorageSaveData done [16:49:00]ExternCall_PrintAddStr [16:49:00]wPrintStart [16:49:00]Write to MH i2c: 01 00 00 8E 5F ED [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 8E 5F 00 00 00 00 00 FF 0F 02 [16:49:00]RasterBufferAndPrint [16:49:00]line Счет N : (1)343673 [16:49:00]line ИНН: 02508201610067 [16:49:00]line Контрольно-Кассовый Чек [16:49:00]line ПРОДАЖА [16:49:00]line ТРК (МРК, ГНК) : 53 [16:49:00]line Товар: 2710124130 [16:49:00]line Аи-92-К-2 [16:49:00]line 7.480 * 66.90 [16:49:00]line = 500.41 [16:49:00]line НДС 12% НСП 1% [16:49:00]line > о реализуемом товаре [16:49:00]line ОКРУГЛЕНИЕ: -0.41 [16:49:00]line ИТОГО: 500.00 [16:49:00]line Внесено: 500.00 [16:49:00]line СДАЧА: 0.00 [16:49:00]line НСП 1% : 4.43 [16:49:00]line НДС 12% : 53.14 [16:49:00]line Наличными: 500.00 [16:49:00]line Безнал.: 0.00 [16:49:00]line Место: АЗС № 78 "Партнер Нефть" [16:49:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:49:00]line СНО: Общий режим [16:49:00]line Чек 171 23.10.2024 16:49 [16:49:00]line Смена: 117 ФФД: 1.0 [16:49:00]line ЗНМ: 0300000137 [16:49:00]line РНМ: 0000000000186857 [16:49:00]line Версия ККМ: v1.0 [16:49:00]line ФМ: 0000000002094219 [16:49:00]line ФД: 31227 [16:49:00]line ФПД: 50441373600185 [16:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T164905&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31227&fm=50441373600185&tin=02508201610067®Number=0000000000186857&sum=50000 [16:49:00]OFD Sender: Processing packet 31227 [packets to send 11, broken 10] [16:49:00]ProducePacketName [16:49:00]name=ofd_packets/00031227 [16:49:00]OFD Sender: To server: pG, [16:49:00]CommunicateWithHost lk.salyk.kg:30040 [16:49:00]ConnectInit lk.salyk.kg [16:49:00]written 0, free lines is 4095 [16:49:00]Connected sock=10 [16:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 68 49 07 01 57 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 01 29 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 79 00 00 35 04 06 00 2D E0 4C 27 C9 B9 99 2C 00 B2 B9 42 F7 93 [16:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8F 34 47 00 AE 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 79 00 00 F4 03 04 00 7B D3 18 67 B6 04 01 00 00 0E 5B 8B 26 91 4C 90 43 [16:49:00]CommunicateWithHost err = 0 [16:49:00]CheckOFDResponse [16:49:00]1017 (14) - 77093643461234 [16:49:00]1041 (16) - 0000000002094219 [16:49:00]1040 (4) - 31227 [16:49:00]1012 (4) - 23.10.2024 10:44 [16:49:00]1206 (1) - 0 [16:49:00]OFD Sender: Remove packet 31227 [16:49:00]ProducePacketName [16:49:00]name=ofd_packets/00031227 [16:49:00]NVStorageDeleteData [16:49:00]Write to MH i2c: 01 00 00 B9 5F 18 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 B9 5F 00 00 00 00 00 EF 0C 1A [16:49:00]RasterBufferAndPrint [16:49:00]line [16:49:00]line [16:49:00]line [16:49:00]line [16:49:00]line [16:49:00]written 0, free lines is 3317 [16:49:00]MH_Cut [16:49:00]Write to MH i2c: D1 01 00 C0 5F 01 F1 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: D1 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: D1 01 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: D1 01 00 C0 5F 00 F0 [16:49:00]Write to MH i2c: 01 00 00 C1 5F 20 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:01]OFD Sender: No OFD packet to send [16:49:01]*** Cut start [16:49:01]*** Partial cut [16:49:01]*** CUTSNS_PIN = 1 [16:49:01]*** CUTSNS_PIN = 0 [16:49:01]*** Brake cut motor [16:49:02]Read from MH i2c: 01 [16:49:02]MH_I2C_Read... [16:49:02]*** Stop cut motor [16:49:02]*** Cut end [16:49:02]Read from MH i2c: 01 07 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 C1 5F 00 00 00 00 00 FF 0F 35 [16:49:02]process_action close_receipt done [16:49:02]requested_data is exist [16:49:02]produce_requested_data [16:49:02]requested_item fm.sn is exist - process it [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 11 00 00 [16:49:02]Write to MH i2c: E2 08 00 C2 5F 80 11 00 00 00 00 00 00 9B [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 C2 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E9 [16:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:49:02]wFMCommunicate OK [16:49:02]requested_item fd.num is exist - process it [16:49:02]SAM_PROTO_GetFieldsCounters [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 13 00 00 [16:49:02]Write to MH i2c: E2 08 00 C3 5F 80 13 00 00 00 00 00 00 9E [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 62 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 62 00 C3 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_GetFieldsCounters done [16:49:02]requested_item shift.num is exist - process it [16:49:02]requested_item shift.opened is exist - process it [16:49:02]req_shift_opened [16:49:02]FM_GetShiftState [16:49:02]SAM_PROTO_GetShiftState [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 13 01 00 [16:49:02]Write to MH i2c: E2 08 00 C4 5F 80 13 01 00 00 00 00 00 A0 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 C4 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5A [16:49:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_GetShiftState done [16:49:02]FM_GetShiftState done [16:49:02]req_shift_opened done [16:49:02]requested_item shift.open_date is exist - process it [16:49:02]req_shift_open_date [16:49:02]req_shift_open_date done [16:49:02]produce_requested_data done [16:49:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31227,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:49:02]process_action_free close_receipt [16:49:02]json_value_free [16:49:02]json_value_free done [16:49:02]process_json_proto returns [16:49:02]Send response to host [16:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31227,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:49:02]free response buf [16:49:02]execute_script done [16:49:02]execute_script returns [16:49:02]free content buf [16:49:02]Sock 7.Close socket [16:49:02]Sock 7.Thread stoped [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:30]accept exits with 9 [16:54:30]New connection [16:54:30]New thread 3067043172 created [16:54:30]Thread 3066899812 joined [16:54:30]Waiting for new connection... [16:54:30] Sock 9.Parse request [16:54:30]Sock 9.Check first char [16:54:30]Sock 9.First char is OK [16:54:30]request: POST /json_proto HTTP/1.0 [16:54:30]Method: POST [16:54:30]URL: /json_proto [16:54:30]Method is POST - this is cgi request [16:54:30]url: /json_proto [16:54:30]query_string will be loaded in cgi processing [16:54:30]execute_cgi json_proto POST (null) [16:54:30]execute_cgi path=json_proto method=POST [16:54:30]POST find Content-Length [16:54:30]Host: 172.17.51.3:8080 [16:54:30]Content-Length: 678 [16:54:30]Content-Type: application/json [16:54:30] [16:54:30]POST finish read [16:54:30]Found Content-Length = 678 [16:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.620, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:30]execute_script... [16:54:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.620, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:30]POST & json_proto [16:54:30]process_json_proto [16:54:30]json parsed OK: [16:54:30]protocol is kg_v1.0 [16:54:30]action value=close_receipt [16:54:30]process_action close_receipt [16:54:30]cmd_close_receipt [16:54:30]MH_GetDate [16:54:30]Write to MH i2c: F0 00 00 C5 5F 13 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 09 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: F0 09 00 C5 5F 00 4D 2A 19 67 04 C1 95 66 D3 [16:54:30]GetLastDocTimeStamp 1729702145 [16:54:30]current date 1729702477 [16:54:30]FM_GetShiftState [16:54:30]SAM_PROTO_GetShiftState [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 13 01 00 [16:54:30]Write to MH i2c: E2 08 00 C6 5F 80 13 01 00 00 00 00 00 A2 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 0E 00 C6 5F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5C [16:54:30]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:54:30]wFMCommunicate OK [16:54:30]SAM_PROTO_GetShiftState done [16:54:30]FM_GetShiftState done [16:54:30]opened in 1729643755 [16:54:30]opened+sec_in_day 1729730155 [16:54:30]quantity*price = 71047 [16:54:30]sum+1 = 71049 [16:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.29 НДС 12% : 75.45 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 172 23.10.2024 16:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31228 ФПД: 26597577726698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165437&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31228&fm=26597577726698&tin=02508201610067®Number=0000000000186857&sum=71000 [16:54:31]StoreToDocumentArchive [16:54:31]shift 117 fd 31228 [16:54:31]save to /storage/0117/doc_00031228 [16:54:31]save last doc name /storage/0117/doc_00031228 to /storage/kkm_last_doc_name [16:54:31]save OK [16:54:31]Clear old archive folders... [16:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:31]tlvbuf is 00D574F0 [16:54:31]SAM_PROTO_ClearQueue [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 09 00 00 [16:54:31]Write to MH i2c: E2 08 00 D3 5F 80 09 00 00 00 00 00 00 A4 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 D3 5F 00 90 00 A6 [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]SAM_PROTO_ClearQueue done [16:54:31]KKMCreateOFDPacket [16:54:31]OFDProtocolAddRootSTLVToBuf [16:54:31]FM_MakeSignedData [16:54:31]FM_MakeSignedData [16:54:31]SAM_PROTO_SignData [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 0D 01 02 [16:54:31]Write to MH i2c: E2 08 00 D4 5F 80 0D 01 02 00 00 00 00 AC [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 D4 5F 00 90 00 A7 [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]wFMCommunicate request_size=255 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4D 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 79 00 00 35 04 06 00 18 [16:54:31]Write to MH i2c: E2 02 01 D5 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4D 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 79 00 00 35 04 06 00 18 00 00 C5 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]OFD Sender: No OFD packet to send [16:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 D5 5F 00 90 00 A8 [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]wFMCommunicate request_size=10 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 0D 02 02 05 30 BB 2C 1A EA [16:54:31]Write to MH i2c: E2 0D 00 D6 5F 80 0D 02 02 05 00 30 BB 2C 1A EA 00 00 D4 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 03 00 D6 5F 00 90 00 A9 [16:54:31]RAPDU: 90 00 [16:54:31]wFMCommunicate OK [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 0D 03 02 [16:54:31]Write to MH i2c: E2 08 00 D7 5F 80 0D 03 02 00 00 00 00 B1 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 0B 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 0B 00 D7 5F 00 04 25 30 A1 84 E6 9F 07 90 00 BC [16:54:31]RAPDU: 04 25 30 A1 84 E6 9F 07 90 00 [16:54:31]wFMCommunicate OK [16:54:31]SAM_PROTO_SignData done [16:54:31]FM_MakeSignedData done [16:54:31]CreateOFDProtocolMessage [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 11 00 00 [16:54:31]Write to MH i2c: E2 08 00 D8 5F 80 11 00 00 00 00 00 00 B1 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 17 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 17 00 D8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [16:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:54:31]wFMCommunicate OK [16:54:31]CreateOFDProtocolMessage done [16:54:31]OFDSenderStorePacket 31228 [16:54:31]StoreOFDPacket docnum=31228 [16:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 7D 07 01 22 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4D 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 79 00 00 35 04 06 00 18 30 BB 2C 1A EA 04 25 30 A1 84 E6 9F 07 [16:54:31]CheckFolder [16:54:31]dirname=/storage/ofd_packets [16:54:31]CheckFolder done [16:54:31]ProducePacketName [16:54:31]name=ofd_packets/00031228 [16:54:31]NVStorageSaveData ofd_packets/00031228 [16:54:31]File name is /storage/ofd_packets/00031228 [16:54:31]Write 301 bytes [16:54:31]NVStorageSaveData done [16:54:31]OFDSenderStorePacket done [16:54:31]KKMCreateOFDPacket done [16:54:31]NVStorageSaveData kkm_last_timestamp [16:54:31]File name is /storage/kkm_last_timestamp [16:54:31]Write 4 bytes [16:54:31]NVStorageSaveData done [16:54:31]ExternCall_PrintAddStr [16:54:31]wPrintStart [16:54:31]Write to MH i2c: 01 00 00 D9 5F 38 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 D9 5F 00 00 00 00 00 FF 0F 4D [16:54:31]RasterBufferAndPrint [16:54:31]line Счет N : (1)343675 [16:54:31]line ИНН: 02508201610067 [16:54:31]line Контрольно-Кассовый Чек [16:54:31]line ПРОДАЖА [16:54:31]line ТРК (МРК, ГНК) : 33 [16:54:31]line Товар: 2710124130 [16:54:31]line Аи-92-К-2 [16:54:31]line 10.620 * 66.90 [16:54:31]line = 710.48 [16:54:31]line НДС 12% НСП 1% [16:54:31]line > о реализуемом товаре [16:54:31]line ОКРУГЛЕНИЕ: -0.48 [16:54:31]line ИТОГО: 710.00 [16:54:31]line Внесено: 710.00 [16:54:31]line СДАЧА: 0.00 [16:54:31]line НСП 1% : 6.29 [16:54:31]line НДС 12% : 75.45 [16:54:31]line Наличными: 710.00 [16:54:31]line Безнал.: 0.00 [16:54:31]line Место: АЗС № 78 "Партнер Нефть" [16:54:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:54:31]line СНО: Общий режим [16:54:31]line Чек 172 23.10.2024 16:54 [16:54:31]line Смена: 117 ФФД: 1.0 [16:54:31]line ЗНМ: 0300000137 [16:54:31]line РНМ: 0000000000186857 [16:54:31]line Версия ККМ: v1.0 [16:54:31]line ФМ: 0000000002094219 [16:54:31]line ФД: 31228 [16:54:31]line ФПД: 26597577726698 [16:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165437&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31228&fm=26597577726698&tin=02508201610067®Number=0000000000186857&sum=71000 [16:54:32]OFD Sender: Processing packet 31228 [packets to send 11, broken 10] [16:54:32]ProducePacketName [16:54:32]name=ofd_packets/00031228 [16:54:32]OFD Sender: To server: pG, [16:54:32]CommunicateWithHost lk.salyk.kg:30040 [16:54:32]ConnectInit lk.salyk.kg [16:54:32]written 0, free lines is 4095 [16:54:32]Connected sock=10 [16:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8D 7D 07 01 22 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4D 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 79 00 00 35 04 06 00 18 30 BB 2C 1A EA 04 25 30 A1 84 E6 9F 07 [16:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C1 DC 47 00 63 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 32 30 39 34 32 31 39 10 04 04 00 FC 79 00 00 F4 03 04 00 C7 D4 18 67 B6 04 01 00 00 0C 11 E4 13 43 4F 02 B4 [16:54:32]CommunicateWithHost err = 0 [16:54:32]CheckOFDResponse [16:54:32]1017 (14) - 77093643461234 [16:54:32]1041 (16) - 0000000002094219 [16:54:32]1040 (4) - 31228 [16:54:32]1012 (4) - 23.10.2024 10:49 [16:54:32]1206 (1) - 0 [16:54:32]OFD Sender: Remove packet 31228 [16:54:32]ProducePacketName [16:54:32]name=ofd_packets/00031228 [16:54:32]NVStorageDeleteData [16:54:32]Write to MH i2c: 01 00 00 04 60 64 [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 07 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: 01 07 00 04 60 00 00 00 00 00 F7 0C 6E [16:54:32]RasterBufferAndPrint [16:54:32]line [16:54:32]line [16:54:32]line [16:54:32]line [16:54:32]line [16:54:32]written 0, free lines is 3329 [16:54:32]MH_Cut [16:54:32]Write to MH i2c: D1 01 00 0B 60 01 3D [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: D1 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: D1 01 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: D1 01 00 0B 60 00 3C [16:54:32]Write to MH i2c: 01 00 00 0C 60 6C [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:33]OFD Sender: No OFD packet to send [16:54:33]*** Cut start [16:54:33]*** Partial cut [16:54:33]*** CUTSNS_PIN = 1 [16:54:33]*** CUTSNS_PIN = 0 [16:54:33]*** Brake cut motor [16:54:33]Read from MH i2c: 01 [16:54:33]MH_I2C_Read... [16:54:33]*** Stop cut motor [16:54:33]*** Cut end [16:54:33]Read from MH i2c: 01 07 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 0C 60 00 00 00 00 00 FF 0F 81 [16:54:33]process_action close_receipt done [16:54:33]requested_data is exist [16:54:33]produce_requested_data [16:54:33]requested_item fm.sn is exist - process it [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 11 00 00 [16:54:33]Write to MH i2c: E2 08 00 0D 60 80 11 00 00 00 00 00 00 E7 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 17 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 17 00 0D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [16:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:54:34]wFMCommunicate OK [16:54:34]requested_item fd.num is exist - process it [16:54:34]SAM_PROTO_GetFieldsCounters [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 13 00 00 [16:54:34]Write to MH i2c: E2 08 00 0E 60 80 13 00 00 00 00 00 00 EA [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 62 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 62 00 0E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [16:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_GetFieldsCounters done [16:54:34]requested_item shift.num is exist - process it [16:54:34]requested_item shift.opened is exist - process it [16:54:34]req_shift_opened [16:54:34]FM_GetShiftState [16:54:34]SAM_PROTO_GetShiftState [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 13 01 00 [16:54:34]Write to MH i2c: E2 08 00 0F 60 80 13 01 00 00 00 00 00 EC [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 0E 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 0E 00 0F 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A6 [16:54:34]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_GetShiftState done [16:54:34]FM_GetShiftState done [16:54:34]req_shift_opened done [16:54:34]requested_item shift.open_date is exist - process it [16:54:34]req_shift_open_date [16:54:34]req_shift_open_date done [16:54:34]produce_requested_data done [16:54:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31228,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:54:34]process_action_free close_receipt [16:54:34]json_value_free [16:54:34]json_value_free done [16:54:34]process_json_proto returns [16:54:34]Send response to host [16:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31228,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:54:34]free response buf [16:54:34]execute_script done [16:54:34]execute_script returns [16:54:34]free content buf [16:54:34]Sock 9.Close socket [16:54:34]Sock 9.Thread stoped [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:14]accept exits with 7 [16:56:14]New connection [16:56:14]New thread 3066899812 created [16:56:14]Thread 3067043172 joined [16:56:14]Waiting for new connection... [16:56:14] Sock 7.Parse request [16:56:14]Sock 7.Check first char [16:56:14]Sock 7.First char is OK [16:56:14]request: POST /json_proto HTTP/1.0 [16:56:14]Method: POST [16:56:14]URL: /json_proto [16:56:14]Method is POST - this is cgi request [16:56:14]url: /json_proto [16:56:14]query_string will be loaded in cgi processing [16:56:14]execute_cgi json_proto POST (null) [16:56:14]execute_cgi path=json_proto method=POST [16:56:14]POST find Content-Length [16:56:14]Host: 172.17.51.3:8080 [16:56:14]Content-Length: 688 [16:56:14]Content-Type: application/json [16:56:14] [16:56:14]POST finish read [16:56:14]Found Content-Length = 688 [16:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]execute_script... [16:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:14]POST & json_proto [16:56:14]process_json_proto [16:56:14]json parsed OK: [16:56:14]protocol is kg_v1.0 [16:56:14]action value=close_receipt [16:56:14]process_action close_receipt [16:56:14]cmd_close_receipt [16:56:14]MH_GetDate [16:56:14]Write to MH i2c: F0 00 00 10 60 5F [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: F0 09 00 10 60 00 B5 2A 19 67 04 C1 95 66 87 [16:56:14]GetLastDocTimeStamp 1729702477 [16:56:14]current date 1729702581 [16:56:14]FM_GetShiftState [16:56:14]SAM_PROTO_GetShiftState [16:56:14]wFMCommunicate request_size=4 [16:56:14]MH_SAM_APDU [16:56:14]CAPDU: 80 13 01 00 [16:56:14]Write to MH i2c: E2 08 00 11 60 80 13 01 00 00 00 00 00 EE [16:56:14]Write i2c OK [16:56:14]MH_I2C_Read... [16:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:14]Read from MH i2c: E2 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 [16:56:14]MH_I2C_Read... [16:56:14]Read from MH i2c: E2 0E 00 11 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A8 [16:56:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:56:14]wFMCommunicate OK [16:56:14]SAM_PROTO_GetShiftState done [16:56:14]FM_GetShiftState done [16:56:14]opened in 1729643755 [16:56:14]opened+sec_in_day 1729730155 [16:56:14]quantity*price = 100051 [16:56:14]sum+1 = 100052 [16:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 173 23.10.2024 16:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31229 ФПД: 205723150525160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31229&fm=205723150525160&tin=02508201610067®Number=0000000000186857&sum=100000 [16:56:15]StoreToDocumentArchive [16:56:15]shift 117 fd 31229 [16:56:15]save to /storage/0117/doc_00031229 [16:56:15]save last doc name /storage/0117/doc_00031229 to /storage/kkm_last_doc_name [16:56:15]save OK [16:56:15]Clear old archive folders... [16:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:56:15]tlvbuf is 00FA6AD0 [16:56:15]SAM_PROTO_ClearQueue [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 09 00 00 [16:56:15]Write to MH i2c: E2 08 00 1E 60 80 09 00 00 00 00 00 00 F0 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:15]Read from MH i2c: E2 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 03 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 03 00 1E 60 00 90 00 F2 [16:56:15]RAPDU: 90 00 [16:56:15]wFMCommunicate OK [16:56:15]SAM_PROTO_ClearQueue done [16:56:15]KKMCreateOFDPacket [16:56:15]OFDProtocolAddRootSTLVToBuf [16:56:15]FM_MakeSignedData [16:56:15]FM_MakeSignedData [16:56:15]SAM_PROTO_SignData [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 0D 01 02 [16:56:15]Write to MH i2c: E2 08 00 1F 60 80 0D 01 02 00 00 00 00 F8 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 1F 60 00 90 00 F3 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=255 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 B6 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 79 00 [16:56:16]Write to MH i2c: E2 02 01 20 60 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 B6 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 79 00 00 00 4A [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 20 60 00 90 00 F4 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=16 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BB 1A A7 4F 22 E8 [16:56:16]Write to MH i2c: E2 13 00 21 60 80 0D 02 02 0B 00 00 35 04 06 00 BB 1A A7 4F 22 E8 00 00 25 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 21 60 00 90 00 F5 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 03 02 [16:56:16]Write to MH i2c: E2 08 00 22 60 80 0D 03 02 00 00 00 00 FD [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 22 60 00 A6 2A A3 BF 69 75 94 33 90 00 D5 [16:56:16]RAPDU: A6 2A A3 BF 69 75 94 33 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_SignData done [16:56:16]FM_MakeSignedData done [16:56:16]CreateOFDProtocolMessage [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 11 00 00 [16:56:16]Write to MH i2c: E2 08 00 23 60 80 11 00 00 00 00 00 00 FD [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 23 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [16:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:56:16]wFMCommunicate OK [16:56:16]CreateOFDProtocolMessage done [16:56:16]OFDSenderStorePacket 31229 [16:56:16]StoreOFDPacket docnum=31229 [16:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B5 4D 0D 01 85 64 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 B6 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 79 00 00 35 04 06 00 BB 1A A7 4F 22 E8 A6 2A A3 BF 69 75 94 33 [16:56:16]CheckFolder [16:56:16]dirname=/storage/ofd_packets [16:56:16]CheckFolder done [16:56:16]ProducePacketName [16:56:16]name=ofd_packets/00031229 [16:56:16]NVStorageSaveData ofd_packets/00031229 [16:56:16]File name is /storage/ofd_packets/00031229 [16:56:16]Write 307 bytes [16:56:16]NVStorageSaveData done [16:56:16]OFDSenderStorePacket done [16:56:16]KKMCreateOFDPacket done [16:56:16]NVStorageSaveData kkm_last_timestamp [16:56:16]File name is /storage/kkm_last_timestamp [16:56:16]Write 4 bytes [16:56:16]NVStorageSaveData done [16:56:16]ExternCall_PrintAddStr [16:56:16]wPrintStart [16:56:16]Write to MH i2c: 01 00 00 24 60 84 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 24 60 00 00 00 00 00 FF 0F 99 [16:56:16]RasterBufferAndPrint [16:56:16]line Счет N : (1)343676 [16:56:16]line ИНН: 02508201610067 [16:56:16]line Контрольно-Кассовый Чек [16:56:16]line ПРОДАЖА [16:56:16]line ТРК (МРК, ГНК) : 51 [16:56:16]line Товар: 2710194210 [16:56:16]line D-ENERGY Дт-К-2 [16:56:16]line 12.960 * 77.20 [16:56:16]line = 1000.51 [16:56:16]line НДС 12% НСП 1% [16:56:16]line > о реализуемом товаре [16:56:16]line ОКРУГЛЕНИЕ: -0.51 [16:56:16]line ИТОГО: 1000.00 [16:56:16]line Внесено: 1000.00 [16:56:16]line СДАЧА: 0.00 [16:56:16]line НСП 1% : 8.85 [16:56:16]line НДС 12% : 106.25 [16:56:16]line Наличными: 1000.00 [16:56:16]line Безнал.: 0.00 [16:56:16]line Место: АЗС № 78 "Партнер Нефть" [16:56:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:56:16]line СНО: Общий режим [16:56:16]line Чек 173 23.10.2024 16:56 [16:56:16]line Смена: 117 ФФД: 1.0 [16:56:16]line ЗНМ: 0300000137 [16:56:16]line РНМ: 0000000000186857 [16:56:16]line Версия ККМ: v1.0 [16:56:16]line ФМ: 0000000002094219 [16:56:16]line ФД: 31229 [16:56:16]line ФПД: 205723150525160 [16:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31229&fm=205723150525160&tin=02508201610067®Number=0000000000186857&sum=100000 [16:56:16]OFD Sender: Processing packet 31229 [packets to send 11, broken 10] [16:56:16]ProducePacketName [16:56:16]name=ofd_packets/00031229 [16:56:16]OFD Sender: To server: pG, [16:56:16]CommunicateWithHost lk.salyk.kg:30040 [16:56:16]ConnectInit lk.salyk.kg [16:56:16]written 0, free lines is 4095 [16:56:16]Connected sock=10 [16:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B5 4D 0D 01 85 64 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 B6 2A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 79 00 00 35 04 06 00 BB 1A A7 4F 22 E8 A6 2A A3 BF 69 75 94 33 [16:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1F B9 47 00 7D CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 79 00 00 F4 03 04 00 2F D5 18 67 B6 04 01 00 00 76 41 24 5F EF E3 D0 43 [16:56:17]CommunicateWithHost err = 0 [16:56:17]CheckOFDResponse [16:56:17]1017 (14) - 77093643461234 [16:56:17]1041 (16) - 0000000002094219 [16:56:17]1040 (4) - 31229 [16:56:17]1012 (4) - 23.10.2024 10:51 [16:56:17]1206 (1) - 0 [16:56:17]OFD Sender: Remove packet 31229 [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00031229 [16:56:17]NVStorageDeleteData [16:56:17]Write to MH i2c: 01 00 00 4F 60 AF [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 4F 60 00 00 00 00 00 F2 0C B4 [16:56:17]RasterBufferAndPrint [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]written 0, free lines is 3320 [16:56:17]MH_Cut [16:56:17]Write to MH i2c: D1 01 00 56 60 01 88 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 01 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 01 00 56 60 00 87 [16:56:17]Write to MH i2c: 01 00 00 57 60 B7 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]OFD Sender: No OFD packet to send [16:56:17]*** Cut start [16:56:17]*** Partial cut [16:56:17]*** CUTSNS_PIN = 1 [16:56:17]*** CUTSNS_PIN = 0 [16:56:18]*** Brake cut motor [16:56:18]Read from MH i2c: 01 [16:56:18]MH_I2C_Read... [16:56:18]*** Stop cut motor [16:56:18]*** Cut end [16:56:18]Read from MH i2c: 01 07 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: 01 07 00 57 60 00 00 00 00 00 FF 0F CC [16:56:18]process_action close_receipt done [16:56:18]requested_data is exist [16:56:18]produce_requested_data [16:56:18]requested_item fm.sn is exist - process it [16:56:18]wFMCommunicate request_size=4 [16:56:18]MH_SAM_APDU [16:56:18]CAPDU: 80 11 00 00 [16:56:18]Write to MH i2c: E2 08 00 58 60 80 11 00 00 00 00 00 00 32 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:18]Read from MH i2c: E2 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 17 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 17 00 58 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [16:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:56:18]wFMCommunicate OK [16:56:18]requested_item fd.num is exist - process it [16:56:18]SAM_PROTO_GetFieldsCounters [16:56:18]wFMCommunicate request_size=4 [16:56:18]MH_SAM_APDU [16:56:18]CAPDU: 80 13 00 00 [16:56:18]Write to MH i2c: E2 08 00 59 60 80 13 00 00 00 00 00 00 35 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:18]Read from MH i2c: E2 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 62 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 62 00 59 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:18]wFMCommunicate OK [16:56:18]SAM_PROTO_GetFieldsCounters done [16:56:18]requested_item shift.num is exist - process it [16:56:18]requested_item shift.opened is exist - process it [16:56:18]req_shift_opened [16:56:18]FM_GetShiftState [16:56:18]SAM_PROTO_GetShiftState [16:56:18]wFMCommunicate request_size=4 [16:56:18]MH_SAM_APDU [16:56:18]CAPDU: 80 13 01 00 [16:56:18]Write to MH i2c: E2 08 00 5A 60 80 13 01 00 00 00 00 00 37 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:18]Read from MH i2c: E2 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 0E 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 0E 00 5A 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F1 [16:56:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:56:18]wFMCommunicate OK [16:56:18]SAM_PROTO_GetShiftState done [16:56:18]FM_GetShiftState done [16:56:18]req_shift_opened done [16:56:18]requested_item shift.open_date is exist - process it [16:56:18]req_shift_open_date [16:56:18]req_shift_open_date done [16:56:18]produce_requested_data done [16:56:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31229,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:56:18]process_action_free close_receipt [16:56:18]json_value_free [16:56:18]json_value_free done [16:56:18]process_json_proto returns [16:56:18]Send response to host [16:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31229,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:56:18]free response buf [16:56:18]execute_script done [16:56:18]execute_script returns [16:56:18]free content buf [16:56:18]Sock 7.Close socket [16:56:18]Sock 7.Thread stoped [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:09]accept exits with 9 [16:58:09]New connection [16:58:09]New thread 3067043172 created [16:58:09]Thread 3066899812 joined [16:58:09]Waiting for new connection... [16:58:09] Sock 9.Parse request [16:58:09]Sock 9.Check first char [16:58:09]Sock 9.First char is OK [16:58:09]request: POST /json_proto HTTP/1.0 [16:58:09]Method: POST [16:58:09]URL: /json_proto [16:58:09]Method is POST - this is cgi request [16:58:09]url: /json_proto [16:58:09]query_string will be loaded in cgi processing [16:58:09]execute_cgi json_proto POST (null) [16:58:09]execute_cgi path=json_proto method=POST [16:58:09]POST find Content-Length [16:58:09]Host: 172.17.51.3:8080 [16:58:09]Content-Length: 754 [16:58:09]Content-Type: application/json [16:58:09] [16:58:09]POST finish read [16:58:09]Found Content-Length = 754 [16:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:09]execute_script... [16:58:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:09]POST & json_proto [16:58:09]process_json_proto [16:58:09]json parsed OK: [16:58:09]protocol is kg_v1.0 [16:58:09]action value=close_receipt [16:58:09]process_action close_receipt [16:58:09]cmd_close_receipt [16:58:09]MH_GetDate [16:58:09]Write to MH i2c: F0 00 00 5B 60 AA [16:58:09]Write i2c OK [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: F0 [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: F0 09 00 [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: F0 09 00 5B 60 00 29 2B 19 67 04 C1 95 66 47 [16:58:09]GetLastDocTimeStamp 1729702582 [16:58:09]current date 1729702697 [16:58:09]FM_GetShiftState [16:58:09]SAM_PROTO_GetShiftState [16:58:09]wFMCommunicate request_size=4 [16:58:09]MH_SAM_APDU [16:58:09]CAPDU: 80 13 01 00 [16:58:09]Write to MH i2c: E2 08 00 5C 60 80 13 01 00 00 00 00 00 39 [16:58:09]Write i2c OK [16:58:09]MH_I2C_Read... [16:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:09]Read from MH i2c: E2 [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: E2 0E 00 [16:58:09]MH_I2C_Read... [16:58:09]Read from MH i2c: E2 0E 00 5C 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F3 [16:58:09]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:58:09]wFMCommunicate OK [16:58:09]SAM_PROTO_GetShiftState done [16:58:09]FM_GetShiftState done [16:58:09]opened in 1729643755 [16:58:09]opened+sec_in_day 1729730155 [16:58:09]quantity*price = 0 [16:58:09]sum+1 = 1 [16:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 174 23.10.2024 16:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30090601 ФМ: 0000000002094219 ФД: 31230 ФПД: 260714337169327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165817&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31230&fm=260714337169327&tin=02508201610067®Number=0000000000186857&sum=0 [16:58:11]StoreToDocumentArchive [16:58:11]shift 117 fd 31230 [16:58:11]save to /storage/0117/doc_00031230 [16:58:11]save last doc name /storage/0117/doc_00031230 to /storage/kkm_last_doc_name [16:58:11]save OK [16:58:11]Clear old archive folders... [16:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:11]tlvbuf is 00DDCFC0 [16:58:11]SAM_PROTO_ClearQueue [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 09 00 00 [16:58:11]Write to MH i2c: E2 08 00 69 60 80 09 00 00 00 00 00 00 3B [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 69 60 00 90 00 3D [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]SAM_PROTO_ClearQueue done [16:58:11]KKMCreateOFDPacket [16:58:11]OFDProtocolAddRootSTLVToBuf [16:58:11]FM_MakeSignedData [16:58:11]FM_MakeSignedData [16:58:11]SAM_PROTO_SignData [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 01 02 [16:58:11]Write to MH i2c: E2 08 00 6A 60 80 0D 01 02 00 00 00 00 43 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 6A 60 00 90 00 3E [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=255 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 29 2B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 79 00 00 35 04 06 00 ED [16:58:11]Write to MH i2c: E2 02 01 6B 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 29 2B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 79 00 00 35 04 06 00 ED 00 00 86 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 6B 60 00 90 00 3F [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=10 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 02 02 05 1E 49 74 6F AF [16:58:11]Write to MH i2c: E2 0D 00 6C 60 80 0D 02 02 05 00 1E 49 74 6F AF 00 00 49 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 6C 60 00 90 00 40 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 03 02 [16:58:11]Write to MH i2c: E2 08 00 6D 60 80 0D 03 02 00 00 00 00 48 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 6D 60 00 E8 FF 27 50 0F 83 31 34 90 00 9E [16:58:11]RAPDU: E8 FF 27 50 0F 83 31 34 90 00 [16:58:11]wFMCommunicate OK [16:58:11]SAM_PROTO_SignData done [16:58:11]FM_MakeSignedData done [16:58:11]CreateOFDProtocolMessage [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 11 00 00 [16:58:11]Write to MH i2c: E2 08 00 6E 60 80 11 00 00 00 00 00 00 48 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 17 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 17 00 6E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [16:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:11]wFMCommunicate OK [16:58:11]CreateOFDProtocolMessage done [16:58:11]OFDSenderStorePacket 31230 [16:58:11]StoreOFDPacket docnum=31230 [16:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EC 6D 07 01 68 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 29 2B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 79 00 00 35 04 06 00 ED 1E 49 74 6F AF E8 FF 27 50 0F 83 31 34 [16:58:11]CheckFolder [16:58:11]dirname=/storage/ofd_packets [16:58:11]CheckFolder done [16:58:11]ProducePacketName [16:58:11]name=ofd_packets/00031230 [16:58:11]NVStorageSaveData ofd_packets/00031230 [16:58:11]File name is /storage/ofd_packets/00031230 [16:58:11]Write 301 bytes [16:58:11]NVStorageSaveData done [16:58:11]OFDSenderStorePacket done [16:58:11]KKMCreateOFDPacket done [16:58:11]NVStorageSaveData kkm_last_timestamp [16:58:11]File name is /storage/kkm_last_timestamp [16:58:11]Write 4 bytes [16:58:11]NVStorageSaveData done [16:58:11]ExternCall_PrintAddStr [16:58:11]wPrintStart [16:58:11]Write to MH i2c: 01 00 00 6F 60 CF [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 07 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 07 00 6F 60 00 00 00 00 00 FF 0F E4 [16:58:11]RasterBufferAndPrint [16:58:11]line Счет N : (1)343674 [16:58:11]line ИНН: 02508201610067 [16:58:11]line Контрольно-Кассовый Чек [16:58:11]line ПРОДАЖА [16:58:11]line ТРК (МРК, ГНК) : 63 [16:58:11]line Товар: 2710124130 [16:58:11]line Аи-92-К-2 [16:58:11]line 40.000 * 0.00 [16:58:11]line = 0.00 [16:58:11]line НДС 12% НСП 1% [16:58:11]line > о реализуемом товаре [16:58:11]line ИТОГО: 0.00 [16:58:11]line НСП 1% : 0.00 [16:58:11]line НДС 12% : 0.00 [16:58:11]line Наличными: 0.00 [16:58:11]line Безнал.: 0.00 [16:58:11]line Место: АЗС № 78 "Партнер Нефть" [16:58:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:58:11]line СНО: Общий режим [16:58:11]line Чек 174 23.10.2024 16:58 [16:58:11]line Смена: 117 ФФД: 1.0 [16:58:11]line ЗНМ: 0300000137 [16:58:11]line РНМ: 0000000000186857 [16:58:11]line Версия ККМ: v1.0 [16:58:11]line Талоны: ТК ГПНА Online [16:58:11]line 30090601 [16:58:11]line ФМ: 0000000002094219 [16:58:11]line ФД: 31230 [16:58:11]line ФПД: 260714337169327 [16:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165817&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31230&fm=260714337169327&tin=02508201610067®Number=0000000000186857&sum=0 [16:58:11]OFD Sender: Processing packet 31230 [packets to send 11, broken 10] [16:58:11]ProducePacketName [16:58:11]name=ofd_packets/00031230 [16:58:11]OFD Sender: To server: pG, [16:58:11]CommunicateWithHost lk.salyk.kg:30040 [16:58:11]ConnectInit lk.salyk.kg [16:58:11]written 0, free lines is 4095 [16:58:12]Write to MH i2c: 01 00 00 99 60 F9 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 99 60 00 00 00 00 00 F0 0C FC [16:58:12]RasterBufferAndPrint [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]written 0, free lines is 3318 [16:58:12]MH_Cut [16:58:12]Write to MH i2c: D1 01 00 A0 60 01 D2 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: D1 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: D1 01 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: D1 01 00 A0 60 00 D1 [16:58:12]Write to MH i2c: 01 00 00 A1 60 01 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** Cut start [16:58:12]*** Partial cut [16:58:12]*** CUTSNS_PIN = 1 [16:58:13]*** CUTSNS_PIN = 0 [16:58:13]*** Brake cut motor [16:58:13]Read from MH i2c: 01 [16:58:13]MH_I2C_Read... [16:58:13]*** Stop cut motor [16:58:13]*** Cut end [16:58:13]Read from MH i2c: 01 07 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: 01 07 00 A1 60 00 00 00 00 00 FF 0F 16 [16:58:13]process_action close_receipt done [16:58:13]requested_data is exist [16:58:13]produce_requested_data [16:58:13]requested_item fm.sn is exist - process it [16:58:13]wFMCommunicate request_size=4 [16:58:13]MH_SAM_APDU [16:58:13]CAPDU: 80 11 00 00 [16:58:13]Write to MH i2c: E2 08 00 A2 60 80 11 00 00 00 00 00 00 7C [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:13]Read from MH i2c: E2 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 17 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 17 00 A2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [16:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:13]wFMCommunicate OK [16:58:13]requested_item fd.num is exist - process it [16:58:13]SAM_PROTO_GetFieldsCounters [16:58:13]wFMCommunicate request_size=4 [16:58:13]MH_SAM_APDU [16:58:13]CAPDU: 80 13 00 00 [16:58:13]Write to MH i2c: E2 08 00 A3 60 80 13 00 00 00 00 00 00 7F [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:13]Read from MH i2c: E2 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 62 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 62 00 A3 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:13]wFMCommunicate OK [16:58:13]SAM_PROTO_GetFieldsCounters done [16:58:13]requested_item shift.num is exist - process it [16:58:13]requested_item shift.opened is exist - process it [16:58:13]req_shift_opened [16:58:13]FM_GetShiftState [16:58:13]SAM_PROTO_GetShiftState [16:58:13]wFMCommunicate request_size=4 [16:58:13]MH_SAM_APDU [16:58:13]CAPDU: 80 13 01 00 [16:58:13]Write to MH i2c: E2 08 00 A4 60 80 13 01 00 00 00 00 00 81 [16:58:13]Write i2c OK [16:58:13]MH_I2C_Read... [16:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:13]Read from MH i2c: E2 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 0E 00 [16:58:13]MH_I2C_Read... [16:58:13]Read from MH i2c: E2 0E 00 A4 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3B [16:58:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [16:58:13]wFMCommunicate OK [16:58:13]SAM_PROTO_GetShiftState done [16:58:13]FM_GetShiftState done [16:58:13]req_shift_opened done [16:58:13]requested_item shift.open_date is exist - process it [16:58:13]req_shift_open_date [16:58:13]req_shift_open_date done [16:58:13]produce_requested_data done [16:58:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31230,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [16:58:13]process_action_free close_receipt [16:58:13]json_value_free [16:58:13]json_value_free done [16:58:13]process_json_proto returns [16:58:13]Send response to host [16:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31230,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [16:58:13]free response buf [16:58:13]execute_script done [16:58:13]execute_script returns [16:58:13]free content buf [16:58:13]Sock 9.Close socket [16:58:13]Sock 9.Thread stoped [17:00:24]ConnectInit Can't connect to host [17:00:24]CommunicateWithHost connect error [17:00:24]CommunicateWithHost err = -1 [17:00:24]OFD Sender: Server communicate error [17:00:29]OFD Sender: Processing packet 31230 [packets to send 11, broken 10] [17:00:29]ProducePacketName [17:00:29]name=ofd_packets/00031230 [17:00:29]OFD Sender: To server: pG, [17:00:29]CommunicateWithHost lk.salyk.kg:30040 [17:00:29]ConnectInit lk.salyk.kg [17:00:30]Connected sock=9 [17:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EC 6D 07 01 68 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 29 2B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 79 00 00 35 04 06 00 ED 1E 49 74 6F AF E8 FF 27 50 0F 83 31 34 [17:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E0 04 47 00 2F 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 79 00 00 F4 03 04 00 2C D6 18 67 B6 04 01 00 00 E6 1E 27 28 77 34 8A 70 [17:00:30]CommunicateWithHost err = 0 [17:00:30]CheckOFDResponse [17:00:30]1017 (14) - 77093643461234 [17:00:30]1041 (16) - 0000000002094219 [17:00:30]1040 (4) - 31230 [17:00:30]1012 (4) - 23.10.2024 10:55 [17:00:30]1206 (1) - 0 [17:00:30]OFD Sender: Remove packet 31230 [17:00:30]ProducePacketName [17:00:30]name=ofd_packets/00031230 [17:00:30]NVStorageDeleteData [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:24]accept exits with 7 [17:02:24]New connection [17:02:24]New thread 3066899812 created [17:02:24]Thread 3067043172 joined [17:02:24]Waiting for new connection... [17:02:24] Sock 7.Parse request [17:02:24]Sock 7.Check first char [17:02:24]Sock 7.First char is OK [17:02:24]request: POST /json_proto HTTP/1.0 [17:02:24]Method: POST [17:02:24]URL: /json_proto [17:02:24]Method is POST - this is cgi request [17:02:24]url: /json_proto [17:02:24]query_string will be loaded in cgi processing [17:02:24]execute_cgi json_proto POST (null) [17:02:24]execute_cgi path=json_proto method=POST [17:02:24]POST find Content-Length [17:02:24]Host: 172.17.51.3:8080 [17:02:24]Content-Length: 677 [17:02:24]Content-Type: application/json [17:02:24] [17:02:24]POST finish read [17:02:24]Found Content-Length = 677 [17:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:24]execute_script... [17:02:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:24]POST & json_proto [17:02:24]process_json_proto [17:02:24]json parsed OK: [17:02:24]protocol is kg_v1.0 [17:02:24]action value=close_receipt [17:02:24]process_action close_receipt [17:02:24]cmd_close_receipt [17:02:24]MH_GetDate [17:02:24]Write to MH i2c: F0 00 00 A5 60 F4 [17:02:24]Write i2c OK [17:02:24]MH_I2C_Read... [17:02:24]Read from MH i2c: F0 [17:02:24]MH_I2C_Read... [17:02:24]Read from MH i2c: F0 09 00 [17:02:24]MH_I2C_Read... [17:02:24]Read from MH i2c: F0 09 00 A5 60 00 28 2C 19 67 04 C1 95 66 91 [17:02:24]GetLastDocTimeStamp 1729702697 [17:02:24]current date 1729702952 [17:02:24]FM_GetShiftState [17:02:24]SAM_PROTO_GetShiftState [17:02:24]wFMCommunicate request_size=4 [17:02:24]MH_SAM_APDU [17:02:24]CAPDU: 80 13 01 00 [17:02:24]Write to MH i2c: E2 08 00 A6 60 80 13 01 00 00 00 00 00 83 [17:02:24]Write i2c OK [17:02:24]MH_I2C_Read... [17:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:24]Read from MH i2c: E2 [17:02:24]MH_I2C_Read... [17:02:24]Read from MH i2c: E2 0E 00 [17:02:24]MH_I2C_Read... [17:02:24]Read from MH i2c: E2 0E 00 A6 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3D [17:02:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:02:24]wFMCommunicate OK [17:02:24]SAM_PROTO_GetShiftState done [17:02:24]FM_GetShiftState done [17:02:24]opened in 1729643755 [17:02:24]opened+sec_in_day 1729730155 [17:02:24]quantity*price = 50041 [17:02:24]sum+1 = 50042 [17:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 175 23.10.2024 17:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31231 ФПД: 153822789707702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170232&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31231&fm=153822789707702&tin=02508201610067®Number=0000000000186857&sum=50000 [17:02:25]StoreToDocumentArchive [17:02:25]shift 117 fd 31231 [17:02:25]save to /storage/0117/doc_00031231 [17:02:25]save last doc name /storage/0117/doc_00031231 to /storage/kkm_last_doc_name [17:02:25]save OK [17:02:25]Clear old archive folders... [17:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:25]tlvbuf is 00CDD250 [17:02:25]SAM_PROTO_ClearQueue [17:02:25]wFMCommunicate request_size=4 [17:02:25]MH_SAM_APDU [17:02:25]CAPDU: 80 09 00 00 [17:02:25]Write to MH i2c: E2 08 00 B3 60 80 09 00 00 00 00 00 00 85 [17:02:25]Write i2c OK [17:02:25]MH_I2C_Read... [17:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 B3 60 00 90 00 87 [17:02:26]RAPDU: 90 00 [17:02:26]wFMCommunicate OK [17:02:26]SAM_PROTO_ClearQueue done [17:02:26]KKMCreateOFDPacket [17:02:26]OFDProtocolAddRootSTLVToBuf [17:02:26]FM_MakeSignedData [17:02:26]FM_MakeSignedData [17:02:26]SAM_PROTO_SignData [17:02:26]wFMCommunicate request_size=4 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 0D 01 02 [17:02:26]Write to MH i2c: E2 08 00 B4 60 80 0D 01 02 00 00 00 00 8D [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 B4 60 00 90 00 88 [17:02:26]RAPDU: 90 00 [17:02:26]wFMCommunicate OK [17:02:26]wFMCommunicate request_size=255 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 28 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 79 00 00 35 04 06 00 8B [17:02:26]Write to MH i2c: E2 02 01 B5 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 28 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 79 00 00 35 04 06 00 8B 00 00 19 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 B5 60 00 90 00 89 [17:02:26]RAPDU: 90 00 [17:02:26]wFMCommunicate OK [17:02:26]wFMCommunicate request_size=10 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 0D 02 02 05 E6 A8 BD 27 B6 [17:02:26]Write to MH i2c: E2 0D 00 B6 60 80 0D 02 02 05 00 E6 A8 BD 27 B6 00 00 C2 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 03 00 B6 60 00 90 00 8A [17:02:26]RAPDU: 90 00 [17:02:26]wFMCommunicate OK [17:02:26]wFMCommunicate request_size=4 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 0D 03 02 [17:02:26]Write to MH i2c: E2 08 00 B7 60 80 0D 03 02 00 00 00 00 92 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0B 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0B 00 B7 60 00 2A CE 03 55 7F 05 50 2A 90 00 E1 [17:02:26]RAPDU: 2A CE 03 55 7F 05 50 2A 90 00 [17:02:26]wFMCommunicate OK [17:02:26]SAM_PROTO_SignData done [17:02:26]FM_MakeSignedData done [17:02:26]CreateOFDProtocolMessage [17:02:26]wFMCommunicate request_size=4 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 11 00 00 [17:02:26]Write to MH i2c: E2 08 00 B8 60 80 11 00 00 00 00 00 00 92 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 17 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 17 00 B8 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [17:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:02:26]wFMCommunicate OK [17:02:26]CreateOFDProtocolMessage done [17:02:26]OFDSenderStorePacket 31231 [17:02:26]StoreOFDPacket docnum=31231 [17:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 F3 07 01 FA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 28 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 79 00 00 35 04 06 00 8B E6 A8 BD 27 B6 2A CE 03 55 7F 05 50 2A [17:02:26]CheckFolder [17:02:26]dirname=/storage/ofd_packets [17:02:26]CheckFolder done [17:02:26]ProducePacketName [17:02:26]name=ofd_packets/00031231 [17:02:26]NVStorageSaveData ofd_packets/00031231 [17:02:26]File name is /storage/ofd_packets/00031231 [17:02:26]Write 301 bytes [17:02:26]NVStorageSaveData done [17:02:26]OFDSenderStorePacket done [17:02:26]KKMCreateOFDPacket done [17:02:26]NVStorageSaveData kkm_last_timestamp [17:02:26]File name is /storage/kkm_last_timestamp [17:02:26]Write 4 bytes [17:02:26]NVStorageSaveData done [17:02:26]ExternCall_PrintAddStr [17:02:26]wPrintStart [17:02:26]Write to MH i2c: 01 00 00 B9 60 19 [17:02:26]OFD Sender: Processing packet 31231 [packets to send 11, broken 10] [17:02:26]ProducePacketName [17:02:26]name=ofd_packets/00031231 [17:02:26]OFD Sender: To server: pG, [17:02:26]CommunicateWithHost lk.salyk.kg:30040 [17:02:26]ConnectInit lk.salyk.kg [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: 01 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: 01 07 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: 01 07 00 B9 60 00 00 00 00 00 FF 0F 2E [17:02:26]RasterBufferAndPrint [17:02:26]line Счет N : (1)343677 [17:02:26]line ИНН: 02508201610067 [17:02:26]line Контрольно-Кассовый Чек [17:02:26]line ПРОДАЖА [17:02:26]line ТРК (МРК, ГНК) : 63 [17:02:26]line Товар: 2710124130 [17:02:26]line Аи-92-К-2 [17:02:26]line 7.480 * 66.90 [17:02:26]line = 500.41 [17:02:26]line НДС 12% НСП 1% [17:02:26]line > о реализуемом товаре [17:02:26]line ОКРУГЛЕНИЕ: -0.41 [17:02:26]line ИТОГО: 500.00 [17:02:26]line Внесено: 500.00 [17:02:26]line СДАЧА: 0.00 [17:02:26]line НСП 1% : 4.43 [17:02:26]line НДС 12% : 53.14 [17:02:26]line Наличными: 500.00 [17:02:26]line Безнал.: 0.00 [17:02:26]line Место: АЗС № 78 "Партнер Нефть" [17:02:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:02:26]line СНО: Общий режим [17:02:26]line Чек 175 23.10.2024 17:02 [17:02:26]line Смена: 117 ФФД: 1.0 [17:02:26]line ЗНМ: 0300000137 [17:02:26]line РНМ: 0000000000186857 [17:02:26]line Версия ККМ: v1.0 [17:02:26]line ФМ: 0000000002094219 [17:02:26]line ФД: 31231 [17:02:26]line ФПД: 153822789707702 [17:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170232&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31231&fm=153822789707702&tin=02508201610067®Number=0000000000186857&sum=50000 [17:02:26]Connected sock=10 [17:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 F3 07 01 FA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 28 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 79 00 00 35 04 06 00 8B E6 A8 BD 27 B6 2A CE 03 55 7F 05 50 2A [17:02:26]written 0, free lines is 4095 [17:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 94 20 47 00 CE DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 79 00 00 F4 03 04 00 A1 D6 18 67 B6 04 01 00 00 FD C0 4F C7 13 76 C3 5D [17:02:27]CommunicateWithHost err = 0 [17:02:27]CheckOFDResponse [17:02:27]1017 (14) - 77093643461234 [17:02:27]1041 (16) - 0000000002094219 [17:02:27]1040 (4) - 31231 [17:02:27]1012 (4) - 23.10.2024 10:57 [17:02:27]1206 (1) - 0 [17:02:27]OFD Sender: Remove packet 31231 [17:02:27]ProducePacketName [17:02:27]name=ofd_packets/00031231 [17:02:27]NVStorageDeleteData [17:02:27]Write to MH i2c: 01 00 00 E4 60 44 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 E4 60 00 00 00 00 00 E1 0C 38 [17:02:27]RasterBufferAndPrint [17:02:27]line [17:02:27]line [17:02:27]line [17:02:27]line [17:02:27]line [17:02:27]written 0, free lines is 3303 [17:02:27]MH_Cut [17:02:27]Write to MH i2c: D1 01 00 EB 60 01 1D [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: D1 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: D1 01 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: D1 01 00 EB 60 00 1C [17:02:27]Write to MH i2c: 01 00 00 EC 60 4C [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]OFD Sender: No OFD packet to send [17:02:27]*** Cut start [17:02:27]*** Partial cut [17:02:27]*** CUTSNS_PIN = 1 [17:02:28]*** CUTSNS_PIN = 0 [17:02:28]*** Brake cut motor [17:02:28]Read from MH i2c: 01 [17:02:28]MH_I2C_Read... [17:02:28]*** Stop cut motor [17:02:28]*** Cut end [17:02:28]Read from MH i2c: 01 07 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 07 00 EC 60 00 00 00 00 00 FF 0F 61 [17:02:28]process_action close_receipt done [17:02:28]requested_data is exist [17:02:28]produce_requested_data [17:02:28]requested_item fm.sn is exist - process it [17:02:28]wFMCommunicate request_size=4 [17:02:28]MH_SAM_APDU [17:02:28]CAPDU: 80 11 00 00 [17:02:28]Write to MH i2c: E2 08 00 ED 60 80 11 00 00 00 00 00 00 C7 [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:28]Read from MH i2c: E2 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 17 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 17 00 ED 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [17:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:02:28]wFMCommunicate OK [17:02:28]requested_item fd.num is exist - process it [17:02:28]SAM_PROTO_GetFieldsCounters [17:02:28]wFMCommunicate request_size=4 [17:02:28]MH_SAM_APDU [17:02:28]CAPDU: 80 13 00 00 [17:02:28]Write to MH i2c: E2 08 00 EE 60 80 13 00 00 00 00 00 00 CA [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:28]Read from MH i2c: E2 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 62 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 62 00 EE 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [17:02:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 79 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:28]wFMCommunicate OK [17:02:28]SAM_PROTO_GetFieldsCounters done [17:02:28]requested_item shift.num is exist - process it [17:02:28]requested_item shift.opened is exist - process it [17:02:28]req_shift_opened [17:02:28]FM_GetShiftState [17:02:28]SAM_PROTO_GetShiftState [17:02:28]wFMCommunicate request_size=4 [17:02:28]MH_SAM_APDU [17:02:28]CAPDU: 80 13 01 00 [17:02:28]Write to MH i2c: E2 08 00 EF 60 80 13 01 00 00 00 00 00 CC [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 [17:02:28]MH_I2C_Read... [17:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:28]Read from MH i2c: E2 0E 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 0E 00 EF 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 86 [17:02:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:02:28]wFMCommunicate OK [17:02:28]SAM_PROTO_GetShiftState done [17:02:28]FM_GetShiftState done [17:02:28]req_shift_opened done [17:02:28]requested_item shift.open_date is exist - process it [17:02:28]req_shift_open_date [17:02:28]req_shift_open_date done [17:02:28]produce_requested_data done [17:02:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31231,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:02:28]process_action_free close_receipt [17:02:28]json_value_free [17:02:28]json_value_free done [17:02:28]process_json_proto returns [17:02:28]Send response to host [17:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31231,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:02:28]free response buf [17:02:28]execute_script done [17:02:28]execute_script returns [17:02:28]free content buf [17:02:28]Sock 7.Close socket [17:02:28]Sock 7.Thread stoped [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:00]accept exits with 9 [17:04:00]New connection [17:04:00]New thread 3067043172 created [17:04:00]Thread 3066899812 joined [17:04:00]Waiting for new connection... [17:04:00] Sock 9.Parse request [17:04:00]Sock 9.Check first char [17:04:00]Sock 9.First char is OK [17:04:00]request: POST /json_proto HTTP/1.0 [17:04:00]Method: POST [17:04:00]URL: /json_proto [17:04:00]Method is POST - this is cgi request [17:04:00]url: /json_proto [17:04:00]query_string will be loaded in cgi processing [17:04:00]execute_cgi json_proto POST (null) [17:04:00]execute_cgi path=json_proto method=POST [17:04:00]POST find Content-Length [17:04:00]Host: 172.17.51.3:8080 [17:04:00]Content-Length: 677 [17:04:00]Content-Type: application/json [17:04:00] [17:04:00]POST finish read [17:04:00]Found Content-Length = 677 [17:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:00]execute_script... [17:04:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:00]POST & json_proto [17:04:00]process_json_proto [17:04:00]json parsed OK: [17:04:00]protocol is kg_v1.0 [17:04:00]action value=close_receipt [17:04:00]process_action close_receipt [17:04:00]cmd_close_receipt [17:04:00]MH_GetDate [17:04:00]Write to MH i2c: F0 00 00 F0 60 3F [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: F0 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: F0 09 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: F0 09 00 F0 60 00 87 2C 19 67 04 C1 95 66 3B [17:04:00]GetLastDocTimeStamp 1729702952 [17:04:00]current date 1729703047 [17:04:00]FM_GetShiftState [17:04:00]SAM_PROTO_GetShiftState [17:04:00]wFMCommunicate request_size=4 [17:04:00]MH_SAM_APDU [17:04:00]CAPDU: 80 13 01 00 [17:04:00]Write to MH i2c: E2 08 00 F1 60 80 13 01 00 00 00 00 00 CE [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:00]Read from MH i2c: E2 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 0E 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: E2 0E 00 F1 60 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 88 [17:04:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:04:00]wFMCommunicate OK [17:04:00]SAM_PROTO_GetShiftState done [17:04:00]FM_GetShiftState done [17:04:00]opened in 1729643755 [17:04:00]opened+sec_in_day 1729730155 [17:04:00]quantity*price = 50041 [17:04:00]sum+1 = 50042 [17:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 176 23.10.2024 17:04 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31232 ФПД: 178208778967734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31232&fm=178208778967734&tin=02508201610067®Number=0000000000186857&sum=50000 [17:04:01]StoreToDocumentArchive [17:04:01]shift 117 fd 31232 [17:04:01]save to /storage/0117/doc_00031232 [17:04:01]save last doc name /storage/0117/doc_00031232 to /storage/kkm_last_doc_name [17:04:01]save OK [17:04:01]Clear old archive folders... [17:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:01]tlvbuf is 00D5E190 [17:04:01]SAM_PROTO_ClearQueue [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 09 00 00 [17:04:01]Write to MH i2c: E2 08 00 FE 60 80 09 00 00 00 00 00 00 D0 [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 03 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 03 00 FE 60 00 90 00 D2 [17:04:01]RAPDU: 90 00 [17:04:01]wFMCommunicate OK [17:04:01]SAM_PROTO_ClearQueue done [17:04:01]KKMCreateOFDPacket [17:04:01]OFDProtocolAddRootSTLVToBuf [17:04:01]FM_MakeSignedData [17:04:01]FM_MakeSignedData [17:04:01]SAM_PROTO_SignData [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 0D 01 02 [17:04:01]Write to MH i2c: E2 08 00 FF 60 80 0D 01 02 00 00 00 00 D8 [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 03 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 03 00 FF 60 00 90 00 D3 [17:04:01]RAPDU: 90 00 [17:04:01]wFMCommunicate OK [17:04:01]wFMCommunicate request_size=255 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 87 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 7A 00 00 35 04 06 00 A2 [17:04:01]Write to MH i2c: E2 02 01 00 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 87 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 7A 00 00 35 04 06 00 A2 00 00 DE [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:02]Read from MH i2c: E2 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 03 00 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 03 00 00 61 00 90 00 D5 [17:04:02]RAPDU: 90 00 [17:04:02]wFMCommunicate OK [17:04:02]wFMCommunicate request_size=10 [17:04:02]MH_SAM_APDU [17:04:02]CAPDU: 80 0D 02 02 05 14 76 F7 5A B6 [17:04:02]Write to MH i2c: E2 0D 00 01 61 80 0D 02 02 05 00 14 76 F7 5A B6 00 00 77 [17:04:02]Write i2c OK [17:04:02]MH_I2C_Read... [17:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:02]Read from MH i2c: E2 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 03 00 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 03 00 01 61 00 90 00 D6 [17:04:02]RAPDU: 90 00 [17:04:02]wFMCommunicate OK [17:04:02]wFMCommunicate request_size=4 [17:04:02]MH_SAM_APDU [17:04:02]CAPDU: 80 0D 03 02 [17:04:02]Write to MH i2c: E2 08 00 02 61 80 0D 03 02 00 00 00 00 DE [17:04:02]Write i2c OK [17:04:02]MH_I2C_Read... [17:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:02]Read from MH i2c: E2 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 0B 00 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 0B 00 02 61 00 81 DD AB 6D 9A C9 F7 64 90 00 13 [17:04:02]RAPDU: 81 DD AB 6D 9A C9 F7 64 90 00 [17:04:02]wFMCommunicate OK [17:04:02]SAM_PROTO_SignData done [17:04:02]FM_MakeSignedData done [17:04:02]CreateOFDProtocolMessage [17:04:02]wFMCommunicate request_size=4 [17:04:02]MH_SAM_APDU [17:04:02]CAPDU: 80 11 00 00 [17:04:02]Write to MH i2c: E2 08 00 03 61 80 11 00 00 00 00 00 00 DE [17:04:02]Write i2c OK [17:04:02]MH_I2C_Read... [17:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:02]Read from MH i2c: E2 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 17 00 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: E2 17 00 03 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [17:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:04:02]wFMCommunicate OK [17:04:02]CreateOFDProtocolMessage done [17:04:02]OFDSenderStorePacket 31232 [17:04:02]StoreOFDPacket docnum=31232 [17:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7E F9 07 01 3E 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 87 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 7A 00 00 35 04 06 00 A2 14 76 F7 5A B6 81 DD AB 6D 9A C9 F7 64 [17:04:02]CheckFolder [17:04:02]dirname=/storage/ofd_packets [17:04:02]CheckFolder done [17:04:02]ProducePacketName [17:04:02]name=ofd_packets/00031232 [17:04:02]NVStorageSaveData ofd_packets/00031232 [17:04:02]File name is /storage/ofd_packets/00031232 [17:04:02]Write 301 bytes [17:04:02]NVStorageSaveData done [17:04:02]OFDSenderStorePacket done [17:04:02]KKMCreateOFDPacket done [17:04:02]NVStorageSaveData kkm_last_timestamp [17:04:02]File name is /storage/kkm_last_timestamp [17:04:02]Write 4 bytes [17:04:02]NVStorageSaveData done [17:04:02]ExternCall_PrintAddStr [17:04:02]wPrintStart [17:04:02]Write to MH i2c: 01 00 00 04 61 65 [17:04:02]Write i2c OK [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: 01 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: 01 07 00 [17:04:02]MH_I2C_Read... [17:04:02]Read from MH i2c: 01 07 00 04 61 00 00 00 00 00 FF 0F 7A [17:04:02]RasterBufferAndPrint [17:04:02]line Счет N : (1)343678 [17:04:02]line ИНН: 02508201610067 [17:04:02]line Контрольно-Кассовый Чек [17:04:02]line ПРОДАЖА [17:04:02]line ТРК (МРК, ГНК) : 63 [17:04:02]line Товар: 2710124130 [17:04:02]line Аи-92-К-2 [17:04:02]line 7.480 * 66.90 [17:04:02]line = 500.41 [17:04:02]line НДС 12% НСП 1% [17:04:02]line > о реализуемом товаре [17:04:02]line ОКРУГЛЕНИЕ: -0.41 [17:04:02]line ИТОГО: 500.00 [17:04:02]line Внесено: 500.00 [17:04:02]line СДАЧА: 0.00 [17:04:02]line НСП 1% : 4.43 [17:04:02]line НДС 12% : 53.14 [17:04:02]line Наличными: 500.00 [17:04:02]line Безнал.: 0.00 [17:04:02]line Место: АЗС № 78 "Партнер Нефть" [17:04:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:04:02]line СНО: Общий режим [17:04:02]line Чек 176 23.10.2024 17:04 [17:04:02]line Смена: 117 ФФД: 1.0 [17:04:02]line ЗНМ: 0300000137 [17:04:02]line РНМ: 0000000000186857 [17:04:02]line Версия ККМ: v1.0 [17:04:02]line ФМ: 0000000002094219 [17:04:02]line ФД: 31232 [17:04:02]line ФПД: 178208778967734 [17:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31232&fm=178208778967734&tin=02508201610067®Number=0000000000186857&sum=50000 [17:04:02]OFD Sender: Processing packet 31232 [packets to send 11, broken 10] [17:04:02]ProducePacketName [17:04:02]name=ofd_packets/00031232 [17:04:02]OFD Sender: To server: pG, [17:04:02]CommunicateWithHost lk.salyk.kg:30040 [17:04:02]ConnectInit lk.salyk.kg [17:04:02]written 0, free lines is 4095 [17:04:02]Connected sock=10 [17:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7E F9 07 01 3E 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 87 2C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 7A 00 00 35 04 06 00 A2 14 76 F7 5A B6 81 DD AB 6D 9A C9 F7 64 [17:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 25 C8 47 00 55 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 7A 00 00 F4 03 04 00 01 D7 18 67 B6 04 01 00 00 7A D0 35 08 88 A6 66 D4 [17:04:02]CommunicateWithHost err = 0 [17:04:02]CheckOFDResponse [17:04:02]1017 (14) - 77093643461234 [17:04:02]1041 (16) - 0000000002094219 [17:04:02]1040 (4) - 31232 [17:04:02]1012 (4) - 23.10.2024 10:59 [17:04:02]1206 (1) - 0 [17:04:02]OFD Sender: Remove packet 31232 [17:04:02]ProducePacketName [17:04:02]name=ofd_packets/00031232 [17:04:02]NVStorageDeleteData [17:04:03]Write to MH i2c: 01 00 00 2F 61 90 [17:04:03]Write i2c OK [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: 01 [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: 01 07 00 [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: 01 07 00 2F 61 00 00 00 00 00 E6 0C 89 [17:04:03]RasterBufferAndPrint [17:04:03]line [17:04:03]line [17:04:03]line [17:04:03]line [17:04:03]line [17:04:03]written 0, free lines is 3308 [17:04:03]MH_Cut [17:04:03]Write to MH i2c: D1 01 00 36 61 01 69 [17:04:03]Write i2c OK [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: D1 [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: D1 01 00 [17:04:03]MH_I2C_Read... [17:04:03]Read from MH i2c: D1 01 00 36 61 00 68 [17:04:03]Write to MH i2c: 01 00 00 37 61 98 [17:04:03]Write i2c OK [17:04:03]MH_I2C_Read... [17:04:03]OFD Sender: No OFD packet to send [17:04:03]*** Cut start [17:04:03]*** Partial cut [17:04:03]*** CUTSNS_PIN = 1 [17:04:03]*** CUTSNS_PIN = 0 [17:04:03]*** Brake cut motor [17:04:04]Read from MH i2c: 01 [17:04:04]MH_I2C_Read... [17:04:04]*** Stop cut motor [17:04:04]*** Cut end [17:04:04]Read from MH i2c: 01 07 00 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: 01 07 00 37 61 00 00 00 00 00 FF 0F AD [17:04:04]process_action close_receipt done [17:04:04]requested_data is exist [17:04:04]produce_requested_data [17:04:04]requested_item fm.sn is exist - process it [17:04:04]wFMCommunicate request_size=4 [17:04:04]MH_SAM_APDU [17:04:04]CAPDU: 80 11 00 00 [17:04:04]Write to MH i2c: E2 08 00 38 61 80 11 00 00 00 00 00 00 13 [17:04:04]Write i2c OK [17:04:04]MH_I2C_Read... [17:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:04]Read from MH i2c: E2 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 17 00 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 17 00 38 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [17:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:04:04]wFMCommunicate OK [17:04:04]requested_item fd.num is exist - process it [17:04:04]SAM_PROTO_GetFieldsCounters [17:04:04]wFMCommunicate request_size=4 [17:04:04]MH_SAM_APDU [17:04:04]CAPDU: 80 13 00 00 [17:04:04]Write to MH i2c: E2 08 00 39 61 80 13 00 00 00 00 00 00 16 [17:04:04]Write i2c OK [17:04:04]MH_I2C_Read... [17:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:04]Read from MH i2c: E2 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 62 00 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 62 00 39 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:04]wFMCommunicate OK [17:04:04]SAM_PROTO_GetFieldsCounters done [17:04:04]requested_item shift.num is exist - process it [17:04:04]requested_item shift.opened is exist - process it [17:04:04]req_shift_opened [17:04:04]FM_GetShiftState [17:04:04]SAM_PROTO_GetShiftState [17:04:04]wFMCommunicate request_size=4 [17:04:04]MH_SAM_APDU [17:04:04]CAPDU: 80 13 01 00 [17:04:04]Write to MH i2c: E2 08 00 3A 61 80 13 01 00 00 00 00 00 18 [17:04:04]Write i2c OK [17:04:04]MH_I2C_Read... [17:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:04]Read from MH i2c: E2 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 0E 00 [17:04:04]MH_I2C_Read... [17:04:04]Read from MH i2c: E2 0E 00 3A 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D2 [17:04:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:04:04]wFMCommunicate OK [17:04:04]SAM_PROTO_GetShiftState done [17:04:04]FM_GetShiftState done [17:04:04]req_shift_opened done [17:04:04]requested_item shift.open_date is exist - process it [17:04:04]req_shift_open_date [17:04:04]req_shift_open_date done [17:04:04]produce_requested_data done [17:04:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31232,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:04:04]process_action_free close_receipt [17:04:04]json_value_free [17:04:04]json_value_free done [17:04:04]process_json_proto returns [17:04:04]Send response to host [17:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31232,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:04:04]free response buf [17:04:04]execute_script done [17:04:04]execute_script returns [17:04:04]free content buf [17:04:04]Sock 9.Close socket [17:04:04]Sock 9.Thread stoped [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]accept exits with 7 [17:08:13]New connection [17:08:13]New thread 3066899812 created [17:08:13]Thread 3067043172 joined [17:08:13]Waiting for new connection... [17:08:13] Sock 7.Parse request [17:08:13]Sock 7.Check first char [17:08:13]Sock 7.First char is OK [17:08:13]request: POST /json_proto HTTP/1.0 [17:08:13]Method: POST [17:08:13]URL: /json_proto [17:08:13]Method is POST - this is cgi request [17:08:13]url: /json_proto [17:08:13]query_string will be loaded in cgi processing [17:08:13]execute_cgi json_proto POST (null) [17:08:13]execute_cgi path=json_proto method=POST [17:08:13]POST find Content-Length [17:08:13]Host: 172.17.51.3:8080 [17:08:13]Content-Length: 677 [17:08:13]Content-Type: application/json [17:08:13] [17:08:13]POST finish read [17:08:13]Found Content-Length = 677 [17:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:13]execute_script... [17:08:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:13]POST & json_proto [17:08:13]process_json_proto [17:08:13]json parsed OK: [17:08:13]protocol is kg_v1.0 [17:08:13]action value=close_receipt [17:08:13]process_action close_receipt [17:08:13]cmd_close_receipt [17:08:13]MH_GetDate [17:08:13]Write to MH i2c: F0 00 00 3B 61 8B [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 09 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 09 00 3B 61 00 84 2D 19 67 04 C1 95 66 85 [17:08:13]GetLastDocTimeStamp 1729703047 [17:08:13]current date 1729703300 [17:08:13]FM_GetShiftState [17:08:13]SAM_PROTO_GetShiftState [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 13 01 00 [17:08:13]Write to MH i2c: E2 08 00 3C 61 80 13 01 00 00 00 00 00 1A [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0E 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0E 00 3C 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D4 [17:08:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_GetShiftState done [17:08:13]FM_GetShiftState done [17:08:13]opened in 1729643755 [17:08:13]opened+sec_in_day 1729730155 [17:08:13]quantity*price = 30038 [17:08:13]sum+1 = 30039 [17:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 177 23.10.2024 17:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31233 ФПД: 161609750642048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170820&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31233&fm=161609750642048&tin=02508201610067®Number=0000000000186857&sum=30000 [17:08:14]StoreToDocumentArchive [17:08:14]shift 117 fd 31233 [17:08:14]save to /storage/0117/doc_00031233 [17:08:14]save last doc name /storage/0117/doc_00031233 to /storage/kkm_last_doc_name [17:08:14]save OK [17:08:14]Clear old archive folders... [17:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:14]tlvbuf is 00D2BA00 [17:08:14]SAM_PROTO_ClearQueue [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 09 00 00 [17:08:14]Write to MH i2c: E2 08 00 49 61 80 09 00 00 00 00 00 00 1C [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 49 61 00 90 00 1E [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]SAM_PROTO_ClearQueue done [17:08:14]KKMCreateOFDPacket [17:08:14]OFDProtocolAddRootSTLVToBuf [17:08:14]FM_MakeSignedData [17:08:14]FM_MakeSignedData [17:08:14]SAM_PROTO_SignData [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 01 02 [17:08:14]Write to MH i2c: E2 08 00 4A 61 80 0D 01 02 00 00 00 00 24 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 4A 61 00 90 00 1F [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]wFMCommunicate request_size=255 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 7A 00 00 35 04 06 00 92 [17:08:14]Write to MH i2c: E2 02 01 4B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 7A 00 00 35 04 06 00 92 00 00 0D [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 4B 61 00 90 00 20 [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]wFMCommunicate request_size=10 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 02 02 05 FB B3 C7 7D 80 [17:08:14]Write to MH i2c: E2 0D 00 4C 61 80 0D 02 02 05 00 FB B3 C7 7D 80 00 00 A3 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 4C 61 00 90 00 21 [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 03 02 [17:08:14]Write to MH i2c: E2 08 00 4D 61 80 0D 03 02 00 00 00 00 29 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 0B 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 0B 00 4D 61 00 AA 20 E1 10 55 A1 B6 2A 90 00 BB [17:08:14]RAPDU: AA 20 E1 10 55 A1 B6 2A 90 00 [17:08:14]wFMCommunicate OK [17:08:14]SAM_PROTO_SignData done [17:08:14]FM_MakeSignedData done [17:08:14]CreateOFDProtocolMessage [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 11 00 00 [17:08:14]Write to MH i2c: E2 08 00 4E 61 80 11 00 00 00 00 00 00 29 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 17 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 17 00 4E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [17:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:14]wFMCommunicate OK [17:08:14]CreateOFDProtocolMessage done [17:08:14]OFDSenderStorePacket 31233 [17:08:14]StoreOFDPacket docnum=31233 [17:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 BD 07 01 14 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 7A 00 00 35 04 06 00 92 FB B3 C7 7D 80 AA 20 E1 10 55 A1 B6 2A [17:08:14]CheckFolder [17:08:14]dirname=/storage/ofd_packets [17:08:14]CheckFolder done [17:08:14]ProducePacketName [17:08:14]name=ofd_packets/00031233 [17:08:14]NVStorageSaveData ofd_packets/00031233 [17:08:14]File name is /storage/ofd_packets/00031233 [17:08:14]Write 301 bytes [17:08:14]NVStorageSaveData done [17:08:14]OFDSenderStorePacket done [17:08:14]KKMCreateOFDPacket done [17:08:14]NVStorageSaveData kkm_last_timestamp [17:08:14]File name is /storage/kkm_last_timestamp [17:08:14]Write 4 bytes [17:08:14]NVStorageSaveData done [17:08:14]ExternCall_PrintAddStr [17:08:14]wPrintStart [17:08:14]Write to MH i2c: 01 00 00 4F 61 B0 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 4F 61 00 00 00 00 00 FF 0F C5 [17:08:14]RasterBufferAndPrint [17:08:14]line Счет N : (1)343679 [17:08:14]line ИНН: 02508201610067 [17:08:14]line Контрольно-Кассовый Чек [17:08:14]line ПРОДАЖА [17:08:14]line ТРК (МРК, ГНК) : 33 [17:08:14]line Товар: 2710124130 [17:08:14]line Аи-92-К-2 [17:08:14]line 4.490 * 66.90 [17:08:14]line = 300.38 [17:08:14]line НДС 12% НСП 1% [17:08:14]line > о реализуемом товаре [17:08:14]line ОКРУГЛЕНИЕ: -0.38 [17:08:14]line ИТОГО: 300.00 [17:08:14]line Внесено: 300.00 [17:08:14]line СДАЧА: 0.00 [17:08:14]line НСП 1% : 2.66 [17:08:14]line НДС 12% : 31.90 [17:08:14]line Наличными: 300.00 [17:08:14]line Безнал.: 0.00 [17:08:14]line Место: АЗС № 78 "Партнер Нефть" [17:08:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:08:14]line СНО: Общий режим [17:08:14]line Чек 177 23.10.2024 17:08 [17:08:14]line Смена: 117 ФФД: 1.0 [17:08:14]line ЗНМ: 0300000137 [17:08:14]line РНМ: 0000000000186857 [17:08:14]line Версия ККМ: v1.0 [17:08:14]line ФМ: 0000000002094219 [17:08:14]line ФД: 31233 [17:08:14]line ФПД: 161609750642048 [17:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170820&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31233&fm=161609750642048&tin=02508201610067®Number=0000000000186857&sum=30000 [17:08:15]OFD Sender: Processing packet 31233 [packets to send 11, broken 10] [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00031233 [17:08:15]OFD Sender: To server: pG, [17:08:15]CommunicateWithHost lk.salyk.kg:30040 [17:08:15]ConnectInit lk.salyk.kg [17:08:15]written 0, free lines is 4095 [17:08:15]Connected sock=11 [17:08:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 BD 07 01 14 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 7A 00 00 35 04 06 00 92 FB B3 C7 7D 80 AA 20 E1 10 55 A1 B6 2A [17:08:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2F F8 47 00 E0 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 32 30 39 34 32 31 39 10 04 04 00 01 7A 00 00 F4 03 04 00 FE D7 18 67 B6 04 01 00 00 67 38 6C 81 44 56 D8 A1 [17:08:15]CommunicateWithHost err = 0 [17:08:15]CheckOFDResponse [17:08:15]1017 (14) - 77093643461234 [17:08:15]1041 (16) - 0000000002094219 [17:08:15]1040 (4) - 31233 [17:08:15]1012 (4) - 23.10.2024 11:03 [17:08:15]1206 (1) - 0 [17:08:15]OFD Sender: Remove packet 31233 [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00031233 [17:08:15]NVStorageDeleteData [17:08:15]Write to MH i2c: 01 00 00 7A 61 DB [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 7A 61 00 00 00 00 00 E1 0C CF [17:08:15]RasterBufferAndPrint [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]written 0, free lines is 3303 [17:08:15]MH_Cut [17:08:15]Write to MH i2c: D1 01 00 81 61 01 B4 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 01 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 01 00 81 61 00 B3 [17:08:15]Write to MH i2c: 01 00 00 82 61 E3 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:16]OFD Sender: No OFD packet to send [17:08:16]*** Cut start [17:08:16]*** Partial cut [17:08:16]*** CUTSNS_PIN = 1 [17:08:16]*** CUTSNS_PIN = 0 [17:08:16]*** Brake cut motor [17:08:16]Read from MH i2c: 01 [17:08:16]MH_I2C_Read... [17:08:16]*** Stop cut motor [17:08:16]*** Cut end [17:08:16]Read from MH i2c: 01 07 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: 01 07 00 82 61 00 00 00 00 00 FF 0F F8 [17:08:16]process_action close_receipt done [17:08:16]requested_data is exist [17:08:16]produce_requested_data [17:08:16]requested_item fm.sn is exist - process it [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 11 00 00 [17:08:16]Write to MH i2c: E2 08 00 83 61 80 11 00 00 00 00 00 00 5E [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 83 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [17:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:16]wFMCommunicate OK [17:08:16]requested_item fd.num is exist - process it [17:08:16]SAM_PROTO_GetFieldsCounters [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 13 00 00 [17:08:16]Write to MH i2c: E2 08 00 84 61 80 13 00 00 00 00 00 00 61 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:17]Read from MH i2c: E2 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 62 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 62 00 84 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [17:08:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:17]wFMCommunicate OK [17:08:17]SAM_PROTO_GetFieldsCounters done [17:08:17]requested_item shift.num is exist - process it [17:08:17]requested_item shift.opened is exist - process it [17:08:17]req_shift_opened [17:08:17]FM_GetShiftState [17:08:17]SAM_PROTO_GetShiftState [17:08:17]wFMCommunicate request_size=4 [17:08:17]MH_SAM_APDU [17:08:17]CAPDU: 80 13 01 00 [17:08:17]Write to MH i2c: E2 08 00 85 61 80 13 01 00 00 00 00 00 63 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:17]Read from MH i2c: E2 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 85 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1D [17:08:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:08:17]wFMCommunicate OK [17:08:17]SAM_PROTO_GetShiftState done [17:08:17]FM_GetShiftState done [17:08:17]req_shift_opened done [17:08:17]requested_item shift.open_date is exist - process it [17:08:17]req_shift_open_date [17:08:17]req_shift_open_date done [17:08:17]produce_requested_data done [17:08:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31233,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:08:17]process_action_free close_receipt [17:08:17]json_value_free [17:08:17]json_value_free done [17:08:17]process_json_proto returns [17:08:17]Send response to host [17:08:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31233,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:08:17]free response buf [17:08:17]execute_script done [17:08:17]execute_script returns [17:08:17]free content buf [17:08:17]Sock 7.Close socket [17:08:17]Sock 7.Thread stoped [17:08:21]OFD Sender: No OFD packet to send [17:08:22]accept exits with 9 [17:08:22]New connection [17:08:22]New thread 3067043172 created [17:08:22]Thread 3066899812 joined [17:08:22]Waiting for new connection... [17:08:22] Sock 9.Parse request [17:08:22]Sock 9.Check first char [17:08:22]Sock 9.First char is OK [17:08:22]request: POST /json_proto HTTP/1.0 [17:08:22]Method: POST [17:08:22]URL: /json_proto [17:08:22]Method is POST - this is cgi request [17:08:22]url: /json_proto [17:08:22]query_string will be loaded in cgi processing [17:08:22]execute_cgi json_proto POST (null) [17:08:22]execute_cgi path=json_proto method=POST [17:08:22]POST find Content-Length [17:08:22]Host: 172.17.51.3:8080 [17:08:22]Content-Length: 843 [17:08:22]Content-Type: application/json [17:08:22] [17:08:22]POST finish read [17:08:22]Found Content-Length = 843 [17:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:22]execute_script... [17:08:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:22]POST & json_proto [17:08:22]process_json_proto [17:08:22]json parsed OK: [17:08:22]protocol is kg_v1.0 [17:08:22]action value=close_receipt [17:08:22]process_action close_receipt [17:08:22]cmd_close_receipt [17:08:22]MH_GetDate [17:08:22]Write to MH i2c: F0 00 00 86 61 D6 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: F0 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: F0 09 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: F0 09 00 86 61 00 8D 2D 19 67 04 C1 95 66 D9 [17:08:22]GetLastDocTimeStamp 1729703300 [17:08:22]current date 1729703309 [17:08:22]FM_GetShiftState [17:08:22]SAM_PROTO_GetShiftState [17:08:22]wFMCommunicate request_size=4 [17:08:22]MH_SAM_APDU [17:08:22]CAPDU: 80 13 01 00 [17:08:22]Write to MH i2c: E2 08 00 87 61 80 13 01 00 00 00 00 00 65 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 0E 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 0E 00 87 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1F [17:08:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:08:22]wFMCommunicate OK [17:08:22]SAM_PROTO_GetShiftState done [17:08:22]FM_GetShiftState done [17:08:22]opened in 1729643755 [17:08:22]opened+sec_in_day 1729730155 [17:08:22]quantity*price = 150056 [17:08:22]sum+1 = 150058 [17:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 178 23.10.2024 17:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31234 ФПД: 274499395101111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31234&fm=274499395101111&tin=02508201610067®Number=0000000000186857&sum=150057 [17:08:23]StoreToDocumentArchive [17:08:23]shift 117 fd 31234 [17:08:23]save to /storage/0117/doc_00031234 [17:08:23]save last doc name /storage/0117/doc_00031234 to /storage/kkm_last_doc_name [17:08:23]save OK [17:08:23]Clear old archive folders... [17:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:23]tlvbuf is 00CC5320 [17:08:23]SAM_PROTO_ClearQueue [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 09 00 00 [17:08:23]Write to MH i2c: E2 08 00 94 61 80 09 00 00 00 00 00 00 67 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 94 61 00 90 00 69 [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]SAM_PROTO_ClearQueue done [17:08:23]KKMCreateOFDPacket [17:08:23]OFDProtocolAddRootSTLVToBuf [17:08:23]FM_MakeSignedData [17:08:23]FM_MakeSignedData [17:08:23]SAM_PROTO_SignData [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 01 02 [17:08:23]Write to MH i2c: E2 08 00 95 61 80 0D 01 02 00 00 00 00 6F [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 95 61 00 90 00 6A [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]wFMCommunicate request_size=255 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8D 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 7A 00 00 35 04 06 00 F9 [17:08:23]Write to MH i2c: E2 02 01 96 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8D 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 7A 00 00 35 04 06 00 F9 00 00 93 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 96 61 00 90 00 6B [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]wFMCommunicate request_size=10 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 02 02 05 A7 DE EF A1 B7 [17:08:23]Write to MH i2c: E2 0D 00 97 61 80 0D 02 02 05 00 A7 DE EF A1 B7 00 00 48 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 03 00 97 61 00 90 00 6C [17:08:23]RAPDU: 90 00 [17:08:23]wFMCommunicate OK [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 0D 03 02 [17:08:23]Write to MH i2c: E2 08 00 98 61 80 0D 03 02 00 00 00 00 74 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0B 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0B 00 98 61 00 49 AF C4 78 C1 61 F0 C4 90 00 7F [17:08:23]RAPDU: 49 AF C4 78 C1 61 F0 C4 90 00 [17:08:23]wFMCommunicate OK [17:08:23]SAM_PROTO_SignData done [17:08:23]FM_MakeSignedData done [17:08:23]CreateOFDProtocolMessage [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 11 00 00 [17:08:23]Write to MH i2c: E2 08 00 99 61 80 11 00 00 00 00 00 00 74 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 17 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 17 00 99 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [17:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:23]wFMCommunicate OK [17:08:23]CreateOFDProtocolMessage done [17:08:23]OFDSenderStorePacket 31234 [17:08:23]StoreOFDPacket docnum=31234 [17:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4B 72 07 01 C2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8D 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 7A 00 00 35 04 06 00 F9 A7 DE EF A1 B7 49 AF C4 78 C1 61 F0 C4 [17:08:23]CheckFolder [17:08:23]dirname=/storage/ofd_packets [17:08:23]CheckFolder done [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00031234 [17:08:23]NVStorageSaveData ofd_packets/00031234 [17:08:23]File name is /storage/ofd_packets/00031234 [17:08:23]Write 301 bytes [17:08:23]NVStorageSaveData done [17:08:23]OFDSenderStorePacket done [17:08:23]KKMCreateOFDPacket done [17:08:23]NVStorageSaveData kkm_last_timestamp [17:08:23]File name is /storage/kkm_last_timestamp [17:08:23]Write 4 bytes [17:08:23]NVStorageSaveData done [17:08:23]ExternCall_PrintAddStr [17:08:23]wPrintStart [17:08:23]Write to MH i2c: 01 00 00 9A 61 FB [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 07 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 07 00 9A 61 00 00 00 00 00 FF 0F 10 [17:08:23]RasterBufferAndPrint [17:08:23]line Счет N : (1)343680 [17:08:23]line ИНН: 02508201610067 [17:08:23]line Контрольно-Кассовый Чек [17:08:23]line ПРОДАЖА [17:08:23]line ТРК (МРК, ГНК) : 53 [17:08:23]line Товар: 2710124130 [17:08:23]line Аи-92-К-2 [17:08:23]line 22.430 * 66.90 [17:08:23]line = 1500.57 [17:08:23]line НДС 12% НСП 1% [17:08:23]line > о реализуемом товаре [17:08:23]line ИТОГО: 1500.57 [17:08:23]line НСП 1% : 13.28 [17:08:23]line НДС 12% : 159.35 [17:08:23]line Наличными: 0.00 [17:08:23]line Безнал.: 1500.57 [17:08:23]line Место: АЗС № 78 "Партнер Нефть" [17:08:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:08:23]line СНО: Общий режим [17:08:23]line Чек 178 23.10.2024 17:08 [17:08:23]line Смена: 117 ФФД: 1.0 [17:08:23]line ЗНМ: 0300000137 [17:08:23]line РНМ: 0000000000186857 [17:08:23]line Версия ККМ: v1.0 [17:08:23]line Платежная система: АКБ Кыргызстан [17:08:23]line ФМ: 0000000002094219 [17:08:23]line ФД: 31234 [17:08:23]line ФПД: 274499395101111 [17:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31234&fm=274499395101111&tin=02508201610067®Number=0000000000186857&sum=150057 [17:08:23]OFD Sender: Processing packet 31234 [packets to send 11, broken 10] [17:08:23]ProducePacketName [17:08:23]name=ofd_packets/00031234 [17:08:23]OFD Sender: To server: pG, [17:08:23]CommunicateWithHost lk.salyk.kg:30040 [17:08:23]ConnectInit lk.salyk.kg [17:08:23]written 0, free lines is 4095 [17:08:24]Connected sock=10 [17:08:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4B 72 07 01 C2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8D 2D 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 7A 00 00 35 04 06 00 F9 A7 DE EF A1 B7 49 AF C4 78 C1 61 F0 C4 [17:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E5 DF 47 00 F7 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 7A 00 00 F4 03 04 00 06 D8 18 67 B6 04 01 00 00 C9 9E DE 24 D7 9B 81 82 [17:08:24]CommunicateWithHost err = 0 [17:08:24]CheckOFDResponse [17:08:24]1017 (14) - 77093643461234 [17:08:24]1041 (16) - 0000000002094219 [17:08:24]1040 (4) - 31234 [17:08:24]1012 (4) - 23.10.2024 11:03 [17:08:24]1206 (1) - 0 [17:08:24]OFD Sender: Remove packet 31234 [17:08:24]ProducePacketName [17:08:24]name=ofd_packets/00031234 [17:08:24]NVStorageDeleteData [17:08:24]Write to MH i2c: 01 00 00 C4 61 25 [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 07 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: 01 07 00 C4 61 00 00 00 00 00 02 0D 3B [17:08:24]RasterBufferAndPrint [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]line [17:08:24]written 0, free lines is 3341 [17:08:24]MH_Cut [17:08:24]Write to MH i2c: D1 01 00 CB 61 01 FE [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 01 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: D1 01 00 CB 61 00 FD [17:08:24]Write to MH i2c: 01 00 00 CC 61 2D [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]OFD Sender: No OFD packet to send [17:08:25]*** Cut start [17:08:25]*** Partial cut [17:08:25]*** CUTSNS_PIN = 1 [17:08:25]*** CUTSNS_PIN = 0 [17:08:25]*** Brake cut motor [17:08:25]Read from MH i2c: 01 [17:08:25]MH_I2C_Read... [17:08:25]*** Stop cut motor [17:08:25]*** Cut end [17:08:25]Read from MH i2c: 01 07 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 07 00 CC 61 00 00 00 00 00 FF 0F 42 [17:08:25]process_action close_receipt done [17:08:25]requested_data is exist [17:08:25]produce_requested_data [17:08:25]requested_item fm.sn is exist - process it [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 11 00 00 [17:08:25]Write to MH i2c: E2 08 00 CD 61 80 11 00 00 00 00 00 00 A8 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 CD 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [17:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:25]wFMCommunicate OK [17:08:25]requested_item fd.num is exist - process it [17:08:25]SAM_PROTO_GetFieldsCounters [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 13 00 00 [17:08:25]Write to MH i2c: E2 08 00 CE 61 80 13 00 00 00 00 00 00 AB [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 62 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 62 00 CE 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_GetFieldsCounters done [17:08:25]requested_item shift.num is exist - process it [17:08:25]requested_item shift.opened is exist - process it [17:08:25]req_shift_opened [17:08:25]FM_GetShiftState [17:08:25]SAM_PROTO_GetShiftState [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 13 01 00 [17:08:25]Write to MH i2c: E2 08 00 CF 61 80 13 01 00 00 00 00 00 AD [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0E 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0E 00 CF 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 67 [17:08:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_GetShiftState done [17:08:25]FM_GetShiftState done [17:08:25]req_shift_opened done [17:08:25]requested_item shift.open_date is exist - process it [17:08:25]req_shift_open_date [17:08:25]req_shift_open_date done [17:08:25]produce_requested_data done [17:08:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31234,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:08:25]process_action_free close_receipt [17:08:25]json_value_free [17:08:25]json_value_free done [17:08:25]process_json_proto returns [17:08:25]Send response to host [17:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31234,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:08:25]free response buf [17:08:25]execute_script done [17:08:25]execute_script returns [17:08:25]free content buf [17:08:25]Sock 9.Close socket [17:08:25]Sock 9.Thread stoped [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [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:14]accept exits with 7 [17:20:14]New connection [17:20:14]New thread 3066899812 created [17:20:14]Thread 3067043172 joined [17:20:14]Waiting for new connection... [17:20:14] Sock 7.Parse request [17:20:14]Sock 7.Check first char [17:20:14]Sock 7.First char is OK [17:20:14]request: POST /json_proto HTTP/1.0 [17:20:14]Method: POST [17:20:14]URL: /json_proto [17:20:14]Method is POST - this is cgi request [17:20:14]url: /json_proto [17:20:14]query_string will be loaded in cgi processing [17:20:14]execute_cgi json_proto POST (null) [17:20:14]execute_cgi path=json_proto method=POST [17:20:14]POST find Content-Length [17:20:14]Host: 172.17.51.3:8080 [17:20:14]Content-Length: 677 [17:20:14]Content-Type: application/json [17:20:14] [17:20:14]POST finish read [17:20:14]Found Content-Length = 677 [17:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:14]execute_script... [17:20:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:14]POST & json_proto [17:20:14]process_json_proto [17:20:14]json parsed OK: [17:20:14]protocol is kg_v1.0 [17:20:14]action value=close_receipt [17:20:14]process_action close_receipt [17:20:14]cmd_close_receipt [17:20:14]MH_GetDate [17:20:14]Write to MH i2c: F0 00 00 D0 61 20 [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 09 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: F0 09 00 D0 61 00 56 30 19 67 04 C1 95 66 EF [17:20:14]GetLastDocTimeStamp 1729703309 [17:20:14]current date 1729704022 [17:20:14]FM_GetShiftState [17:20:14]SAM_PROTO_GetShiftState [17:20:14]wFMCommunicate request_size=4 [17:20:14]MH_SAM_APDU [17:20:14]CAPDU: 80 13 01 00 [17:20:14]Write to MH i2c: E2 08 00 D1 61 80 13 01 00 00 00 00 00 AF [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:14]Read from MH i2c: E2 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: E2 0E 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: E2 0E 00 D1 61 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 69 [17:20:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:20:14]wFMCommunicate OK [17:20:14]SAM_PROTO_GetShiftState done [17:20:14]FM_GetShiftState done [17:20:14]opened in 1729643755 [17:20:14]opened+sec_in_day 1729730155 [17:20:14]quantity*price = 50041 [17:20:14]sum+1 = 50042 [17:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 179 23.10.2024 17:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31235 ФПД: 278800759545514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172022&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31235&fm=278800759545514&tin=02508201610067®Number=0000000000186857&sum=50000 [17:20:16]StoreToDocumentArchive [17:20:16]shift 117 fd 31235 [17:20:16]save to /storage/0117/doc_00031235 [17:20:16]save last doc name /storage/0117/doc_00031235 to /storage/kkm_last_doc_name [17:20:16]save OK [17:20:16]Clear old archive folders... [17:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:16]tlvbuf is 00DA4050 [17:20:16]SAM_PROTO_ClearQueue [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 09 00 00 [17:20:16]Write to MH i2c: E2 08 00 DE 61 80 09 00 00 00 00 00 00 B1 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 DE 61 00 90 00 B3 [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]SAM_PROTO_ClearQueue done [17:20:16]KKMCreateOFDPacket [17:20:16]OFDProtocolAddRootSTLVToBuf [17:20:16]FM_MakeSignedData [17:20:16]FM_MakeSignedData [17:20:16]SAM_PROTO_SignData [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 01 02 [17:20:16]Write to MH i2c: E2 08 00 DF 61 80 0D 01 02 00 00 00 00 B9 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 DF 61 00 90 00 B4 [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]wFMCommunicate request_size=255 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 30 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 7A 00 00 35 04 06 00 FD [17:20:16]Write to MH i2c: E2 02 01 E0 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 30 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 7A 00 00 35 04 06 00 FD 00 00 F2 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 E0 61 00 90 00 B5 [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]wFMCommunicate request_size=10 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 02 02 05 91 5C 3C 5E AA [17:20:16]Write to MH i2c: E2 0D 00 E1 61 80 0D 02 02 05 00 91 5C 3C 5E AA 00 00 F7 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 03 00 E1 61 00 90 00 B6 [17:20:16]RAPDU: 90 00 [17:20:16]wFMCommunicate OK [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 0D 03 02 [17:20:16]Write to MH i2c: E2 08 00 E2 61 80 0D 03 02 00 00 00 00 BE [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0B 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0B 00 E2 61 00 85 CF 9C 9D 8E 3F D1 97 90 00 81 [17:20:16]RAPDU: 85 CF 9C 9D 8E 3F D1 97 90 00 [17:20:16]wFMCommunicate OK [17:20:16]SAM_PROTO_SignData done [17:20:16]FM_MakeSignedData done [17:20:16]CreateOFDProtocolMessage [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 11 00 00 [17:20:16]Write to MH i2c: E2 08 00 E3 61 80 11 00 00 00 00 00 00 BE [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 17 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 17 00 E3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [17:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:20:16]wFMCommunicate OK [17:20:16]CreateOFDProtocolMessage done [17:20:16]OFDSenderStorePacket 31235 [17:20:16]StoreOFDPacket docnum=31235 [17:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 93 F6 07 01 96 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 30 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 7A 00 00 35 04 06 00 FD 91 5C 3C 5E AA 85 CF 9C 9D 8E 3F D1 97 [17:20:16]CheckFolder [17:20:16]dirname=/storage/ofd_packets [17:20:16]CheckFolder done [17:20:16]ProducePacketName [17:20:16]name=ofd_packets/00031235 [17:20:16]NVStorageSaveData ofd_packets/00031235 [17:20:16]File name is /storage/ofd_packets/00031235 [17:20:16]Write 301 bytes [17:20:16]NVStorageSaveData done [17:20:16]OFDSenderStorePacket done [17:20:16]KKMCreateOFDPacket done [17:20:16]NVStorageSaveData kkm_last_timestamp [17:20:16]File name is /storage/kkm_last_timestamp [17:20:16]Write 4 bytes [17:20:16]NVStorageSaveData done [17:20:16]ExternCall_PrintAddStr [17:20:16]wPrintStart [17:20:16]Write to MH i2c: 01 00 00 E4 61 45 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 E4 61 00 00 00 00 00 FF 0F 5A [17:20:16]RasterBufferAndPrint [17:20:16]line Счет N : (1)343681 [17:20:16]line ИНН: 02508201610067 [17:20:16]line Контрольно-Кассовый Чек [17:20:16]line ПРОДАЖА [17:20:16]line ТРК (МРК, ГНК) : 63 [17:20:16]line Товар: 2710124130 [17:20:16]line Аи-92-К-2 [17:20:16]line 7.480 * 66.90 [17:20:16]line = 500.41 [17:20:16]line НДС 12% НСП 1% [17:20:16]line > о реализуемом товаре [17:20:16]line ОКРУГЛЕНИЕ: -0.41 [17:20:16]line ИТОГО: 500.00 [17:20:16]line Внесено: 500.00 [17:20:16]line СДАЧА: 0.00 [17:20:16]line НСП 1% : 4.43 [17:20:16]line НДС 12% : 53.14 [17:20:16]line Наличными: 500.00 [17:20:16]line Безнал.: 0.00 [17:20:16]line Место: АЗС № 78 "Партнер Нефть" [17:20:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:20:16]line СНО: Общий режим [17:20:16]line Чек 179 23.10.2024 17:20 [17:20:16]line Смена: 117 ФФД: 1.0 [17:20:16]line ЗНМ: 0300000137 [17:20:16]line РНМ: 0000000000186857 [17:20:16]line Версия ККМ: v1.0 [17:20:16]line ФМ: 0000000002094219 [17:20:16]line ФД: 31235 [17:20:16]line ФПД: 278800759545514 [17:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172022&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31235&fm=278800759545514&tin=02508201610067®Number=0000000000186857&sum=50000 [17:20:16]OFD Sender: Processing packet 31235 [packets to send 11, broken 10] [17:20:16]ProducePacketName [17:20:16]name=ofd_packets/00031235 [17:20:16]OFD Sender: To server: pG, [17:20:16]CommunicateWithHost lk.salyk.kg:30040 [17:20:16]ConnectInit lk.salyk.kg [17:20:16]written 0, free lines is 4095 [17:20:17]Connected sock=10 [17:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 93 F6 07 01 96 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 30 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 7A 00 00 35 04 06 00 FD 91 5C 3C 5E AA 85 CF 9C 9D 8E 3F D1 97 [17:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F1 B5 47 00 E2 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 7A 00 00 F4 03 04 00 CF DA 18 67 B6 04 01 00 00 30 6C E4 FB D1 56 C0 D9 [17:20:17]CommunicateWithHost err = 0 [17:20:17]CheckOFDResponse [17:20:17]1017 (14) - 77093643461234 [17:20:17]1041 (16) - 0000000002094219 [17:20:17]1040 (4) - 31235 [17:20:17]1012 (4) - 23.10.2024 11:15 [17:20:17]1206 (1) - 0 [17:20:17]OFD Sender: Remove packet 31235 [17:20:17]ProducePacketName [17:20:17]name=ofd_packets/00031235 [17:20:17]NVStorageDeleteData [17:20:17]Write to MH i2c: 01 00 00 0F 62 71 [17:20:17]Write i2c OK [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: 01 [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: 01 07 00 [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: 01 07 00 0F 62 00 00 00 00 00 F1 0C 75 [17:20:17]RasterBufferAndPrint [17:20:17]line [17:20:17]line [17:20:17]line [17:20:17]line [17:20:17]line [17:20:17]written 0, free lines is 3319 [17:20:17]MH_Cut [17:20:17]Write to MH i2c: D1 01 00 16 62 01 4A [17:20:17]Write i2c OK [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: D1 [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: D1 01 00 [17:20:17]MH_I2C_Read... [17:20:17]Read from MH i2c: D1 01 00 16 62 00 49 [17:20:17]Write to MH i2c: 01 00 00 17 62 79 [17:20:17]Write i2c OK [17:20:17]MH_I2C_Read... [17:20:17]OFD Sender: No OFD packet to send [17:20:18]*** Cut start [17:20:18]*** Partial cut [17:20:18]*** CUTSNS_PIN = 1 [17:20:18]*** CUTSNS_PIN = 0 [17:20:18]*** Brake cut motor [17:20:18]Read from MH i2c: 01 [17:20:18]MH_I2C_Read... [17:20:18]*** Stop cut motor [17:20:18]*** Cut end [17:20:18]Read from MH i2c: 01 07 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: 01 07 00 17 62 00 00 00 00 00 FF 0F 8E [17:20:18]process_action close_receipt done [17:20:18]requested_data is exist [17:20:18]produce_requested_data [17:20:18]requested_item fm.sn is exist - process it [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 11 00 00 [17:20:18]Write to MH i2c: E2 08 00 18 62 80 11 00 00 00 00 00 00 F4 [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 17 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 17 00 18 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [17:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:20:18]wFMCommunicate OK [17:20:18]requested_item fd.num is exist - process it [17:20:18]SAM_PROTO_GetFieldsCounters [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 13 00 00 [17:20:18]Write to MH i2c: E2 08 00 19 62 80 13 00 00 00 00 00 00 F7 [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 62 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 62 00 19 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:18]wFMCommunicate OK [17:20:18]SAM_PROTO_GetFieldsCounters done [17:20:18]requested_item shift.num is exist - process it [17:20:18]requested_item shift.opened is exist - process it [17:20:18]req_shift_opened [17:20:18]FM_GetShiftState [17:20:18]SAM_PROTO_GetShiftState [17:20:18]wFMCommunicate request_size=4 [17:20:18]MH_SAM_APDU [17:20:18]CAPDU: 80 13 01 00 [17:20:18]Write to MH i2c: E2 08 00 1A 62 80 13 01 00 00 00 00 00 F9 [17:20:18]Write i2c OK [17:20:18]MH_I2C_Read... [17:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:18]Read from MH i2c: E2 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 0E 00 [17:20:18]MH_I2C_Read... [17:20:18]Read from MH i2c: E2 0E 00 1A 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B3 [17:20:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:20:18]wFMCommunicate OK [17:20:18]SAM_PROTO_GetShiftState done [17:20:18]FM_GetShiftState done [17:20:18]req_shift_opened done [17:20:18]requested_item shift.open_date is exist - process it [17:20:18]req_shift_open_date [17:20:18]req_shift_open_date done [17:20:18]produce_requested_data done [17:20:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31235,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:20:18]process_action_free close_receipt [17:20:18]json_value_free [17:20:18]json_value_free done [17:20:18]process_json_proto returns [17:20:18]Send response to host [17:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31235,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:20:18]free response buf [17:20:18]execute_script done [17:20:18]execute_script returns [17:20:18]free content buf [17:20:18]Sock 7.Close socket [17:20:18]Sock 7.Thread stoped [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:08]accept exits with 9 [17:26:08]New connection [17:26:08]New thread 3067043172 created [17:26:08]Thread 3066899812 joined [17:26:08]Waiting for new connection... [17:26:08] Sock 9.Parse request [17:26:08]Sock 9.Check first char [17:26:08]Sock 9.First char is OK [17:26:08]request: POST /json_proto HTTP/1.0 [17:26:08]Method: POST [17:26:08]URL: /json_proto [17:26:08]Method is POST - this is cgi request [17:26:08]url: /json_proto [17:26:08]query_string will be loaded in cgi processing [17:26:08]execute_cgi json_proto POST (null) [17:26:08]execute_cgi path=json_proto method=POST [17:26:08]POST find Content-Length [17:26:08]Host: 172.17.51.3:8080 [17:26:08]Content-Length: 677 [17:26:08]Content-Type: application/json [17:26:08] [17:26:08]POST finish read [17:26:08]Found Content-Length = 677 [17:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:08]execute_script... [17:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:08]POST & json_proto [17:26:08]process_json_proto [17:26:08]json parsed OK: [17:26:08]protocol is kg_v1.0 [17:26:08]action value=close_receipt [17:26:08]process_action close_receipt [17:26:08]cmd_close_receipt [17:26:08]MH_GetDate [17:26:08]Write to MH i2c: F0 00 00 1B 62 6C [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 09 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 09 00 1B 62 00 B7 31 19 67 04 C1 95 66 9D [17:26:08]GetLastDocTimeStamp 1729704022 [17:26:08]current date 1729704375 [17:26:08]FM_GetShiftState [17:26:08]SAM_PROTO_GetShiftState [17:26:08]wFMCommunicate request_size=4 [17:26:08]MH_SAM_APDU [17:26:08]CAPDU: 80 13 01 00 [17:26:08]Write to MH i2c: E2 08 00 1C 62 80 13 01 00 00 00 00 00 FB [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:08]Read from MH i2c: E2 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 1C 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B5 [17:26:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:26:08]wFMCommunicate OK [17:26:08]SAM_PROTO_GetShiftState done [17:26:08]FM_GetShiftState done [17:26:08]opened in 1729643755 [17:26:08]opened+sec_in_day 1729730155 [17:26:08]quantity*price = 50041 [17:26:08]sum+1 = 50042 [17:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 180 23.10.2024 17:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31236 ФПД: 154069625155190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31236&fm=154069625155190&tin=02508201610067®Number=0000000000186857&sum=50000 [17:26:09]StoreToDocumentArchive [17:26:09]shift 117 fd 31236 [17:26:09]save to /storage/0117/doc_00031236 [17:26:09]save last doc name /storage/0117/doc_00031236 to /storage/kkm_last_doc_name [17:26:09]save OK [17:26:09]Clear old archive folders... [17:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:09]tlvbuf is 00E852B0 [17:26:09]SAM_PROTO_ClearQueue [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 09 00 00 [17:26:09]Write to MH i2c: E2 08 00 29 62 80 09 00 00 00 00 00 00 FD [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 29 62 00 90 00 FF [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_ClearQueue done [17:26:09]KKMCreateOFDPacket [17:26:09]OFDProtocolAddRootSTLVToBuf [17:26:09]FM_MakeSignedData [17:26:09]FM_MakeSignedData [17:26:09]SAM_PROTO_SignData [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 0D 01 02 [17:26:09]Write to MH i2c: E2 08 00 2A 62 80 0D 01 02 00 00 00 00 05 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 2A 62 00 90 00 00 [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]wFMCommunicate request_size=255 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B7 31 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 7A 00 00 35 04 06 00 8C [17:26:09]Write to MH i2c: E2 02 01 2B 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B7 31 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 7A 00 00 35 04 06 00 8C 00 00 31 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 2B 62 00 90 00 01 [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]wFMCommunicate request_size=10 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 0D 02 02 05 20 21 47 2E 76 [17:26:09]Write to MH i2c: E2 0D 00 2C 62 80 0D 02 02 05 00 20 21 47 2E 76 00 00 3E [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 2C 62 00 90 00 02 [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 0D 03 02 [17:26:09]Write to MH i2c: E2 08 00 2D 62 80 0D 03 02 00 00 00 00 0A [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0B 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0B 00 2D 62 00 37 17 15 B8 40 A0 09 13 90 00 22 [17:26:09]RAPDU: 37 17 15 B8 40 A0 09 13 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_SignData done [17:26:09]FM_MakeSignedData done [17:26:09]CreateOFDProtocolMessage [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 11 00 00 [17:26:09]Write to MH i2c: E2 08 00 2E 62 80 11 00 00 00 00 00 00 0A [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 17 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 17 00 2E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [17:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:09]wFMCommunicate OK [17:26:09]CreateOFDProtocolMessage done [17:26:09]OFDSenderStorePacket 31236 [17:26:09]StoreOFDPacket docnum=31236 [17:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 96 07 01 2A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B7 31 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 7A 00 00 35 04 06 00 8C 20 21 47 2E 76 37 17 15 B8 40 A0 09 13 [17:26:09]CheckFolder [17:26:09]dirname=/storage/ofd_packets [17:26:09]CheckFolder done [17:26:09]ProducePacketName [17:26:09]name=ofd_packets/00031236 [17:26:09]NVStorageSaveData ofd_packets/00031236 [17:26:09]File name is /storage/ofd_packets/00031236 [17:26:09]Write 301 bytes [17:26:09]NVStorageSaveData done [17:26:09]OFDSenderStorePacket done [17:26:09]KKMCreateOFDPacket done [17:26:09]NVStorageSaveData kkm_last_timestamp [17:26:09]File name is /storage/kkm_last_timestamp [17:26:09]Write 4 bytes [17:26:09]NVStorageSaveData done [17:26:09]ExternCall_PrintAddStr [17:26:09]wPrintStart [17:26:09]Write to MH i2c: 01 00 00 2F 62 91 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: 01 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: 01 07 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: 01 07 00 2F 62 00 00 00 00 00 FF 0F A6 [17:26:09]RasterBufferAndPrint [17:26:09]line Счет N : (1)343682 [17:26:09]line ИНН: 02508201610067 [17:26:09]line Контрольно-Кассовый Чек [17:26:09]line ПРОДАЖА [17:26:09]line ТРК (МРК, ГНК) : 53 [17:26:09]line Товар: 2710124130 [17:26:09]line Аи-92-К-2 [17:26:09]line 7.480 * 66.90 [17:26:09]line = 500.41 [17:26:09]line НДС 12% НСП 1% [17:26:09]line > о реализуемом товаре [17:26:09]line ОКРУГЛЕНИЕ: -0.41 [17:26:09]line ИТОГО: 500.00 [17:26:09]line Внесено: 500.00 [17:26:09]line СДАЧА: 0.00 [17:26:09]line НСП 1% : 4.43 [17:26:09]line НДС 12% : 53.14 [17:26:09]line Наличными: 500.00 [17:26:09]line Безнал.: 0.00 [17:26:09]line Место: АЗС № 78 "Партнер Нефть" [17:26:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:26:09]line СНО: Общий режим [17:26:09]line Чек 180 23.10.2024 17:26 [17:26:09]line Смена: 117 ФФД: 1.0 [17:26:09]line ЗНМ: 0300000137 [17:26:09]line РНМ: 0000000000186857 [17:26:09]line Версия ККМ: v1.0 [17:26:09]line ФМ: 0000000002094219 [17:26:09]line ФД: 31236 [17:26:09]line ФПД: 154069625155190 [17:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31236&fm=154069625155190&tin=02508201610067®Number=0000000000186857&sum=50000 [17:26:10]OFD Sender: Processing packet 31236 [packets to send 11, broken 10] [17:26:10]ProducePacketName [17:26:10]name=ofd_packets/00031236 [17:26:10]OFD Sender: To server: pG, [17:26:10]CommunicateWithHost lk.salyk.kg:30040 [17:26:10]ConnectInit lk.salyk.kg [17:26:10]written 0, free lines is 4095 [17:26:10]Connected sock=10 [17:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 96 07 01 2A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B7 31 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 7A 00 00 35 04 06 00 8C 20 21 47 2E 76 37 17 15 B8 40 A0 09 13 [17:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8E 87 47 00 33 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 7A 00 00 F4 03 04 00 31 DC 18 67 B6 04 01 00 00 86 EA B9 28 26 99 B7 27 [17:26:10]CommunicateWithHost err = 0 [17:26:10]CheckOFDResponse [17:26:10]1017 (14) - 77093643461234 [17:26:10]1041 (16) - 0000000002094219 [17:26:10]1040 (4) - 31236 [17:26:10]1012 (4) - 23.10.2024 11:21 [17:26:10]1206 (1) - 0 [17:26:10]OFD Sender: Remove packet 31236 [17:26:10]ProducePacketName [17:26:10]name=ofd_packets/00031236 [17:26:10]NVStorageDeleteData [17:26:10]Write to MH i2c: 01 00 00 5A 62 BC [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 5A 62 00 00 00 00 00 F3 0C C2 [17:26:10]RasterBufferAndPrint [17:26:10]line [17:26:10]line [17:26:10]line [17:26:10]line [17:26:10]line [17:26:10]written 0, free lines is 3321 [17:26:10]MH_Cut [17:26:10]Write to MH i2c: D1 01 00 61 62 01 95 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: D1 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: D1 01 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: D1 01 00 61 62 00 94 [17:26:10]Write to MH i2c: 01 00 00 62 62 C4 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:11]OFD Sender: No OFD packet to send [17:26:11]*** Cut start [17:26:11]*** Partial cut [17:26:11]*** CUTSNS_PIN = 1 [17:26:11]*** CUTSNS_PIN = 0 [17:26:11]*** Brake cut motor [17:26:12]Read from MH i2c: 01 [17:26:12]MH_I2C_Read... [17:26:12]*** Stop cut motor [17:26:12]*** Cut end [17:26:12]Read from MH i2c: 01 07 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: 01 07 00 62 62 00 00 00 00 00 FF 0F D9 [17:26:12]process_action close_receipt done [17:26:12]requested_data is exist [17:26:12]produce_requested_data [17:26:12]requested_item fm.sn is exist - process it [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 11 00 00 [17:26:12]Write to MH i2c: E2 08 00 63 62 80 11 00 00 00 00 00 00 3F [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 63 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [17:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:12]wFMCommunicate OK [17:26:12]requested_item fd.num is exist - process it [17:26:12]SAM_PROTO_GetFieldsCounters [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 13 00 00 [17:26:12]Write to MH i2c: E2 08 00 64 62 80 13 00 00 00 00 00 00 42 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 62 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 62 00 64 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [17:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_GetFieldsCounters done [17:26:12]requested_item shift.num is exist - process it [17:26:12]requested_item shift.opened is exist - process it [17:26:12]req_shift_opened [17:26:12]FM_GetShiftState [17:26:12]SAM_PROTO_GetShiftState [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 13 01 00 [17:26:12]Write to MH i2c: E2 08 00 65 62 80 13 01 00 00 00 00 00 44 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0E 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0E 00 65 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FE [17:26:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_GetShiftState done [17:26:12]FM_GetShiftState done [17:26:12]req_shift_opened done [17:26:12]requested_item shift.open_date is exist - process it [17:26:12]req_shift_open_date [17:26:12]req_shift_open_date done [17:26:12]produce_requested_data done [17:26:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31236,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:26:12]process_action_free close_receipt [17:26:12]json_value_free [17:26:12]json_value_free done [17:26:12]process_json_proto returns [17:26:12]Send response to host [17:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31236,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:26:12]free response buf [17:26:12]execute_script done [17:26:12]execute_script returns [17:26:12]free content buf [17:26:12]Sock 9.Close socket [17:26:12]Sock 9.Thread stoped [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:34]accept exits with 7 [17:29:34]New connection [17:29:34]New thread 3066899812 created [17:29:34]Thread 3067043172 joined [17:29:34]Waiting for new connection... [17:29:34] Sock 7.Parse request [17:29:34]Sock 7.Check first char [17:29:34]Sock 7.First char is OK [17:29:34]request: POST /json_proto HTTP/1.0 [17:29:34]Method: POST [17:29:34]URL: /json_proto [17:29:34]Method is POST - this is cgi request [17:29:34]url: /json_proto [17:29:34]query_string will be loaded in cgi processing [17:29:34]execute_cgi json_proto POST (null) [17:29:34]execute_cgi path=json_proto method=POST [17:29:34]POST find Content-Length [17:29:34]Host: 172.17.51.3:8080 [17:29:34]Content-Length: 677 [17:29:34]Content-Type: application/json [17:29:34] [17:29:34]POST finish read [17:29:34]Found Content-Length = 677 [17:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:34]execute_script... [17:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:34]POST & json_proto [17:29:34]process_json_proto [17:29:34]json parsed OK: [17:29:34]protocol is kg_v1.0 [17:29:34]action value=close_receipt [17:29:34]process_action close_receipt [17:29:34]cmd_close_receipt [17:29:34]MH_GetDate [17:29:34]Write to MH i2c: F0 00 00 66 62 B7 [17:29:34]Write i2c OK [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 09 00 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: F0 09 00 66 62 00 85 32 19 67 04 C1 95 66 B7 [17:29:34]GetLastDocTimeStamp 1729704375 [17:29:34]current date 1729704581 [17:29:34]FM_GetShiftState [17:29:34]SAM_PROTO_GetShiftState [17:29:34]wFMCommunicate request_size=4 [17:29:34]MH_SAM_APDU [17:29:34]CAPDU: 80 13 01 00 [17:29:34]Write to MH i2c: E2 08 00 67 62 80 13 01 00 00 00 00 00 46 [17:29:34]Write i2c OK [17:29:34]MH_I2C_Read... [17:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:34]Read from MH i2c: E2 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: E2 0E 00 [17:29:34]MH_I2C_Read... [17:29:34]Read from MH i2c: E2 0E 00 67 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 00 [17:29:34]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:29:34]wFMCommunicate OK [17:29:34]SAM_PROTO_GetShiftState done [17:29:34]FM_GetShiftState done [17:29:34]opened in 1729643755 [17:29:34]opened+sec_in_day 1729730155 [17:29:34]quantity*price = 50010 [17:29:34]sum+1 = 50012 [17:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 181 23.10.2024 17:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31237 ФПД: 32462999497821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172941&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31237&fm=32462999497821&tin=02508201610067®Number=0000000000186857&sum=50000 [17:29:35]StoreToDocumentArchive [17:29:35]shift 117 fd 31237 [17:29:35]save to /storage/0117/doc_00031237 [17:29:35]save last doc name /storage/0117/doc_00031237 to /storage/kkm_last_doc_name [17:29:35]save OK [17:29:35]Clear old archive folders... [17:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:35]tlvbuf is 00D570C0 [17:29:35]SAM_PROTO_ClearQueue [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 09 00 00 [17:29:35]Write to MH i2c: E2 08 00 74 62 80 09 00 00 00 00 00 00 48 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 74 62 00 90 00 4A [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]SAM_PROTO_ClearQueue done [17:29:35]KKMCreateOFDPacket [17:29:35]OFDProtocolAddRootSTLVToBuf [17:29:35]FM_MakeSignedData [17:29:35]FM_MakeSignedData [17:29:35]SAM_PROTO_SignData [17:29:35]wFMCommunicate request_size=4 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 0D 01 02 [17:29:35]Write to MH i2c: E2 08 00 75 62 80 0D 01 02 00 00 00 00 50 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:35]Read from MH i2c: E2 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 [17:29:35]MH_I2C_Read... [17:29:35]Read from MH i2c: E2 03 00 75 62 00 90 00 4B [17:29:35]RAPDU: 90 00 [17:29:35]wFMCommunicate OK [17:29:35]wFMCommunicate request_size=255 [17:29:35]MH_SAM_APDU [17:29:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 85 32 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 7A 00 00 35 04 06 00 1D [17:29:35]Write to MH i2c: E2 02 01 76 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 85 32 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 7A 00 00 35 04 06 00 1D 00 00 B7 [17:29:35]Write i2c OK [17:29:35]MH_I2C_Read... [17:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:36]Read from MH i2c: E2 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 03 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 03 00 76 62 00 90 00 4C [17:29:36]RAPDU: 90 00 [17:29:36]wFMCommunicate OK [17:29:36]wFMCommunicate request_size=10 [17:29:36]MH_SAM_APDU [17:29:36]CAPDU: 80 0D 02 02 05 86 61 8D AC 5D [17:29:36]Write to MH i2c: E2 0D 00 77 62 80 0D 02 02 05 00 86 61 8D AC 5D 00 00 DA [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:36]Read from MH i2c: E2 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 03 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 03 00 77 62 00 90 00 4D [17:29:36]RAPDU: 90 00 [17:29:36]wFMCommunicate OK [17:29:36]wFMCommunicate request_size=4 [17:29:36]MH_SAM_APDU [17:29:36]CAPDU: 80 0D 03 02 [17:29:36]Write to MH i2c: E2 08 00 78 62 80 0D 03 02 00 00 00 00 55 [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:36]Read from MH i2c: E2 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 0B 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 0B 00 78 62 00 8E 4D 1B 52 01 12 A2 CE 90 00 21 [17:29:36]RAPDU: 8E 4D 1B 52 01 12 A2 CE 90 00 [17:29:36]wFMCommunicate OK [17:29:36]SAM_PROTO_SignData done [17:29:36]FM_MakeSignedData done [17:29:36]CreateOFDProtocolMessage [17:29:36]wFMCommunicate request_size=4 [17:29:36]MH_SAM_APDU [17:29:36]CAPDU: 80 11 00 00 [17:29:36]Write to MH i2c: E2 08 00 79 62 80 11 00 00 00 00 00 00 55 [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:36]Read from MH i2c: E2 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 17 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: E2 17 00 79 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [17:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:29:36]wFMCommunicate OK [17:29:36]CreateOFDProtocolMessage done [17:29:36]OFDSenderStorePacket 31237 [17:29:36]StoreOFDPacket docnum=31237 [17:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D8 47 07 01 53 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 85 32 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 7A 00 00 35 04 06 00 1D 86 61 8D AC 5D 8E 4D 1B 52 01 12 A2 CE [17:29:36]CheckFolder [17:29:36]dirname=/storage/ofd_packets [17:29:36]CheckFolder done [17:29:36]ProducePacketName [17:29:36]name=ofd_packets/00031237 [17:29:36]NVStorageSaveData ofd_packets/00031237 [17:29:36]File name is /storage/ofd_packets/00031237 [17:29:36]Write 301 bytes [17:29:36]NVStorageSaveData done [17:29:36]OFDSenderStorePacket done [17:29:36]KKMCreateOFDPacket done [17:29:36]NVStorageSaveData kkm_last_timestamp [17:29:36]File name is /storage/kkm_last_timestamp [17:29:36]Write 4 bytes [17:29:36]NVStorageSaveData done [17:29:36]ExternCall_PrintAddStr [17:29:36]wPrintStart [17:29:36]Write to MH i2c: 01 00 00 7A 62 DC [17:29:36]Write i2c OK [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 07 00 [17:29:36]MH_I2C_Read... [17:29:36]Read from MH i2c: 01 07 00 7A 62 00 00 00 00 00 FF 0F F1 [17:29:36]RasterBufferAndPrint [17:29:36]line Счет N : (1)343683 [17:29:36]line ИНН: 02508201610067 [17:29:36]line Контрольно-Кассовый Чек [17:29:36]line ПРОДАЖА [17:29:36]line ТРК (МРК, ГНК) : 62 [17:29:36]line Товар: 2710124500 [17:29:36]line Аи-95-К-3 [17:29:36]line 6.740 * 74.20 [17:29:36]line = 500.11 [17:29:36]line НДС 12% НСП 1% [17:29:36]line > о реализуемом товаре [17:29:36]line ОКРУГЛЕНИЕ: -0.11 [17:29:36]line ИТОГО: 500.00 [17:29:36]line Внесено: 500.00 [17:29:36]line СДАЧА: 0.00 [17:29:36]line НСП 1% : 4.43 [17:29:36]line НДС 12% : 53.11 [17:29:36]line Наличными: 500.00 [17:29:36]line Безнал.: 0.00 [17:29:36]line Место: АЗС № 78 "Партнер Нефть" [17:29:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:29:36]line СНО: Общий режим [17:29:36]line Чек 181 23.10.2024 17:29 [17:29:36]line Смена: 117 ФФД: 1.0 [17:29:36]line ЗНМ: 0300000137 [17:29:36]line РНМ: 0000000000186857 [17:29:36]line Версия ККМ: v1.0 [17:29:36]line ФМ: 0000000002094219 [17:29:36]line ФД: 31237 [17:29:36]line ФПД: 32462999497821 [17:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172941&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31237&fm=32462999497821&tin=02508201610067®Number=0000000000186857&sum=50000 [17:29:36]OFD Sender: Processing packet 31237 [packets to send 11, broken 10] [17:29:36]ProducePacketName [17:29:36]name=ofd_packets/00031237 [17:29:36]OFD Sender: To server: pG, [17:29:36]CommunicateWithHost lk.salyk.kg:30040 [17:29:36]ConnectInit lk.salyk.kg [17:29:36]written 0, free lines is 4095 [17:29:36]Connected sock=10 [17:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D8 47 07 01 53 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 85 32 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 7A 00 00 35 04 06 00 1D 86 61 8D AC 5D 8E 4D 1B 52 01 12 A2 CE [17:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AF 0F 47 00 CB ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 7A 00 00 F4 03 04 00 FF DC 18 67 B6 04 01 00 00 2A 8B 34 79 A5 58 AC DB [17:29:36]CommunicateWithHost err = 0 [17:29:36]CheckOFDResponse [17:29:36]1017 (14) - 77093643461234 [17:29:36]1041 (16) - 0000000002094219 [17:29:36]1040 (4) - 31237 [17:29:36]1012 (4) - 23.10.2024 11:24 [17:29:36]1206 (1) - 0 [17:29:36]OFD Sender: Remove packet 31237 [17:29:36]ProducePacketName [17:29:36]name=ofd_packets/00031237 [17:29:36]NVStorageDeleteData [17:29:37]Write to MH i2c: 01 00 00 A5 62 07 [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: 01 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: 01 07 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: 01 07 00 A5 62 00 00 00 00 00 F6 0C 10 [17:29:37]RasterBufferAndPrint [17:29:37]line [17:29:37]line [17:29:37]line [17:29:37]line [17:29:37]line [17:29:37]written 0, free lines is 3328 [17:29:37]MH_Cut [17:29:37]Write to MH i2c: D1 01 00 AC 62 01 E0 [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: D1 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: D1 01 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: D1 01 00 AC 62 00 DF [17:29:37]Write to MH i2c: 01 00 00 AD 62 0F [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]OFD Sender: No OFD packet to send [17:29:37]*** Cut start [17:29:37]*** Partial cut [17:29:37]*** CUTSNS_PIN = 1 [17:29:37]*** CUTSNS_PIN = 0 [17:29:37]*** Brake cut motor [17:29:38]Read from MH i2c: 01 [17:29:38]MH_I2C_Read... [17:29:38]*** Stop cut motor [17:29:38]*** Cut end [17:29:38]Read from MH i2c: 01 07 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: 01 07 00 AD 62 00 00 00 00 00 FF 0F 24 [17:29:38]process_action close_receipt done [17:29:38]requested_data is exist [17:29:38]produce_requested_data [17:29:38]requested_item fm.sn is exist - process it [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 11 00 00 [17:29:38]Write to MH i2c: E2 08 00 AE 62 80 11 00 00 00 00 00 00 8A [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 17 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 17 00 AE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D8 [17:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:29:38]wFMCommunicate OK [17:29:38]requested_item fd.num is exist - process it [17:29:38]SAM_PROTO_GetFieldsCounters [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 13 00 00 [17:29:38]Write to MH i2c: E2 08 00 AF 62 80 13 00 00 00 00 00 00 8D [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 62 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 62 00 AF 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [17:29:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_GetFieldsCounters done [17:29:38]requested_item shift.num is exist - process it [17:29:38]requested_item shift.opened is exist - process it [17:29:38]req_shift_opened [17:29:38]FM_GetShiftState [17:29:38]SAM_PROTO_GetShiftState [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 13 01 00 [17:29:38]Write to MH i2c: E2 08 00 B0 62 80 13 01 00 00 00 00 00 8F [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 0E 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 0E 00 B0 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 49 [17:29:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_GetShiftState done [17:29:38]FM_GetShiftState done [17:29:38]req_shift_opened done [17:29:38]requested_item shift.open_date is exist - process it [17:29:38]req_shift_open_date [17:29:38]req_shift_open_date done [17:29:38]produce_requested_data done [17:29:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31237,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:29:38]process_action_free close_receipt [17:29:38]json_value_free [17:29:38]json_value_free done [17:29:38]process_json_proto returns [17:29:38]Send response to host [17:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31237,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:29:38]free response buf [17:29:38]execute_script done [17:29:38]execute_script returns [17:29:38]free content buf [17:29:38]Sock 7.Close socket [17:29:38]Sock 7.Thread stoped [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:42]accept exits with 9 [17:32:42]New connection [17:32:42]New thread 3067043172 created [17:32:42]Thread 3066899812 joined [17:32:42]Waiting for new connection... [17:32:42] Sock 9.Parse request [17:32:42]Sock 9.Check first char [17:32:42]Sock 9.First char is OK [17:32:42]request: POST /json_proto HTTP/1.0 [17:32:42]Method: POST [17:32:42]URL: /json_proto [17:32:42]Method is POST - this is cgi request [17:32:42]url: /json_proto [17:32:42]query_string will be loaded in cgi processing [17:32:42]execute_cgi json_proto POST (null) [17:32:42]execute_cgi path=json_proto method=POST [17:32:42]POST find Content-Length [17:32:42]Host: 172.17.51.3:8080 [17:32:42]Content-Length: 841 [17:32:42]Content-Type: application/json [17:32:42] [17:32:42]POST finish read [17:32:42]Found Content-Length = 841 [17:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:42]execute_script... [17:32:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:42]POST & json_proto [17:32:42]process_json_proto [17:32:42]json parsed OK: [17:32:42]protocol is kg_v1.0 [17:32:42]action value=close_receipt [17:32:42]process_action close_receipt [17:32:42]cmd_close_receipt [17:32:42]MH_GetDate [17:32:42]Write to MH i2c: F0 00 00 B1 62 02 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 09 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: F0 09 00 B1 62 00 41 33 19 67 04 C1 95 66 BF [17:32:42]GetLastDocTimeStamp 1729704581 [17:32:42]current date 1729704769 [17:32:42]FM_GetShiftState [17:32:42]SAM_PROTO_GetShiftState [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 13 01 00 [17:32:42]Write to MH i2c: E2 08 00 B2 62 80 13 01 00 00 00 00 00 91 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0E 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0E 00 B2 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 4B [17:32:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:32:42]wFMCommunicate OK [17:32:42]SAM_PROTO_GetShiftState done [17:32:42]FM_GetShiftState done [17:32:42]opened in 1729643755 [17:32:42]opened+sec_in_day 1729730155 [17:32:42]quantity*price = 80012 [17:32:42]sum+1 = 80013 [17:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 182 23.10.2024 17:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31238 ФПД: 160272907261453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31238&fm=160272907261453&tin=02508201610067®Number=0000000000186857&sum=80012 [17:32:43]StoreToDocumentArchive [17:32:43]shift 117 fd 31238 [17:32:43]save to /storage/0117/doc_00031238 [17:32:43]save last doc name /storage/0117/doc_00031238 to /storage/kkm_last_doc_name [17:32:43]save OK [17:32:43]Clear old archive folders... [17:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:43]tlvbuf is 00D632C0 [17:32:43]SAM_PROTO_ClearQueue [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 09 00 00 [17:32:43]Write to MH i2c: E2 08 00 BF 62 80 09 00 00 00 00 00 00 93 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 BF 62 00 90 00 95 [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]SAM_PROTO_ClearQueue done [17:32:43]KKMCreateOFDPacket [17:32:43]OFDProtocolAddRootSTLVToBuf [17:32:43]FM_MakeSignedData [17:32:43]FM_MakeSignedData [17:32:43]SAM_PROTO_SignData [17:32:43]wFMCommunicate request_size=4 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 0D 01 02 [17:32:43]Write to MH i2c: E2 08 00 C0 62 80 0D 01 02 00 00 00 00 9B [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:43]Read from MH i2c: E2 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 [17:32:43]MH_I2C_Read... [17:32:43]Read from MH i2c: E2 03 00 C0 62 00 90 00 96 [17:32:43]RAPDU: 90 00 [17:32:43]wFMCommunicate OK [17:32:43]wFMCommunicate request_size=255 [17:32:43]MH_SAM_APDU [17:32:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 42 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 7A 00 00 35 04 06 00 91 [17:32:43]Write to MH i2c: E2 02 01 C1 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 42 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 7A 00 00 35 04 06 00 91 00 00 61 [17:32:43]Write i2c OK [17:32:43]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 C1 62 00 90 00 97 [17:32:44]RAPDU: 90 00 [17:32:44]wFMCommunicate OK [17:32:44]wFMCommunicate request_size=10 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 0D 02 02 05 C4 71 B4 56 0D [17:32:44]Write to MH i2c: E2 0D 00 C2 62 80 0D 02 02 05 00 C4 71 B4 56 0D 00 00 F4 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 03 00 C2 62 00 90 00 98 [17:32:44]RAPDU: 90 00 [17:32:44]wFMCommunicate OK [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 0D 03 02 [17:32:44]Write to MH i2c: E2 08 00 C3 62 80 0D 03 02 00 00 00 00 A0 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0B 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0B 00 C3 62 00 7C 3C CF FC D8 8D B7 C0 90 00 00 [17:32:44]RAPDU: 7C 3C CF FC D8 8D B7 C0 90 00 [17:32:44]wFMCommunicate OK [17:32:44]SAM_PROTO_SignData done [17:32:44]FM_MakeSignedData done [17:32:44]CreateOFDProtocolMessage [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 11 00 00 [17:32:44]Write to MH i2c: E2 08 00 C4 62 80 11 00 00 00 00 00 00 A0 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 17 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 17 00 C4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [17:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:32:44]wFMCommunicate OK [17:32:44]CreateOFDProtocolMessage done [17:32:44]OFDSenderStorePacket 31238 [17:32:44]StoreOFDPacket docnum=31238 [17:32:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 04 07 01 0D 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 42 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 7A 00 00 35 04 06 00 91 C4 71 B4 56 0D 7C 3C CF FC D8 8D B7 C0 [17:32:44]CheckFolder [17:32:44]dirname=/storage/ofd_packets [17:32:44]CheckFolder done [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00031238 [17:32:44]NVStorageSaveData ofd_packets/00031238 [17:32:44]File name is /storage/ofd_packets/00031238 [17:32:44]Write 301 bytes [17:32:44]NVStorageSaveData done [17:32:44]OFDSenderStorePacket done [17:32:44]KKMCreateOFDPacket done [17:32:44]NVStorageSaveData kkm_last_timestamp [17:32:44]File name is /storage/kkm_last_timestamp [17:32:44]Write 4 bytes [17:32:44]NVStorageSaveData done [17:32:44]ExternCall_PrintAddStr [17:32:44]wPrintStart [17:32:44]Write to MH i2c: 01 00 00 C5 62 27 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 07 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 07 00 C5 62 00 00 00 00 00 FF 0F 3C [17:32:44]RasterBufferAndPrint [17:32:44]line Счет N : (1)343684 [17:32:44]line ИНН: 02508201610067 [17:32:44]line Контрольно-Кассовый Чек [17:32:44]line ПРОДАЖА [17:32:44]line ТРК (МРК, ГНК) : 63 [17:32:44]line Товар: 2710124130 [17:32:44]line Аи-92-К-2 [17:32:44]line 11.960 * 66.90 [17:32:44]line = 800.12 [17:32:44]line НДС 12% НСП 1% [17:32:44]line > о реализуемом товаре [17:32:44]line ИТОГО: 800.12 [17:32:44]line НСП 1% : 7.08 [17:32:44]line НДС 12% : 84.97 [17:32:44]line Наличными: 0.00 [17:32:44]line Безнал.: 800.12 [17:32:44]line Место: АЗС № 78 "Партнер Нефть" [17:32:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:32:44]line СНО: Общий режим [17:32:44]line Чек 182 23.10.2024 17:32 [17:32:44]line Смена: 117 ФФД: 1.0 [17:32:44]line ЗНМ: 0300000137 [17:32:44]line РНМ: 0000000000186857 [17:32:44]line Версия ККМ: v1.0 [17:32:44]line Платежная система: АКБ Кыргызстан [17:32:44]line ФМ: 0000000002094219 [17:32:44]line ФД: 31238 [17:32:44]line ФПД: 160272907261453 [17:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31238&fm=160272907261453&tin=02508201610067®Number=0000000000186857&sum=80012 [17:32:44]written 0, free lines is 4095 [17:32:44]OFD Sender: Processing packet 31238 [packets to send 11, broken 10] [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00031238 [17:32:44]OFD Sender: To server: pG, [17:32:44]CommunicateWithHost lk.salyk.kg:30040 [17:32:44]ConnectInit lk.salyk.kg [17:32:44]Connected sock=10 [17:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 04 07 01 0D 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 42 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 7A 00 00 35 04 06 00 91 C4 71 B4 56 0D 7C 3C CF FC D8 8D B7 C0 [17:32:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FC 14 47 00 2B 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 32 30 39 34 32 31 39 10 04 04 00 06 7A 00 00 F4 03 04 00 BB DD 18 67 B6 04 01 00 00 7B A3 45 38 53 CB BD 15 [17:32:45]CommunicateWithHost err = 0 [17:32:45]CheckOFDResponse [17:32:45]1017 (14) - 77093643461234 [17:32:45]1041 (16) - 0000000002094219 [17:32:45]1040 (4) - 31238 [17:32:45]1012 (4) - 23.10.2024 11:27 [17:32:45]1206 (1) - 0 [17:32:45]OFD Sender: Remove packet 31238 [17:32:45]ProducePacketName [17:32:45]name=ofd_packets/00031238 [17:32:45]NVStorageDeleteData [17:32:45]Write to MH i2c: 01 00 00 EF 62 51 [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 07 00 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: 01 07 00 EF 62 00 00 00 00 00 0B 0D 70 [17:32:45]RasterBufferAndPrint [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]line [17:32:45]written 0, free lines is 3345 [17:32:45]MH_Cut [17:32:45]Write to MH i2c: D1 01 00 F6 62 01 2A [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 01 00 [17:32:45]MH_I2C_Read... [17:32:45]Read from MH i2c: D1 01 00 F6 62 00 29 [17:32:45]Write to MH i2c: 01 00 00 F7 62 59 [17:32:45]Write i2c OK [17:32:45]MH_I2C_Read... [17:32:45]OFD Sender: No OFD packet to send [17:32:45]*** Cut start [17:32:45]*** Partial cut [17:32:45]*** CUTSNS_PIN = 1 [17:32:45]*** CUTSNS_PIN = 0 [17:32:46]*** Brake cut motor [17:32:46]Read from MH i2c: 01 [17:32:46]MH_I2C_Read... [17:32:46]*** Stop cut motor [17:32:46]*** Cut end [17:32:46]Read from MH i2c: 01 07 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: 01 07 00 F7 62 00 00 00 00 00 FF 0F 6E [17:32:46]process_action close_receipt done [17:32:46]requested_data is exist [17:32:46]produce_requested_data [17:32:46]requested_item fm.sn is exist - process it [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 11 00 00 [17:32:46]Write to MH i2c: E2 08 00 F8 62 80 11 00 00 00 00 00 00 D4 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 17 00 F8 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [17:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:32:46]wFMCommunicate OK [17:32:46]requested_item fd.num is exist - process it [17:32:46]SAM_PROTO_GetFieldsCounters [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 00 00 [17:32:46]Write to MH i2c: E2 08 00 F9 62 80 13 00 00 00 00 00 00 D7 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 62 00 F9 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [17:32:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetFieldsCounters done [17:32:46]requested_item shift.num is exist - process it [17:32:46]requested_item shift.opened is exist - process it [17:32:46]req_shift_opened [17:32:46]FM_GetShiftState [17:32:46]SAM_PROTO_GetShiftState [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 01 00 [17:32:46]Write to MH i2c: E2 08 00 FA 62 80 13 01 00 00 00 00 00 D9 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 FA 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 93 [17:32:46]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetShiftState done [17:32:46]FM_GetShiftState done [17:32:46]req_shift_opened done [17:32:46]requested_item shift.open_date is exist - process it [17:32:46]req_shift_open_date [17:32:46]req_shift_open_date done [17:32:46]produce_requested_data done [17:32:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31238,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:32:46]process_action_free close_receipt [17:32:46]json_value_free [17:32:46]json_value_free done [17:32:46]process_json_proto returns [17:32:46]Send response to host [17:32:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31238,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:32:46]free response buf [17:32:46]execute_script done [17:32:46]execute_script returns [17:32:46]free content buf [17:32:46]Sock 9.Close socket [17:32:46]Sock 9.Thread stoped [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:24]accept exits with 7 [17:35:24]New connection [17:35:24]New thread 3066899812 created [17:35:24]Thread 3067043172 joined [17:35:24]Waiting for new connection... [17:35:24] Sock 7.Parse request [17:35:24]Sock 7.Check first char [17:35:24]Sock 7.First char is OK [17:35:24]request: POST /json_proto HTTP/1.0 [17:35:24]Method: POST [17:35:24]URL: /json_proto [17:35:24]Method is POST - this is cgi request [17:35:24]url: /json_proto [17:35:24]query_string will be loaded in cgi processing [17:35:24]execute_cgi json_proto POST (null) [17:35:24]execute_cgi path=json_proto method=POST [17:35:24]POST find Content-Length [17:35:24]Host: 172.17.51.3:8080 [17:35:24]Content-Length: 677 [17:35:24]Content-Type: application/json [17:35:24] [17:35:24]POST finish read [17:35:24]Found Content-Length = 677 [17:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:24]execute_script... [17:35:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:24]POST & json_proto [17:35:24]process_json_proto [17:35:24]json parsed OK: [17:35:24]protocol is kg_v1.0 [17:35:24]action value=close_receipt [17:35:24]process_action close_receipt [17:35:24]cmd_close_receipt [17:35:24]MH_GetDate [17:35:24]Write to MH i2c: F0 00 00 FB 62 4C [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: F0 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: F0 09 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: F0 09 00 FB 62 00 E4 33 19 67 04 C1 95 66 AC [17:35:24]GetLastDocTimeStamp 1729704770 [17:35:24]current date 1729704932 [17:35:24]FM_GetShiftState [17:35:24]SAM_PROTO_GetShiftState [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 13 01 00 [17:35:24]Write to MH i2c: E2 08 00 FC 62 80 13 01 00 00 00 00 00 DB [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 FC 62 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 95 [17:35:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:35:24]wFMCommunicate OK [17:35:24]SAM_PROTO_GetShiftState done [17:35:24]FM_GetShiftState done [17:35:24]opened in 1729643755 [17:35:24]opened+sec_in_day 1729730155 [17:35:24]quantity*price = 50010 [17:35:24]sum+1 = 50012 [17:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 183 23.10.2024 17:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31239 ФПД: 88447884538656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31239&fm=88447884538656&tin=02508201610067®Number=0000000000186857&sum=50000 [17:35:25]StoreToDocumentArchive [17:35:25]shift 117 fd 31239 [17:35:25]save to /storage/0117/doc_00031239 [17:35:25]save last doc name /storage/0117/doc_00031239 to /storage/kkm_last_doc_name [17:35:25]save OK [17:35:25]Clear old archive folders... [17:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:25]tlvbuf is 00D5E3A0 [17:35:25]SAM_PROTO_ClearQueue [17:35:25]wFMCommunicate request_size=4 [17:35:25]MH_SAM_APDU [17:35:25]CAPDU: 80 09 00 00 [17:35:25]Write to MH i2c: E2 08 00 09 63 80 09 00 00 00 00 00 00 DE [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:25]Read from MH i2c: E2 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: E2 03 00 [17:35:25]MH_I2C_Read... [17:35:25]Read from MH i2c: E2 03 00 09 63 00 90 00 E0 [17:35:25]RAPDU: 90 00 [17:35:25]wFMCommunicate OK [17:35:25]SAM_PROTO_ClearQueue done [17:35:25]KKMCreateOFDPacket [17:35:25]OFDProtocolAddRootSTLVToBuf [17:35:25]FM_MakeSignedData [17:35:25]FM_MakeSignedData [17:35:25]SAM_PROTO_SignData [17:35:25]wFMCommunicate request_size=4 [17:35:25]MH_SAM_APDU [17:35:25]CAPDU: 80 0D 01 02 [17:35:25]Write to MH i2c: E2 08 00 0A 63 80 0D 01 02 00 00 00 00 E6 [17:35:25]Write i2c OK [17:35:25]MH_I2C_Read... [17:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:26]Read from MH i2c: E2 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 0A 63 00 90 00 E1 [17:35:26]RAPDU: 90 00 [17:35:26]wFMCommunicate OK [17:35:26]wFMCommunicate request_size=255 [17:35:26]MH_SAM_APDU [17:35:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 7A 00 00 35 04 06 00 50 [17:35:26]Write to MH i2c: E2 02 01 0B 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 7A 00 00 35 04 06 00 50 00 00 E4 [17:35:26]Write i2c OK [17:35:26]MH_I2C_Read... [17:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:26]Read from MH i2c: E2 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 0B 63 00 90 00 E2 [17:35:26]RAPDU: 90 00 [17:35:26]wFMCommunicate OK [17:35:26]wFMCommunicate request_size=10 [17:35:26]MH_SAM_APDU [17:35:26]CAPDU: 80 0D 02 02 05 71 60 BD 33 20 [17:35:26]Write to MH i2c: E2 0D 00 0C 63 80 0D 02 02 05 00 71 60 BD 33 20 00 00 D4 [17:35:26]Write i2c OK [17:35:26]MH_I2C_Read... [17:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:26]Read from MH i2c: E2 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 03 00 0C 63 00 90 00 E3 [17:35:26]RAPDU: 90 00 [17:35:26]wFMCommunicate OK [17:35:26]wFMCommunicate request_size=4 [17:35:26]MH_SAM_APDU [17:35:26]CAPDU: 80 0D 03 02 [17:35:26]Write to MH i2c: E2 08 00 0D 63 80 0D 03 02 00 00 00 00 EB [17:35:26]Write i2c OK [17:35:26]MH_I2C_Read... [17:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:26]Read from MH i2c: E2 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 0B 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 0B 00 0D 63 00 EF B7 9F D0 E1 E3 F2 71 90 00 28 [17:35:26]RAPDU: EF B7 9F D0 E1 E3 F2 71 90 00 [17:35:26]wFMCommunicate OK [17:35:26]SAM_PROTO_SignData done [17:35:26]FM_MakeSignedData done [17:35:26]CreateOFDProtocolMessage [17:35:26]wFMCommunicate request_size=4 [17:35:26]MH_SAM_APDU [17:35:26]CAPDU: 80 11 00 00 [17:35:26]Write to MH i2c: E2 08 00 0E 63 80 11 00 00 00 00 00 00 EB [17:35:26]Write i2c OK [17:35:26]MH_I2C_Read... [17:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:26]Read from MH i2c: E2 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 17 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: E2 17 00 0E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [17:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:35:26]wFMCommunicate OK [17:35:26]CreateOFDProtocolMessage done [17:35:26]OFDSenderStorePacket 31239 [17:35:26]StoreOFDPacket docnum=31239 [17:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5F 59 07 01 0A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 7A 00 00 35 04 06 00 50 71 60 BD 33 20 EF B7 9F D0 E1 E3 F2 71 [17:35:26]CheckFolder [17:35:26]dirname=/storage/ofd_packets [17:35:26]CheckFolder done [17:35:26]ProducePacketName [17:35:26]name=ofd_packets/00031239 [17:35:26]NVStorageSaveData ofd_packets/00031239 [17:35:26]File name is /storage/ofd_packets/00031239 [17:35:26]Write 301 bytes [17:35:26]NVStorageSaveData done [17:35:26]OFDSenderStorePacket done [17:35:26]KKMCreateOFDPacket done [17:35:26]NVStorageSaveData kkm_last_timestamp [17:35:26]File name is /storage/kkm_last_timestamp [17:35:26]Write 4 bytes [17:35:26]NVStorageSaveData done [17:35:26]ExternCall_PrintAddStr [17:35:26]wPrintStart [17:35:26]Write to MH i2c: 01 00 00 0F 63 72 [17:35:26]Write i2c OK [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: 01 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: 01 07 00 [17:35:26]MH_I2C_Read... [17:35:26]Read from MH i2c: 01 07 00 0F 63 00 00 00 00 00 FF 0F 87 [17:35:26]RasterBufferAndPrint [17:35:26]line Счет N : (1)343685 [17:35:26]line ИНН: 02508201610067 [17:35:26]line Контрольно-Кассовый Чек [17:35:26]line ПРОДАЖА [17:35:26]line ТРК (МРК, ГНК) : 52 [17:35:26]line Товар: 2710124500 [17:35:26]line Аи-95-К-3 [17:35:26]line 6.740 * 74.20 [17:35:26]line = 500.11 [17:35:26]line НДС 12% НСП 1% [17:35:26]line > о реализуемом товаре [17:35:26]line ОКРУГЛЕНИЕ: -0.11 [17:35:26]line ИТОГО: 500.00 [17:35:26]line Внесено: 500.00 [17:35:26]line СДАЧА: 0.00 [17:35:26]line НСП 1% : 4.43 [17:35:26]line НДС 12% : 53.11 [17:35:26]line Наличными: 500.00 [17:35:26]line Безнал.: 0.00 [17:35:26]line Место: АЗС № 78 "Партнер Нефть" [17:35:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:35:26]line СНО: Общий режим [17:35:26]line Чек 183 23.10.2024 17:35 [17:35:26]line Смена: 117 ФФД: 1.0 [17:35:26]line ЗНМ: 0300000137 [17:35:26]line РНМ: 0000000000186857 [17:35:26]line Версия ККМ: v1.0 [17:35:26]line ФМ: 0000000002094219 [17:35:26]line ФД: 31239 [17:35:26]line ФПД: 88447884538656 [17:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173532&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31239&fm=88447884538656&tin=02508201610067®Number=0000000000186857&sum=50000 [17:35:26]OFD Sender: Processing packet 31239 [packets to send 11, broken 10] [17:35:26]ProducePacketName [17:35:26]name=ofd_packets/00031239 [17:35:26]OFD Sender: To server: pG, [17:35:26]CommunicateWithHost lk.salyk.kg:30040 [17:35:26]ConnectInit lk.salyk.kg [17:35:26]written 0, free lines is 4095 [17:35:26]Connected sock=10 [17:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5F 59 07 01 0A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 E4 33 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 7A 00 00 35 04 06 00 50 71 60 BD 33 20 EF B7 9F D0 E1 E3 F2 71 [17:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C5 11 47 00 71 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 7A 00 00 F4 03 04 00 5D DE 18 67 B6 04 01 00 00 84 50 2C 77 52 6F 37 FF [17:35:27]CommunicateWithHost err = 0 [17:35:27]CheckOFDResponse [17:35:27]1017 (14) - 77093643461234 [17:35:27]1041 (16) - 0000000002094219 [17:35:27]1040 (4) - 31239 [17:35:27]1012 (4) - 23.10.2024 11:30 [17:35:27]1206 (1) - 0 [17:35:27]OFD Sender: Remove packet 31239 [17:35:27]ProducePacketName [17:35:27]name=ofd_packets/00031239 [17:35:27]NVStorageDeleteData [17:35:27]Write to MH i2c: 01 00 00 3A 63 9D [17:35:27]Write i2c OK [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: 01 [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: 01 07 00 [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: 01 07 00 3A 63 00 00 00 00 00 0B 0D BC [17:35:27]RasterBufferAndPrint [17:35:27]line [17:35:27]line [17:35:27]line [17:35:27]line [17:35:27]line [17:35:27]written 0, free lines is 3348 [17:35:27]MH_Cut [17:35:27]Write to MH i2c: D1 01 00 41 63 01 76 [17:35:27]Write i2c OK [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: D1 [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: D1 01 00 [17:35:27]MH_I2C_Read... [17:35:27]Read from MH i2c: D1 01 00 41 63 00 75 [17:35:27]Write to MH i2c: 01 00 00 42 63 A5 [17:35:27]Write i2c OK [17:35:27]MH_I2C_Read... [17:35:27]OFD Sender: No OFD packet to send [17:35:27]*** Cut start [17:35:27]*** Partial cut [17:35:27]*** CUTSNS_PIN = 1 [17:35:27]*** CUTSNS_PIN = 0 [17:35:28]*** Brake cut motor [17:35:28]Read from MH i2c: 01 [17:35:28]MH_I2C_Read... [17:35:28]*** Stop cut motor [17:35:28]*** Cut end [17:35:28]Read from MH i2c: 01 07 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: 01 07 00 42 63 00 00 00 00 00 FF 0F BA [17:35:28]process_action close_receipt done [17:35:28]requested_data is exist [17:35:28]produce_requested_data [17:35:28]requested_item fm.sn is exist - process it [17:35:28]wFMCommunicate request_size=4 [17:35:28]MH_SAM_APDU [17:35:28]CAPDU: 80 11 00 00 [17:35:28]Write to MH i2c: E2 08 00 43 63 80 11 00 00 00 00 00 00 20 [17:35:28]Write i2c OK [17:35:28]MH_I2C_Read... [17:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:28]Read from MH i2c: E2 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 17 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 17 00 43 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [17:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:35:28]wFMCommunicate OK [17:35:28]requested_item fd.num is exist - process it [17:35:28]SAM_PROTO_GetFieldsCounters [17:35:28]wFMCommunicate request_size=4 [17:35:28]MH_SAM_APDU [17:35:28]CAPDU: 80 13 00 00 [17:35:28]Write to MH i2c: E2 08 00 44 63 80 13 00 00 00 00 00 00 23 [17:35:28]Write i2c OK [17:35:28]MH_I2C_Read... [17:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:28]Read from MH i2c: E2 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 62 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 62 00 44 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:28]wFMCommunicate OK [17:35:28]SAM_PROTO_GetFieldsCounters done [17:35:28]requested_item shift.num is exist - process it [17:35:28]requested_item shift.opened is exist - process it [17:35:28]req_shift_opened [17:35:28]FM_GetShiftState [17:35:28]SAM_PROTO_GetShiftState [17:35:28]wFMCommunicate request_size=4 [17:35:28]MH_SAM_APDU [17:35:28]CAPDU: 80 13 01 00 [17:35:28]Write to MH i2c: E2 08 00 45 63 80 13 01 00 00 00 00 00 25 [17:35:28]Write i2c OK [17:35:28]MH_I2C_Read... [17:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:28]Read from MH i2c: E2 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 0E 00 [17:35:28]MH_I2C_Read... [17:35:28]Read from MH i2c: E2 0E 00 45 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DF [17:35:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:35:28]wFMCommunicate OK [17:35:28]SAM_PROTO_GetShiftState done [17:35:28]FM_GetShiftState done [17:35:28]req_shift_opened done [17:35:28]requested_item shift.open_date is exist - process it [17:35:28]req_shift_open_date [17:35:28]req_shift_open_date done [17:35:28]produce_requested_data done [17:35:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31239,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:35:28]process_action_free close_receipt [17:35:28]json_value_free [17:35:28]json_value_free done [17:35:28]process_json_proto returns [17:35:28]Send response to host [17:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31239,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:35:28]free response buf [17:35:28]execute_script done [17:35:28]execute_script returns [17:35:28]free content buf [17:35:28]Sock 7.Close socket [17:35:28]Sock 7.Thread stoped [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]accept exits with 9 [17:42:57]New connection [17:42:57]New thread 3067043172 created [17:42:57]Thread 3066899812 joined [17:42:57]Waiting for new connection... [17:42:57] Sock 9.Parse request [17:42:57]Sock 9.Check first char [17:42:57]Sock 9.First char is OK [17:42:57]request: POST /json_proto HTTP/1.0 [17:42:57]Method: POST [17:42:57]URL: /json_proto [17:42:57]Method is POST - this is cgi request [17:42:57]url: /json_proto [17:42:57]query_string will be loaded in cgi processing [17:42:57]execute_cgi json_proto POST (null) [17:42:57]execute_cgi path=json_proto method=POST [17:42:57]POST find Content-Length [17:42:57]Host: 172.17.51.3:8080 [17:42:57]Content-Length: 840 [17:42:57]Content-Type: application/json [17:42:57] [17:42:57]POST finish read [17:42:57]Found Content-Length = 840 [17:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:57]execute_script... [17: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 : (1)343686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:57]POST & json_proto [17:42:57]process_json_proto [17:42:57]json parsed OK: [17:42:57]protocol is kg_v1.0 [17:42:57]action value=close_receipt [17:42:57]process_action close_receipt [17:42:57]cmd_close_receipt [17:42:57]MH_GetDate [17:42:57]Write to MH i2c: F0 00 00 46 63 98 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 46 63 00 A9 35 19 67 04 C1 95 66 BF [17:42:57]GetLastDocTimeStamp 1729704932 [17:42:57]current date 1729705385 [17:42:57]FM_GetShiftState [17:42:57]SAM_PROTO_GetShiftState [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 13 01 00 [17:42:57]Write to MH i2c: E2 08 00 47 63 80 13 01 00 00 00 00 00 27 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 47 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E1 [17:42:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:42:57]wFMCommunicate OK [17:42:57]SAM_PROTO_GetShiftState done [17:42:57]FM_GetShiftState done [17:42:57]opened in 1729643755 [17:42:57]opened+sec_in_day 1729730155 [17:42:57]quantity*price = 400050 [17:42:57]sum+1 = 400051 [17:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 184 23.10.2024 17:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31240 ФПД: 257915178995512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174305&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31240&fm=257915178995512&tin=02508201610067®Number=0000000000186857&sum=400050 [17:42:59]StoreToDocumentArchive [17:42:59]shift 117 fd 31240 [17:42:59]save to /storage/0117/doc_00031240 [17:42:59]save last doc name /storage/0117/doc_00031240 to /storage/kkm_last_doc_name [17:42:59]save OK [17:42:59]Clear old archive folders... [17:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:59]tlvbuf is 00F001C0 [17:42:59]SAM_PROTO_ClearQueue [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 09 00 00 [17:42:59]Write to MH i2c: E2 08 00 54 63 80 09 00 00 00 00 00 00 29 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 54 63 00 90 00 2B [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]SAM_PROTO_ClearQueue done [17:42:59]KKMCreateOFDPacket [17:42:59]OFDProtocolAddRootSTLVToBuf [17:42:59]FM_MakeSignedData [17:42:59]FM_MakeSignedData [17:42:59]SAM_PROTO_SignData [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 01 02 [17:42:59]Write to MH i2c: E2 08 00 55 63 80 0D 01 02 00 00 00 00 31 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 55 63 00 90 00 2C [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=255 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A9 35 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 7A 00 00 35 04 06 00 EA 92 8E A0 [17:42:59]Write to MH i2c: E2 02 01 56 63 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A9 35 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 7A 00 00 35 04 06 00 EA 92 8E A0 00 00 F8 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 56 63 00 90 00 2D [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=7 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 02 02 02 4F 38 [17:42:59]Write to MH i2c: E2 0A 00 57 63 80 0D 02 02 02 00 4F 38 00 00 BF [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 57 63 00 90 00 2E [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 03 02 [17:42:59]Write to MH i2c: E2 08 00 58 63 80 0D 03 02 00 00 00 00 36 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 58 63 00 F8 BC 28 27 62 1D E1 9F 90 00 39 [17:42:59]RAPDU: F8 BC 28 27 62 1D E1 9F 90 00 [17:42:59]wFMCommunicate OK [17:42:59]SAM_PROTO_SignData done [17:42:59]FM_MakeSignedData done [17:42:59]CreateOFDProtocolMessage [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 11 00 00 [17:42:59]Write to MH i2c: E2 08 00 59 63 80 11 00 00 00 00 00 00 36 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 59 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [17:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:42:59]wFMCommunicate OK [17:42:59]CreateOFDProtocolMessage done [17:42:59]OFDSenderStorePacket 31240 [17:42:59]StoreOFDPacket docnum=31240 [17:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 25 89 04 01 76 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A9 35 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 7A 00 00 35 04 06 00 EA 92 8E A0 4F 38 F8 BC 28 27 62 1D E1 9F [17:42:59]CheckFolder [17:42:59]dirname=/storage/ofd_packets [17:42:59]CheckFolder done [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00031240 [17:42:59]NVStorageSaveData ofd_packets/00031240 [17:42:59]File name is /storage/ofd_packets/00031240 [17:42:59]Write 298 bytes [17:42:59]NVStorageSaveData done [17:42:59]OFDSenderStorePacket done [17:42:59]KKMCreateOFDPacket done [17:42:59]NVStorageSaveData kkm_last_timestamp [17:42:59]File name is /storage/kkm_last_timestamp [17:42:59]Write 4 bytes [17:42:59]NVStorageSaveData done [17:42:59]ExternCall_PrintAddStr [17:42:59]wPrintStart [17:42:59]Write to MH i2c: 01 00 00 5A 63 BD [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 5A 63 00 00 00 00 00 FF 0F D2 [17:42:59]RasterBufferAndPrint [17:42:59]line Счет N : (1)343686 [17:42:59]line ИНН: 02508201610067 [17:42:59]line Контрольно-Кассовый Чек [17:42:59]line ПРОДАЖА [17:42:59]line ТРК (МРК, ГНК) : 44 [17:42:59]line Товар: 2710194210 [17:42:59]line ДТ-К-2 [17:42:59]line 52.500 * 76.20 [17:42:59]line = 4000.50 [17:42:59]line НДС 12% НСП 1% [17:42:59]line > о реализуемом товаре [17:42:59]line ИТОГО: 4000.50 [17:42:59]line НСП 1% : 35.40 [17:42:59]line НДС 12% : 424.83 [17:42:59]line Наличными: 0.00 [17:42:59]line Безнал.: 4000.50 [17:42:59]line Место: АЗС № 78 "Партнер Нефть" [17:42:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:42:59]line СНО: Общий режим [17:42:59]line Чек 184 23.10.2024 17:43 [17:42:59]line Смена: 117 ФФД: 1.0 [17:42:59]line ЗНМ: 0300000137 [17:42:59]line РНМ: 0000000000186857 [17:42:59]line Версия ККМ: v1.0 [17:42:59]line Платежная система: АКБ Кыргызстан [17:42:59]line ФМ: 0000000002094219 [17:42:59]line ФД: 31240 [17:42:59]line ФПД: 257915178995512 [17:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174305&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31240&fm=257915178995512&tin=02508201610067®Number=0000000000186857&sum=400050 [17:42:59]OFD Sender: Processing packet 31240 [packets to send 11, broken 10] [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00031240 [17:42:59]OFD Sender: To server: pG, [17:42:59]CommunicateWithHost lk.salyk.kg:30040 [17:42:59]ConnectInit lk.salyk.kg [17:42:59]written 0, free lines is 4095 [17:43:00]Connected sock=10 [17:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 25 89 04 01 76 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A9 35 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 7A 00 00 35 04 06 00 EA 92 8E A0 4F 38 F8 BC 28 27 62 1D E1 9F [17:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 34 80 47 00 43 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 7A 00 00 F4 03 04 00 22 E0 18 67 B6 04 01 00 00 D5 49 43 87 81 A3 6F 42 [17:43:00]CommunicateWithHost err = 0 [17:43:00]CheckOFDResponse [17:43:00]1017 (14) - 77093643461234 [17:43:00]1041 (16) - 0000000002094219 [17:43:00]1040 (4) - 31240 [17:43:00]1012 (4) - 23.10.2024 11:38 [17:43:00]1206 (1) - 0 [17:43:00]OFD Sender: Remove packet 31240 [17:43:00]ProducePacketName [17:43:00]name=ofd_packets/00031240 [17:43:00]NVStorageDeleteData [17:43:00]Write to MH i2c: 01 00 00 84 63 E7 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 84 63 00 00 00 00 00 18 0D 13 [17:43:00]RasterBufferAndPrint [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]written 0, free lines is 3359 [17:43:00]MH_Cut [17:43:00]Write to MH i2c: D1 01 00 8B 63 01 C0 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 8B 63 00 BF [17:43:00]Write to MH i2c: 01 00 00 8C 63 EF [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]OFD Sender: No OFD packet to send [17:43:01]*** Cut start [17:43:01]*** Partial cut [17:43:01]*** CUTSNS_PIN = 1 [17:43:01]*** CUTSNS_PIN = 0 [17:43:01]*** Brake cut motor [17:43:01]Read from MH i2c: 01 [17:43:01]MH_I2C_Read... [17:43:01]*** Stop cut motor [17:43:01]*** Cut end [17:43:01]Read from MH i2c: 01 07 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: 01 07 00 8C 63 00 00 00 00 00 FF 0F 04 [17:43:01]process_action close_receipt done [17:43:01]requested_data is exist [17:43:01]produce_requested_data [17:43:01]requested_item fm.sn is exist - process it [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 11 00 00 [17:43:01]Write to MH i2c: E2 08 00 8D 63 80 11 00 00 00 00 00 00 6A [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 8D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [17:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:43:01]wFMCommunicate OK [17:43:01]requested_item fd.num is exist - process it [17:43:01]SAM_PROTO_GetFieldsCounters [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 00 00 [17:43:01]Write to MH i2c: E2 08 00 8E 63 80 13 00 00 00 00 00 00 6D [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 8E 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetFieldsCounters done [17:43:01]requested_item shift.num is exist - process it [17:43:01]requested_item shift.opened is exist - process it [17:43:01]req_shift_opened [17:43:01]FM_GetShiftState [17:43:01]SAM_PROTO_GetShiftState [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 01 00 [17:43:01]Write to MH i2c: E2 08 00 8F 63 80 13 01 00 00 00 00 00 6F [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 8F 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 29 [17:43:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetShiftState done [17:43:01]FM_GetShiftState done [17:43:01]req_shift_opened done [17:43:01]requested_item shift.open_date is exist - process it [17:43:01]req_shift_open_date [17:43:01]req_shift_open_date done [17:43:01]produce_requested_data done [17:43:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31240,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:43:01]process_action_free close_receipt [17:43:01]json_value_free [17:43:01]json_value_free done [17:43:01]process_json_proto returns [17:43:01]Send response to host [17:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31240,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:43:01]free response buf [17:43:01]execute_script done [17:43:01]execute_script returns [17:43:01]free content buf [17:43:01]Sock 9.Close socket [17:43:01]Sock 9.Thread stoped [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:13]accept exits with 7 [17:45:13]New connection [17:45:13]New thread 3066899812 created [17:45:13]Thread 3067043172 joined [17:45:13]Waiting for new connection... [17:45:13] Sock 7.Parse request [17:45:13]Sock 7.Check first char [17:45:13]Sock 7.First char is OK [17:45:13]request: POST /json_proto HTTP/1.0 [17:45:13]Method: POST [17:45:13]URL: /json_proto [17:45:13]Method is POST - this is cgi request [17:45:13]url: /json_proto [17:45:13]query_string will be loaded in cgi processing [17:45:13]execute_cgi json_proto POST (null) [17:45:13]execute_cgi path=json_proto method=POST [17:45:13]POST find Content-Length [17:45:13]Host: 172.17.51.3:8080 [17:45:13]Content-Length: 677 [17:45:13]Content-Type: application/json [17:45:13] [17:45:13]POST finish read [17:45:13]Found Content-Length = 677 [17:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]execute_script... [17:45:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]POST & json_proto [17:45:13]process_json_proto [17:45:13]json parsed OK: [17:45:13]protocol is kg_v1.0 [17:45:13]action value=close_receipt [17:45:13]process_action close_receipt [17:45:13]cmd_close_receipt [17:45:13]MH_GetDate [17:45:13]Write to MH i2c: F0 00 00 90 63 E2 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 90 63 00 30 36 19 67 04 C1 95 66 91 [17:45:13]GetLastDocTimeStamp 1729705385 [17:45:13]current date 1729705520 [17:45:13]FM_GetShiftState [17:45:13]SAM_PROTO_GetShiftState [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 13 01 00 [17:45:13]Write to MH i2c: E2 08 00 91 63 80 13 01 00 00 00 00 00 71 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 91 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2B [17:45:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:45:13]wFMCommunicate OK [17:45:13]SAM_PROTO_GetShiftState done [17:45:13]FM_GetShiftState done [17:45:13]opened in 1729643755 [17:45:13]opened+sec_in_day 1729730155 [17:45:13]quantity*price = 50041 [17:45:13]sum+1 = 50042 [17:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 185 23.10.2024 17:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31241 ФПД: 77842407180940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174520&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31241&fm=77842407180940&tin=02508201610067®Number=0000000000186857&sum=50000 [17:45:14]StoreToDocumentArchive [17:45:14]shift 117 fd 31241 [17:45:14]save to /storage/0117/doc_00031241 [17:45:14]save last doc name /storage/0117/doc_00031241 to /storage/kkm_last_doc_name [17:45:14]save OK [17:45:14]Clear old archive folders... [17:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:14]tlvbuf is 00CCFD70 [17:45:14]SAM_PROTO_ClearQueue [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 09 00 00 [17:45:14]Write to MH i2c: E2 08 00 9E 63 80 09 00 00 00 00 00 00 73 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 9E 63 00 90 00 75 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_ClearQueue done [17:45:14]KKMCreateOFDPacket [17:45:14]OFDProtocolAddRootSTLVToBuf [17:45:14]FM_MakeSignedData [17:45:14]FM_MakeSignedData [17:45:14]SAM_PROTO_SignData [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 01 02 [17:45:14]Write to MH i2c: E2 08 00 9F 63 80 0D 01 02 00 00 00 00 7B [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 9F 63 00 90 00 76 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=255 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 30 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 7A 00 00 35 04 06 00 46 [17:45:14]Write to MH i2c: E2 02 01 A0 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 30 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 7A 00 00 35 04 06 00 46 00 00 E9 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 A0 63 00 90 00 77 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=10 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 02 02 05 CC 19 07 4A 8C [17:45:14]Write to MH i2c: E2 0D 00 A1 63 80 0D 02 02 05 00 CC 19 07 4A 8C 00 00 4A [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 A1 63 00 90 00 78 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 03 02 [17:45:14]Write to MH i2c: E2 08 00 A2 63 80 0D 03 02 00 00 00 00 80 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0B 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0B 00 A2 63 00 CD 7D C7 BC A5 7C 76 43 90 00 28 [17:45:14]RAPDU: CD 7D C7 BC A5 7C 76 43 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_SignData done [17:45:14]FM_MakeSignedData done [17:45:14]CreateOFDProtocolMessage [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 11 00 00 [17:45:14]Write to MH i2c: E2 08 00 A3 63 80 11 00 00 00 00 00 00 80 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 A3 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [17:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:45:14]wFMCommunicate OK [17:45:14]CreateOFDProtocolMessage done [17:45:14]OFDSenderStorePacket 31241 [17:45:14]StoreOFDPacket docnum=31241 [17:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E1 4E 07 01 1E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 30 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 7A 00 00 35 04 06 00 46 CC 19 07 4A 8C CD 7D C7 BC A5 7C 76 43 [17:45:14]CheckFolder [17:45:14]dirname=/storage/ofd_packets [17:45:14]CheckFolder done [17:45:14]ProducePacketName [17:45:14]name=ofd_packets/00031241 [17:45:14]NVStorageSaveData ofd_packets/00031241 [17:45:14]File name is /storage/ofd_packets/00031241 [17:45:14]Write 301 bytes [17:45:14]NVStorageSaveData done [17:45:14]OFDSenderStorePacket done [17:45:14]KKMCreateOFDPacket done [17:45:14]NVStorageSaveData kkm_last_timestamp [17:45:14]File name is /storage/kkm_last_timestamp [17:45:14]Write 4 bytes [17:45:14]NVStorageSaveData done [17:45:14]ExternCall_PrintAddStr [17:45:14]wPrintStart [17:45:14]Write to MH i2c: 01 00 00 A4 63 07 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 A4 63 00 00 00 00 00 FF 0F 1C [17:45:14]RasterBufferAndPrint [17:45:14]line Счет N : (1)343687 [17:45:14]line ИНН: 02508201610067 [17:45:14]line Контрольно-Кассовый Чек [17:45:14]line ПРОДАЖА [17:45:14]line ТРК (МРК, ГНК) : 53 [17:45:14]line Товар: 2710124130 [17:45:14]line Аи-92-К-2 [17:45:14]line 7.480 * 66.90 [17:45:14]line = 500.41 [17:45:14]line НДС 12% НСП 1% [17:45:14]line > о реализуемом товаре [17:45:14]line ОКРУГЛЕНИЕ: -0.41 [17:45:14]line ИТОГО: 500.00 [17:45:14]line Внесено: 500.00 [17:45:14]line СДАЧА: 0.00 [17:45:14]line НСП 1% : 4.43 [17:45:14]line НДС 12% : 53.14 [17:45:14]line Наличными: 500.00 [17:45:14]line Безнал.: 0.00 [17:45:14]line Место: АЗС № 78 "Партнер Нефть" [17:45:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:45:14]line СНО: Общий режим [17:45:14]line Чек 185 23.10.2024 17:45 [17:45:14]line Смена: 117 ФФД: 1.0 [17:45:14]line ЗНМ: 0300000137 [17:45:14]line РНМ: 0000000000186857 [17:45:14]line Версия ККМ: v1.0 [17:45:14]line ФМ: 0000000002094219 [17:45:14]line ФД: 31241 [17:45:14]line ФПД: 77842407180940 [17:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174520&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31241&fm=77842407180940&tin=02508201610067®Number=0000000000186857&sum=50000 [17:45:15]OFD Sender: Processing packet 31241 [packets to send 11, broken 10] [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00031241 [17:45:15]OFD Sender: To server: pG, [17:45:15]CommunicateWithHost lk.salyk.kg:30040 [17:45:15]ConnectInit lk.salyk.kg [17:45:15]written 0, free lines is 4095 [17:45:15]Connected sock=10 [17:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E1 4E 07 01 1E CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 30 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 7A 00 00 35 04 06 00 46 CC 19 07 4A 8C CD 7D C7 BC A5 7C 76 43 [17:45:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 75 4A 47 00 54 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 7A 00 00 F4 03 04 00 AA E0 18 67 B6 04 01 00 00 D9 A1 B0 63 97 1B C9 6C [17:45:15]CommunicateWithHost err = 0 [17:45:15]CheckOFDResponse [17:45:15]1017 (14) - 77093643461234 [17:45:15]1041 (16) - 0000000002094219 [17:45:15]1040 (4) - 31241 [17:45:15]1012 (4) - 23.10.2024 11:40 [17:45:15]1206 (1) - 0 [17:45:15]OFD Sender: Remove packet 31241 [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00031241 [17:45:15]NVStorageDeleteData [17:45:15]Write to MH i2c: 01 00 00 CF 63 32 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 CF 63 00 00 00 00 00 F0 0C 35 [17:45:15]RasterBufferAndPrint [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]written 0, free lines is 3318 [17:45:15]MH_Cut [17:45:15]Write to MH i2c: D1 01 00 D6 63 01 0B [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 D6 63 00 0A [17:45:15]Write to MH i2c: 01 00 00 D7 63 3A [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]OFD Sender: No OFD packet to send [17:45:16]*** Cut start [17:45:16]*** Partial cut [17:45:16]*** CUTSNS_PIN = 1 [17:45:16]*** CUTSNS_PIN = 0 [17:45:16]*** Brake cut motor [17:45:16]Read from MH i2c: 01 [17:45:16]MH_I2C_Read... [17:45:16]*** Stop cut motor [17:45:16]*** Cut end [17:45:16]Read from MH i2c: 01 07 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 D7 63 00 00 00 00 00 FF 0F 4F [17:45:16]process_action close_receipt done [17:45:16]requested_data is exist [17:45:16]produce_requested_data [17:45:16]requested_item fm.sn is exist - process it [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 11 00 00 [17:45:16]Write to MH i2c: E2 08 00 D8 63 80 11 00 00 00 00 00 00 B5 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 D8 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [17:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:45:16]wFMCommunicate OK [17:45:16]requested_item fd.num is exist - process it [17:45:16]SAM_PROTO_GetFieldsCounters [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 13 00 00 [17:45:16]Write to MH i2c: E2 08 00 D9 63 80 13 00 00 00 00 00 00 B8 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 62 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 62 00 D9 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [17:45:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_GetFieldsCounters done [17:45:17]requested_item shift.num is exist - process it [17:45:17]requested_item shift.opened is exist - process it [17:45:17]req_shift_opened [17:45:17]FM_GetShiftState [17:45:17]SAM_PROTO_GetShiftState [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 13 01 00 [17:45:17]Write to MH i2c: E2 08 00 DA 63 80 13 01 00 00 00 00 00 BA [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 DA 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 74 [17:45:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_GetShiftState done [17:45:17]FM_GetShiftState done [17:45:17]req_shift_opened done [17:45:17]requested_item shift.open_date is exist - process it [17:45:17]req_shift_open_date [17:45:17]req_shift_open_date done [17:45:17]produce_requested_data done [17:45:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31241,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:45:17]process_action_free close_receipt [17:45:17]json_value_free [17:45:17]json_value_free done [17:45:17]process_json_proto returns [17:45:17]Send response to host [17:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31241,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:45:17]free response buf [17:45:17]execute_script done [17:45:17]execute_script returns [17:45:17]free content buf [17:45:17]Sock 7.Close socket [17:45:17]Sock 7.Thread stoped [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:21]accept exits with 9 [17:48:21]New connection [17:48:21]New thread 3067043172 created [17:48:21]Thread 3066899812 joined [17:48:21]Waiting for new connection... [17:48:21] Sock 9.Parse request [17:48:21]Sock 9.Check first char [17:48:21]Sock 9.First char is OK [17:48:21]request: POST /json_proto HTTP/1.0 [17:48:21]Method: POST [17:48:21]URL: /json_proto [17:48:21]Method is POST - this is cgi request [17:48:21]url: /json_proto [17:48:21]query_string will be loaded in cgi processing [17:48:21]execute_cgi json_proto POST (null) [17:48:21]execute_cgi path=json_proto method=POST [17:48:21]POST find Content-Length [17:48:21]Host: 172.17.51.3:8080 [17:48:21]Content-Length: 677 [17:48:21]Content-Type: application/json [17:48:21] [17:48:21]POST finish read [17:48:21]Found Content-Length = 677 [17:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:21]execute_script... [17:48:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:21]POST & json_proto [17:48:21]process_json_proto [17:48:21]json parsed OK: [17:48:21]protocol is kg_v1.0 [17:48:21]action value=close_receipt [17:48:21]process_action close_receipt [17:48:21]cmd_close_receipt [17:48:21]MH_GetDate [17:48:21]Write to MH i2c: F0 00 00 DB 63 2D [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: F0 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: F0 09 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: F0 09 00 DB 63 00 ED 36 19 67 04 C1 95 66 99 [17:48:21]GetLastDocTimeStamp 1729705520 [17:48:21]current date 1729705709 [17:48:21]FM_GetShiftState [17:48:21]SAM_PROTO_GetShiftState [17:48:21]wFMCommunicate request_size=4 [17:48:21]MH_SAM_APDU [17:48:21]CAPDU: 80 13 01 00 [17:48:21]Write to MH i2c: E2 08 00 DC 63 80 13 01 00 00 00 00 00 BC [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:21]Read from MH i2c: E2 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 0E 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 0E 00 DC 63 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 76 [17:48:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:48:21]wFMCommunicate OK [17:48:21]SAM_PROTO_GetShiftState done [17:48:21]FM_GetShiftState done [17:48:21]opened in 1729643755 [17:48:21]opened+sec_in_day 1729730155 [17:48:21]quantity*price = 20003 [17:48:21]sum+1 = 20004 [17:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 186 23.10.2024 17:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31242 ФПД: 47092219139401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31242&fm=47092219139401&tin=02508201610067®Number=0000000000186857&sum=20000 [17:48:23]StoreToDocumentArchive [17:48:23]shift 117 fd 31242 [17:48:23]save to /storage/0117/doc_00031242 [17:48:23]save last doc name /storage/0117/doc_00031242 to /storage/kkm_last_doc_name [17:48:23]save OK [17:48:23]Clear old archive folders... [17:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:23]tlvbuf is 00F62750 [17:48:23]SAM_PROTO_ClearQueue [17:48:23]wFMCommunicate request_size=4 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 09 00 00 [17:48:23]Write to MH i2c: E2 08 00 E9 63 80 09 00 00 00 00 00 00 BE [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 E9 63 00 90 00 C0 [17:48:23]RAPDU: 90 00 [17:48:23]wFMCommunicate OK [17:48:23]SAM_PROTO_ClearQueue done [17:48:23]KKMCreateOFDPacket [17:48:23]OFDProtocolAddRootSTLVToBuf [17:48:23]FM_MakeSignedData [17:48:23]FM_MakeSignedData [17:48:23]SAM_PROTO_SignData [17:48:23]wFMCommunicate request_size=4 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 0D 01 02 [17:48:23]Write to MH i2c: E2 08 00 EA 63 80 0D 01 02 00 00 00 00 C6 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 EA 63 00 90 00 C1 [17:48:23]RAPDU: 90 00 [17:48:23]wFMCommunicate OK [17:48:23]wFMCommunicate request_size=255 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 ED 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 7A 00 00 35 04 06 00 2A [17:48:23]Write to MH i2c: E2 02 01 EB 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 ED 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 7A 00 00 35 04 06 00 2A 00 00 99 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 EB 63 00 90 00 C2 [17:48:23]RAPDU: 90 00 [17:48:23]wFMCommunicate OK [17:48:23]wFMCommunicate request_size=10 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 0D 02 02 05 D4 82 FE 55 49 [17:48:23]Write to MH i2c: E2 0D 00 EC 63 80 0D 02 02 05 00 D4 82 FE 55 49 00 00 C5 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 03 00 EC 63 00 90 00 C3 [17:48:23]RAPDU: 90 00 [17:48:23]wFMCommunicate OK [17:48:23]wFMCommunicate request_size=4 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 0D 03 02 [17:48:23]Write to MH i2c: E2 08 00 ED 63 80 0D 03 02 00 00 00 00 CB [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 0B 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 0B 00 ED 63 00 F0 AA 52 FF 51 A7 C2 6A 90 00 DB [17:48:23]RAPDU: F0 AA 52 FF 51 A7 C2 6A 90 00 [17:48:23]wFMCommunicate OK [17:48:23]SAM_PROTO_SignData done [17:48:23]FM_MakeSignedData done [17:48:23]CreateOFDProtocolMessage [17:48:23]wFMCommunicate request_size=4 [17:48:23]MH_SAM_APDU [17:48:23]CAPDU: 80 11 00 00 [17:48:23]Write to MH i2c: E2 08 00 EE 63 80 11 00 00 00 00 00 00 CB [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:23]Read from MH i2c: E2 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 17 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: E2 17 00 EE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [17:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:48:23]wFMCommunicate OK [17:48:23]CreateOFDProtocolMessage done [17:48:23]OFDSenderStorePacket 31242 [17:48:23]StoreOFDPacket docnum=31242 [17:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FE 43 07 01 7A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 ED 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 7A 00 00 35 04 06 00 2A D4 82 FE 55 49 F0 AA 52 FF 51 A7 C2 6A [17:48:23]CheckFolder [17:48:23]dirname=/storage/ofd_packets [17:48:23]CheckFolder done [17:48:23]ProducePacketName [17:48:23]name=ofd_packets/00031242 [17:48:23]NVStorageSaveData ofd_packets/00031242 [17:48:23]File name is /storage/ofd_packets/00031242 [17:48:23]Write 301 bytes [17:48:23]NVStorageSaveData done [17:48:23]OFDSenderStorePacket done [17:48:23]KKMCreateOFDPacket done [17:48:23]NVStorageSaveData kkm_last_timestamp [17:48:23]File name is /storage/kkm_last_timestamp [17:48:23]Write 4 bytes [17:48:23]NVStorageSaveData done [17:48:23]ExternCall_PrintAddStr [17:48:23]wPrintStart [17:48:23]Write to MH i2c: 01 00 00 EF 63 52 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 07 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 07 00 EF 63 00 00 00 00 00 FF 0F 67 [17:48:23]RasterBufferAndPrint [17:48:23]line Счет N : (1)343688 [17:48:23]line ИНН: 02508201610067 [17:48:23]line Контрольно-Кассовый Чек [17:48:23]line ПРОДАЖА [17:48:23]line ТРК (МРК, ГНК) : 63 [17:48:23]line Товар: 2710124130 [17:48:23]line Аи-92-К-2 [17:48:23]line 2.990 * 66.90 [17:48:23]line = 200.03 [17:48:23]line НДС 12% НСП 1% [17:48:23]line > о реализуемом товаре [17:48:23]line ОКРУГЛЕНИЕ: -0.03 [17:48:23]line ИТОГО: 200.00 [17:48:23]line Внесено: 200.00 [17:48:23]line СДАЧА: 0.00 [17:48:23]line НСП 1% : 1.77 [17:48:23]line НДС 12% : 21.24 [17:48:23]line Наличными: 200.00 [17:48:23]line Безнал.: 0.00 [17:48:23]line Место: АЗС № 78 "Партнер Нефть" [17:48:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:48:23]line СНО: Общий режим [17:48:23]line Чек 186 23.10.2024 17:48 [17:48:23]line Смена: 117 ФФД: 1.0 [17:48:23]line ЗНМ: 0300000137 [17:48:23]line РНМ: 0000000000186857 [17:48:23]line Версия ККМ: v1.0 [17:48:23]line ФМ: 0000000002094219 [17:48:23]line ФД: 31242 [17:48:23]line ФПД: 47092219139401 [17:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31242&fm=47092219139401&tin=02508201610067®Number=0000000000186857&sum=20000 [17:48:23]OFD Sender: Processing packet 31242 [packets to send 11, broken 10] [17:48:23]ProducePacketName [17:48:23]name=ofd_packets/00031242 [17:48:23]OFD Sender: To server: pG, [17:48:23]CommunicateWithHost lk.salyk.kg:30040 [17:48:23]ConnectInit lk.salyk.kg [17:48:23]written 0, free lines is 4095 [17:48:24]Connected sock=10 [17:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FE 43 07 01 7A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 ED 36 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 7A 00 00 35 04 06 00 2A D4 82 FE 55 49 F0 AA 52 FF 51 A7 C2 6A [17:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 8B 47 00 AA 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 32 30 39 34 32 31 39 10 04 04 00 0A 7A 00 00 F4 03 04 00 67 E1 18 67 B6 04 01 00 00 57 F6 AA E4 AE B4 46 C2 [17:48:24]CommunicateWithHost err = 0 [17:48:24]CheckOFDResponse [17:48:24]1017 (14) - 77093643461234 [17:48:24]1041 (16) - 0000000002094219 [17:48:24]1040 (4) - 31242 [17:48:24]1012 (4) - 23.10.2024 11:43 [17:48:24]1206 (1) - 0 [17:48:24]OFD Sender: Remove packet 31242 [17:48:24]ProducePacketName [17:48:24]name=ofd_packets/00031242 [17:48:24]NVStorageDeleteData [17:48:24]Write to MH i2c: 01 00 00 1A 64 7E [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: 01 07 00 1A 64 00 00 00 00 00 F5 0C 86 [17:48:24]RasterBufferAndPrint [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]line [17:48:24]written 0, free lines is 3323 [17:48:24]MH_Cut [17:48:24]Write to MH i2c: D1 01 00 21 64 01 57 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 01 00 [17:48:24]MH_I2C_Read... [17:48:24]Read from MH i2c: D1 01 00 21 64 00 56 [17:48:24]Write to MH i2c: 01 00 00 22 64 86 [17:48:24]Write i2c OK [17:48:24]MH_I2C_Read... [17:48:24]OFD Sender: No OFD packet to send [17:48:25]*** Cut start [17:48:25]*** Partial cut [17:48:25]*** CUTSNS_PIN = 1 [17:48:25]*** CUTSNS_PIN = 0 [17:48:25]*** Brake cut motor [17:48:25]Read from MH i2c: 01 [17:48:25]MH_I2C_Read... [17:48:25]*** Stop cut motor [17:48:25]*** Cut end [17:48:25]Read from MH i2c: 01 07 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 07 00 22 64 00 00 00 00 00 FF 0F 9B [17:48:25]process_action close_receipt done [17:48:25]requested_data is exist [17:48:25]produce_requested_data [17:48:25]requested_item fm.sn is exist - process it [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 11 00 00 [17:48:25]Write to MH i2c: E2 08 00 23 64 80 11 00 00 00 00 00 00 01 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 17 00 23 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [17:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:48:25]wFMCommunicate OK [17:48:25]requested_item fd.num is exist - process it [17:48:25]SAM_PROTO_GetFieldsCounters [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 13 00 00 [17:48:25]Write to MH i2c: E2 08 00 24 64 80 13 00 00 00 00 00 00 04 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 62 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 62 00 24 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [17:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_GetFieldsCounters done [17:48:25]requested_item shift.num is exist - process it [17:48:25]requested_item shift.opened is exist - process it [17:48:25]req_shift_opened [17:48:25]FM_GetShiftState [17:48:25]SAM_PROTO_GetShiftState [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 13 01 00 [17:48:25]Write to MH i2c: E2 08 00 25 64 80 13 01 00 00 00 00 00 06 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 25 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C0 [17:48:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_GetShiftState done [17:48:25]FM_GetShiftState done [17:48:25]req_shift_opened done [17:48:25]requested_item shift.open_date is exist - process it [17:48:25]req_shift_open_date [17:48:25]req_shift_open_date done [17:48:25]produce_requested_data done [17:48:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31242,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:48:25]process_action_free close_receipt [17:48:25]json_value_free [17:48:25]json_value_free done [17:48:25]process_json_proto returns [17:48:25]Send response to host [17:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31242,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:48:25]free response buf [17:48:25]execute_script done [17:48:25]execute_script returns [17:48:25]free content buf [17:48:25]Sock 9.Close socket [17:48:25]Sock 9.Thread stoped [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:36]accept exits with 7 [17:51:36]New connection [17:51:36]New thread 3066899812 created [17:51:36]Thread 3067043172 joined [17:51:36]Waiting for new connection... [17:51:36] Sock 7.Parse request [17:51:36]Sock 7.Check first char [17:51:36]Sock 7.First char is OK [17:51:36]request: POST /json_proto HTTP/1.0 [17:51:36]Method: POST [17:51:36]URL: /json_proto [17:51:36]Method is POST - this is cgi request [17:51:36]url: /json_proto [17:51:36]query_string will be loaded in cgi processing [17:51:36]execute_cgi json_proto POST (null) [17:51:36]execute_cgi path=json_proto method=POST [17:51:36]POST find Content-Length [17:51:36]Host: 172.17.51.3:8080 [17:51:36]Content-Length: 677 [17:51:36]Content-Type: application/json [17:51:36] [17:51:36]POST finish read [17:51:36]Found Content-Length = 677 [17:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:36]execute_script... [17:51:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:36]POST & json_proto [17:51:36]process_json_proto [17:51:36]json parsed OK: [17:51:36]protocol is kg_v1.0 [17:51:36]action value=close_receipt [17:51:36]process_action close_receipt [17:51:36]cmd_close_receipt [17:51:36]MH_GetDate [17:51:36]Write to MH i2c: F0 00 00 26 64 79 [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: F0 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: F0 09 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: F0 09 00 26 64 00 B0 37 19 67 04 C1 95 66 A9 [17:51:36]GetLastDocTimeStamp 1729705709 [17:51:36]current date 1729705904 [17:51:36]FM_GetShiftState [17:51:36]SAM_PROTO_GetShiftState [17:51:36]wFMCommunicate request_size=4 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 13 01 00 [17:51:36]Write to MH i2c: E2 08 00 27 64 80 13 01 00 00 00 00 00 08 [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0E 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0E 00 27 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C2 [17:51:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:51:37]wFMCommunicate OK [17:51:37]SAM_PROTO_GetShiftState done [17:51:37]FM_GetShiftState done [17:51:37]opened in 1729643755 [17:51:37]opened+sec_in_day 1729730155 [17:51:37]quantity*price = 50041 [17:51:37]sum+1 = 50042 [17:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 187 23.10.2024 17:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31243 ФПД: 170328599759729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31243&fm=170328599759729&tin=02508201610067®Number=0000000000186857&sum=50000 [17:51:38]StoreToDocumentArchive [17:51:38]shift 117 fd 31243 [17:51:38]save to /storage/0117/doc_00031243 [17:51:38]save last doc name /storage/0117/doc_00031243 to /storage/kkm_last_doc_name [17:51:38]save OK [17:51:38]Clear old archive folders... [17:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:38]tlvbuf is 00D37720 [17:51:38]SAM_PROTO_ClearQueue [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 09 00 00 [17:51:38]Write to MH i2c: E2 08 00 34 64 80 09 00 00 00 00 00 00 0A [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 34 64 00 90 00 0C [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_ClearQueue done [17:51:38]KKMCreateOFDPacket [17:51:38]OFDProtocolAddRootSTLVToBuf [17:51:38]FM_MakeSignedData [17:51:38]FM_MakeSignedData [17:51:38]SAM_PROTO_SignData [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 01 02 [17:51:38]Write to MH i2c: E2 08 00 35 64 80 0D 01 02 00 00 00 00 12 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 35 64 00 90 00 0D [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]wFMCommunicate request_size=255 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B0 37 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 7A 00 00 35 04 06 00 9A [17:51:38]Write to MH i2c: E2 02 01 36 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B0 37 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 7A 00 00 35 04 06 00 9A 00 00 59 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 36 64 00 90 00 0E [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]wFMCommunicate request_size=10 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 02 02 05 E9 B7 AF 0B 71 [17:51:38]Write to MH i2c: E2 0D 00 37 64 80 0D 02 02 05 00 E9 B7 AF 0B 71 00 00 EA [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 03 00 37 64 00 90 00 0F [17:51:38]RAPDU: 90 00 [17:51:38]wFMCommunicate OK [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 0D 03 02 [17:51:38]Write to MH i2c: E2 08 00 38 64 80 0D 03 02 00 00 00 00 17 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0B 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0B 00 38 64 00 52 68 F3 CE 37 28 61 E4 90 00 37 [17:51:38]RAPDU: 52 68 F3 CE 37 28 61 E4 90 00 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_SignData done [17:51:38]FM_MakeSignedData done [17:51:38]CreateOFDProtocolMessage [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 11 00 00 [17:51:38]Write to MH i2c: E2 08 00 39 64 80 11 00 00 00 00 00 00 17 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 17 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 17 00 39 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [17:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:51:38]wFMCommunicate OK [17:51:38]CreateOFDProtocolMessage done [17:51:38]OFDSenderStorePacket 31243 [17:51:38]StoreOFDPacket docnum=31243 [17:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 63 9A 07 01 9E 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B0 37 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 7A 00 00 35 04 06 00 9A E9 B7 AF 0B 71 52 68 F3 CE 37 28 61 E4 [17:51:38]CheckFolder [17:51:38]dirname=/storage/ofd_packets [17:51:38]CheckFolder done [17:51:38]ProducePacketName [17:51:38]name=ofd_packets/00031243 [17:51:38]NVStorageSaveData ofd_packets/00031243 [17:51:38]File name is /storage/ofd_packets/00031243 [17:51:38]Write 301 bytes [17:51:38]NVStorageSaveData done [17:51:38]OFDSenderStorePacket done [17:51:38]KKMCreateOFDPacket done [17:51:38]NVStorageSaveData kkm_last_timestamp [17:51:38]File name is /storage/kkm_last_timestamp [17:51:38]Write 4 bytes [17:51:38]NVStorageSaveData done [17:51:38]ExternCall_PrintAddStr [17:51:38]wPrintStart [17:51:38]Write to MH i2c: 01 00 00 3A 64 9E [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 07 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 07 00 3A 64 00 00 00 00 00 FF 0F B3 [17:51:38]RasterBufferAndPrint [17:51:38]line Счет N : (1)343689 [17:51:38]line ИНН: 02508201610067 [17:51:38]line Контрольно-Кассовый Чек [17:51:38]line ПРОДАЖА [17:51:38]line ТРК (МРК, ГНК) : 63 [17:51:38]line Товар: 2710124130 [17:51:38]line Аи-92-К-2 [17:51:38]line 7.480 * 66.90 [17:51:38]line = 500.41 [17:51:38]line НДС 12% НСП 1% [17:51:38]line > о реализуемом товаре [17:51:38]line ОКРУГЛЕНИЕ: -0.41 [17:51:38]line ИТОГО: 500.00 [17:51:38]line Внесено: 500.00 [17:51:38]line СДАЧА: 0.00 [17:51:38]line НСП 1% : 4.43 [17:51:38]line НДС 12% : 53.14 [17:51:38]line Наличными: 500.00 [17:51:38]line Безнал.: 0.00 [17:51:38]line Место: АЗС № 78 "Партнер Нефть" [17:51:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:51:38]line СНО: Общий режим [17:51:38]line Чек 187 23.10.2024 17:51 [17:51:38]line Смена: 117 ФФД: 1.0 [17:51:38]line ЗНМ: 0300000137 [17:51:38]line РНМ: 0000000000186857 [17:51:38]line Версия ККМ: v1.0 [17:51:38]line ФМ: 0000000002094219 [17:51:38]line ФД: 31243 [17:51:38]line ФПД: 170328599759729 [17:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31243&fm=170328599759729&tin=02508201610067®Number=0000000000186857&sum=50000 [17:51:39]OFD Sender: Processing packet 31243 [packets to send 11, broken 10] [17:51:39]ProducePacketName [17:51:39]name=ofd_packets/00031243 [17:51:39]OFD Sender: To server: pG, [17:51:39]CommunicateWithHost lk.salyk.kg:30040 [17:51:39]ConnectInit lk.salyk.kg [17:51:39]written 0, free lines is 4095 [17:51:39]Connected sock=10 [17:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 63 9A 07 01 9E 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B0 37 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 7A 00 00 35 04 06 00 9A E9 B7 AF 0B 71 52 68 F3 CE 37 28 61 E4 [17:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9B 76 47 00 C2 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 32 30 39 34 32 31 39 10 04 04 00 0B 7A 00 00 F4 03 04 00 2A E2 18 67 B6 04 01 00 00 5B 8C 82 4F 33 55 C9 DB [17:51:39]CommunicateWithHost err = 0 [17:51:39]CheckOFDResponse [17:51:39]1017 (14) - 77093643461234 [17:51:39]1041 (16) - 0000000002094219 [17:51:39]1040 (4) - 31243 [17:51:39]1012 (4) - 23.10.2024 11:46 [17:51:39]1206 (1) - 0 [17:51:39]OFD Sender: Remove packet 31243 [17:51:39]ProducePacketName [17:51:39]name=ofd_packets/00031243 [17:51:39]NVStorageDeleteData [17:51:39]Write to MH i2c: 01 00 00 65 64 C9 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 65 64 00 00 00 00 00 F0 0C CC [17:51:39]RasterBufferAndPrint [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]line [17:51:39]written 0, free lines is 3322 [17:51:39]MH_Cut [17:51:39]Write to MH i2c: D1 01 00 6C 64 01 A2 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 01 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: D1 01 00 6C 64 00 A1 [17:51:39]Write to MH i2c: 01 00 00 6D 64 D1 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]OFD Sender: No OFD packet to send [17:51:40]*** Cut start [17:51:40]*** Partial cut [17:51:40]*** CUTSNS_PIN = 1 [17:51:40]*** CUTSNS_PIN = 0 [17:51:40]*** Brake cut motor [17:51:40]Read from MH i2c: 01 [17:51:40]MH_I2C_Read... [17:51:40]*** Stop cut motor [17:51:40]*** Cut end [17:51:40]Read from MH i2c: 01 07 00 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: 01 07 00 6D 64 00 00 00 00 00 FF 0F E6 [17:51:40]process_action close_receipt done [17:51:40]requested_data is exist [17:51:40]produce_requested_data [17:51:40]requested_item fm.sn is exist - process it [17:51:40]wFMCommunicate request_size=4 [17:51:40]MH_SAM_APDU [17:51:40]CAPDU: 80 11 00 00 [17:51:40]Write to MH i2c: E2 08 00 6E 64 80 11 00 00 00 00 00 00 4C [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:40]Read from MH i2c: E2 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: E2 17 00 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: E2 17 00 6E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [17:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:51:40]wFMCommunicate OK [17:51:40]requested_item fd.num is exist - process it [17:51:40]SAM_PROTO_GetFieldsCounters [17:51:40]wFMCommunicate request_size=4 [17:51:40]MH_SAM_APDU [17:51:40]CAPDU: 80 13 00 00 [17:51:40]Write to MH i2c: E2 08 00 6F 64 80 13 00 00 00 00 00 00 4F [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:40]Read from MH i2c: E2 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: E2 62 00 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: E2 62 00 6F 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [17:51:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:40]wFMCommunicate OK [17:51:40]SAM_PROTO_GetFieldsCounters done [17:51:40]requested_item shift.num is exist - process it [17:51:40]requested_item shift.opened is exist - process it [17:51:40]req_shift_opened [17:51:40]FM_GetShiftState [17:51:40]SAM_PROTO_GetShiftState [17:51:40]wFMCommunicate request_size=4 [17:51:40]MH_SAM_APDU [17:51:40]CAPDU: 80 13 01 00 [17:51:40]Write to MH i2c: E2 08 00 70 64 80 13 01 00 00 00 00 00 51 [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:41]Read from MH i2c: E2 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 0E 00 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 0E 00 70 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0B [17:51:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:51:41]wFMCommunicate OK [17:51:41]SAM_PROTO_GetShiftState done [17:51:41]FM_GetShiftState done [17:51:41]req_shift_opened done [17:51:41]requested_item shift.open_date is exist - process it [17:51:41]req_shift_open_date [17:51:41]req_shift_open_date done [17:51:41]produce_requested_data done [17:51:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31243,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:51:41]process_action_free close_receipt [17:51:41]json_value_free [17:51:41]json_value_free done [17:51:41]process_json_proto returns [17:51:41]Send response to host [17:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31243,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:51:41]free response buf [17:51:41]execute_script done [17:51:41]execute_script returns [17:51:41]free content buf [17:51:41]Sock 7.Close socket [17:51:41]Sock 7.Thread stoped [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:33]accept exits with 9 [17:53:33]New connection [17:53:33]New thread 3067043172 created [17:53:33]Thread 3066899812 joined [17:53:33]Waiting for new connection... [17:53:33] Sock 9.Parse request [17:53:33]Sock 9.Check first char [17:53:33]Sock 9.First char is OK [17:53:33]request: POST /json_proto HTTP/1.0 [17:53:33]Method: POST [17:53:33]URL: /json_proto [17:53:33]Method is POST - this is cgi request [17:53:33]url: /json_proto [17:53:33]query_string will be loaded in cgi processing [17:53:33]execute_cgi json_proto POST (null) [17:53:33]execute_cgi path=json_proto method=POST [17:53:33]POST find Content-Length [17:53:33]Host: 172.17.51.3:8080 [17:53:33]Content-Length: 683 [17:53:33]Content-Type: application/json [17:53:33] [17:53:33]POST finish read [17:53:33]Found Content-Length = 683 [17:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:33]execute_script... [17:53:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:33]POST & json_proto [17:53:33]process_json_proto [17:53:33]json parsed OK: [17:53:33]protocol is kg_v1.0 [17:53:33]action value=close_receipt [17:53:33]process_action close_receipt [17:53:33]cmd_close_receipt [17:53:33]MH_GetDate [17:53:33]Write to MH i2c: F0 00 00 71 64 C4 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: F0 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: F0 09 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: F0 09 00 71 64 00 24 38 19 67 04 C1 95 66 69 [17:53:33]GetLastDocTimeStamp 1729705904 [17:53:33]current date 1729706020 [17:53:33]FM_GetShiftState [17:53:33]SAM_PROTO_GetShiftState [17:53:33]wFMCommunicate request_size=4 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 13 01 00 [17:53:33]Write to MH i2c: E2 08 00 72 64 80 13 01 00 00 00 00 00 53 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0E 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0E 00 72 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0D [17:53:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:53:33]wFMCommunicate OK [17:53:33]SAM_PROTO_GetShiftState done [17:53:33]FM_GetShiftState done [17:53:33]opened in 1729643755 [17:53:33]opened+sec_in_day 1729730155 [17:53:33]quantity*price = 40066 [17:53:33]sum+1 = 40068 [17:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 188 23.10.2024 17:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31244 ФПД: 225925109234508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31244&fm=225925109234508&tin=02508201610067®Number=0000000000186857&sum=40000 [17:53:34]StoreToDocumentArchive [17:53:34]shift 117 fd 31244 [17:53:34]save to /storage/0117/doc_00031244 [17:53:34]save last doc name /storage/0117/doc_00031244 to /storage/kkm_last_doc_name [17:53:34]save OK [17:53:34]Clear old archive folders... [17:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:53:34]tlvbuf is 00DA1DD0 [17:53:34]SAM_PROTO_ClearQueue [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 09 00 00 [17:53:34]Write to MH i2c: E2 08 00 7F 64 80 09 00 00 00 00 00 00 55 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 03 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 03 00 7F 64 00 90 00 57 [17:53:34]RAPDU: 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_ClearQueue done [17:53:34]KKMCreateOFDPacket [17:53:34]OFDProtocolAddRootSTLVToBuf [17:53:34]FM_MakeSignedData [17:53:34]FM_MakeSignedData [17:53:34]SAM_PROTO_SignData [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 0D 01 02 [17:53:34]Write to MH i2c: E2 08 00 80 64 80 0D 01 02 00 00 00 00 5D [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 03 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 03 00 80 64 00 90 00 58 [17:53:34]RAPDU: 90 00 [17:53:34]wFMCommunicate OK [17:53:34]wFMCommunicate request_size=255 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 25 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 7A 00 [17:53:34]Write to MH i2c: E2 02 01 81 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 25 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 7A 00 00 00 F3 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]OFD Sender: No OFD packet to send [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 81 64 00 90 00 59 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=16 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 7A 49 E1 BB 4C [17:53:35]Write to MH i2c: E2 13 00 82 64 80 0D 02 02 0B 00 00 35 04 06 00 CD 7A 49 E1 BB 4C 00 00 2D [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 82 64 00 90 00 5A [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 03 02 [17:53:35]Write to MH i2c: E2 08 00 83 64 80 0D 03 02 00 00 00 00 62 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 83 64 00 D9 7E B2 C3 09 6F 70 6C 90 00 83 [17:53:35]RAPDU: D9 7E B2 C3 09 6F 70 6C 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_SignData done [17:53:35]FM_MakeSignedData done [17:53:35]CreateOFDProtocolMessage [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 11 00 00 [17:53:35]Write to MH i2c: E2 08 00 84 64 80 11 00 00 00 00 00 00 62 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 84 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [17:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:53:35]wFMCommunicate OK [17:53:35]CreateOFDProtocolMessage done [17:53:35]OFDSenderStorePacket 31244 [17:53:35]StoreOFDPacket docnum=31244 [17:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C1 1E 0D 01 A1 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 25 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 7A 00 00 35 04 06 00 CD 7A 49 E1 BB 4C D9 7E B2 C3 09 6F 70 6C [17:53:35]CheckFolder [17:53:35]dirname=/storage/ofd_packets [17:53:35]CheckFolder done [17:53:35]ProducePacketName [17:53:35]name=ofd_packets/00031244 [17:53:35]NVStorageSaveData ofd_packets/00031244 [17:53:35]File name is /storage/ofd_packets/00031244 [17:53:35]Write 307 bytes [17:53:35]NVStorageSaveData done [17:53:35]OFDSenderStorePacket done [17:53:35]KKMCreateOFDPacket done [17:53:35]NVStorageSaveData kkm_last_timestamp [17:53:35]File name is /storage/kkm_last_timestamp [17:53:35]Write 4 bytes [17:53:35]NVStorageSaveData done [17:53:35]ExternCall_PrintAddStr [17:53:35]wPrintStart [17:53:35]Write to MH i2c: 01 00 00 85 64 E9 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 85 64 00 00 00 00 00 FF 0F FE [17:53:35]RasterBufferAndPrint [17:53:35]line Счет N : (1)343690 [17:53:35]line ИНН: 02508201610067 [17:53:35]line Контрольно-Кассовый Чек [17:53:35]line ПРОДАЖА [17:53:35]line ТРК (МРК, ГНК) : 61 [17:53:35]line Товар: 2710194210 [17:53:35]line D-ENERGY Дт-К-2 [17:53:35]line 5.190 * 77.20 [17:53:35]line = 400.67 [17:53:35]line НДС 12% НСП 1% [17:53:35]line > о реализуемом товаре [17:53:35]line ОКРУГЛЕНИЕ: -0.67 [17:53:35]line ИТОГО: 400.00 [17:53:35]line Внесено: 400.00 [17:53:35]line СДАЧА: 0.00 [17:53:35]line НСП 1% : 3.55 [17:53:35]line НДС 12% : 42.55 [17:53:35]line Наличными: 400.00 [17:53:35]line Безнал.: 0.00 [17:53:35]line Место: АЗС № 78 "Партнер Нефть" [17:53:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:53:35]line СНО: Общий режим [17:53:35]line Чек 188 23.10.2024 17:53 [17:53:35]line Смена: 117 ФФД: 1.0 [17:53:35]line ЗНМ: 0300000137 [17:53:35]line РНМ: 0000000000186857 [17:53:35]line Версия ККМ: v1.0 [17:53:35]line ФМ: 0000000002094219 [17:53:35]line ФД: 31244 [17:53:35]line ФПД: 225925109234508 [17:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31244&fm=225925109234508&tin=02508201610067®Number=0000000000186857&sum=40000 [17:53:35]OFD Sender: Processing packet 31244 [packets to send 11, broken 10] [17:53:35]ProducePacketName [17:53:35]name=ofd_packets/00031244 [17:53:35]OFD Sender: To server: pG, [17:53:35]CommunicateWithHost lk.salyk.kg:30040 [17:53:35]ConnectInit lk.salyk.kg [17:53:35]written 0, free lines is 4095 [17:53:35]Connected sock=10 [17:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C1 1E 0D 01 A1 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 25 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 7A 00 00 35 04 06 00 CD 7A 49 E1 BB 4C D9 7E B2 C3 09 6F 70 6C [17:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6C A5 47 00 C9 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 7A 00 00 F4 03 04 00 9E E2 18 67 B6 04 01 00 00 FF 74 3B 77 B0 C1 E4 2A [17:53:35]CommunicateWithHost err = 0 [17:53:35]CheckOFDResponse [17:53:35]1017 (14) - 77093643461234 [17:53:35]1041 (16) - 0000000002094219 [17:53:35]1040 (4) - 31244 [17:53:35]1012 (4) - 23.10.2024 11:48 [17:53:35]1206 (1) - 0 [17:53:35]OFD Sender: Remove packet 31244 [17:53:35]ProducePacketName [17:53:35]name=ofd_packets/00031244 [17:53:35]NVStorageDeleteData [17:53:36]Write to MH i2c: 01 00 00 B0 64 14 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 B0 64 00 00 00 00 00 F5 0C 1C [17:53:36]RasterBufferAndPrint [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]written 0, free lines is 3328 [17:53:36]MH_Cut [17:53:36]Write to MH i2c: D1 01 00 B7 64 01 ED [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 B7 64 00 EC [17:53:36]Write to MH i2c: 01 00 00 B8 64 1C [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]OFD Sender: No OFD packet to send [17:53:36]*** Cut start [17:53:36]*** Partial cut [17:53:36]*** CUTSNS_PIN = 1 [17:53:36]*** CUTSNS_PIN = 0 [17:53:36]*** Brake cut motor [17:53:37]Read from MH i2c: 01 [17:53:37]MH_I2C_Read... [17:53:37]*** Stop cut motor [17:53:37]*** Cut end [17:53:37]Read from MH i2c: 01 07 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: 01 07 00 B8 64 00 00 00 00 00 FF 0F 31 [17:53:37]process_action close_receipt done [17:53:37]requested_data is exist [17:53:37]produce_requested_data [17:53:37]requested_item fm.sn is exist - process it [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 11 00 00 [17:53:37]Write to MH i2c: E2 08 00 B9 64 80 11 00 00 00 00 00 00 97 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 17 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 17 00 B9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [17:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:53:37]wFMCommunicate OK [17:53:37]requested_item fd.num is exist - process it [17:53:37]SAM_PROTO_GetFieldsCounters [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 13 00 00 [17:53:37]Write to MH i2c: E2 08 00 BA 64 80 13 00 00 00 00 00 00 9A [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 62 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 62 00 BA 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:37]wFMCommunicate OK [17:53:37]SAM_PROTO_GetFieldsCounters done [17:53:37]requested_item shift.num is exist - process it [17:53:37]requested_item shift.opened is exist - process it [17:53:37]req_shift_opened [17:53:37]FM_GetShiftState [17:53:37]SAM_PROTO_GetShiftState [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 13 01 00 [17:53:37]Write to MH i2c: E2 08 00 BB 64 80 13 01 00 00 00 00 00 9C [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 0E 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 0E 00 BB 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 56 [17:53:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:53:37]wFMCommunicate OK [17:53:37]SAM_PROTO_GetShiftState done [17:53:37]FM_GetShiftState done [17:53:37]req_shift_opened done [17:53:37]requested_item shift.open_date is exist - process it [17:53:37]req_shift_open_date [17:53:37]req_shift_open_date done [17:53:37]produce_requested_data done [17:53:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31244,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:53:37]process_action_free close_receipt [17:53:37]json_value_free [17:53:37]json_value_free done [17:53:37]process_json_proto returns [17:53:37]Send response to host [17:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31244,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:53:37]free response buf [17:53:37]execute_script done [17:53:37]execute_script returns [17:53:37]free content buf [17:53:37]Sock 9.Close socket [17:53:37]Sock 9.Thread stoped [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:55]accept exits with 7 [17:54:55]New connection [17:54:55]New thread 3066899812 created [17:54:55]Thread 3067043172 joined [17:54:55]Waiting for new connection... [17:54:55] Sock 7.Parse request [17:54:55]Sock 7.Check first char [17:54:55]Sock 7.First char is OK [17:54:55]request: POST /json_proto HTTP/1.0 [17:54:55]Method: POST [17:54:55]URL: /json_proto [17:54:55]Method is POST - this is cgi request [17:54:55]url: /json_proto [17:54:55]query_string will be loaded in cgi processing [17:54:55]execute_cgi json_proto POST (null) [17:54:55]execute_cgi path=json_proto method=POST [17:54:55]POST find Content-Length [17:54:55]Host: 172.17.51.3:8080 [17:54:55]Content-Length: 683 [17:54:55]Content-Type: application/json [17:54:55] [17:54:55]POST finish read [17:54:55]Found Content-Length = 683 [17:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]execute_script... [17:54:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]POST & json_proto [17:54:55]process_json_proto [17:54:55]json parsed OK: [17:54:55]protocol is kg_v1.0 [17:54:55]action value=close_receipt [17:54:55]process_action close_receipt [17:54:55]cmd_close_receipt [17:54:55]MH_GetDate [17:54:55]Write to MH i2c: F0 00 00 BC 64 0F [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 BC 64 00 76 38 19 67 04 C1 95 66 06 [17:54:55]GetLastDocTimeStamp 1729706021 [17:54:55]current date 1729706102 [17:54:55]FM_GetShiftState [17:54:55]SAM_PROTO_GetShiftState [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 13 01 00 [17:54:55]Write to MH i2c: E2 08 00 BD 64 80 13 01 00 00 00 00 00 9E [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0E 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0E 00 BD 64 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 58 [17:54:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_GetShiftState done [17:54:55]FM_GetShiftState done [17:54:55]opened in 1729643755 [17:54:55]opened+sec_in_day 1729730155 [17:54:55]quantity*price = 50025 [17:54:55]sum+1 = 50027 [17:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 189 23.10.2024 17:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31245 ФПД: 108933650728184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175502&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31245&fm=108933650728184&tin=02508201610067®Number=0000000000186857&sum=50000 [17:54:56]StoreToDocumentArchive [17:54:56]shift 117 fd 31245 [17:54:56]save to /storage/0117/doc_00031245 [17:54:56]save last doc name /storage/0117/doc_00031245 to /storage/kkm_last_doc_name [17:54:56]save OK [17:54:56]Clear old archive folders... [17:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:54:56]tlvbuf is 00D37610 [17:54:56]SAM_PROTO_ClearQueue [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 09 00 00 [17:54:56]Write to MH i2c: E2 08 00 CA 64 80 09 00 00 00 00 00 00 A0 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 CA 64 00 90 00 A2 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_ClearQueue done [17:54:56]KKMCreateOFDPacket [17:54:56]OFDProtocolAddRootSTLVToBuf [17:54:56]FM_MakeSignedData [17:54:56]FM_MakeSignedData [17:54:56]SAM_PROTO_SignData [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 01 02 [17:54:56]Write to MH i2c: E2 08 00 CB 64 80 0D 01 02 00 00 00 00 A8 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 CB 64 00 90 00 A3 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=255 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 76 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 7A 00 [17:54:56]Write to MH i2c: E2 02 01 CC 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 76 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 7A 00 00 00 99 [17:54:56]OFD Sender: No OFD packet to send [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 CC 64 00 90 00 A4 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=16 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 63 13 17 8E 44 F8 [17:54:56]Write to MH i2c: E2 13 00 CD 64 80 0D 02 02 0B 00 00 35 04 06 00 63 13 17 8E 44 F8 00 00 57 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 CD 64 00 90 00 A5 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 03 02 [17:54:56]Write to MH i2c: E2 08 00 CE 64 80 0D 03 02 00 00 00 00 AD [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 CE 64 00 77 04 F7 85 39 4B A4 D8 90 00 A5 [17:54:56]RAPDU: 77 04 F7 85 39 4B A4 D8 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_SignData done [17:54:56]FM_MakeSignedData done [17:54:56]CreateOFDProtocolMessage [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 11 00 00 [17:54:56]Write to MH i2c: E2 08 00 CF 64 80 11 00 00 00 00 00 00 AD [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 CF 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [17:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:54:56]wFMCommunicate OK [17:54:56]CreateOFDProtocolMessage done [17:54:56]OFDSenderStorePacket 31245 [17:54:56]StoreOFDPacket docnum=31245 [17:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 AA 2A 0D 01 30 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 76 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 7A 00 00 35 04 06 00 63 13 17 8E 44 F8 77 04 F7 85 39 4B A4 D8 [17:54:56]CheckFolder [17:54:56]dirname=/storage/ofd_packets [17:54:56]CheckFolder done [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00031245 [17:54:56]NVStorageSaveData ofd_packets/00031245 [17:54:56]File name is /storage/ofd_packets/00031245 [17:54:56]Write 307 bytes [17:54:56]NVStorageSaveData done [17:54:56]OFDSenderStorePacket done [17:54:56]KKMCreateOFDPacket done [17:54:56]NVStorageSaveData kkm_last_timestamp [17:54:56]File name is /storage/kkm_last_timestamp [17:54:56]Write 4 bytes [17:54:56]NVStorageSaveData done [17:54:56]ExternCall_PrintAddStr [17:54:56]wPrintStart [17:54:56]Write to MH i2c: 01 00 00 D0 64 34 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 D0 64 00 00 00 00 00 FF 0F 49 [17:54:56]RasterBufferAndPrint [17:54:56]line Счет N : (1)343693 [17:54:56]line ИНН: 02508201610067 [17:54:56]line Контрольно-Кассовый Чек [17:54:56]line ПРОДАЖА [17:54:56]line ТРК (МРК, ГНК) : 61 [17:54:56]line Товар: 2710194210 [17:54:56]line D-ENERGY Дт-К-2 [17:54:56]line 6.480 * 77.20 [17:54:56]line = 500.26 [17:54:56]line НДС 12% НСП 1% [17:54:56]line > о реализуемом товаре [17:54:56]line ОКРУГЛЕНИЕ: -0.26 [17:54:56]line ИТОГО: 500.00 [17:54:56]line Внесено: 500.00 [17:54:56]line СДАЧА: 0.00 [17:54:56]line НСП 1% : 4.43 [17:54:56]line НДС 12% : 53.12 [17:54:56]line Наличными: 500.00 [17:54:56]line Безнал.: 0.00 [17:54:56]line Место: АЗС № 78 "Партнер Нефть" [17:54:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:54:56]line СНО: Общий режим [17:54:56]line Чек 189 23.10.2024 17:55 [17:54:56]line Смена: 117 ФФД: 1.0 [17:54:56]line ЗНМ: 0300000137 [17:54:56]line РНМ: 0000000000186857 [17:54:56]line Версия ККМ: v1.0 [17:54:56]line ФМ: 0000000002094219 [17:54:56]line ФД: 31245 [17:54:56]line ФПД: 108933650728184 [17:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175502&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31245&fm=108933650728184&tin=02508201610067®Number=0000000000186857&sum=50000 [17:54:57]OFD Sender: Processing packet 31245 [packets to send 11, broken 10] [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00031245 [17:54:57]OFD Sender: To server: pG, [17:54:57]CommunicateWithHost lk.salyk.kg:30040 [17:54:57]ConnectInit lk.salyk.kg [17:54:57]written 0, free lines is 4095 [17:54:57]Connected sock=10 [17:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 AA 2A 0D 01 30 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 76 38 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 7A 00 00 35 04 06 00 63 13 17 8E 44 F8 77 04 F7 85 39 4B A4 D8 [17:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3E 0D 47 00 B4 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 7A 00 00 F4 03 04 00 F0 E2 18 67 B6 04 01 00 00 1A AD B9 BF 7A CB C8 E0 [17:54:57]CommunicateWithHost err = 0 [17:54:57]CheckOFDResponse [17:54:57]1017 (14) - 77093643461234 [17:54:57]1041 (16) - 0000000002094219 [17:54:57]1040 (4) - 31245 [17:54:57]1012 (4) - 23.10.2024 11:50 [17:54:57]1206 (1) - 0 [17:54:57]OFD Sender: Remove packet 31245 [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00031245 [17:54:57]NVStorageDeleteData [17:54:57]Write to MH i2c: 01 00 00 FB 64 5F [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 FB 64 00 00 00 00 00 F4 0C 66 [17:54:57]RasterBufferAndPrint [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]written 0, free lines is 3322 [17:54:57]MH_Cut [17:54:57]Write to MH i2c: D1 01 00 02 65 01 39 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 02 65 00 38 [17:54:57]Write to MH i2c: 01 00 00 03 65 68 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:58]OFD Sender: No OFD packet to send [17:54:58]*** Cut start [17:54:58]*** Partial cut [17:54:58]*** CUTSNS_PIN = 1 [17:54:58]*** CUTSNS_PIN = 0 [17:54:58]*** Brake cut motor [17:54:58]Read from MH i2c: 01 [17:54:58]MH_I2C_Read... [17:54:58]*** Stop cut motor [17:54:59]*** Cut end [17:54:59]Read from MH i2c: 01 07 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: 01 07 00 03 65 00 00 00 00 00 FF 0F 7D [17:54:59]process_action close_receipt done [17:54:59]requested_data is exist [17:54:59]produce_requested_data [17:54:59]requested_item fm.sn is exist - process it [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 11 00 00 [17:54:59]Write to MH i2c: E2 08 00 04 65 80 11 00 00 00 00 00 00 E3 [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 04 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [17:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:54:59]wFMCommunicate OK [17:54:59]requested_item fd.num is exist - process it [17:54:59]SAM_PROTO_GetFieldsCounters [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 00 00 [17:54:59]Write to MH i2c: E2 08 00 05 65 80 13 00 00 00 00 00 00 E6 [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 05 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetFieldsCounters done [17:54:59]requested_item shift.num is exist - process it [17:54:59]requested_item shift.opened is exist - process it [17:54:59]req_shift_opened [17:54:59]FM_GetShiftState [17:54:59]SAM_PROTO_GetShiftState [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 01 00 [17:54:59]Write to MH i2c: E2 08 00 06 65 80 13 01 00 00 00 00 00 E8 [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 06 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A2 [17:54:59]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetShiftState done [17:54:59]FM_GetShiftState done [17:54:59]req_shift_opened done [17:54:59]requested_item shift.open_date is exist - process it [17:54:59]req_shift_open_date [17:54:59]req_shift_open_date done [17:54:59]produce_requested_data done [17:54:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31245,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:54:59]process_action_free close_receipt [17:54:59]json_value_free [17:54:59]json_value_free done [17:54:59]process_json_proto returns [17:54:59]Send response to host [17:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31245,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:54:59]free response buf [17:54:59]execute_script done [17:54:59]execute_script returns [17:54:59]free content buf [17:54:59]Sock 7.Close socket [17:54:59]Sock 7.Thread stoped [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]accept exits with 9 [17:57:13]New connection [17:57:13]New thread 3067043172 created [17:57:13]Thread 3066899812 joined [17:57:13]Waiting for new connection... [17:57:13] Sock 9.Parse request [17:57:13]Sock 9.Check first char [17:57:13]Sock 9.First char is OK [17:57:13]request: POST /json_proto HTTP/1.0 [17:57:13]Method: POST [17:57:13]URL: /json_proto [17:57:13]Method is POST - this is cgi request [17:57:13]url: /json_proto [17:57:13]query_string will be loaded in cgi processing [17:57:13]execute_cgi json_proto POST (null) [17:57:13]execute_cgi path=json_proto method=POST [17:57:13]POST find Content-Length [17:57:13]Host: 172.17.51.3:8080 [17:57:13]Content-Length: 677 [17:57:13]Content-Type: application/json [17:57:13] [17:57:13]POST finish read [17:57:13]Found Content-Length = 677 [17:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:13]execute_script... [17:57:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:13]POST & json_proto [17:57:13]process_json_proto [17:57:13]json parsed OK: [17:57:13]protocol is kg_v1.0 [17:57:13]action value=close_receipt [17:57:13]process_action close_receipt [17:57:13]cmd_close_receipt [17:57:13]MH_GetDate [17:57:13]Write to MH i2c: F0 00 00 07 65 5B [17:57:13]Write i2c OK [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: F0 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: F0 09 00 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: F0 09 00 07 65 00 00 39 19 67 04 C1 95 66 DD [17:57:13]GetLastDocTimeStamp 1729706102 [17:57:13]current date 1729706240 [17:57:13]FM_GetShiftState [17:57:13]SAM_PROTO_GetShiftState [17:57:13]wFMCommunicate request_size=4 [17:57:13]MH_SAM_APDU [17:57:13]CAPDU: 80 13 01 00 [17:57:13]Write to MH i2c: E2 08 00 08 65 80 13 01 00 00 00 00 00 EA [17:57:13]Write i2c OK [17:57:13]MH_I2C_Read... [17:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:13]Read from MH i2c: E2 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: E2 0E 00 [17:57:13]MH_I2C_Read... [17:57:13]Read from MH i2c: E2 0E 00 08 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A4 [17:57:13]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:57:13]wFMCommunicate OK [17:57:13]SAM_PROTO_GetShiftState done [17:57:13]FM_GetShiftState done [17:57:13]opened in 1729643755 [17:57:13]opened+sec_in_day 1729730155 [17:57:13]quantity*price = 40006 [17:57:13]sum+1 = 40007 [17:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 190 23.10.2024 17:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31246 ФПД: 177274825176605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175720&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31246&fm=177274825176605&tin=02508201610067®Number=0000000000186857&sum=40000 [17:57:14]StoreToDocumentArchive [17:57:14]shift 117 fd 31246 [17:57:14]save to /storage/0117/doc_00031246 [17:57:14]save last doc name /storage/0117/doc_00031246 to /storage/kkm_last_doc_name [17:57:14]save OK [17:57:14]Clear old archive folders... [17:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:14]tlvbuf is 00CCFF80 [17:57:14]SAM_PROTO_ClearQueue [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 09 00 00 [17:57:14]Write to MH i2c: E2 08 00 15 65 80 09 00 00 00 00 00 00 EC [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 15 65 00 90 00 EE [17:57:14]RAPDU: 90 00 [17:57:14]wFMCommunicate OK [17:57:14]SAM_PROTO_ClearQueue done [17:57:14]KKMCreateOFDPacket [17:57:14]OFDProtocolAddRootSTLVToBuf [17:57:14]FM_MakeSignedData [17:57:14]FM_MakeSignedData [17:57:14]SAM_PROTO_SignData [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 0D 01 02 [17:57:14]Write to MH i2c: E2 08 00 16 65 80 0D 01 02 00 00 00 00 F4 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 16 65 00 90 00 EF [17:57:14]RAPDU: 90 00 [17:57:14]wFMCommunicate OK [17:57:14]wFMCommunicate request_size=255 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 00 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 7A 00 00 35 04 06 00 A1 [17:57:14]Write to MH i2c: E2 02 01 17 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 00 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 7A 00 00 35 04 06 00 A1 00 00 69 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 17 65 00 90 00 F0 [17:57:14]RAPDU: 90 00 [17:57:14]wFMCommunicate OK [17:57:14]wFMCommunicate request_size=10 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 0D 02 02 05 3B 02 FB 76 1D [17:57:14]Write to MH i2c: E2 0D 00 18 65 80 0D 02 02 05 00 3B 02 FB 76 1D 00 00 CC [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 03 00 18 65 00 90 00 F1 [17:57:14]RAPDU: 90 00 [17:57:14]wFMCommunicate OK [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 0D 03 02 [17:57:14]Write to MH i2c: E2 08 00 19 65 80 0D 03 02 00 00 00 00 F9 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0B 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 0B 00 19 65 00 EF 3B 40 F4 3C D6 3B 86 90 00 2B [17:57:14]RAPDU: EF 3B 40 F4 3C D6 3B 86 90 00 [17:57:14]wFMCommunicate OK [17:57:14]SAM_PROTO_SignData done [17:57:14]FM_MakeSignedData done [17:57:14]CreateOFDProtocolMessage [17:57:14]wFMCommunicate request_size=4 [17:57:14]MH_SAM_APDU [17:57:14]CAPDU: 80 11 00 00 [17:57:14]Write to MH i2c: E2 08 00 1A 65 80 11 00 00 00 00 00 00 F9 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:14]Read from MH i2c: E2 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 17 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: E2 17 00 1A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [17:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:57:14]wFMCommunicate OK [17:57:14]CreateOFDProtocolMessage done [17:57:14]OFDSenderStorePacket 31246 [17:57:14]StoreOFDPacket docnum=31246 [17:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 51 76 07 01 D3 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 00 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 7A 00 00 35 04 06 00 A1 3B 02 FB 76 1D EF 3B 40 F4 3C D6 3B 86 [17:57:14]CheckFolder [17:57:14]dirname=/storage/ofd_packets [17:57:14]CheckFolder done [17:57:14]ProducePacketName [17:57:14]name=ofd_packets/00031246 [17:57:14]NVStorageSaveData ofd_packets/00031246 [17:57:14]File name is /storage/ofd_packets/00031246 [17:57:14]Write 301 bytes [17:57:14]NVStorageSaveData done [17:57:14]OFDSenderStorePacket done [17:57:14]KKMCreateOFDPacket done [17:57:14]NVStorageSaveData kkm_last_timestamp [17:57:14]File name is /storage/kkm_last_timestamp [17:57:14]Write 4 bytes [17:57:14]NVStorageSaveData done [17:57:14]ExternCall_PrintAddStr [17:57:14]wPrintStart [17:57:14]Write to MH i2c: 01 00 00 1B 65 80 [17:57:14]Write i2c OK [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: 01 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: 01 07 00 [17:57:14]MH_I2C_Read... [17:57:14]Read from MH i2c: 01 07 00 1B 65 00 00 00 00 00 FF 0F 95 [17:57:14]RasterBufferAndPrint [17:57:14]line Счет N : (1)343694 [17:57:14]line ИНН: 02508201610067 [17:57:14]line Контрольно-Кассовый Чек [17:57:14]line ПРОДАЖА [17:57:14]line ТРК (МРК, ГНК) : 53 [17:57:14]line Товар: 2710124130 [17:57:14]line Аи-92-К-2 [17:57:14]line 5.980 * 66.90 [17:57:14]line = 400.06 [17:57:14]line НДС 12% НСП 1% [17:57:14]line > о реализуемом товаре [17:57:14]line ОКРУГЛЕНИЕ: -0.06 [17:57:14]line ИТОГО: 400.00 [17:57:14]line Внесено: 400.00 [17:57:14]line СДАЧА: 0.00 [17:57:14]line НСП 1% : 3.54 [17:57:14]line НДС 12% : 42.48 [17:57:14]line Наличными: 400.00 [17:57:14]line Безнал.: 0.00 [17:57:14]line Место: АЗС № 78 "Партнер Нефть" [17:57:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:57:14]line СНО: Общий режим [17:57:14]line Чек 190 23.10.2024 17:57 [17:57:14]line Смена: 117 ФФД: 1.0 [17:57:14]line ЗНМ: 0300000137 [17:57:14]line РНМ: 0000000000186857 [17:57:14]line Версия ККМ: v1.0 [17:57:14]line ФМ: 0000000002094219 [17:57:14]line ФД: 31246 [17:57:14]line ФПД: 177274825176605 [17:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175720&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31246&fm=177274825176605&tin=02508201610067®Number=0000000000186857&sum=40000 [17:57:15]OFD Sender: Processing packet 31246 [packets to send 11, broken 10] [17:57:15]ProducePacketName [17:57:15]name=ofd_packets/00031246 [17:57:15]OFD Sender: To server: pG, [17:57:15]CommunicateWithHost lk.salyk.kg:30040 [17:57:15]ConnectInit lk.salyk.kg [17:57:15]written 0, free lines is 4095 [17:57:15]Connected sock=11 [17:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 51 76 07 01 D3 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 00 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 7A 00 00 35 04 06 00 A1 3B 02 FB 76 1D EF 3B 40 F4 3C D6 3B 86 [17:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E2 EB 47 00 DC 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 7A 00 00 F4 03 04 00 7A E3 18 67 B6 04 01 00 00 A7 F7 01 A6 DE 62 9A B6 [17:57:15]CommunicateWithHost err = 0 [17:57:15]CheckOFDResponse [17:57:15]1017 (14) - 77093643461234 [17:57:15]1041 (16) - 0000000002094219 [17:57:15]1040 (4) - 31246 [17:57:15]1012 (4) - 23.10.2024 11:52 [17:57:15]1206 (1) - 0 [17:57:15]OFD Sender: Remove packet 31246 [17:57:15]ProducePacketName [17:57:15]name=ofd_packets/00031246 [17:57:15]NVStorageDeleteData [17:57:15]Write to MH i2c: 01 00 00 46 65 AB [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: 01 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: 01 07 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: 01 07 00 46 65 00 00 00 00 00 EB 0C A9 [17:57:15]RasterBufferAndPrint [17:57:15]line [17:57:15]line [17:57:15]line [17:57:15]line [17:57:15]line [17:57:15]written 0, free lines is 3314 [17:57:15]MH_Cut [17:57:15]Write to MH i2c: D1 01 00 4D 65 01 84 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: D1 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: D1 01 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: D1 01 00 4D 65 00 83 [17:57:15]Write to MH i2c: 01 00 00 4E 65 B3 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:16]OFD Sender: No OFD packet to send [17:57:16]*** Cut start [17:57:16]*** Partial cut [17:57:16]*** CUTSNS_PIN = 1 [17:57:16]*** CUTSNS_PIN = 0 [17:57:16]*** Brake cut motor [17:57:16]Read from MH i2c: 01 [17:57:16]MH_I2C_Read... [17:57:16]*** Stop cut motor [17:57:16]*** Cut end [17:57:16]Read from MH i2c: 01 07 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: 01 07 00 4E 65 00 00 00 00 00 FF 0F C8 [17:57:16]process_action close_receipt done [17:57:16]requested_data is exist [17:57:16]produce_requested_data [17:57:16]requested_item fm.sn is exist - process it [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 11 00 00 [17:57:16]Write to MH i2c: E2 08 00 4F 65 80 11 00 00 00 00 00 00 2E [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 17 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 17 00 4F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [17:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:57:16]wFMCommunicate OK [17:57:16]requested_item fd.num is exist - process it [17:57:16]SAM_PROTO_GetFieldsCounters [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 13 00 00 [17:57:16]Write to MH i2c: E2 08 00 50 65 80 13 00 00 00 00 00 00 31 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 62 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 62 00 50 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:17]wFMCommunicate OK [17:57:17]SAM_PROTO_GetFieldsCounters done [17:57:17]requested_item shift.num is exist - process it [17:57:17]requested_item shift.opened is exist - process it [17:57:17]req_shift_opened [17:57:17]FM_GetShiftState [17:57:17]SAM_PROTO_GetShiftState [17:57:17]wFMCommunicate request_size=4 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 13 01 00 [17:57:17]Write to MH i2c: E2 08 00 51 65 80 13 01 00 00 00 00 00 33 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 0E 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 0E 00 51 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 ED [17:57:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:57:17]wFMCommunicate OK [17:57:17]SAM_PROTO_GetShiftState done [17:57:17]FM_GetShiftState done [17:57:17]req_shift_opened done [17:57:17]requested_item shift.open_date is exist - process it [17:57:17]req_shift_open_date [17:57:17]req_shift_open_date done [17:57:17]produce_requested_data done [17:57:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31246,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:57:17]process_action_free close_receipt [17:57:17]json_value_free [17:57:17]json_value_free done [17:57:17]process_json_proto returns [17:57:17]Send response to host [17:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31246,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:57:17]free response buf [17:57:17]execute_script done [17:57:17]execute_script returns [17:57:17]free content buf [17:57:17]Sock 9.Close socket [17:57:17]Sock 9.Thread stoped [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:50]accept exits with 7 [17:58:50]New connection [17:58:50]New thread 3066899812 created [17:58:50]Thread 3067043172 joined [17:58:50]Waiting for new connection... [17:58:50] Sock 7.Parse request [17:58:50]Sock 7.Check first char [17:58:50]Sock 7.First char is OK [17:58:50]request: POST /json_proto HTTP/1.0 [17:58:50]Method: POST [17:58:50]URL: /json_proto [17:58:50]Method is POST - this is cgi request [17:58:50]url: /json_proto [17:58:50]query_string will be loaded in cgi processing [17:58:50]execute_cgi json_proto POST (null) [17:58:50]execute_cgi path=json_proto method=POST [17:58:50]POST find Content-Length [17:58:50]Host: 172.17.51.3:8080 [17:58:50]Content-Length: 677 [17:58:50]Content-Type: application/json [17:58:50] [17:58:50]POST finish read [17:58:50]Found Content-Length = 677 [17:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:50]execute_script... [17:58:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:50]POST & json_proto [17:58:50]process_json_proto [17:58:50]json parsed OK: [17:58:50]protocol is kg_v1.0 [17:58:50]action value=close_receipt [17:58:50]process_action close_receipt [17:58:50]cmd_close_receipt [17:58:50]MH_GetDate [17:58:50]Write to MH i2c: F0 00 00 52 65 A6 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 52 65 00 62 39 19 67 04 C1 95 66 8A [17:58:50]GetLastDocTimeStamp 1729706240 [17:58:50]current date 1729706338 [17:58:50]FM_GetShiftState [17:58:50]SAM_PROTO_GetShiftState [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 01 00 [17:58:50]Write to MH i2c: E2 08 00 53 65 80 13 01 00 00 00 00 00 35 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 53 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EF [17:58:50]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_GetShiftState done [17:58:50]FM_GetShiftState done [17:58:50]opened in 1729643755 [17:58:50]opened+sec_in_day 1729730155 [17:58:50]quantity*price = 35055 [17:58:50]sum+1 = 35057 [17:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 191 23.10.2024 17:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31247 ФПД: 226017445162299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31247&fm=226017445162299&tin=02508201610067®Number=0000000000186857&sum=35000 [17:58:51]StoreToDocumentArchive [17:58:51]shift 117 fd 31247 [17:58:51]save to /storage/0117/doc_00031247 [17:58:51]save last doc name /storage/0117/doc_00031247 to /storage/kkm_last_doc_name [17:58:51]save OK [17:58:51]Clear old archive folders... [17:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:51]tlvbuf is 00D57380 [17:58:51]SAM_PROTO_ClearQueue [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 09 00 00 [17:58:51]Write to MH i2c: E2 08 00 60 65 80 09 00 00 00 00 00 00 37 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 60 65 00 90 00 39 [17:58:51]RAPDU: 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_ClearQueue done [17:58:51]KKMCreateOFDPacket [17:58:51]OFDProtocolAddRootSTLVToBuf [17:58:51]FM_MakeSignedData [17:58:51]FM_MakeSignedData [17:58:51]SAM_PROTO_SignData [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 0D 01 02 [17:58:51]Write to MH i2c: E2 08 00 61 65 80 0D 01 02 00 00 00 00 3F [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 61 65 00 90 00 3A [17:58:51]RAPDU: 90 00 [17:58:51]wFMCommunicate OK [17:58:51]wFMCommunicate request_size=255 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 7A 00 00 35 04 06 00 CD [17:58:51]Write to MH i2c: E2 02 01 62 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 7A 00 00 35 04 06 00 CD 00 00 80 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 62 65 00 90 00 3B [17:58:52]RAPDU: 90 00 [17:58:52]wFMCommunicate OK [17:58:52]wFMCommunicate request_size=10 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 0D 02 02 05 8F C9 88 2D 3B [17:58:52]Write to MH i2c: E2 0D 00 63 65 80 0D 02 02 05 00 8F C9 88 2D 3B 00 00 94 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 63 65 00 90 00 3C [17:58:52]RAPDU: 90 00 [17:58:52]wFMCommunicate OK [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 0D 03 02 [17:58:52]Write to MH i2c: E2 08 00 64 65 80 0D 03 02 00 00 00 00 44 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0B 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0B 00 64 65 00 83 1B 39 74 4C 7C 23 6C 90 00 E7 [17:58:52]RAPDU: 83 1B 39 74 4C 7C 23 6C 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_SignData done [17:58:52]FM_MakeSignedData done [17:58:52]CreateOFDProtocolMessage [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 11 00 00 [17:58:52]Write to MH i2c: E2 08 00 65 65 80 11 00 00 00 00 00 00 44 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 65 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [17:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:58:52]wFMCommunicate OK [17:58:52]CreateOFDProtocolMessage done [17:58:52]OFDSenderStorePacket 31247 [17:58:52]StoreOFDPacket docnum=31247 [17:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 03 59 07 01 9C DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 7A 00 00 35 04 06 00 CD 8F C9 88 2D 3B 83 1B 39 74 4C 7C 23 6C [17:58:52]CheckFolder [17:58:52]dirname=/storage/ofd_packets [17:58:52]CheckFolder done [17:58:52]ProducePacketName [17:58:52]name=ofd_packets/00031247 [17:58:52]NVStorageSaveData ofd_packets/00031247 [17:58:52]File name is /storage/ofd_packets/00031247 [17:58:52]Write 301 bytes [17:58:52]NVStorageSaveData done [17:58:52]OFDSenderStorePacket done [17:58:52]KKMCreateOFDPacket done [17:58:52]NVStorageSaveData kkm_last_timestamp [17:58:52]File name is /storage/kkm_last_timestamp [17:58:52]Write 4 bytes [17:58:52]NVStorageSaveData done [17:58:52]ExternCall_PrintAddStr [17:58:52]wPrintStart [17:58:52]Write to MH i2c: 01 00 00 66 65 CB [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 07 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 07 00 66 65 00 00 00 00 00 FF 0F E0 [17:58:52]RasterBufferAndPrint [17:58:52]line Счет N : (1)343695 [17:58:52]line ИНН: 02508201610067 [17:58:52]line Контрольно-Кассовый Чек [17:58:52]line ПРОДАЖА [17:58:52]line ТРК (МРК, ГНК) : 33 [17:58:52]line Товар: 2710124130 [17:58:52]line Аи-92-К-2 [17:58:52]line 5.240 * 66.90 [17:58:52]line = 350.56 [17:58:52]line НДС 12% НСП 1% [17:58:52]line > о реализуемом товаре [17:58:52]line ОКРУГЛЕНИЕ: -0.56 [17:58:52]line ИТОГО: 350.00 [17:58:52]line Внесено: 350.00 [17:58:52]line СДАЧА: 0.00 [17:58:52]line НСП 1% : 3.10 [17:58:52]line НДС 12% : 37.23 [17:58:52]line Наличными: 350.00 [17:58:52]line Безнал.: 0.00 [17:58:52]line Место: АЗС № 78 "Партнер Нефть" [17:58:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:58:52]line СНО: Общий режим [17:58:52]line Чек 191 23.10.2024 17:58 [17:58:52]line Смена: 117 ФФД: 1.0 [17:58:52]line ЗНМ: 0300000137 [17:58:52]line РНМ: 0000000000186857 [17:58:52]line Версия ККМ: v1.0 [17:58:52]line ФМ: 0000000002094219 [17:58:52]line ФД: 31247 [17:58:52]line ФПД: 226017445162299 [17:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31247&fm=226017445162299&tin=02508201610067®Number=0000000000186857&sum=35000 [17:58:52]OFD Sender: Processing packet 31247 [packets to send 11, broken 10] [17:58:52]ProducePacketName [17:58:52]name=ofd_packets/00031247 [17:58:52]OFD Sender: To server: pG, [17:58:52]CommunicateWithHost lk.salyk.kg:30040 [17:58:52]ConnectInit lk.salyk.kg [17:58:52]written 0, free lines is 4095 [17:58:52]Connected sock=10 [17:58:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 03 59 07 01 9C DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 62 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 7A 00 00 35 04 06 00 CD 8F C9 88 2D 3B 83 1B 39 74 4C 7C 23 6C [17:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9B AB 47 00 58 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 7A 00 00 F4 03 04 00 DB E3 18 67 B6 04 01 00 00 44 2D A7 9B 41 FF 38 DC [17:58:53]CommunicateWithHost err = 0 [17:58:53]CheckOFDResponse [17:58:53]1017 (14) - 77093643461234 [17:58:53]1041 (16) - 0000000002094219 [17:58:53]1040 (4) - 31247 [17:58:53]1012 (4) - 23.10.2024 11:54 [17:58:53]1206 (1) - 0 [17:58:53]OFD Sender: Remove packet 31247 [17:58:53]ProducePacketName [17:58:53]name=ofd_packets/00031247 [17:58:53]NVStorageDeleteData [17:58:53]Write to MH i2c: 01 00 00 91 65 F6 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 07 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 07 00 91 65 00 00 00 00 00 04 0D 0E [17:58:53]RasterBufferAndPrint [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]written 0, free lines is 3338 [17:58:53]MH_Cut [17:58:53]Write to MH i2c: D1 01 00 98 65 01 CF [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 01 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 01 00 98 65 00 CE [17:58:53]Write to MH i2c: 01 00 00 99 65 FE [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]OFD Sender: No OFD packet to send [17:58:53]*** Cut start [17:58:53]*** Partial cut [17:58:53]*** CUTSNS_PIN = 1 [17:58:53]*** CUTSNS_PIN = 0 [17:58:54]*** Brake cut motor [17:58:54]Read from MH i2c: 01 [17:58:54]MH_I2C_Read... [17:58:54]*** Stop cut motor [17:58:54]*** Cut end [17:58:54]Read from MH i2c: 01 07 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: 01 07 00 99 65 00 00 00 00 00 FF 0F 13 [17:58:54]process_action close_receipt done [17:58:54]requested_data is exist [17:58:54]produce_requested_data [17:58:54]requested_item fm.sn is exist - process it [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 11 00 00 [17:58:54]Write to MH i2c: E2 08 00 9A 65 80 11 00 00 00 00 00 00 79 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 17 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 17 00 9A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [17:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:58:54]wFMCommunicate OK [17:58:54]requested_item fd.num is exist - process it [17:58:54]SAM_PROTO_GetFieldsCounters [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 13 00 00 [17:58:54]Write to MH i2c: E2 08 00 9B 65 80 13 00 00 00 00 00 00 7C [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 62 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 62 00 9B 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [17:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_GetFieldsCounters done [17:58:54]requested_item shift.num is exist - process it [17:58:54]requested_item shift.opened is exist - process it [17:58:54]req_shift_opened [17:58:54]FM_GetShiftState [17:58:54]SAM_PROTO_GetShiftState [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 13 01 00 [17:58:54]Write to MH i2c: E2 08 00 9C 65 80 13 01 00 00 00 00 00 7E [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 9C 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 38 [17:58:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_GetShiftState done [17:58:54]FM_GetShiftState done [17:58:54]req_shift_opened done [17:58:54]requested_item shift.open_date is exist - process it [17:58:54]req_shift_open_date [17:58:54]req_shift_open_date done [17:58:54]produce_requested_data done [17:58:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31247,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [17:58:54]process_action_free close_receipt [17:58:54]json_value_free [17:58:54]json_value_free done [17:58:54]process_json_proto returns [17:58:54]Send response to host [17:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31247,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [17:58:54]free response buf [17:58:54]execute_script done [17:58:54]execute_script returns [17:58:54]free content buf [17:58:54]Sock 7.Close socket [17:58:54]Sock 7.Thread stoped [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:56]accept exits with 9 [17:59:56]New connection [17:59:56]New thread 3067043172 created [17:59:56]Thread 3066899812 joined [17:59:56]Waiting for new connection... [17:59:56] Sock 9.Parse request [17:59:56]Sock 9.Check first char [17:59:56]Sock 9.First char is OK [17:59:56]request: POST /json_proto HTTP/1.0 [17:59:56]Method: POST [17:59:56]URL: /json_proto [17:59:56]Method is POST - this is cgi request [17:59:56]url: /json_proto [17:59:56]query_string will be loaded in cgi processing [17:59:56]execute_cgi json_proto POST (null) [17:59:56]execute_cgi path=json_proto method=POST [17:59:56]POST find Content-Length [17:59:56]Host: 172.17.51.3:8080 [17:59:56]Content-Length: 677 [17:59:56]Content-Type: application/json [17:59:56] [17:59:56]POST finish read [17:59:56]Found Content-Length = 677 [17:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:56]execute_script... [17:59:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:56]POST & json_proto [17:59:56]process_json_proto [17:59:56]json parsed OK: [17:59:56]protocol is kg_v1.0 [17:59:56]action value=close_receipt [17:59:56]process_action close_receipt [17:59:56]cmd_close_receipt [17:59:56]MH_GetDate [17:59:56]Write to MH i2c: F0 00 00 9D 65 F1 [17:59:56]Write i2c OK [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 09 00 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 09 00 9D 65 00 A3 39 19 67 04 C1 95 66 16 [17:59:56]GetLastDocTimeStamp 1729706338 [17:59:56]current date 1729706403 [17:59:56]FM_GetShiftState [17:59:56]SAM_PROTO_GetShiftState [17:59:56]wFMCommunicate request_size=4 [17:59:56]MH_SAM_APDU [17:59:56]CAPDU: 80 13 01 00 [17:59:56]Write to MH i2c: E2 08 00 9E 65 80 13 01 00 00 00 00 00 80 [17:59:56]Write i2c OK [17:59:56]MH_I2C_Read... [17:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:56]Read from MH i2c: E2 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: E2 0E 00 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: E2 0E 00 9E 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3A [17:59:56]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [17:59:56]wFMCommunicate OK [17:59:56]SAM_PROTO_GetShiftState done [17:59:56]FM_GetShiftState done [17:59:56]opened in 1729643755 [17:59:56]opened+sec_in_day 1729730155 [17:59:56]quantity*price = 29034 [17:59:56]sum+1 = 29036 [17:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 192 23.10.2024 18:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31248 ФПД: 155982660520008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180003&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31248&fm=155982660520008&tin=02508201610067®Number=0000000000186857&sum=29000 [17:59:57]StoreToDocumentArchive [17:59:57]shift 117 fd 31248 [17:59:57]save to /storage/0117/doc_00031248 [17:59:57]save last doc name /storage/0117/doc_00031248 to /storage/kkm_last_doc_name [17:59:57]save OK [17:59:57]Clear old archive folders... [17:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:57]tlvbuf is 00CC9810 [17:59:57]SAM_PROTO_ClearQueue [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 09 00 00 [17:59:57]Write to MH i2c: E2 08 00 AB 65 80 09 00 00 00 00 00 00 82 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 AB 65 00 90 00 84 [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]SAM_PROTO_ClearQueue done [17:59:57]KKMCreateOFDPacket [17:59:57]OFDProtocolAddRootSTLVToBuf [17:59:57]FM_MakeSignedData [17:59:57]FM_MakeSignedData [17:59:57]SAM_PROTO_SignData [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 01 02 [17:59:57]Write to MH i2c: E2 08 00 AC 65 80 0D 01 02 00 00 00 00 8A [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 AC 65 00 90 00 85 [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=255 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 7A 00 00 35 04 06 00 8D [17:59:57]Write to MH i2c: E2 02 01 AD 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 7A 00 00 35 04 06 00 8D 00 00 E5 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 AD 65 00 90 00 86 [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=10 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 02 02 05 DD 8B 12 48 48 [17:59:57]Write to MH i2c: E2 0D 00 AE 65 80 0D 02 02 05 00 DD 8B 12 48 48 00 00 A1 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 AE 65 00 90 00 87 [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 03 02 [17:59:57]Write to MH i2c: E2 08 00 AF 65 80 0D 03 02 00 00 00 00 8F [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0B 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0B 00 AF 65 00 FD C3 39 19 18 B1 3D EA 90 00 92 [17:59:57]RAPDU: FD C3 39 19 18 B1 3D EA 90 00 [17:59:57]wFMCommunicate OK [17:59:57]SAM_PROTO_SignData done [17:59:57]FM_MakeSignedData done [17:59:57]CreateOFDProtocolMessage [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 11 00 00 [17:59:57]Write to MH i2c: E2 08 00 B0 65 80 11 00 00 00 00 00 00 8F [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:58]Read from MH i2c: E2 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 17 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 17 00 B0 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [17:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:59:58]wFMCommunicate OK [17:59:58]CreateOFDProtocolMessage done [17:59:58]OFDSenderStorePacket 31248 [17:59:58]StoreOFDPacket docnum=31248 [17:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 BE 07 01 B1 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 7A 00 00 35 04 06 00 8D DD 8B 12 48 48 FD C3 39 19 18 B1 3D EA [17:59:58]CheckFolder [17:59:58]dirname=/storage/ofd_packets [17:59:58]CheckFolder done [17:59:58]ProducePacketName [17:59:58]name=ofd_packets/00031248 [17:59:58]NVStorageSaveData ofd_packets/00031248 [17:59:58]File name is /storage/ofd_packets/00031248 [17:59:58]Write 301 bytes [17:59:58]NVStorageSaveData done [17:59:58]OFDSenderStorePacket done [17:59:58]KKMCreateOFDPacket done [17:59:58]NVStorageSaveData kkm_last_timestamp [17:59:58]File name is /storage/kkm_last_timestamp [17:59:58]Write 4 bytes [17:59:58]NVStorageSaveData done [17:59:58]ExternCall_PrintAddStr [17:59:58]wPrintStart [17:59:58]Write to MH i2c: 01 00 00 B1 65 16 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 B1 65 00 00 00 00 00 FF 0F 2B [17:59:58]RasterBufferAndPrint [17:59:58]line Счет N : (1)343696 [17:59:58]line ИНН: 02508201610067 [17:59:58]line Контрольно-Кассовый Чек [17:59:58]line ПРОДАЖА [17:59:58]line ТРК (МРК, ГНК) : 53 [17:59:58]line Товар: 2710124130 [17:59:58]line Аи-92-К-2 [17:59:58]line 4.340 * 66.90 [17:59:58]line = 290.35 [17:59:58]line НДС 12% НСП 1% [17:59:58]line > о реализуемом товаре [17:59:58]line ОКРУГЛЕНИЕ: -0.35 [17:59:58]line ИТОГО: 290.00 [17:59:58]line Внесено: 290.00 [17:59:58]line СДАЧА: 0.00 [17:59:58]line НСП 1% : 2.57 [17:59:58]line НДС 12% : 30.83 [17:59:58]line Наличными: 290.00 [17:59:58]line Безнал.: 0.00 [17:59:58]line Место: АЗС № 78 "Партнер Нефть" [17:59:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:59:58]line СНО: Общий режим [17:59:58]line Чек 192 23.10.2024 18:00 [17:59:58]line Смена: 117 ФФД: 1.0 [17:59:58]line ЗНМ: 0300000137 [17:59:58]line РНМ: 0000000000186857 [17:59:58]line Версия ККМ: v1.0 [17:59:58]line ФМ: 0000000002094219 [17:59:58]line ФД: 31248 [17:59:58]line ФПД: 155982660520008 [17:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180003&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31248&fm=155982660520008&tin=02508201610067®Number=0000000000186857&sum=29000 [17:59:58]OFD Sender: Processing packet 31248 [packets to send 11, broken 10] [17:59:58]ProducePacketName [17:59:58]name=ofd_packets/00031248 [17:59:58]OFD Sender: To server: pG, [17:59:58]CommunicateWithHost lk.salyk.kg:30040 [17:59:58]ConnectInit lk.salyk.kg [17:59:58]written 0, free lines is 4095 [17:59:58]Connected sock=10 [17:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 BE 07 01 B1 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 39 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 7A 00 00 35 04 06 00 8D DD 8B 12 48 48 FD C3 39 19 18 B1 3D EA [17:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 30 42 47 00 F8 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 7A 00 00 F4 03 04 00 1D E4 18 67 B6 04 01 00 00 4C 4B 16 CE 23 02 9D 5E [17:59:58]CommunicateWithHost err = 0 [17:59:58]CheckOFDResponse [17:59:58]1017 (14) - 77093643461234 [17:59:58]1041 (16) - 0000000002094219 [17:59:58]1040 (4) - 31248 [17:59:58]1012 (4) - 23.10.2024 11:55 [17:59:58]1206 (1) - 0 [17:59:58]OFD Sender: Remove packet 31248 [17:59:58]ProducePacketName [17:59:58]name=ofd_packets/00031248 [17:59:58]NVStorageDeleteData [17:59:58]Write to MH i2c: 01 00 00 DC 65 41 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 DC 65 00 00 00 00 00 F7 0C 4B [17:59:58]RasterBufferAndPrint [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]written 0, free lines is 3329 [17:59:58]MH_Cut [17:59:58]Write to MH i2c: D1 01 00 E3 65 01 1A [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: D1 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: D1 01 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: D1 01 00 E3 65 00 19 [17:59:58]Write to MH i2c: 01 00 00 E4 65 49 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:59]OFD Sender: No OFD packet to send [17:59:59]*** Cut start [17:59:59]*** Partial cut [17:59:59]*** CUTSNS_PIN = 1 [17:59:59]*** CUTSNS_PIN = 0 [17:59:59]*** Brake cut motor [18:00:00]Read from MH i2c: 01 [18:00:00]MH_I2C_Read... [18:00:00]*** Stop cut motor [18:00:00]*** Cut end [18:00:00]Read from MH i2c: 01 07 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: 01 07 00 E4 65 00 00 00 00 00 FF 0F 5E [18:00:00]process_action close_receipt done [18:00:00]requested_data is exist [18:00:00]produce_requested_data [18:00:00]requested_item fm.sn is exist - process it [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 11 00 00 [18:00:00]Write to MH i2c: E2 08 00 E5 65 80 11 00 00 00 00 00 00 C4 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 17 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 17 00 E5 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [18:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:00:00]wFMCommunicate OK [18:00:00]requested_item fd.num is exist - process it [18:00:00]SAM_PROTO_GetFieldsCounters [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 13 00 00 [18:00:00]Write to MH i2c: E2 08 00 E6 65 80 13 00 00 00 00 00 00 C7 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 62 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 62 00 E6 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:00]wFMCommunicate OK [18:00:00]SAM_PROTO_GetFieldsCounters done [18:00:00]requested_item shift.num is exist - process it [18:00:00]requested_item shift.opened is exist - process it [18:00:00]req_shift_opened [18:00:00]FM_GetShiftState [18:00:00]SAM_PROTO_GetShiftState [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 13 01 00 [18:00:00]Write to MH i2c: E2 08 00 E7 65 80 13 01 00 00 00 00 00 C9 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 0E 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 0E 00 E7 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 83 [18:00:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:00:00]wFMCommunicate OK [18:00:00]SAM_PROTO_GetShiftState done [18:00:00]FM_GetShiftState done [18:00:00]req_shift_opened done [18:00:00]requested_item shift.open_date is exist - process it [18:00:00]req_shift_open_date [18:00:00]req_shift_open_date done [18:00:00]produce_requested_data done [18:00:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31248,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:00:00]process_action_free close_receipt [18:00:00]json_value_free [18:00:00]json_value_free done [18:00:00]process_json_proto returns [18:00:00]Send response to host [18:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31248,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:00:00]free response buf [18:00:00]execute_script done [18:00:00]execute_script returns [18:00:00]free content buf [18:00:00]Sock 9.Close socket [18:00:00]Sock 9.Thread stoped [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:42]accept exits with 7 [18:02:42]New connection [18:02:42]New thread 3066899812 created [18:02:42]Thread 3067043172 joined [18:02:42]Waiting for new connection... [18:02:42] Sock 7.Parse request [18:02:42]Sock 7.Check first char [18:02:42]Sock 7.First char is OK [18:02:42]request: POST /json_proto HTTP/1.0 [18:02:42]Method: POST [18:02:42]URL: /json_proto [18:02:42]Method is POST - this is cgi request [18:02:42]url: /json_proto [18:02:42]query_string will be loaded in cgi processing [18:02:42]execute_cgi json_proto POST (null) [18:02:42]execute_cgi path=json_proto method=POST [18:02:42]POST find Content-Length [18:02:42]Host: 172.17.51.3:8080 [18:02:42]Content-Length: 688 [18:02:42]Content-Type: application/json [18:02:42] [18:02:42]POST finish read [18:02:42]Found Content-Length = 688 [18:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 24.110, "sum" : 1861.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1861.00, "total" : 1861.00, "payments": [ { "type": 0, "sum" : 1861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:42]execute_script... [18:02:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 24.110, "sum" : 1861.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1861.00, "total" : 1861.00, "payments": [ { "type": 0, "sum" : 1861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:42]POST & json_proto [18:02:42]process_json_proto [18:02:42]json parsed OK: [18:02:42]protocol is kg_v1.0 [18:02:42]action value=close_receipt [18:02:42]process_action close_receipt [18:02:42]cmd_close_receipt [18:02:42]MH_GetDate [18:02:42]Write to MH i2c: F0 00 00 E8 65 3C [18:02:42]Write i2c OK [18:02:42]MH_I2C_Read... [18:02:42]Read from MH i2c: F0 [18:02:42]MH_I2C_Read... [18:02:42]Read from MH i2c: F0 09 00 [18:02:42]MH_I2C_Read... [18:02:42]Read from MH i2c: F0 09 00 E8 65 00 4A 3A 19 67 04 C1 95 66 09 [18:02:42]GetLastDocTimeStamp 1729706403 [18:02:42]current date 1729706570 [18:02:42]FM_GetShiftState [18:02:42]SAM_PROTO_GetShiftState [18:02:42]wFMCommunicate request_size=4 [18:02:42]MH_SAM_APDU [18:02:42]CAPDU: 80 13 01 00 [18:02:42]Write to MH i2c: E2 08 00 E9 65 80 13 01 00 00 00 00 00 CB [18:02:42]Write i2c OK [18:02:42]MH_I2C_Read... [18:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:42]Read from MH i2c: E2 [18:02:42]MH_I2C_Read... [18:02:42]Read from MH i2c: E2 0E 00 [18:02:42]MH_I2C_Read... [18:02:42]Read from MH i2c: E2 0E 00 E9 65 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 85 [18:02:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:02:42]wFMCommunicate OK [18:02:42]SAM_PROTO_GetShiftState done [18:02:42]FM_GetShiftState done [18:02:42]opened in 1729643755 [18:02:42]opened+sec_in_day 1729730155 [18:02:42]quantity*price = 186129 [18:02:42]sum+1 = 186130 [18:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1861.00 Внесено: 1861.00 СДАЧА: 0.00 НСП 1% : 16.47 НДС 12% : 197.66 Наличными: 1861.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 193 23.10.2024 18:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31249 ФПД: 25900011190249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31249&fm=25900011190249&tin=02508201610067®Number=0000000000186857&sum=186100 [18:02:43]StoreToDocumentArchive [18:02:43]shift 117 fd 31249 [18:02:43]save to /storage/0117/doc_00031249 [18:02:43]save last doc name /storage/0117/doc_00031249 to /storage/kkm_last_doc_name [18:02:43]save OK [18:02:43]Clear old archive folders... [18:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:02:43]tlvbuf is 00D9C6B0 [18:02:43]SAM_PROTO_ClearQueue [18:02:43]wFMCommunicate request_size=4 [18:02:43]MH_SAM_APDU [18:02:43]CAPDU: 80 09 00 00 [18:02:43]Write to MH i2c: E2 08 00 F6 65 80 09 00 00 00 00 00 00 CD [18:02:43]Write i2c OK [18:02:43]MH_I2C_Read... [18:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:43]Read from MH i2c: E2 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 03 00 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 03 00 F6 65 00 90 00 CF [18:02:43]RAPDU: 90 00 [18:02:43]wFMCommunicate OK [18:02:43]SAM_PROTO_ClearQueue done [18:02:43]KKMCreateOFDPacket [18:02:43]OFDProtocolAddRootSTLVToBuf [18:02:43]FM_MakeSignedData [18:02:43]FM_MakeSignedData [18:02:43]SAM_PROTO_SignData [18:02:43]wFMCommunicate request_size=4 [18:02:43]MH_SAM_APDU [18:02:43]CAPDU: 80 0D 01 02 [18:02:43]Write to MH i2c: E2 08 00 F7 65 80 0D 01 02 00 00 00 00 D5 [18:02:43]Write i2c OK [18:02:43]MH_I2C_Read... [18:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:43]Read from MH i2c: E2 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 03 00 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 03 00 F7 65 00 90 00 D0 [18:02:43]RAPDU: 90 00 [18:02:43]wFMCommunicate OK [18:02:43]wFMCommunicate request_size=255 [18:02:43]MH_SAM_APDU [18:02:43]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2E 5E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 11 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 4D 00 00 00 00 07 04 06 00 F4 D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4A 3A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 7A 00 [18:02:43]Write to MH i2c: E2 02 01 F8 65 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2E 5E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 11 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 4D 00 00 00 00 07 04 06 00 F4 D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4A 3A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 7A 00 00 00 5E [18:02:43]Write i2c OK [18:02:43]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 F8 65 00 90 00 D1 [18:02:44]RAPDU: 90 00 [18:02:44]wFMCommunicate OK [18:02:44]wFMCommunicate request_size=16 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 17 8E 50 F7 77 E9 [18:02:44]Write to MH i2c: E2 13 00 F9 65 80 0D 02 02 0B 00 00 35 04 06 00 17 8E 50 F7 77 E9 00 00 79 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 F9 65 00 90 00 D2 [18:02:44]RAPDU: 90 00 [18:02:44]wFMCommunicate OK [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 0D 03 02 [18:02:44]Write to MH i2c: E2 08 00 FA 65 80 0D 03 02 00 00 00 00 DA [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0B 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0B 00 FA 65 00 68 04 B0 CF 7A 16 4E 8A 90 00 2E [18:02:44]RAPDU: 68 04 B0 CF 7A 16 4E 8A 90 00 [18:02:44]wFMCommunicate OK [18:02:44]SAM_PROTO_SignData done [18:02:44]FM_MakeSignedData done [18:02:44]CreateOFDProtocolMessage [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 11 00 00 [18:02:44]Write to MH i2c: E2 08 00 FB 65 80 11 00 00 00 00 00 00 DA [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 17 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 17 00 FB 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [18:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:02:44]wFMCommunicate OK [18:02:44]CreateOFDProtocolMessage done [18:02:44]OFDSenderStorePacket 31249 [18:02:44]StoreOFDPacket docnum=31249 [18:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A2 99 0D 01 89 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2E 5E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 11 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 4D 00 00 00 00 07 04 06 00 F4 D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4A 3A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 7A 00 00 35 04 06 00 17 8E 50 F7 77 E9 68 04 B0 CF 7A 16 4E 8A [18:02:44]CheckFolder [18:02:44]dirname=/storage/ofd_packets [18:02:44]CheckFolder done [18:02:44]ProducePacketName [18:02:44]name=ofd_packets/00031249 [18:02:44]NVStorageSaveData ofd_packets/00031249 [18:02:44]File name is /storage/ofd_packets/00031249 [18:02:44]Write 307 bytes [18:02:44]NVStorageSaveData done [18:02:44]OFDSenderStorePacket done [18:02:44]KKMCreateOFDPacket done [18:02:44]NVStorageSaveData kkm_last_timestamp [18:02:44]File name is /storage/kkm_last_timestamp [18:02:44]Write 4 bytes [18:02:44]NVStorageSaveData done [18:02:44]ExternCall_PrintAddStr [18:02:44]wPrintStart [18:02:44]Write to MH i2c: 01 00 00 FC 65 61 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: 01 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: 01 07 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: 01 07 00 FC 65 00 00 00 00 00 FF 0F 76 [18:02:44]RasterBufferAndPrint [18:02:44]line Счет N : (1)343697 [18:02:44]line ИНН: 02508201610067 [18:02:44]line Контрольно-Кассовый Чек [18:02:44]line ПРОДАЖА [18:02:44]line ТРК (МРК, ГНК) : 51 [18:02:44]line Товар: 2710194210 [18:02:44]line D-ENERGY Дт-К-2 [18:02:44]line 24.110 * 77.20 [18:02:44]line = 1861.29 [18:02:44]line НДС 12% НСП 1% [18:02:44]line > о реализуемом товаре [18:02:44]line ОКРУГЛЕНИЕ: -0.29 [18:02:44]line ИТОГО: 1861.00 [18:02:44]line Внесено: 1861.00 [18:02:44]line СДАЧА: 0.00 [18:02:44]line НСП 1% : 16.47 [18:02:44]line НДС 12% : 197.66 [18:02:44]line Наличными: 1861.00 [18:02:44]line Безнал.: 0.00 [18:02:44]line Место: АЗС № 78 "Партнер Нефть" [18:02:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:02:44]line СНО: Общий режим [18:02:44]line Чек 193 23.10.2024 18:02 [18:02:44]line Смена: 117 ФФД: 1.0 [18:02:44]line ЗНМ: 0300000137 [18:02:44]line РНМ: 0000000000186857 [18:02:44]line Версия ККМ: v1.0 [18:02:44]line ФМ: 0000000002094219 [18:02:44]line ФД: 31249 [18:02:44]line ФПД: 25900011190249 [18:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31249&fm=25900011190249&tin=02508201610067®Number=0000000000186857&sum=186100 [18:02:44]OFD Sender: Processing packet 31249 [packets to send 11, broken 10] [18:02:44]ProducePacketName [18:02:44]name=ofd_packets/00031249 [18:02:44]OFD Sender: To server: pG, [18:02:44]CommunicateWithHost lk.salyk.kg:30040 [18:02:44]ConnectInit lk.salyk.kg [18:02:44]written 0, free lines is 4095 [18:02:44]Connected sock=10 [18:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A2 99 0D 01 89 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 2E 5E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 11 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 4D 00 00 00 00 07 04 06 00 F4 D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 4A 3A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 7A 00 00 35 04 06 00 17 8E 50 F7 77 E9 68 04 B0 CF 7A 16 4E 8A [18:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 82 DD 47 00 E5 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 32 30 39 34 32 31 39 10 04 04 00 11 7A 00 00 F4 03 04 00 C3 E4 18 67 B6 04 01 00 00 D2 07 9C B0 83 83 D9 7F [18:02:45]CommunicateWithHost err = 0 [18:02:45]CheckOFDResponse [18:02:45]1017 (14) - 77093643461234 [18:02:45]1041 (16) - 0000000002094219 [18:02:45]1040 (4) - 31249 [18:02:45]1012 (4) - 23.10.2024 11:57 [18:02:45]1206 (1) - 0 [18:02:45]OFD Sender: Remove packet 31249 [18:02:45]ProducePacketName [18:02:45]name=ofd_packets/00031249 [18:02:45]NVStorageDeleteData [18:02:45]Write to MH i2c: 01 00 00 27 66 8D [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 27 66 00 00 00 00 00 0D 0D AE [18:02:45]RasterBufferAndPrint [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]written 0, free lines is 3347 [18:02:45]MH_Cut [18:02:45]Write to MH i2c: D1 01 00 2E 66 01 66 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: D1 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: D1 01 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: D1 01 00 2E 66 00 65 [18:02:45]Write to MH i2c: 01 00 00 2F 66 95 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]OFD Sender: No OFD packet to send [18:02:45]*** Cut start [18:02:45]*** Partial cut [18:02:45]*** CUTSNS_PIN = 1 [18:02:45]*** CUTSNS_PIN = 0 [18:02:46]*** Brake cut motor [18:02:46]Read from MH i2c: 01 [18:02:46]MH_I2C_Read... [18:02:46]*** Stop cut motor [18:02:46]*** Cut end [18:02:46]Read from MH i2c: 01 07 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: 01 07 00 2F 66 00 00 00 00 00 FF 0F AA [18:02:46]process_action close_receipt done [18:02:46]requested_data is exist [18:02:46]produce_requested_data [18:02:46]requested_item fm.sn is exist - process it [18:02:46]wFMCommunicate request_size=4 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 11 00 00 [18:02:46]Write to MH i2c: E2 08 00 30 66 80 11 00 00 00 00 00 00 10 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 17 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 17 00 30 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [18:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:02:46]wFMCommunicate OK [18:02:46]requested_item fd.num is exist - process it [18:02:46]SAM_PROTO_GetFieldsCounters [18:02:46]wFMCommunicate request_size=4 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 13 00 00 [18:02:46]Write to MH i2c: E2 08 00 31 66 80 13 00 00 00 00 00 00 13 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 62 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 62 00 31 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:46]wFMCommunicate OK [18:02:46]SAM_PROTO_GetFieldsCounters done [18:02:46]requested_item shift.num is exist - process it [18:02:46]requested_item shift.opened is exist - process it [18:02:46]req_shift_opened [18:02:46]FM_GetShiftState [18:02:46]SAM_PROTO_GetShiftState [18:02:46]wFMCommunicate request_size=4 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 13 01 00 [18:02:46]Write to MH i2c: E2 08 00 32 66 80 13 01 00 00 00 00 00 15 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:46]Read from MH i2c: E2 0E 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 0E 00 32 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CF [18:02:46]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:02:46]wFMCommunicate OK [18:02:46]SAM_PROTO_GetShiftState done [18:02:46]FM_GetShiftState done [18:02:46]req_shift_opened done [18:02:46]requested_item shift.open_date is exist - process it [18:02:46]req_shift_open_date [18:02:46]req_shift_open_date done [18:02:46]produce_requested_data done [18:02:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31249,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:02:46]process_action_free close_receipt [18:02:46]json_value_free [18:02:46]json_value_free done [18:02:46]process_json_proto returns [18:02:46]Send response to host [18:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31249,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:02:46]free response buf [18:02:46]execute_script done [18:02:46]execute_script returns [18:02:46]free content buf [18:02:46]Sock 7.Close socket [18:02:46]Sock 7.Thread stoped [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:54]accept exits with 9 [18:05:54]New connection [18:05:54]New thread 3067043172 created [18:05:54]Thread 3066899812 joined [18:05:54]Waiting for new connection... [18:05:54] Sock 9.Parse request [18:05:54]Sock 9.Check first char [18:05:54]Sock 9.First char is OK [18:05:54]request: POST /json_proto HTTP/1.0 [18:05:54]Method: POST [18:05:54]URL: /json_proto [18:05:54]Method is POST - this is cgi request [18:05:54]url: /json_proto [18:05:54]query_string will be loaded in cgi processing [18:05:54]execute_cgi json_proto POST (null) [18:05:54]execute_cgi path=json_proto method=POST [18:05:54]POST find Content-Length [18:05:54]Host: 172.17.51.3:8080 [18:05:54]Content-Length: 840 [18:05:54]Content-Type: application/json [18:05:54] [18:05:54]POST finish read [18:05:54]Found Content-Length = 840 [18:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:54]execute_script... [18:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:54]POST & json_proto [18:05:54]process_json_proto [18:05:54]json parsed OK: [18:05:54]protocol is kg_v1.0 [18:05:54]action value=close_receipt [18:05:54]process_action close_receipt [18:05:54]cmd_close_receipt [18:05:54]MH_GetDate [18:05:54]Write to MH i2c: F0 00 00 33 66 88 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 33 66 00 0A 3B 19 67 04 C1 95 66 16 [18:05:54]GetLastDocTimeStamp 1729706570 [18:05:54]current date 1729706762 [18:05:54]FM_GetShiftState [18:05:54]SAM_PROTO_GetShiftState [18:05:54]wFMCommunicate request_size=4 [18:05:54]MH_SAM_APDU [18:05:54]CAPDU: 80 13 01 00 [18:05:54]Write to MH i2c: E2 08 00 34 66 80 13 01 00 00 00 00 00 17 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:54]Read from MH i2c: E2 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 34 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D1 [18:05:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:05:54]wFMCommunicate OK [18:05:54]SAM_PROTO_GetShiftState done [18:05:54]FM_GetShiftState done [18:05:54]opened in 1729643755 [18:05:54]opened+sec_in_day 1729730155 [18:05:54]quantity*price = 50041 [18:05:54]sum+1 = 50042 [18:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 194 23.10.2024 18:06 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31250 ФПД: 142135196665189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31250&fm=142135196665189&tin=02508201610067®Number=0000000000186857&sum=50041 [18:05:55]StoreToDocumentArchive [18:05:55]shift 117 fd 31250 [18:05:55]save to /storage/0117/doc_00031250 [18:05:55]save last doc name /storage/0117/doc_00031250 to /storage/kkm_last_doc_name [18:05:55]save OK [18:05:55]Clear old archive folders... [18:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:55]tlvbuf is 00D33960 [18:05:55]SAM_PROTO_ClearQueue [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 09 00 00 [18:05:55]Write to MH i2c: E2 08 00 41 66 80 09 00 00 00 00 00 00 19 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 41 66 00 90 00 1B [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]SAM_PROTO_ClearQueue done [18:05:55]KKMCreateOFDPacket [18:05:55]OFDProtocolAddRootSTLVToBuf [18:05:55]FM_MakeSignedData [18:05:55]FM_MakeSignedData [18:05:55]SAM_PROTO_SignData [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 0D 01 02 [18:05:55]Write to MH i2c: E2 08 00 42 66 80 0D 01 02 00 00 00 00 21 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 42 66 00 90 00 1C [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]wFMCommunicate request_size=255 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 3B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 7A 00 00 35 04 06 00 81 [18:05:55]Write to MH i2c: E2 02 01 43 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 3B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 7A 00 00 35 04 06 00 81 00 00 0D [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 43 66 00 90 00 1D [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]wFMCommunicate request_size=10 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 0D 02 02 05 45 6D E8 45 65 [18:05:56]Write to MH i2c: E2 0D 00 44 66 80 0D 02 02 05 00 45 6D E8 45 65 00 00 72 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 03 00 44 66 00 90 00 1E [18:05:56]RAPDU: 90 00 [18:05:56]wFMCommunicate OK [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 0D 03 02 [18:05:56]Write to MH i2c: E2 08 00 45 66 80 0D 03 02 00 00 00 00 26 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 0B 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 0B 00 45 66 00 1F 0D 4F E3 EF 63 88 60 90 00 BF [18:05:56]RAPDU: 1F 0D 4F E3 EF 63 88 60 90 00 [18:05:56]wFMCommunicate OK [18:05:56]SAM_PROTO_SignData done [18:05:56]FM_MakeSignedData done [18:05:56]CreateOFDProtocolMessage [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 11 00 00 [18:05:56]Write to MH i2c: E2 08 00 46 66 80 11 00 00 00 00 00 00 26 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 46 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [18:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:05:56]wFMCommunicate OK [18:05:56]CreateOFDProtocolMessage done [18:05:56]OFDSenderStorePacket 31250 [18:05:56]StoreOFDPacket docnum=31250 [18:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 61 07 01 A7 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 3B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 7A 00 00 35 04 06 00 81 45 6D E8 45 65 1F 0D 4F E3 EF 63 88 60 [18:05:56]CheckFolder [18:05:56]dirname=/storage/ofd_packets [18:05:56]CheckFolder done [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00031250 [18:05:56]NVStorageSaveData ofd_packets/00031250 [18:05:56]File name is /storage/ofd_packets/00031250 [18:05:56]Write 301 bytes [18:05:56]NVStorageSaveData done [18:05:56]OFDSenderStorePacket done [18:05:56]KKMCreateOFDPacket done [18:05:56]NVStorageSaveData kkm_last_timestamp [18:05:56]File name is /storage/kkm_last_timestamp [18:05:56]Write 4 bytes [18:05:56]NVStorageSaveData done [18:05:56]ExternCall_PrintAddStr [18:05:56]wPrintStart [18:05:56]Write to MH i2c: 01 00 00 47 66 AD [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 47 66 00 00 00 00 00 FF 0F C2 [18:05:56]RasterBufferAndPrint [18:05:56]line Счет N : (1)343698 [18:05:56]line ИНН: 02508201610067 [18:05:56]line Контрольно-Кассовый Чек [18:05:56]line ПРОДАЖА [18:05:56]line ТРК (МРК, ГНК) : 53 [18:05:56]line Товар: 2710124130 [18:05:56]line Аи-92-К-2 [18:05:56]line 7.480 * 66.90 [18:05:56]line = 500.41 [18:05:56]line НДС 12% НСП 1% [18:05:56]line > о реализуемом товаре [18:05:56]line ИТОГО: 500.41 [18:05:56]line НСП 1% : 4.43 [18:05:56]line НДС 12% : 53.14 [18:05:56]line Наличными: 0.00 [18:05:56]line Безнал.: 500.41 [18:05:56]line Место: АЗС № 78 "Партнер Нефть" [18:05:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:05:56]line СНО: Общий режим [18:05:56]line Чек 194 23.10.2024 18:06 [18:05:56]line Смена: 117 ФФД: 1.0 [18:05:56]line ЗНМ: 0300000137 [18:05:56]line РНМ: 0000000000186857 [18:05:56]line Версия ККМ: v1.0 [18:05:56]line Платежная система: АКБ Кыргызстан [18:05:56]line ФМ: 0000000002094219 [18:05:56]line ФД: 31250 [18:05:56]line ФПД: 142135196665189 [18:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31250&fm=142135196665189&tin=02508201610067®Number=0000000000186857&sum=50041 [18:05:56]written 0, free lines is 4095 [18:05:56]OFD Sender: Processing packet 31250 [packets to send 11, broken 10] [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00031250 [18:05:56]OFD Sender: To server: pG, [18:05:56]CommunicateWithHost lk.salyk.kg:30040 [18:05:56]ConnectInit lk.salyk.kg [18:05:56]Connected sock=10 [18:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 61 07 01 A7 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 3B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 7A 00 00 35 04 06 00 81 45 6D E8 45 65 1F 0D 4F E3 EF 63 88 60 [18:05:56]Write to MH i2c: 01 00 00 71 66 D7 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 71 66 00 00 00 00 00 FB 0C E5 [18:05:56]RasterBufferAndPrint [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]written 0, free lines is 3329 [18:05:56]MH_Cut [18:05:56]Write to MH i2c: D1 01 00 78 66 01 B0 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: D1 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: D1 01 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: D1 01 00 78 66 00 AF [18:05:56]Write to MH i2c: 01 00 00 79 66 DF [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 38 E6 47 00 87 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 7A 00 00 F4 03 04 00 83 E5 18 67 B6 04 01 00 00 EF CF 1B E9 23 8F 14 17 [18:05:56]CommunicateWithHost err = 0 [18:05:56]CheckOFDResponse [18:05:56]1017 (14) - 77093643461234 [18:05:56]1041 (16) - 0000000002094219 [18:05:56]1040 (4) - 31250 [18:05:56]1012 (4) - 23.10.2024 12:01 [18:05:56]1206 (1) - 0 [18:05:56]OFD Sender: Remove packet 31250 [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00031250 [18:05:56]NVStorageDeleteData [18:05:57]*** Cut start [18:05:57]*** Partial cut [18:05:57]*** CUTSNS_PIN = 1 [18:05:57]OFD Sender: No OFD packet to send [18:05:57]*** CUTSNS_PIN = 0 [18:05:57]*** Brake cut motor [18:05:58]Read from MH i2c: 01 [18:05:58]MH_I2C_Read... [18:05:58]*** Stop cut motor [18:05:58]*** Cut end [18:05:58]Read from MH i2c: 01 07 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: 01 07 00 79 66 00 00 00 00 00 FF 0F F4 [18:05:58]process_action close_receipt done [18:05:58]requested_data is exist [18:05:58]produce_requested_data [18:05:58]requested_item fm.sn is exist - process it [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 11 00 00 [18:05:58]Write to MH i2c: E2 08 00 7A 66 80 11 00 00 00 00 00 00 5A [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 17 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 17 00 7A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [18:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:05:58]wFMCommunicate OK [18:05:58]requested_item fd.num is exist - process it [18:05:58]SAM_PROTO_GetFieldsCounters [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 13 00 00 [18:05:58]Write to MH i2c: E2 08 00 7B 66 80 13 00 00 00 00 00 00 5D [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 62 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 62 00 7B 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [18:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:58]wFMCommunicate OK [18:05:58]SAM_PROTO_GetFieldsCounters done [18:05:58]requested_item shift.num is exist - process it [18:05:58]requested_item shift.opened is exist - process it [18:05:58]req_shift_opened [18:05:58]FM_GetShiftState [18:05:58]SAM_PROTO_GetShiftState [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 13 01 00 [18:05:58]Write to MH i2c: E2 08 00 7C 66 80 13 01 00 00 00 00 00 5F [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 0E 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 0E 00 7C 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 19 [18:05:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:05:58]wFMCommunicate OK [18:05:58]SAM_PROTO_GetShiftState done [18:05:58]FM_GetShiftState done [18:05:58]req_shift_opened done [18:05:58]requested_item shift.open_date is exist - process it [18:05:58]req_shift_open_date [18:05:58]req_shift_open_date done [18:05:58]produce_requested_data done [18:05:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31250,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:05:58]process_action_free close_receipt [18:05:58]json_value_free [18:05:58]json_value_free done [18:05:58]process_json_proto returns [18:05:58]Send response to host [18:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31250,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:05:58]free response buf [18:05:58]execute_script done [18:05:58]execute_script returns [18:05:58]free content buf [18:05:58]Sock 9.Close socket [18:05:58]Sock 9.Thread stoped [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:31]accept exits with 7 [18:11:31]New connection [18:11:31]New thread 3066899812 created [18:11:31]Thread 3067043172 joined [18:11:31]Waiting for new connection... [18:11:31] Sock 7.Parse request [18:11:31]Sock 7.Check first char [18:11:31]Sock 7.First char is OK [18:11:31]request: POST /json_proto HTTP/1.0 [18:11:31]Method: POST [18:11:31]URL: /json_proto [18:11:31]Method is POST - this is cgi request [18:11:31]url: /json_proto [18:11:31]query_string will be loaded in cgi processing [18:11:31]execute_cgi json_proto POST (null) [18:11:31]execute_cgi path=json_proto method=POST [18:11:31]POST find Content-Length [18:11:31]Host: 172.17.51.3:8080 [18:11:31]Content-Length: 682 [18:11:31]Content-Type: application/json [18:11:31] [18:11:31]POST finish read [18:11:31]Found Content-Length = 682 [18:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:31]execute_script... [18:11:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:31]POST & json_proto [18:11:31]process_json_proto [18:11:31]json parsed OK: [18:11:31]protocol is kg_v1.0 [18:11:31]action value=close_receipt [18:11:31]process_action close_receipt [18:11:31]cmd_close_receipt [18:11:31]MH_GetDate [18:11:31]Write to MH i2c: F0 00 00 7D 66 D2 [18:11:31]Write i2c OK [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 09 00 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: F0 09 00 7D 66 00 5A 3C 19 67 04 C1 95 66 B1 [18:11:31]GetLastDocTimeStamp 1729706762 [18:11:31]current date 1729707098 [18:11:31]FM_GetShiftState [18:11:31]SAM_PROTO_GetShiftState [18:11:31]wFMCommunicate request_size=4 [18:11:31]MH_SAM_APDU [18:11:31]CAPDU: 80 13 01 00 [18:11:31]Write to MH i2c: E2 08 00 7E 66 80 13 01 00 00 00 00 00 61 [18:11:31]Write i2c OK [18:11:31]MH_I2C_Read... [18:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:31]Read from MH i2c: E2 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 [18:11:31]MH_I2C_Read... [18:11:31]Read from MH i2c: E2 0E 00 7E 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1B [18:11:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:11:31]wFMCommunicate OK [18:11:31]SAM_PROTO_GetShiftState done [18:11:31]FM_GetShiftState done [18:11:31]opened in 1729643755 [18:11:31]opened+sec_in_day 1729730155 [18:11:31]quantity*price = 150056 [18:11:31]sum+1 = 150058 [18:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 195 23.10.2024 18:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31251 ФПД: 118986240155027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31251&fm=118986240155027&tin=02508201610067®Number=0000000000186857&sum=150000 [18:11:32]StoreToDocumentArchive [18:11:32]shift 117 fd 31251 [18:11:32]save to /storage/0117/doc_00031251 [18:11:32]save last doc name /storage/0117/doc_00031251 to /storage/kkm_last_doc_name [18:11:32]save OK [18:11:32]Clear old archive folders... [18:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:32]tlvbuf is 00CCDB40 [18:11:32]SAM_PROTO_ClearQueue [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 09 00 00 [18:11:32]Write to MH i2c: E2 08 00 8B 66 80 09 00 00 00 00 00 00 63 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 8B 66 00 90 00 65 [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]SAM_PROTO_ClearQueue done [18:11:32]KKMCreateOFDPacket [18:11:32]OFDProtocolAddRootSTLVToBuf [18:11:32]FM_MakeSignedData [18:11:32]FM_MakeSignedData [18:11:32]SAM_PROTO_SignData [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 01 02 [18:11:32]Write to MH i2c: E2 08 00 8C 66 80 0D 01 02 00 00 00 00 6B [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 8C 66 00 90 00 66 [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]wFMCommunicate request_size=255 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5A 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 7A 00 00 35 04 06 00 6C [18:11:32]Write to MH i2c: E2 02 01 8D 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5A 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 7A 00 00 35 04 06 00 6C 00 00 8C [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 8D 66 00 90 00 67 [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]wFMCommunicate request_size=10 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 02 02 05 37 A4 93 DD 93 [18:11:32]Write to MH i2c: E2 0D 00 8E 66 80 0D 02 02 05 00 37 A4 93 DD 93 00 00 56 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]OFD Sender: No OFD packet to send [18:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 03 00 8E 66 00 90 00 68 [18:11:32]RAPDU: 90 00 [18:11:32]wFMCommunicate OK [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 0D 03 02 [18:11:32]Write to MH i2c: E2 08 00 8F 66 80 0D 03 02 00 00 00 00 70 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 0B 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 0B 00 8F 66 00 27 50 8C E3 07 00 53 9E 90 00 4F [18:11:32]RAPDU: 27 50 8C E3 07 00 53 9E 90 00 [18:11:32]wFMCommunicate OK [18:11:32]SAM_PROTO_SignData done [18:11:32]FM_MakeSignedData done [18:11:32]CreateOFDProtocolMessage [18:11:32]wFMCommunicate request_size=4 [18:11:32]MH_SAM_APDU [18:11:32]CAPDU: 80 11 00 00 [18:11:32]Write to MH i2c: E2 08 00 90 66 80 11 00 00 00 00 00 00 70 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:32]Read from MH i2c: E2 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 17 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: E2 17 00 90 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BE [18:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:11:32]wFMCommunicate OK [18:11:32]CreateOFDProtocolMessage done [18:11:32]OFDSenderStorePacket 31251 [18:11:32]StoreOFDPacket docnum=31251 [18:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 30 B1 07 01 C9 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5A 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 7A 00 00 35 04 06 00 6C 37 A4 93 DD 93 27 50 8C E3 07 00 53 9E [18:11:32]CheckFolder [18:11:32]dirname=/storage/ofd_packets [18:11:32]CheckFolder done [18:11:32]ProducePacketName [18:11:32]name=ofd_packets/00031251 [18:11:32]NVStorageSaveData ofd_packets/00031251 [18:11:32]File name is /storage/ofd_packets/00031251 [18:11:32]Write 301 bytes [18:11:32]NVStorageSaveData done [18:11:32]OFDSenderStorePacket done [18:11:32]KKMCreateOFDPacket done [18:11:32]NVStorageSaveData kkm_last_timestamp [18:11:32]File name is /storage/kkm_last_timestamp [18:11:32]Write 4 bytes [18:11:32]NVStorageSaveData done [18:11:32]ExternCall_PrintAddStr [18:11:32]wPrintStart [18:11:32]Write to MH i2c: 01 00 00 91 66 F7 [18:11:32]Write i2c OK [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: 01 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: 01 07 00 [18:11:32]MH_I2C_Read... [18:11:32]Read from MH i2c: 01 07 00 91 66 00 00 00 00 00 FF 0F 0C [18:11:32]RasterBufferAndPrint [18:11:32]line Счет N : (1)343699 [18:11:32]line ИНН: 02508201610067 [18:11:32]line Контрольно-Кассовый Чек [18:11:32]line ПРОДАЖА [18:11:32]line ТРК (МРК, ГНК) : 53 [18:11:32]line Товар: 2710124130 [18:11:32]line Аи-92-К-2 [18:11:32]line 22.430 * 66.90 [18:11:32]line = 1500.57 [18:11:32]line НДС 12% НСП 1% [18:11:32]line > о реализуемом товаре [18:11:32]line ОКРУГЛЕНИЕ: -0.57 [18:11:32]line ИТОГО: 1500.00 [18:11:32]line Внесено: 1500.00 [18:11:32]line СДАЧА: 0.00 [18:11:32]line НСП 1% : 13.28 [18:11:32]line НДС 12% : 159.35 [18:11:32]line Наличными: 1500.00 [18:11:32]line Безнал.: 0.00 [18:11:32]line Место: АЗС № 78 "Партнер Нефть" [18:11:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:11:32]line СНО: Общий режим [18:11:32]line Чек 195 23.10.2024 18:11 [18:11:32]line Смена: 117 ФФД: 1.0 [18:11:32]line ЗНМ: 0300000137 [18:11:32]line РНМ: 0000000000186857 [18:11:32]line Версия ККМ: v1.0 [18:11:32]line ФМ: 0000000002094219 [18:11:32]line ФД: 31251 [18:11:32]line ФПД: 118986240155027 [18:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31251&fm=118986240155027&tin=02508201610067®Number=0000000000186857&sum=150000 [18:11:33]OFD Sender: Processing packet 31251 [packets to send 11, broken 10] [18:11:33]ProducePacketName [18:11:33]name=ofd_packets/00031251 [18:11:33]OFD Sender: To server: pG, [18:11:33]CommunicateWithHost lk.salyk.kg:30040 [18:11:33]ConnectInit lk.salyk.kg [18:11:33]written 0, free lines is 4095 [18:11:33]Connected sock=10 [18:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 30 B1 07 01 C9 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5A 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 7A 00 00 35 04 06 00 6C 37 A4 93 DD 93 27 50 8C E3 07 00 53 9E [18:11:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 03 47 00 A9 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 7A 00 00 F4 03 04 00 D4 E6 18 67 B6 04 01 00 00 A0 41 8F AE 22 00 44 11 [18:11:33]CommunicateWithHost err = 0 [18:11:33]CheckOFDResponse [18:11:33]1017 (14) - 77093643461234 [18:11:33]1041 (16) - 0000000002094219 [18:11:33]1040 (4) - 31251 [18:11:33]1012 (4) - 23.10.2024 12:06 [18:11:33]1206 (1) - 0 [18:11:33]OFD Sender: Remove packet 31251 [18:11:33]ProducePacketName [18:11:33]name=ofd_packets/00031251 [18:11:33]NVStorageDeleteData [18:11:33]Write to MH i2c: 01 00 00 BC 66 22 [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: 01 07 00 BC 66 00 00 00 00 00 EE 0C 23 [18:11:33]RasterBufferAndPrint [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]line [18:11:33]written 0, free lines is 3316 [18:11:33]MH_Cut [18:11:33]Write to MH i2c: D1 01 00 C3 66 01 FB [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: D1 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: D1 01 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: D1 01 00 C3 66 00 FA [18:11:33]Write to MH i2c: 01 00 00 C4 66 2A [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:34]OFD Sender: No OFD packet to send [18:11:34]*** Cut start [18:11:34]*** Partial cut [18:11:34]*** CUTSNS_PIN = 1 [18:11:34]*** CUTSNS_PIN = 0 [18:11:34]*** Brake cut motor [18:11:34]Read from MH i2c: 01 [18:11:34]MH_I2C_Read... [18:11:34]*** Stop cut motor [18:11:34]*** Cut end [18:11:34]Read from MH i2c: 01 07 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: 01 07 00 C4 66 00 00 00 00 00 FF 0F 3F [18:11:34]process_action close_receipt done [18:11:34]requested_data is exist [18:11:34]produce_requested_data [18:11:34]requested_item fm.sn is exist - process it [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 11 00 00 [18:11:34]Write to MH i2c: E2 08 00 C5 66 80 11 00 00 00 00 00 00 A5 [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:35]Read from MH i2c: E2 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 17 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 17 00 C5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [18:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:11:35]wFMCommunicate OK [18:11:35]requested_item fd.num is exist - process it [18:11:35]SAM_PROTO_GetFieldsCounters [18:11:35]wFMCommunicate request_size=4 [18:11:35]MH_SAM_APDU [18:11:35]CAPDU: 80 13 00 00 [18:11:35]Write to MH i2c: E2 08 00 C6 66 80 13 00 00 00 00 00 00 A8 [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:35]Read from MH i2c: E2 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 62 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 62 00 C6 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:11:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:35]wFMCommunicate OK [18:11:35]SAM_PROTO_GetFieldsCounters done [18:11:35]requested_item shift.num is exist - process it [18:11:35]requested_item shift.opened is exist - process it [18:11:35]req_shift_opened [18:11:35]FM_GetShiftState [18:11:35]SAM_PROTO_GetShiftState [18:11:35]wFMCommunicate request_size=4 [18:11:35]MH_SAM_APDU [18:11:35]CAPDU: 80 13 01 00 [18:11:35]Write to MH i2c: E2 08 00 C7 66 80 13 01 00 00 00 00 00 AA [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:35]Read from MH i2c: E2 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 0E 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: E2 0E 00 C7 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 64 [18:11:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:11:35]wFMCommunicate OK [18:11:35]SAM_PROTO_GetShiftState done [18:11:35]FM_GetShiftState done [18:11:35]req_shift_opened done [18:11:35]requested_item shift.open_date is exist - process it [18:11:35]req_shift_open_date [18:11:35]req_shift_open_date done [18:11:35]produce_requested_data done [18:11:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31251,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:11:35]process_action_free close_receipt [18:11:35]json_value_free [18:11:35]json_value_free done [18:11:35]process_json_proto returns [18:11:35]Send response to host [18:11:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31251,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:11:35]free response buf [18:11:35]execute_script done [18:11:35]execute_script returns [18:11:35]free content buf [18:11:35]Sock 7.Close socket [18:11:35]Sock 7.Thread stoped [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:14]accept exits with 9 [18:14:14]New connection [18:14:14]New thread 3067043172 created [18:14:14]Thread 3066899812 joined [18:14:14]Waiting for new connection... [18:14:14] Sock 9.Parse request [18:14:14]Sock 9.Check first char [18:14:14]Sock 9.First char is OK [18:14:14]request: POST /json_proto HTTP/1.0 [18:14:14]Method: POST [18:14:14]URL: /json_proto [18:14:14]Method is POST - this is cgi request [18:14:14]url: /json_proto [18:14:14]query_string will be loaded in cgi processing [18:14:14]execute_cgi json_proto POST (null) [18:14:14]execute_cgi path=json_proto method=POST [18:14:14]POST find Content-Length [18:14:14]Host: 172.17.51.3:8080 [18:14:14]Content-Length: 682 [18:14:14]Content-Type: application/json [18:14:14] [18:14:14]POST finish read [18:14:14]Found Content-Length = 682 [18:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:14]execute_script... [18:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:14]POST & json_proto [18:14:14]process_json_proto [18:14:14]json parsed OK: [18:14:14]protocol is kg_v1.0 [18:14:14]action value=close_receipt [18:14:14]process_action close_receipt [18:14:14]cmd_close_receipt [18:14:14]MH_GetDate [18:14:14]Write to MH i2c: F0 00 00 C8 66 1D [18:14:14]Write i2c OK [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: F0 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: F0 09 00 [18:14:14]MH_I2C_Read... [18:14:14]Read from MH i2c: F0 09 00 C8 66 00 FE 3C 19 67 04 C1 95 66 A0 [18:14:14]GetLastDocTimeStamp 1729707098 [18:14:14]current date 1729707262 [18:14:14]FM_GetShiftState [18:14:14]SAM_PROTO_GetShiftState [18:14:14]wFMCommunicate request_size=4 [18:14:14]MH_SAM_APDU [18:14:14]CAPDU: 80 13 01 00 [18:14:14]Write to MH i2c: E2 08 00 C9 66 80 13 01 00 00 00 00 00 AC [18:14:14]Write i2c OK [18:14:14]MH_I2C_Read... [18:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:15]Read from MH i2c: E2 [18:14:15]MH_I2C_Read... [18:14:15]Read from MH i2c: E2 0E 00 [18:14:15]MH_I2C_Read... [18:14:15]Read from MH i2c: E2 0E 00 C9 66 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 66 [18:14:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:14:15]wFMCommunicate OK [18:14:15]SAM_PROTO_GetShiftState done [18:14:15]FM_GetShiftState done [18:14:15]opened in 1729643755 [18:14:15]opened+sec_in_day 1729730155 [18:14:15]quantity*price = 100015 [18:14:15]sum+1 = 100017 [18:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 196 23.10.2024 18:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31252 ФПД: 81259184062058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31252&fm=81259184062058&tin=02508201610067®Number=0000000000186857&sum=100000 [18:14:16]StoreToDocumentArchive [18:14:16]shift 117 fd 31252 [18:14:16]save to /storage/0117/doc_00031252 [18:14:16]save last doc name /storage/0117/doc_00031252 to /storage/kkm_last_doc_name [18:14:16]save OK [18:14:16]Clear old archive folders... [18:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:16]tlvbuf is 00F62480 [18:14:16]SAM_PROTO_ClearQueue [18:14:16]wFMCommunicate request_size=4 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 09 00 00 [18:14:16]Write to MH i2c: E2 08 00 D6 66 80 09 00 00 00 00 00 00 AE [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 D6 66 00 90 00 B0 [18:14:16]RAPDU: 90 00 [18:14:16]wFMCommunicate OK [18:14:16]SAM_PROTO_ClearQueue done [18:14:16]KKMCreateOFDPacket [18:14:16]OFDProtocolAddRootSTLVToBuf [18:14:16]FM_MakeSignedData [18:14:16]FM_MakeSignedData [18:14:16]SAM_PROTO_SignData [18:14:16]wFMCommunicate request_size=4 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 0D 01 02 [18:14:16]Write to MH i2c: E2 08 00 D7 66 80 0D 01 02 00 00 00 00 B6 [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 D7 66 00 90 00 B1 [18:14:16]RAPDU: 90 00 [18:14:16]wFMCommunicate OK [18:14:16]wFMCommunicate request_size=255 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FE 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 7A 00 00 35 04 06 00 49 [18:14:16]Write to MH i2c: E2 02 01 D8 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FE 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 7A 00 00 35 04 06 00 49 00 00 0B [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 D8 66 00 90 00 B2 [18:14:16]RAPDU: 90 00 [18:14:16]wFMCommunicate OK [18:14:16]wFMCommunicate request_size=10 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 0D 02 02 05 E7 A0 CC FE 6A [18:14:16]Write to MH i2c: E2 0D 00 D9 66 80 0D 02 02 05 00 E7 A0 CC FE 6A 00 00 7E [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 03 00 D9 66 00 90 00 B3 [18:14:16]RAPDU: 90 00 [18:14:16]wFMCommunicate OK [18:14:16]wFMCommunicate request_size=4 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 0D 03 02 [18:14:16]Write to MH i2c: E2 08 00 DA 66 80 0D 03 02 00 00 00 00 BB [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 0B 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 0B 00 DA 66 00 65 49 CA 91 D7 7A D8 5D 90 00 4B [18:14:16]RAPDU: 65 49 CA 91 D7 7A D8 5D 90 00 [18:14:16]wFMCommunicate OK [18:14:16]SAM_PROTO_SignData done [18:14:16]FM_MakeSignedData done [18:14:16]CreateOFDProtocolMessage [18:14:16]wFMCommunicate request_size=4 [18:14:16]MH_SAM_APDU [18:14:16]CAPDU: 80 11 00 00 [18:14:16]Write to MH i2c: E2 08 00 DB 66 80 11 00 00 00 00 00 00 BB [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:16]Read from MH i2c: E2 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 17 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: E2 17 00 DB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 09 [18:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:16]wFMCommunicate OK [18:14:16]CreateOFDProtocolMessage done [18:14:16]OFDSenderStorePacket 31252 [18:14:16]StoreOFDPacket docnum=31252 [18:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DC 67 07 01 C6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FE 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 7A 00 00 35 04 06 00 49 E7 A0 CC FE 6A 65 49 CA 91 D7 7A D8 5D [18:14:16]CheckFolder [18:14:16]dirname=/storage/ofd_packets [18:14:16]CheckFolder done [18:14:16]ProducePacketName [18:14:16]name=ofd_packets/00031252 [18:14:16]NVStorageSaveData ofd_packets/00031252 [18:14:16]File name is /storage/ofd_packets/00031252 [18:14:16]Write 301 bytes [18:14:16]NVStorageSaveData done [18:14:16]OFDSenderStorePacket done [18:14:16]KKMCreateOFDPacket done [18:14:16]NVStorageSaveData kkm_last_timestamp [18:14:16]File name is /storage/kkm_last_timestamp [18:14:16]Write 4 bytes [18:14:16]NVStorageSaveData done [18:14:16]ExternCall_PrintAddStr [18:14:16]wPrintStart [18:14:16]Write to MH i2c: 01 00 00 DC 66 42 [18:14:16]Write i2c OK [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: 01 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: 01 07 00 [18:14:16]MH_I2C_Read... [18:14:16]Read from MH i2c: 01 07 00 DC 66 00 00 00 00 00 FF 0F 57 [18:14:16]RasterBufferAndPrint [18:14:16]line Счет N : (1)343700 [18:14:16]line ИНН: 02508201610067 [18:14:16]line Контрольно-Кассовый Чек [18:14:16]line ПРОДАЖА [18:14:16]line ТРК (МРК, ГНК) : 63 [18:14:16]line Товар: 2710124130 [18:14:16]line Аи-92-К-2 [18:14:16]line 14.950 * 66.90 [18:14:16]line = 1000.16 [18:14:16]line НДС 12% НСП 1% [18:14:16]line > о реализуемом товаре [18:14:16]line ОКРУГЛЕНИЕ: -0.16 [18:14:16]line ИТОГО: 1000.00 [18:14:16]line Внесено: 1000.00 [18:14:16]line СДАЧА: 0.00 [18:14:16]line НСП 1% : 8.85 [18:14:16]line НДС 12% : 106.21 [18:14:16]line Наличными: 1000.00 [18:14:16]line Безнал.: 0.00 [18:14:16]line Место: АЗС № 78 "Партнер Нефть" [18:14:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:14:16]line СНО: Общий режим [18:14:16]line Чек 196 23.10.2024 18:14 [18:14:16]line Смена: 117 ФФД: 1.0 [18:14:16]line ЗНМ: 0300000137 [18:14:16]line РНМ: 0000000000186857 [18:14:16]line Версия ККМ: v1.0 [18:14:16]line ФМ: 0000000002094219 [18:14:16]line ФД: 31252 [18:14:16]line ФПД: 81259184062058 [18:14:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31252&fm=81259184062058&tin=02508201610067®Number=0000000000186857&sum=100000 [18:14:17]OFD Sender: Processing packet 31252 [packets to send 11, broken 10] [18:14:17]ProducePacketName [18:14:17]name=ofd_packets/00031252 [18:14:17]OFD Sender: To server: pG, [18:14:17]CommunicateWithHost lk.salyk.kg:30040 [18:14:17]ConnectInit lk.salyk.kg [18:14:17]written 0, free lines is 4095 [18:14:17]Connected sock=10 [18:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DC 67 07 01 C6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FE 3C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 7A 00 00 35 04 06 00 49 E7 A0 CC FE 6A 65 49 CA 91 D7 7A D8 5D [18:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1F E6 47 00 26 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 7A 00 00 F4 03 04 00 78 E7 18 67 B6 04 01 00 00 56 5B 2F E9 94 EB CD 0B [18:14:17]CommunicateWithHost err = 0 [18:14:17]CheckOFDResponse [18:14:17]1017 (14) - 77093643461234 [18:14:17]1041 (16) - 0000000002094219 [18:14:17]1040 (4) - 31252 [18:14:17]1012 (4) - 23.10.2024 12:09 [18:14:17]1206 (1) - 0 [18:14:17]OFD Sender: Remove packet 31252 [18:14:17]ProducePacketName [18:14:17]name=ofd_packets/00031252 [18:14:17]NVStorageDeleteData [18:14:17]Write to MH i2c: 01 00 00 07 67 6E [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: 01 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: 01 07 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: 01 07 00 07 67 00 00 00 00 00 EA 0C 6B [18:14:17]RasterBufferAndPrint [18:14:17]line [18:14:17]line [18:14:17]line [18:14:17]line [18:14:17]line [18:14:17]written 0, free lines is 3312 [18:14:17]MH_Cut [18:14:17]Write to MH i2c: D1 01 00 0E 67 01 47 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: D1 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: D1 01 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: D1 01 00 0E 67 00 46 [18:14:17]Write to MH i2c: 01 00 00 0F 67 76 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]OFD Sender: No OFD packet to send [18:14:18]*** Cut start [18:14:18]*** Partial cut [18:14:18]*** CUTSNS_PIN = 1 [18:14:18]*** CUTSNS_PIN = 0 [18:14:18]*** Brake cut motor [18:14:18]Read from MH i2c: 01 [18:14:18]MH_I2C_Read... [18:14:18]*** Stop cut motor [18:14:18]*** Cut end [18:14:18]Read from MH i2c: 01 07 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 0F 67 00 00 00 00 00 FF 0F 8B [18:14:18]process_action close_receipt done [18:14:18]requested_data is exist [18:14:18]produce_requested_data [18:14:18]requested_item fm.sn is exist - process it [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 11 00 00 [18:14:18]Write to MH i2c: E2 08 00 10 67 80 11 00 00 00 00 00 00 F1 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 10 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [18:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:18]wFMCommunicate OK [18:14:18]requested_item fd.num is exist - process it [18:14:18]SAM_PROTO_GetFieldsCounters [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 13 00 00 [18:14:18]Write to MH i2c: E2 08 00 11 67 80 13 00 00 00 00 00 00 F4 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 62 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 62 00 11 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:14:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_GetFieldsCounters done [18:14:18]requested_item shift.num is exist - process it [18:14:18]requested_item shift.opened is exist - process it [18:14:18]req_shift_opened [18:14:18]FM_GetShiftState [18:14:18]SAM_PROTO_GetShiftState [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 13 01 00 [18:14:18]Write to MH i2c: E2 08 00 12 67 80 13 01 00 00 00 00 00 F6 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0E 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0E 00 12 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B0 [18:14:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_GetShiftState done [18:14:18]FM_GetShiftState done [18:14:18]req_shift_opened done [18:14:18]requested_item shift.open_date is exist - process it [18:14:18]req_shift_open_date [18:14:18]req_shift_open_date done [18:14:18]produce_requested_data done [18:14:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31252,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:14:18]process_action_free close_receipt [18:14:18]json_value_free [18:14:18]json_value_free done [18:14:18]process_json_proto returns [18:14:18]Send response to host [18:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31252,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:14:18]free response buf [18:14:18]execute_script done [18:14:18]execute_script returns [18:14:18]free content buf [18:14:18]Sock 9.Close socket [18:14:18]Sock 9.Thread stoped [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:48]accept exits with 7 [18:20:48]New connection [18:20:48]New thread 3066899812 created [18:20:48]Thread 3067043172 joined [18:20:48]Waiting for new connection... [18:20:48] Sock 7.Parse request [18:20:48]Sock 7.Check first char [18:20:48]Sock 7.First char is OK [18:20:48]request: POST /json_proto HTTP/1.0 [18:20:48]Method: POST [18:20:48]URL: /json_proto [18:20:48]Method is POST - this is cgi request [18:20:48]url: /json_proto [18:20:48]query_string will be loaded in cgi processing [18:20:48]execute_cgi json_proto POST (null) [18:20:48]execute_cgi path=json_proto method=POST [18:20:48]POST find Content-Length [18:20:48]Host: 172.17.51.3:8080 [18:20:48]Content-Length: 677 [18:20:48]Content-Type: application/json [18:20:48] [18:20:48]POST finish read [18:20:48]Found Content-Length = 677 [18:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:48]execute_script... [18:20:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:48]POST & json_proto [18:20:48]process_json_proto [18:20:48]json parsed OK: [18:20:48]protocol is kg_v1.0 [18:20:48]action value=close_receipt [18:20:48]process_action close_receipt [18:20:48]cmd_close_receipt [18:20:48]MH_GetDate [18:20:48]Write to MH i2c: F0 00 00 13 67 69 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: F0 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: F0 09 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: F0 09 00 13 67 00 87 3E 19 67 04 C1 95 66 77 [18:20:48]GetLastDocTimeStamp 1729707262 [18:20:48]current date 1729707655 [18:20:48]FM_GetShiftState [18:20:48]SAM_PROTO_GetShiftState [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 13 01 00 [18:20:48]Write to MH i2c: E2 08 00 14 67 80 13 01 00 00 00 00 00 F8 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0E 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0E 00 14 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B2 [18:20:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:20:48]wFMCommunicate OK [18:20:48]SAM_PROTO_GetShiftState done [18:20:48]FM_GetShiftState done [18:20:48]opened in 1729643755 [18:20:48]opened+sec_in_day 1729730155 [18:20:48]quantity*price = 29034 [18:20:48]sum+1 = 29036 [18:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 197 23.10.2024 18:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31253 ФПД: 139613022220568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182055&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31253&fm=139613022220568&tin=02508201610067®Number=0000000000186857&sum=29000 [18:20:49]StoreToDocumentArchive [18:20:49]shift 117 fd 31253 [18:20:49]save to /storage/0117/doc_00031253 [18:20:49]save last doc name /storage/0117/doc_00031253 to /storage/kkm_last_doc_name [18:20:49]save OK [18:20:49]Clear old archive folders... [18:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:49]tlvbuf is 00D57280 [18:20:49]SAM_PROTO_ClearQueue [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 09 00 00 [18:20:49]Write to MH i2c: E2 08 00 21 67 80 09 00 00 00 00 00 00 FA [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 21 67 00 90 00 FC [18:20:49]RAPDU: 90 00 [18:20:49]wFMCommunicate OK [18:20:49]SAM_PROTO_ClearQueue done [18:20:49]KKMCreateOFDPacket [18:20:49]OFDProtocolAddRootSTLVToBuf [18:20:49]FM_MakeSignedData [18:20:49]FM_MakeSignedData [18:20:49]SAM_PROTO_SignData [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 0D 01 02 [18:20:49]Write to MH i2c: E2 08 00 22 67 80 0D 01 02 00 00 00 00 02 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 22 67 00 90 00 FD [18:20:49]RAPDU: 90 00 [18:20:49]wFMCommunicate OK [18:20:49]wFMCommunicate request_size=255 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 87 3E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 7A 00 00 35 04 06 00 7E [18:20:49]Write to MH i2c: E2 02 01 23 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 87 3E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 7A 00 00 35 04 06 00 7E 00 00 41 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 23 67 00 90 00 FE [18:20:49]RAPDU: 90 00 [18:20:49]wFMCommunicate OK [18:20:49]wFMCommunicate request_size=10 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 0D 02 02 05 FA 30 98 71 18 [18:20:49]Write to MH i2c: E2 0D 00 24 67 80 0D 02 02 05 00 FA 30 98 71 18 00 00 5A [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 03 00 24 67 00 90 00 FF [18:20:49]RAPDU: 90 00 [18:20:49]wFMCommunicate OK [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 0D 03 02 [18:20:49]Write to MH i2c: E2 08 00 25 67 80 0D 03 02 00 00 00 00 07 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 0B 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 0B 00 25 67 00 C3 B3 72 11 00 9E 16 BC 90 00 71 [18:20:49]RAPDU: C3 B3 72 11 00 9E 16 BC 90 00 [18:20:49]wFMCommunicate OK [18:20:49]SAM_PROTO_SignData done [18:20:49]FM_MakeSignedData done [18:20:49]CreateOFDProtocolMessage [18:20:49]wFMCommunicate request_size=4 [18:20:49]MH_SAM_APDU [18:20:49]CAPDU: 80 11 00 00 [18:20:49]Write to MH i2c: E2 08 00 26 67 80 11 00 00 00 00 00 00 07 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:49]Read from MH i2c: E2 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 17 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: E2 17 00 26 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [18:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:20:49]wFMCommunicate OK [18:20:49]CreateOFDProtocolMessage done [18:20:49]OFDSenderStorePacket 31253 [18:20:49]StoreOFDPacket docnum=31253 [18:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 29 07 01 8D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 87 3E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 7A 00 00 35 04 06 00 7E FA 30 98 71 18 C3 B3 72 11 00 9E 16 BC [18:20:49]CheckFolder [18:20:49]dirname=/storage/ofd_packets [18:20:49]CheckFolder done [18:20:49]ProducePacketName [18:20:49]name=ofd_packets/00031253 [18:20:49]NVStorageSaveData ofd_packets/00031253 [18:20:49]File name is /storage/ofd_packets/00031253 [18:20:49]Write 301 bytes [18:20:49]NVStorageSaveData done [18:20:49]OFDSenderStorePacket done [18:20:49]KKMCreateOFDPacket done [18:20:49]NVStorageSaveData kkm_last_timestamp [18:20:49]File name is /storage/kkm_last_timestamp [18:20:49]Write 4 bytes [18:20:49]NVStorageSaveData done [18:20:49]ExternCall_PrintAddStr [18:20:49]wPrintStart [18:20:49]Write to MH i2c: 01 00 00 27 67 8E [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 07 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 07 00 27 67 00 00 00 00 00 FF 0F A3 [18:20:49]RasterBufferAndPrint [18:20:49]line Счет N : (1)343701 [18:20:49]line ИНН: 02508201610067 [18:20:49]line Контрольно-Кассовый Чек [18:20:49]line ПРОДАЖА [18:20:49]line ТРК (МРК, ГНК) : 63 [18:20:49]line Товар: 2710124130 [18:20:49]line Аи-92-К-2 [18:20:49]line 4.340 * 66.90 [18:20:49]line = 290.35 [18:20:49]line НДС 12% НСП 1% [18:20:49]line > о реализуемом товаре [18:20:49]line ОКРУГЛЕНИЕ: -0.35 [18:20:49]line ИТОГО: 290.00 [18:20:49]line Внесено: 290.00 [18:20:49]line СДАЧА: 0.00 [18:20:49]line НСП 1% : 2.57 [18:20:49]line НДС 12% : 30.83 [18:20:49]line Наличными: 290.00 [18:20:49]line Безнал.: 0.00 [18:20:49]line Место: АЗС № 78 "Партнер Нефть" [18:20:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:20:49]line СНО: Общий режим [18:20:49]line Чек 197 23.10.2024 18:20 [18:20:49]line Смена: 117 ФФД: 1.0 [18:20:49]line ЗНМ: 0300000137 [18:20:49]line РНМ: 0000000000186857 [18:20:49]line Версия ККМ: v1.0 [18:20:49]line ФМ: 0000000002094219 [18:20:49]line ФД: 31253 [18:20:49]line ФПД: 139613022220568 [18:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182055&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31253&fm=139613022220568&tin=02508201610067®Number=0000000000186857&sum=29000 [18:20:50]OFD Sender: Processing packet 31253 [packets to send 11, broken 10] [18:20:50]ProducePacketName [18:20:50]name=ofd_packets/00031253 [18:20:50]OFD Sender: To server: pG, [18:20:50]CommunicateWithHost lk.salyk.kg:30040 [18:20:50]ConnectInit lk.salyk.kg [18:20:50]written 0, free lines is 4095 [18:20:50]Connected sock=9 [18:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 29 07 01 8D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 87 3E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 7A 00 00 35 04 06 00 7E FA 30 98 71 18 C3 B3 72 11 00 9E 16 BC [18:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 A3 47 00 AE C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 7A 00 00 F4 03 04 00 01 E9 18 67 B6 04 01 00 00 A9 55 84 A0 46 9E EB DB [18:20:50]CommunicateWithHost err = 0 [18:20:50]CheckOFDResponse [18:20:50]1017 (14) - 77093643461234 [18:20:50]1041 (16) - 0000000002094219 [18:20:50]1040 (4) - 31253 [18:20:50]1012 (4) - 23.10.2024 12:16 [18:20:50]1206 (1) - 0 [18:20:50]OFD Sender: Remove packet 31253 [18:20:50]ProducePacketName [18:20:50]name=ofd_packets/00031253 [18:20:50]NVStorageDeleteData [18:20:50]Write to MH i2c: 01 00 00 52 67 B9 [18:20:50]Write i2c OK [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: 01 [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: 01 07 00 [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: 01 07 00 52 67 00 00 00 00 00 F1 0C BD [18:20:50]RasterBufferAndPrint [18:20:50]line [18:20:50]line [18:20:50]line [18:20:50]line [18:20:50]line [18:20:50]written 0, free lines is 3319 [18:20:50]MH_Cut [18:20:50]Write to MH i2c: D1 01 00 59 67 01 92 [18:20:50]Write i2c OK [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: D1 [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: D1 01 00 [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: D1 01 00 59 67 00 91 [18:20:50]Write to MH i2c: 01 00 00 5A 67 C1 [18:20:50]Write i2c OK [18:20:50]MH_I2C_Read... [18:20:51]OFD Sender: No OFD packet to send [18:20:51]*** Cut start [18:20:51]*** Partial cut [18:20:51]*** CUTSNS_PIN = 1 [18:20:51]*** CUTSNS_PIN = 0 [18:20:51]*** Brake cut motor [18:20:52]Read from MH i2c: 01 [18:20:52]MH_I2C_Read... [18:20:52]*** Stop cut motor [18:20:52]*** Cut end [18:20:52]Read from MH i2c: 01 07 00 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: 01 07 00 5A 67 00 00 00 00 00 FF 0F D6 [18:20:52]process_action close_receipt done [18:20:52]requested_data is exist [18:20:52]produce_requested_data [18:20:52]requested_item fm.sn is exist - process it [18:20:52]wFMCommunicate request_size=4 [18:20:52]MH_SAM_APDU [18:20:52]CAPDU: 80 11 00 00 [18:20:52]Write to MH i2c: E2 08 00 5B 67 80 11 00 00 00 00 00 00 3C [18:20:52]Write i2c OK [18:20:52]MH_I2C_Read... [18:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:52]Read from MH i2c: E2 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 17 00 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 17 00 5B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [18:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:20:52]wFMCommunicate OK [18:20:52]requested_item fd.num is exist - process it [18:20:52]SAM_PROTO_GetFieldsCounters [18:20:52]wFMCommunicate request_size=4 [18:20:52]MH_SAM_APDU [18:20:52]CAPDU: 80 13 00 00 [18:20:52]Write to MH i2c: E2 08 00 5C 67 80 13 00 00 00 00 00 00 3F [18:20:52]Write i2c OK [18:20:52]MH_I2C_Read... [18:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:52]Read from MH i2c: E2 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 62 00 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 62 00 5C 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:52]wFMCommunicate OK [18:20:52]SAM_PROTO_GetFieldsCounters done [18:20:52]requested_item shift.num is exist - process it [18:20:52]requested_item shift.opened is exist - process it [18:20:52]req_shift_opened [18:20:52]FM_GetShiftState [18:20:52]SAM_PROTO_GetShiftState [18:20:52]wFMCommunicate request_size=4 [18:20:52]MH_SAM_APDU [18:20:52]CAPDU: 80 13 01 00 [18:20:52]Write to MH i2c: E2 08 00 5D 67 80 13 01 00 00 00 00 00 41 [18:20:52]Write i2c OK [18:20:52]MH_I2C_Read... [18:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:52]Read from MH i2c: E2 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 0E 00 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 0E 00 5D 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FB [18:20:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:20:52]wFMCommunicate OK [18:20:52]SAM_PROTO_GetShiftState done [18:20:52]FM_GetShiftState done [18:20:52]req_shift_opened done [18:20:52]requested_item shift.open_date is exist - process it [18:20:52]req_shift_open_date [18:20:52]req_shift_open_date done [18:20:52]produce_requested_data done [18:20:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31253,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:20:52]process_action_free close_receipt [18:20:52]json_value_free [18:20:52]json_value_free done [18:20:52]process_json_proto returns [18:20:52]Send response to host [18:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31253,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:20:52]free response buf [18:20:52]execute_script done [18:20:52]execute_script returns [18:20:52]free content buf [18:20:52]Sock 7.Close socket [18:20:52]Sock 7.Thread stoped [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:17]accept exits with 10 [18:30:17]New connection [18:30:17]New thread 3067043172 created [18:30:17]Thread 3066899812 joined [18:30:17]Waiting for new connection... [18:30:17] Sock 10.Parse request [18:30:17]Sock 10.Check first char [18:30:17]Sock 10.First char is OK [18:30:17]request: POST /json_proto HTTP/1.0 [18:30:17]Method: POST [18:30:17]URL: /json_proto [18:30:17]Method is POST - this is cgi request [18:30:17]url: /json_proto [18:30:17]query_string will be loaded in cgi processing [18:30:17]execute_cgi json_proto POST (null) [18:30:17]execute_cgi path=json_proto method=POST [18:30:17]POST find Content-Length [18:30:17]Host: 172.17.51.3:8080 [18:30:17]Content-Length: 840 [18:30:17]Content-Type: application/json [18:30:17] [18:30:17]POST finish read [18:30:17]Found Content-Length = 840 [18:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:17]execute_script... [18:30:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:17]POST & json_proto [18:30:17]process_json_proto [18:30:17]json parsed OK: [18:30:17]protocol is kg_v1.0 [18:30:17]action value=close_receipt [18:30:17]process_action close_receipt [18:30:17]cmd_close_receipt [18:30:17]MH_GetDate [18:30:17]Write to MH i2c: F0 00 00 5E 67 B4 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: F0 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: F0 09 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: F0 09 00 5E 67 00 C1 40 19 67 04 C1 95 66 FE [18:30:17]GetLastDocTimeStamp 1729707655 [18:30:17]current date 1729708225 [18:30:17]FM_GetShiftState [18:30:17]SAM_PROTO_GetShiftState [18:30:17]wFMCommunicate request_size=4 [18:30:17]MH_SAM_APDU [18:30:17]CAPDU: 80 13 01 00 [18:30:17]Write to MH i2c: E2 08 00 5F 67 80 13 01 00 00 00 00 00 43 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:17]Read from MH i2c: E2 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 0E 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 0E 00 5F 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FD [18:30:17]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:30:17]wFMCommunicate OK [18:30:17]SAM_PROTO_GetShiftState done [18:30:17]FM_GetShiftState done [18:30:17]opened in 1729643755 [18:30:17]opened+sec_in_day 1729730155 [18:30:17]quantity*price = 50041 [18:30:17]sum+1 = 50042 [18:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 198 23.10.2024 18:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31254 ФПД: 181696670087843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183025&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31254&fm=181696670087843&tin=02508201610067®Number=0000000000186857&sum=50041 [18:30:18]StoreToDocumentArchive [18:30:18]shift 117 fd 31254 [18:30:18]save to /storage/0117/doc_00031254 [18:30:18]save last doc name /storage/0117/doc_00031254 to /storage/kkm_last_doc_name [18:30:18]save OK [18:30:18]Clear old archive folders... [18:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:18]tlvbuf is 00D572A0 [18:30:18]SAM_PROTO_ClearQueue [18:30:18]wFMCommunicate request_size=4 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 09 00 00 [18:30:18]Write to MH i2c: E2 08 00 6C 67 80 09 00 00 00 00 00 00 45 [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 03 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 03 00 6C 67 00 90 00 47 [18:30:18]RAPDU: 90 00 [18:30:18]wFMCommunicate OK [18:30:18]SAM_PROTO_ClearQueue done [18:30:18]KKMCreateOFDPacket [18:30:18]OFDProtocolAddRootSTLVToBuf [18:30:18]FM_MakeSignedData [18:30:18]FM_MakeSignedData [18:30:18]SAM_PROTO_SignData [18:30:18]wFMCommunicate request_size=4 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 0D 01 02 [18:30:18]Write to MH i2c: E2 08 00 6D 67 80 0D 01 02 00 00 00 00 4D [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 03 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 03 00 6D 67 00 90 00 48 [18:30:18]RAPDU: 90 00 [18:30:18]wFMCommunicate OK [18:30:18]wFMCommunicate request_size=255 [18:30:18]MH_SAM_APDU [18:30:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C1 40 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 7A 00 00 35 04 06 00 A5 [18:30:18]Write to MH i2c: E2 02 01 6E 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C1 40 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 7A 00 00 35 04 06 00 A5 00 00 21 [18:30:18]Write i2c OK [18:30:18]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 03 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 03 00 6E 67 00 90 00 49 [18:30:19]RAPDU: 90 00 [18:30:19]wFMCommunicate OK [18:30:19]wFMCommunicate request_size=10 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 0D 02 02 05 40 8D 7A 3A A3 [18:30:19]Write to MH i2c: E2 0D 00 6F 67 80 0D 02 02 05 00 40 8D 7A 3A A3 00 00 7E [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 03 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 03 00 6F 67 00 90 00 4A [18:30:19]RAPDU: 90 00 [18:30:19]wFMCommunicate OK [18:30:19]wFMCommunicate request_size=4 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 0D 03 02 [18:30:19]Write to MH i2c: E2 08 00 70 67 80 0D 03 02 00 00 00 00 52 [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 0B 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 0B 00 70 67 00 B4 64 AB 34 B8 59 DF C1 90 00 FB [18:30:19]RAPDU: B4 64 AB 34 B8 59 DF C1 90 00 [18:30:19]wFMCommunicate OK [18:30:19]SAM_PROTO_SignData done [18:30:19]FM_MakeSignedData done [18:30:19]CreateOFDProtocolMessage [18:30:19]wFMCommunicate request_size=4 [18:30:19]MH_SAM_APDU [18:30:19]CAPDU: 80 11 00 00 [18:30:19]Write to MH i2c: E2 08 00 71 67 80 11 00 00 00 00 00 00 52 [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:19]Read from MH i2c: E2 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 17 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: E2 17 00 71 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [18:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:30:19]wFMCommunicate OK [18:30:19]CreateOFDProtocolMessage done [18:30:19]OFDSenderStorePacket 31254 [18:30:19]StoreOFDPacket docnum=31254 [18:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 79 07 01 2F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C1 40 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 7A 00 00 35 04 06 00 A5 40 8D 7A 3A A3 B4 64 AB 34 B8 59 DF C1 [18:30:19]CheckFolder [18:30:19]dirname=/storage/ofd_packets [18:30:19]CheckFolder done [18:30:19]ProducePacketName [18:30:19]name=ofd_packets/00031254 [18:30:19]NVStorageSaveData ofd_packets/00031254 [18:30:19]File name is /storage/ofd_packets/00031254 [18:30:19]Write 301 bytes [18:30:19]NVStorageSaveData done [18:30:19]OFDSenderStorePacket done [18:30:19]KKMCreateOFDPacket done [18:30:19]NVStorageSaveData kkm_last_timestamp [18:30:19]File name is /storage/kkm_last_timestamp [18:30:19]Write 4 bytes [18:30:19]NVStorageSaveData done [18:30:19]ExternCall_PrintAddStr [18:30:19]wPrintStart [18:30:19]Write to MH i2c: 01 00 00 72 67 D9 [18:30:19]Write i2c OK [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: 01 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: 01 07 00 [18:30:19]MH_I2C_Read... [18:30:19]Read from MH i2c: 01 07 00 72 67 00 00 00 00 00 FF 0F EE [18:30:19]RasterBufferAndPrint [18:30:19]line Счет N : (1)343702 [18:30:19]line ИНН: 02508201610067 [18:30:19]line Контрольно-Кассовый Чек [18:30:19]line ПРОДАЖА [18:30:19]line ТРК (МРК, ГНК) : 53 [18:30:19]line Товар: 2710124130 [18:30:19]line Аи-92-К-2 [18:30:19]line 7.480 * 66.90 [18:30:19]line = 500.41 [18:30:19]line НДС 12% НСП 1% [18:30:19]line > о реализуемом товаре [18:30:19]line ИТОГО: 500.41 [18:30:19]line НСП 1% : 4.43 [18:30:19]line НДС 12% : 53.14 [18:30:19]line Наличными: 0.00 [18:30:19]line Безнал.: 500.41 [18:30:19]line Место: АЗС № 78 "Партнер Нефть" [18:30:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:30:19]line СНО: Общий режим [18:30:19]line Чек 198 23.10.2024 18:30 [18:30:19]line Смена: 117 ФФД: 1.0 [18:30:19]line ЗНМ: 0300000137 [18:30:19]line РНМ: 0000000000186857 [18:30:19]line Версия ККМ: v1.0 [18:30:19]line Платежная система: АКБ Кыргызстан [18:30:19]line ФМ: 0000000002094219 [18:30:19]line ФД: 31254 [18:30:19]line ФПД: 181696670087843 [18:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183025&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31254&fm=181696670087843&tin=02508201610067®Number=0000000000186857&sum=50041 [18:30:19]OFD Sender: Processing packet 31254 [packets to send 11, broken 10] [18:30:19]ProducePacketName [18:30:19]name=ofd_packets/00031254 [18:30:19]OFD Sender: To server: pG, [18:30:19]CommunicateWithHost lk.salyk.kg:30040 [18:30:19]ConnectInit lk.salyk.kg [18:30:19]written 0, free lines is 4095 [18:30:19]Connected sock=11 [18:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 76 79 07 01 2F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C1 40 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 7A 00 00 35 04 06 00 A5 40 8D 7A 3A A3 B4 64 AB 34 B8 59 DF C1 [18:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C7 6B 47 00 9A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 7A 00 00 F4 03 04 00 3A EB 18 67 B6 04 01 00 00 21 1A B0 D5 54 7C 42 7F [18:30:19]CommunicateWithHost err = 0 [18:30:19]CheckOFDResponse [18:30:19]1017 (14) - 77093643461234 [18:30:19]1041 (16) - 0000000002094219 [18:30:19]1040 (4) - 31254 [18:30:19]1012 (4) - 23.10.2024 12:25 [18:30:19]1206 (1) - 0 [18:30:19]OFD Sender: Remove packet 31254 [18:30:19]ProducePacketName [18:30:19]name=ofd_packets/00031254 [18:30:19]NVStorageDeleteData [18:30:20]Write to MH i2c: 01 00 00 9C 67 03 [18:30:20]Write i2c OK [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: 01 [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: 01 07 00 [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: 01 07 00 9C 67 00 00 00 00 00 02 0D 19 [18:30:20]RasterBufferAndPrint [18:30:20]line [18:30:20]line [18:30:20]line [18:30:20]line [18:30:20]line [18:30:20]written 0, free lines is 3335 [18:30:20]MH_Cut [18:30:20]Write to MH i2c: D1 01 00 A3 67 01 DC [18:30:20]Write i2c OK [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: D1 [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: D1 01 00 [18:30:20]MH_I2C_Read... [18:30:20]Read from MH i2c: D1 01 00 A3 67 00 DB [18:30:20]Write to MH i2c: 01 00 00 A4 67 0B [18:30:20]Write i2c OK [18:30:20]MH_I2C_Read... [18:30:20]OFD Sender: No OFD packet to send [18:30:20]*** Cut start [18:30:20]*** Partial cut [18:30:20]*** CUTSNS_PIN = 1 [18:30:20]*** CUTSNS_PIN = 0 [18:30:20]*** Brake cut motor [18:30:21]Read from MH i2c: 01 [18:30:21]MH_I2C_Read... [18:30:21]*** Stop cut motor [18:30:21]*** Cut end [18:30:21]Read from MH i2c: 01 07 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: 01 07 00 A4 67 00 00 00 00 00 FF 0F 20 [18:30:21]process_action close_receipt done [18:30:21]requested_data is exist [18:30:21]produce_requested_data [18:30:21]requested_item fm.sn is exist - process it [18:30:21]wFMCommunicate request_size=4 [18:30:21]MH_SAM_APDU [18:30:21]CAPDU: 80 11 00 00 [18:30:21]Write to MH i2c: E2 08 00 A5 67 80 11 00 00 00 00 00 00 86 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:21]Read from MH i2c: E2 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 17 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 17 00 A5 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [18:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:30:21]wFMCommunicate OK [18:30:21]requested_item fd.num is exist - process it [18:30:21]SAM_PROTO_GetFieldsCounters [18:30:21]wFMCommunicate request_size=4 [18:30:21]MH_SAM_APDU [18:30:21]CAPDU: 80 13 00 00 [18:30:21]Write to MH i2c: E2 08 00 A6 67 80 13 00 00 00 00 00 00 89 [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:21]Read from MH i2c: E2 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 62 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 62 00 A6 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [18:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:21]wFMCommunicate OK [18:30:21]SAM_PROTO_GetFieldsCounters done [18:30:21]requested_item shift.num is exist - process it [18:30:21]requested_item shift.opened is exist - process it [18:30:21]req_shift_opened [18:30:21]FM_GetShiftState [18:30:21]SAM_PROTO_GetShiftState [18:30:21]wFMCommunicate request_size=4 [18:30:21]MH_SAM_APDU [18:30:21]CAPDU: 80 13 01 00 [18:30:21]Write to MH i2c: E2 08 00 A7 67 80 13 01 00 00 00 00 00 8B [18:30:21]Write i2c OK [18:30:21]MH_I2C_Read... [18:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:21]Read from MH i2c: E2 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 [18:30:21]MH_I2C_Read... [18:30:21]Read from MH i2c: E2 0E 00 A7 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 45 [18:30:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:30:21]wFMCommunicate OK [18:30:21]SAM_PROTO_GetShiftState done [18:30:21]FM_GetShiftState done [18:30:21]req_shift_opened done [18:30:21]requested_item shift.open_date is exist - process it [18:30:21]req_shift_open_date [18:30:21]req_shift_open_date done [18:30:21]produce_requested_data done [18:30:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31254,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:30:21]process_action_free close_receipt [18:30:21]json_value_free [18:30:21]json_value_free done [18:30:21]process_json_proto returns [18:30:21]Send response to host [18:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31254,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:30:21]free response buf [18:30:21]execute_script done [18:30:21]execute_script returns [18:30:21]free content buf [18:30:21]Sock 10.Close socket [18:30:21]Sock 10.Thread stoped [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:54]accept exits with 7 [18:31:54]New connection [18:31:54]New thread 3066899812 created [18:31:54]Thread 3067043172 joined [18:31:54]Waiting for new connection... [18:31:54] Sock 7.Parse request [18:31:54]Sock 7.Check first char [18:31:54]Sock 7.First char is OK [18:31:54]request: POST /json_proto HTTP/1.0 [18:31:54]Method: POST [18:31:54]URL: /json_proto [18:31:54]Method is POST - this is cgi request [18:31:54]url: /json_proto [18:31:54]query_string will be loaded in cgi processing [18:31:54]execute_cgi json_proto POST (null) [18:31:54]execute_cgi path=json_proto method=POST [18:31:54]POST find Content-Length [18:31:54]Host: 172.17.51.3:8080 [18:31:54]Content-Length: 682 [18:31:54]Content-Type: application/json [18:31:54] [18:31:54]POST finish read [18:31:54]Found Content-Length = 682 [18:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:54]execute_script... [18:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:54]POST & json_proto [18:31:54]process_json_proto [18:31:54]json parsed OK: [18:31:54]protocol is kg_v1.0 [18:31:54]action value=close_receipt [18:31:54]process_action close_receipt [18:31:54]cmd_close_receipt [18:31:54]MH_GetDate [18:31:54]Write to MH i2c: F0 00 00 A8 67 FE [18:31:54]Write i2c OK [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: F0 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: F0 09 00 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: F0 09 00 A8 67 00 21 41 19 67 04 C1 95 66 A9 [18:31:54]GetLastDocTimeStamp 1729708225 [18:31:54]current date 1729708321 [18:31:54]FM_GetShiftState [18:31:54]SAM_PROTO_GetShiftState [18:31:54]wFMCommunicate request_size=4 [18:31:54]MH_SAM_APDU [18:31:54]CAPDU: 80 13 01 00 [18:31:54]Write to MH i2c: E2 08 00 A9 67 80 13 01 00 00 00 00 00 8D [18:31:54]Write i2c OK [18:31:54]MH_I2C_Read... [18:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:54]Read from MH i2c: E2 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 0E 00 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 0E 00 A9 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 47 [18:31:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:31:54]wFMCommunicate OK [18:31:54]SAM_PROTO_GetShiftState done [18:31:54]FM_GetShiftState done [18:31:54]opened in 1729643755 [18:31:54]opened+sec_in_day 1729730155 [18:31:54]quantity*price = 100015 [18:31:54]sum+1 = 100017 [18:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 199 23.10.2024 18:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31255 ФПД: 173623300013637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31255&fm=173623300013637&tin=02508201610067®Number=0000000000186857&sum=100000 [18:31:55]StoreToDocumentArchive [18:31:55]shift 117 fd 31255 [18:31:55]save to /storage/0117/doc_00031255 [18:31:55]save last doc name /storage/0117/doc_00031255 to /storage/kkm_last_doc_name [18:31:55]save OK [18:31:55]Clear old archive folders... [18:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:55]tlvbuf is 00F626D0 [18:31:55]SAM_PROTO_ClearQueue [18:31:55]wFMCommunicate request_size=4 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 09 00 00 [18:31:55]Write to MH i2c: E2 08 00 B6 67 80 09 00 00 00 00 00 00 8F [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:55]Read from MH i2c: E2 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 B6 67 00 90 00 91 [18:31:55]RAPDU: 90 00 [18:31:55]wFMCommunicate OK [18:31:55]SAM_PROTO_ClearQueue done [18:31:55]KKMCreateOFDPacket [18:31:55]OFDProtocolAddRootSTLVToBuf [18:31:55]FM_MakeSignedData [18:31:55]FM_MakeSignedData [18:31:55]SAM_PROTO_SignData [18:31:55]wFMCommunicate request_size=4 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 0D 01 02 [18:31:55]Write to MH i2c: E2 08 00 B7 67 80 0D 01 02 00 00 00 00 97 [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:55]Read from MH i2c: E2 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 B7 67 00 90 00 92 [18:31:55]RAPDU: 90 00 [18:31:55]wFMCommunicate OK [18:31:55]wFMCommunicate request_size=255 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 7A 00 00 35 04 06 00 9D [18:31:55]Write to MH i2c: E2 02 01 B8 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 7A 00 00 35 04 06 00 9D 00 00 6E [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:55]Read from MH i2c: E2 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 B8 67 00 90 00 93 [18:31:55]RAPDU: 90 00 [18:31:55]wFMCommunicate OK [18:31:55]wFMCommunicate request_size=10 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 0D 02 02 05 E8 D3 1F 3E 45 [18:31:55]Write to MH i2c: E2 0D 00 B9 67 80 0D 02 02 05 00 E8 D3 1F 3E 45 00 00 01 [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:55]Read from MH i2c: E2 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 03 00 B9 67 00 90 00 94 [18:31:55]RAPDU: 90 00 [18:31:55]wFMCommunicate OK [18:31:55]wFMCommunicate request_size=4 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 0D 03 02 [18:31:55]Write to MH i2c: E2 08 00 BA 67 80 0D 03 02 00 00 00 00 9C [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:55]Read from MH i2c: E2 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 0B 00 [18:31:55]MH_I2C_Read... [18:31:55]Read from MH i2c: E2 0B 00 BA 67 00 BF 81 C1 8B D7 41 01 47 90 00 89 [18:31:55]RAPDU: BF 81 C1 8B D7 41 01 47 90 00 [18:31:55]wFMCommunicate OK [18:31:55]SAM_PROTO_SignData done [18:31:55]FM_MakeSignedData done [18:31:55]CreateOFDProtocolMessage [18:31:55]wFMCommunicate request_size=4 [18:31:55]MH_SAM_APDU [18:31:55]CAPDU: 80 11 00 00 [18:31:55]Write to MH i2c: E2 08 00 BB 67 80 11 00 00 00 00 00 00 9C [18:31:55]Write i2c OK [18:31:55]MH_I2C_Read... [18:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:56]Read from MH i2c: E2 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: E2 17 00 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: E2 17 00 BB 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [18:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:31:56]wFMCommunicate OK [18:31:56]CreateOFDProtocolMessage done [18:31:56]OFDSenderStorePacket 31255 [18:31:56]StoreOFDPacket docnum=31255 [18:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 76 07 01 DC E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 7A 00 00 35 04 06 00 9D E8 D3 1F 3E 45 BF 81 C1 8B D7 41 01 47 [18:31:56]CheckFolder [18:31:56]dirname=/storage/ofd_packets [18:31:56]CheckFolder done [18:31:56]ProducePacketName [18:31:56]name=ofd_packets/00031255 [18:31:56]NVStorageSaveData ofd_packets/00031255 [18:31:56]File name is /storage/ofd_packets/00031255 [18:31:56]Write 301 bytes [18:31:56]NVStorageSaveData done [18:31:56]OFDSenderStorePacket done [18:31:56]KKMCreateOFDPacket done [18:31:56]NVStorageSaveData kkm_last_timestamp [18:31:56]File name is /storage/kkm_last_timestamp [18:31:56]Write 4 bytes [18:31:56]NVStorageSaveData done [18:31:56]ExternCall_PrintAddStr [18:31:56]wPrintStart [18:31:56]Write to MH i2c: 01 00 00 BC 67 23 [18:31:56]Write i2c OK [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 07 00 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 07 00 BC 67 00 00 00 00 00 FF 0F 38 [18:31:56]RasterBufferAndPrint [18:31:56]line Счет N : (1)343703 [18:31:56]line ИНН: 02508201610067 [18:31:56]line Контрольно-Кассовый Чек [18:31:56]line ПРОДАЖА [18:31:56]line ТРК (МРК, ГНК) : 63 [18:31:56]line Товар: 2710124130 [18:31:56]line Аи-92-К-2 [18:31:56]line 14.950 * 66.90 [18:31:56]line = 1000.16 [18:31:56]line НДС 12% НСП 1% [18:31:56]line > о реализуемом товаре [18:31:56]line ОКРУГЛЕНИЕ: -0.16 [18:31:56]line ИТОГО: 1000.00 [18:31:56]line Внесено: 1000.00 [18:31:56]line СДАЧА: 0.00 [18:31:56]line НСП 1% : 8.85 [18:31:56]line НДС 12% : 106.21 [18:31:56]line Наличными: 1000.00 [18:31:56]line Безнал.: 0.00 [18:31:56]line Место: АЗС № 78 "Партнер Нефть" [18:31:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:31:56]line СНО: Общий режим [18:31:56]line Чек 199 23.10.2024 18:32 [18:31:56]line Смена: 117 ФФД: 1.0 [18:31:56]line ЗНМ: 0300000137 [18:31:56]line РНМ: 0000000000186857 [18:31:56]line Версия ККМ: v1.0 [18:31:56]line ФМ: 0000000002094219 [18:31:56]line ФД: 31255 [18:31:56]line ФПД: 173623300013637 [18:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183201&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31255&fm=173623300013637&tin=02508201610067®Number=0000000000186857&sum=100000 [18:31:56]OFD Sender: Processing packet 31255 [packets to send 11, broken 10] [18:31:56]ProducePacketName [18:31:56]name=ofd_packets/00031255 [18:31:56]OFD Sender: To server: pG, [18:31:56]CommunicateWithHost lk.salyk.kg:30040 [18:31:56]ConnectInit lk.salyk.kg [18:31:56]written 0, free lines is 4095 [18:31:56]Connected sock=10 [18:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 40 76 07 01 DC E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 7A 00 00 35 04 06 00 9D E8 D3 1F 3E 45 BF 81 C1 8B D7 41 01 47 [18:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 97 58 47 00 E1 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 7A 00 00 F4 03 04 00 9B EB 18 67 B6 04 01 00 00 24 A7 1C 6C FD 51 5E 5B [18:31:56]CommunicateWithHost err = 0 [18:31:56]CheckOFDResponse [18:31:56]1017 (14) - 77093643461234 [18:31:56]1041 (16) - 0000000002094219 [18:31:56]1040 (4) - 31255 [18:31:56]1012 (4) - 23.10.2024 12:27 [18:31:56]1206 (1) - 0 [18:31:56]OFD Sender: Remove packet 31255 [18:31:56]ProducePacketName [18:31:56]name=ofd_packets/00031255 [18:31:56]NVStorageDeleteData [18:31:56]Write to MH i2c: 01 00 00 E7 67 4E [18:31:56]Write i2c OK [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 07 00 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: 01 07 00 E7 67 00 00 00 00 00 F5 0C 56 [18:31:56]RasterBufferAndPrint [18:31:56]line [18:31:56]line [18:31:56]line [18:31:56]line [18:31:56]line [18:31:56]written 0, free lines is 3324 [18:31:56]MH_Cut [18:31:56]Write to MH i2c: D1 01 00 EE 67 01 27 [18:31:56]Write i2c OK [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: D1 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: D1 01 00 [18:31:56]MH_I2C_Read... [18:31:56]Read from MH i2c: D1 01 00 EE 67 00 26 [18:31:56]Write to MH i2c: 01 00 00 EF 67 56 [18:31:56]Write i2c OK [18:31:56]MH_I2C_Read... [18:31:57]OFD Sender: No OFD packet to send [18:31:57]*** Cut start [18:31:57]*** Partial cut [18:31:57]*** CUTSNS_PIN = 1 [18:31:57]*** CUTSNS_PIN = 0 [18:31:57]*** Brake cut motor [18:31:58]Read from MH i2c: 01 [18:31:58]MH_I2C_Read... [18:31:58]*** Stop cut motor [18:31:58]*** Cut end [18:31:58]Read from MH i2c: 01 07 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: 01 07 00 EF 67 00 00 00 00 00 FF 0F 6B [18:31:58]process_action close_receipt done [18:31:58]requested_data is exist [18:31:58]produce_requested_data [18:31:58]requested_item fm.sn is exist - process it [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 11 00 00 [18:31:58]Write to MH i2c: E2 08 00 F0 67 80 11 00 00 00 00 00 00 D1 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 17 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 17 00 F0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [18:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:31:58]wFMCommunicate OK [18:31:58]requested_item fd.num is exist - process it [18:31:58]SAM_PROTO_GetFieldsCounters [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 13 00 00 [18:31:58]Write to MH i2c: E2 08 00 F1 67 80 13 00 00 00 00 00 00 D4 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 62 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 62 00 F1 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [18:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:58]wFMCommunicate OK [18:31:58]SAM_PROTO_GetFieldsCounters done [18:31:58]requested_item shift.num is exist - process it [18:31:58]requested_item shift.opened is exist - process it [18:31:58]req_shift_opened [18:31:58]FM_GetShiftState [18:31:58]SAM_PROTO_GetShiftState [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 13 01 00 [18:31:58]Write to MH i2c: E2 08 00 F2 67 80 13 01 00 00 00 00 00 D6 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 0E 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 0E 00 F2 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 90 [18:31:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:31:58]wFMCommunicate OK [18:31:58]SAM_PROTO_GetShiftState done [18:31:58]FM_GetShiftState done [18:31:58]req_shift_opened done [18:31:58]requested_item shift.open_date is exist - process it [18:31:58]req_shift_open_date [18:31:58]req_shift_open_date done [18:31:58]produce_requested_data done [18:31:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31255,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:31:58]process_action_free close_receipt [18:31:58]json_value_free [18:31:58]json_value_free done [18:31:58]process_json_proto returns [18:31:58]Send response to host [18:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31255,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:31:58]free response buf [18:31:58]execute_script done [18:31:58]execute_script returns [18:31:58]free content buf [18:31:58]Sock 7.Close socket [18:31:58]Sock 7.Thread stoped [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:33]accept exits with 9 [18:33:33]New connection [18:33:33]New thread 3067043172 created [18:33:33]Thread 3066899812 joined [18:33:33]Waiting for new connection... [18:33:33] Sock 9.Parse request [18:33:33]Sock 9.Check first char [18:33:33]Sock 9.First char is OK [18:33:33]request: POST /json_proto HTTP/1.0 [18:33:33]Method: POST [18:33:33]URL: /json_proto [18:33:33]Method is POST - this is cgi request [18:33:33]url: /json_proto [18:33:33]query_string will be loaded in cgi processing [18:33:33]execute_cgi json_proto POST (null) [18:33:33]execute_cgi path=json_proto method=POST [18:33:33]POST find Content-Length [18:33:33]Host: 172.17.51.3:8080 [18:33:33]Content-Length: 688 [18:33:33]Content-Type: application/json [18:33:33] [18:33:33]POST finish read [18:33:33]Found Content-Length = 688 [18:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:33]execute_script... [18:33:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:33]POST & json_proto [18:33:33]process_json_proto [18:33:33]json parsed OK: [18:33:33]protocol is kg_v1.0 [18:33:33]action value=close_receipt [18:33:33]process_action close_receipt [18:33:33]cmd_close_receipt [18:33:33]MH_GetDate [18:33:33]Write to MH i2c: F0 00 00 F3 67 49 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 09 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: F0 09 00 F3 67 00 84 41 19 67 04 C1 95 66 57 [18:33:33]GetLastDocTimeStamp 1729708321 [18:33:33]current date 1729708420 [18:33:33]FM_GetShiftState [18:33:33]SAM_PROTO_GetShiftState [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 01 00 [18:33:33]Write to MH i2c: E2 08 00 F4 67 80 13 01 00 00 00 00 00 D8 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 F4 67 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 92 [18:33:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetShiftState done [18:33:33]FM_GetShiftState done [18:33:33]opened in 1729643755 [18:33:33]opened+sec_in_day 1729730155 [18:33:33]quantity*price = 100051 [18:33:33]sum+1 = 100052 [18:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 200 23.10.2024 18:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31256 ФПД: 80237106929268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183340&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31256&fm=80237106929268&tin=02508201610067®Number=0000000000186857&sum=100000 [18:33:34]StoreToDocumentArchive [18:33:34]shift 117 fd 31256 [18:33:34]save to /storage/0117/doc_00031256 [18:33:34]save last doc name /storage/0117/doc_00031256 to /storage/kkm_last_doc_name [18:33:34]save OK [18:33:34]Clear old archive folders... [18:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:33:34]tlvbuf is 00CC54E0 [18:33:34]SAM_PROTO_ClearQueue [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 09 00 00 [18:33:34]Write to MH i2c: E2 08 00 01 68 80 09 00 00 00 00 00 00 DB [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 01 68 00 90 00 DD [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]SAM_PROTO_ClearQueue done [18:33:34]KKMCreateOFDPacket [18:33:34]OFDProtocolAddRootSTLVToBuf [18:33:34]FM_MakeSignedData [18:33:34]FM_MakeSignedData [18:33:34]SAM_PROTO_SignData [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 01 02 [18:33:34]Write to MH i2c: E2 08 00 02 68 80 0D 01 02 00 00 00 00 E3 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 02 68 00 90 00 DE [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=255 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 84 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 7A 00 [18:33:34]Write to MH i2c: E2 02 01 03 68 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 84 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 7A 00 00 00 51 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 03 68 00 90 00 DF [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=16 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 48 F9 A8 41 9E 74 [18:33:34]Write to MH i2c: E2 13 00 04 68 80 0D 02 02 0B 00 00 35 04 06 00 48 F9 A8 41 9E 74 00 00 77 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 04 68 00 90 00 E0 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 03 02 [18:33:34]Write to MH i2c: E2 08 00 05 68 80 0D 03 02 00 00 00 00 E8 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 05 68 00 48 8D B8 CA 6E C9 DF 82 90 00 D8 [18:33:34]RAPDU: 48 8D B8 CA 6E C9 DF 82 90 00 [18:33:34]wFMCommunicate OK [18:33:34]SAM_PROTO_SignData done [18:33:34]FM_MakeSignedData done [18:33:34]CreateOFDProtocolMessage [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 06 68 80 11 00 00 00 00 00 00 E8 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 06 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:33:34]wFMCommunicate OK [18:33:34]CreateOFDProtocolMessage done [18:33:34]OFDSenderStorePacket 31256 [18:33:34]StoreOFDPacket docnum=31256 [18:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DA 72 0D 01 10 4F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 84 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 7A 00 00 35 04 06 00 48 F9 A8 41 9E 74 48 8D B8 CA 6E C9 DF 82 [18:33:34]CheckFolder [18:33:34]dirname=/storage/ofd_packets [18:33:34]CheckFolder done [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00031256 [18:33:34]NVStorageSaveData ofd_packets/00031256 [18:33:34]File name is /storage/ofd_packets/00031256 [18:33:34]Write 307 bytes [18:33:34]NVStorageSaveData done [18:33:34]OFDSenderStorePacket done [18:33:34]KKMCreateOFDPacket done [18:33:34]NVStorageSaveData kkm_last_timestamp [18:33:34]File name is /storage/kkm_last_timestamp [18:33:34]Write 4 bytes [18:33:34]NVStorageSaveData done [18:33:34]ExternCall_PrintAddStr [18:33:34]wPrintStart [18:33:34]Write to MH i2c: 01 00 00 07 68 6F [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 07 68 00 00 00 00 00 FF 0F 84 [18:33:34]RasterBufferAndPrint [18:33:34]line Счет N : (1)343704 [18:33:34]line ИНН: 02508201610067 [18:33:34]line Контрольно-Кассовый Чек [18:33:34]line ПРОДАЖА [18:33:34]line ТРК (МРК, ГНК) : 61 [18:33:34]line Товар: 2710194210 [18:33:34]line D-ENERGY Дт-К-2 [18:33:34]line 12.960 * 77.20 [18:33:34]line = 1000.51 [18:33:34]line НДС 12% НСП 1% [18:33:34]line > о реализуемом товаре [18:33:34]line ОКРУГЛЕНИЕ: -0.51 [18:33:34]line ИТОГО: 1000.00 [18:33:34]line Внесено: 1000.00 [18:33:34]line СДАЧА: 0.00 [18:33:34]line НСП 1% : 8.85 [18:33:34]line НДС 12% : 106.25 [18:33:34]line Наличными: 1000.00 [18:33:34]line Безнал.: 0.00 [18:33:34]line Место: АЗС № 78 "Партнер Нефть" [18:33:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:33:34]line СНО: Общий режим [18:33:34]line Чек 200 23.10.2024 18:33 [18:33:34]line Смена: 117 ФФД: 1.0 [18:33:34]line ЗНМ: 0300000137 [18:33:34]line РНМ: 0000000000186857 [18:33:34]line Версия ККМ: v1.0 [18:33:34]line ФМ: 0000000002094219 [18:33:34]line ФД: 31256 [18:33:34]line ФПД: 80237106929268 [18:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183340&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31256&fm=80237106929268&tin=02508201610067®Number=0000000000186857&sum=100000 [18:33:35]OFD Sender: Processing packet 31256 [packets to send 11, broken 10] [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00031256 [18:33:35]OFD Sender: To server: pG, [18:33:35]CommunicateWithHost lk.salyk.kg:30040 [18:33:35]ConnectInit lk.salyk.kg [18:33:35]written 0, free lines is 4095 [18:33:35]Connected sock=10 [18:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DA 72 0D 01 10 4F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 84 41 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 7A 00 00 35 04 06 00 48 F9 A8 41 9E 74 48 8D B8 CA 6E C9 DF 82 [18:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 29 CD 47 00 BD 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 32 30 39 34 32 31 39 10 04 04 00 18 7A 00 00 F4 03 04 00 FE EB 18 67 B6 04 01 00 00 B2 47 80 C8 A2 C2 2D 0F [18:33:35]CommunicateWithHost err = 0 [18:33:35]CheckOFDResponse [18:33:35]1017 (14) - 77093643461234 [18:33:35]1041 (16) - 0000000002094219 [18:33:35]1040 (4) - 31256 [18:33:35]1012 (4) - 23.10.2024 12:28 [18:33:35]1206 (1) - 0 [18:33:35]OFD Sender: Remove packet 31256 [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00031256 [18:33:35]NVStorageDeleteData [18:33:35]Write to MH i2c: 01 00 00 32 68 9A [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 32 68 00 00 00 00 00 F7 0C A4 [18:33:35]RasterBufferAndPrint [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]written 0, free lines is 3326 [18:33:35]MH_Cut [18:33:35]Write to MH i2c: D1 01 00 39 68 01 73 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 01 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: D1 01 00 39 68 00 72 [18:33:35]Write to MH i2c: 01 00 00 3A 68 A2 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:36]OFD Sender: No OFD packet to send [18:33:36]*** Cut start [18:33:36]*** Partial cut [18:33:36]*** CUTSNS_PIN = 1 [18:33:36]*** CUTSNS_PIN = 0 [18:33:36]*** Brake cut motor [18:33:37]Read from MH i2c: 01 [18:33:37]MH_I2C_Read... [18:33:37]*** Stop cut motor [18:33:37]*** Cut end [18:33:37]Read from MH i2c: 01 07 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: 01 07 00 3A 68 00 00 00 00 00 FF 0F B7 [18:33:37]process_action close_receipt done [18:33:37]requested_data is exist [18:33:37]produce_requested_data [18:33:37]requested_item fm.sn is exist - process it [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 11 00 00 [18:33:37]Write to MH i2c: E2 08 00 3B 68 80 11 00 00 00 00 00 00 1D [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 17 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 17 00 3B 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [18:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:33:37]wFMCommunicate OK [18:33:37]requested_item fd.num is exist - process it [18:33:37]SAM_PROTO_GetFieldsCounters [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 13 00 00 [18:33:37]Write to MH i2c: E2 08 00 3C 68 80 13 00 00 00 00 00 00 20 [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 62 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 62 00 3C 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [18:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:37]wFMCommunicate OK [18:33:37]SAM_PROTO_GetFieldsCounters done [18:33:37]requested_item shift.num is exist - process it [18:33:37]requested_item shift.opened is exist - process it [18:33:37]req_shift_opened [18:33:37]FM_GetShiftState [18:33:37]SAM_PROTO_GetShiftState [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 13 01 00 [18:33:37]Write to MH i2c: E2 08 00 3D 68 80 13 01 00 00 00 00 00 22 [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 0E 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 0E 00 3D 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DC [18:33:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:33:37]wFMCommunicate OK [18:33:37]SAM_PROTO_GetShiftState done [18:33:37]FM_GetShiftState done [18:33:37]req_shift_opened done [18:33:37]requested_item shift.open_date is exist - process it [18:33:37]req_shift_open_date [18:33:37]req_shift_open_date done [18:33:37]produce_requested_data done [18:33:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31256,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:33:37]process_action_free close_receipt [18:33:37]json_value_free [18:33:37]json_value_free done [18:33:37]process_json_proto returns [18:33:37]Send response to host [18:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31256,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:33:37]free response buf [18:33:37]execute_script done [18:33:37]execute_script returns [18:33:37]free content buf [18:33:37]Sock 9.Close socket [18:33:37]Sock 9.Thread stoped [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:22]accept exits with 7 [18:37:22]New connection [18:37:22]New thread 3066899812 created [18:37:22]Thread 3067043172 joined [18:37:22]Waiting for new connection... [18:37:22] Sock 7.Parse request [18:37:22]Sock 7.Check first char [18:37:22]Sock 7.First char is OK [18:37:22]request: POST /json_proto HTTP/1.0 [18:37:22]Method: POST [18:37:22]URL: /json_proto [18:37:22]Method is POST - this is cgi request [18:37:22]url: /json_proto [18:37:22]query_string will be loaded in cgi processing [18:37:22]execute_cgi json_proto POST (null) [18:37:22]execute_cgi path=json_proto method=POST [18:37:22]POST find Content-Length [18:37:22]Host: 172.17.51.3:8080 [18:37:22]Content-Length: 840 [18:37:22]Content-Type: application/json [18:37:22] [18:37:22]POST finish read [18:37:22]Found Content-Length = 840 [18:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:22]execute_script... [18:37:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:22]POST & json_proto [18:37:22]process_json_proto [18:37:22]json parsed OK: [18:37:22]protocol is kg_v1.0 [18:37:22]action value=close_receipt [18:37:22]process_action close_receipt [18:37:22]cmd_close_receipt [18:37:22]MH_GetDate [18:37:22]Write to MH i2c: F0 00 00 3E 68 95 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: F0 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: F0 09 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: F0 09 00 3E 68 00 6A 42 19 67 04 C1 95 66 8A [18:37:22]GetLastDocTimeStamp 1729708420 [18:37:22]current date 1729708650 [18:37:22]FM_GetShiftState [18:37:22]SAM_PROTO_GetShiftState [18:37:22]wFMCommunicate request_size=4 [18:37:22]MH_SAM_APDU [18:37:22]CAPDU: 80 13 01 00 [18:37:22]Write to MH i2c: E2 08 00 3F 68 80 13 01 00 00 00 00 00 24 [18:37:22]Write i2c OK [18:37:22]MH_I2C_Read... [18:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:22]Read from MH i2c: E2 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 0E 00 [18:37:22]MH_I2C_Read... [18:37:22]Read from MH i2c: E2 0E 00 3F 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DE [18:37:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:37:22]wFMCommunicate OK [18:37:22]SAM_PROTO_GetShiftState done [18:37:22]FM_GetShiftState done [18:37:22]opened in 1729643755 [18:37:22]opened+sec_in_day 1729730155 [18:37:22]quantity*price = 50010 [18:37:22]sum+1 = 50012 [18:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 201 23.10.2024 18:37 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31257 ФПД: 163076737362958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183730&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31257&fm=163076737362958&tin=02508201610067®Number=0000000000186857&sum=50011 [18:37:23]StoreToDocumentArchive [18:37:23]shift 117 fd 31257 [18:37:23]save to /storage/0117/doc_00031257 [18:37:23]save last doc name /storage/0117/doc_00031257 to /storage/kkm_last_doc_name [18:37:23]save OK [18:37:23]Clear old archive folders... [18:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:23]tlvbuf is 00F62780 [18:37:23]SAM_PROTO_ClearQueue [18:37:23]wFMCommunicate request_size=4 [18:37:23]MH_SAM_APDU [18:37:23]CAPDU: 80 09 00 00 [18:37:23]Write to MH i2c: E2 08 00 4C 68 80 09 00 00 00 00 00 00 26 [18:37:23]Write i2c OK [18:37:23]MH_I2C_Read... [18:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:23]Read from MH i2c: E2 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: E2 03 00 [18:37:23]MH_I2C_Read... [18:37:23]Read from MH i2c: E2 03 00 4C 68 00 90 00 28 [18:37:23]RAPDU: 90 00 [18:37:23]wFMCommunicate OK [18:37:23]SAM_PROTO_ClearQueue done [18:37:23]KKMCreateOFDPacket [18:37:23]OFDProtocolAddRootSTLVToBuf [18:37:23]FM_MakeSignedData [18:37:23]FM_MakeSignedData [18:37:23]SAM_PROTO_SignData [18:37:23]wFMCommunicate request_size=4 [18:37:23]MH_SAM_APDU [18:37:23]CAPDU: 80 0D 01 02 [18:37:23]Write to MH i2c: E2 08 00 4D 68 80 0D 01 02 00 00 00 00 2E [18:37:23]Write i2c OK [18:37:23]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 4D 68 00 90 00 29 [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=255 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6A 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 7A 00 00 35 04 06 00 94 [18:37:24]Write to MH i2c: E2 02 01 4E 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6A 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 7A 00 00 35 04 06 00 94 00 00 3F [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 4E 68 00 90 00 2A [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=10 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 02 02 05 51 43 00 6C 0E [18:37:24]Write to MH i2c: E2 0D 00 4F 68 80 0D 02 02 05 00 51 43 00 6C 0E 00 00 49 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 03 00 4F 68 00 90 00 2B [18:37:24]RAPDU: 90 00 [18:37:24]wFMCommunicate OK [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 0D 03 02 [18:37:24]Write to MH i2c: E2 08 00 50 68 80 0D 03 02 00 00 00 00 33 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 0B 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 0B 00 50 68 00 88 6C 0A 08 1E F1 CE 71 90 00 88 [18:37:24]RAPDU: 88 6C 0A 08 1E F1 CE 71 90 00 [18:37:24]wFMCommunicate OK [18:37:24]SAM_PROTO_SignData done [18:37:24]FM_MakeSignedData done [18:37:24]CreateOFDProtocolMessage [18:37:24]wFMCommunicate request_size=4 [18:37:24]MH_SAM_APDU [18:37:24]CAPDU: 80 11 00 00 [18:37:24]Write to MH i2c: E2 08 00 51 68 80 11 00 00 00 00 00 00 33 [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:24]Read from MH i2c: E2 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 17 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: E2 17 00 51 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [18:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:37:24]wFMCommunicate OK [18:37:24]CreateOFDProtocolMessage done [18:37:24]OFDSenderStorePacket 31257 [18:37:24]StoreOFDPacket docnum=31257 [18:37:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 96 B7 07 01 F1 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6A 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 7A 00 00 35 04 06 00 94 51 43 00 6C 0E 88 6C 0A 08 1E F1 CE 71 [18:37:24]CheckFolder [18:37:24]dirname=/storage/ofd_packets [18:37:24]CheckFolder done [18:37:24]ProducePacketName [18:37:24]name=ofd_packets/00031257 [18:37:24]NVStorageSaveData ofd_packets/00031257 [18:37:24]File name is /storage/ofd_packets/00031257 [18:37:24]Write 301 bytes [18:37:24]NVStorageSaveData done [18:37:24]OFDSenderStorePacket done [18:37:24]KKMCreateOFDPacket done [18:37:24]NVStorageSaveData kkm_last_timestamp [18:37:24]File name is /storage/kkm_last_timestamp [18:37:24]Write 4 bytes [18:37:24]NVStorageSaveData done [18:37:24]ExternCall_PrintAddStr [18:37:24]wPrintStart [18:37:24]Write to MH i2c: 01 00 00 52 68 BA [18:37:24]Write i2c OK [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 07 00 [18:37:24]MH_I2C_Read... [18:37:24]Read from MH i2c: 01 07 00 52 68 00 00 00 00 00 FF 0F CF [18:37:24]RasterBufferAndPrint [18:37:24]line Счет N : (1)343705 [18:37:24]line ИНН: 02508201610067 [18:37:24]line Контрольно-Кассовый Чек [18:37:24]line ПРОДАЖА [18:37:24]line ТРК (МРК, ГНК) : 52 [18:37:24]line Товар: 2710124500 [18:37:24]line Аи-95-К-3 [18:37:24]line 6.740 * 74.20 [18:37:24]line = 500.11 [18:37:24]line НДС 12% НСП 1% [18:37:24]line > о реализуемом товаре [18:37:24]line ИТОГО: 500.11 [18:37:24]line НСП 1% : 4.43 [18:37:24]line НДС 12% : 53.11 [18:37:24]line Наличными: 0.00 [18:37:24]line Безнал.: 500.11 [18:37:24]line Место: АЗС № 78 "Партнер Нефть" [18:37:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:37:24]line СНО: Общий режим [18:37:24]line Чек 201 23.10.2024 18:37 [18:37:24]line Смена: 117 ФФД: 1.0 [18:37:24]line ЗНМ: 0300000137 [18:37:24]line РНМ: 0000000000186857 [18:37:24]line Версия ККМ: v1.0 [18:37:24]line Платежная система: АКБ Кыргызстан [18:37:24]line ФМ: 0000000002094219 [18:37:24]line ФД: 31257 [18:37:24]line ФПД: 163076737362958 [18:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183730&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31257&fm=163076737362958&tin=02508201610067®Number=0000000000186857&sum=50011 [18:37:24]OFD Sender: Processing packet 31257 [packets to send 11, broken 10] [18:37:24]ProducePacketName [18:37:24]name=ofd_packets/00031257 [18:37:24]OFD Sender: To server: pG, [18:37:24]CommunicateWithHost lk.salyk.kg:30040 [18:37:24]ConnectInit lk.salyk.kg [18:37:24]written 0, free lines is 4095 [18:37:25]Connected sock=10 [18:37:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 96 B7 07 01 F1 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6A 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 7A 00 00 35 04 06 00 94 51 43 00 6C 0E 88 6C 0A 08 1E F1 CE 71 [18:37:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 DE 47 00 D9 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 7A 00 00 F4 03 04 00 E4 EC 18 67 B6 04 01 00 00 F8 8B E2 7F 5B 9D 39 8F [18:37:25]CommunicateWithHost err = 0 [18:37:25]CheckOFDResponse [18:37:25]1017 (14) - 77093643461234 [18:37:25]1041 (16) - 0000000002094219 [18:37:25]1040 (4) - 31257 [18:37:25]1012 (4) - 23.10.2024 12:32 [18:37:25]1206 (1) - 0 [18:37:25]OFD Sender: Remove packet 31257 [18:37:25]ProducePacketName [18:37:25]name=ofd_packets/00031257 [18:37:25]NVStorageDeleteData [18:37:25]Write to MH i2c: 01 00 00 7C 68 E4 [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 07 00 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: 01 07 00 7C 68 00 00 00 00 00 02 0D FA [18:37:25]RasterBufferAndPrint [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]line [18:37:25]written 0, free lines is 3338 [18:37:25]MH_Cut [18:37:25]Write to MH i2c: D1 01 00 83 68 01 BD [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 01 00 [18:37:25]MH_I2C_Read... [18:37:25]Read from MH i2c: D1 01 00 83 68 00 BC [18:37:25]Write to MH i2c: 01 00 00 84 68 EC [18:37:25]Write i2c OK [18:37:25]MH_I2C_Read... [18:37:25]OFD Sender: No OFD packet to send [18:37:25]*** Cut start [18:37:25]*** Partial cut [18:37:25]*** CUTSNS_PIN = 1 [18:37:25]*** CUTSNS_PIN = 0 [18:37:26]*** Brake cut motor [18:37:26]Read from MH i2c: 01 [18:37:26]MH_I2C_Read... [18:37:26]*** Stop cut motor [18:37:26]*** Cut end [18:37:26]Read from MH i2c: 01 07 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: 01 07 00 84 68 00 00 00 00 00 FF 0F 01 [18:37:26]process_action close_receipt done [18:37:26]requested_data is exist [18:37:26]produce_requested_data [18:37:26]requested_item fm.sn is exist - process it [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 11 00 00 [18:37:26]Write to MH i2c: E2 08 00 85 68 80 11 00 00 00 00 00 00 67 [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:26]Read from MH i2c: E2 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 17 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 17 00 85 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [18:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:37:26]wFMCommunicate OK [18:37:26]requested_item fd.num is exist - process it [18:37:26]SAM_PROTO_GetFieldsCounters [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 13 00 00 [18:37:26]Write to MH i2c: E2 08 00 86 68 80 13 00 00 00 00 00 00 6A [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:26]Read from MH i2c: E2 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 62 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 62 00 86 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:37:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:26]wFMCommunicate OK [18:37:26]SAM_PROTO_GetFieldsCounters done [18:37:26]requested_item shift.num is exist - process it [18:37:26]requested_item shift.opened is exist - process it [18:37:26]req_shift_opened [18:37:26]FM_GetShiftState [18:37:26]SAM_PROTO_GetShiftState [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 13 01 00 [18:37:26]Write to MH i2c: E2 08 00 87 68 80 13 01 00 00 00 00 00 6C [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:26]Read from MH i2c: E2 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 0E 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 0E 00 87 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 26 [18:37:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:37:26]wFMCommunicate OK [18:37:26]SAM_PROTO_GetShiftState done [18:37:26]FM_GetShiftState done [18:37:26]req_shift_opened done [18:37:26]requested_item shift.open_date is exist - process it [18:37:26]req_shift_open_date [18:37:26]req_shift_open_date done [18:37:26]produce_requested_data done [18:37:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31257,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:37:26]process_action_free close_receipt [18:37:26]json_value_free [18:37:26]json_value_free done [18:37:26]process_json_proto returns [18:37:26]Send response to host [18:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31257,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:37:26]free response buf [18:37:26]execute_script done [18:37:26]execute_script returns [18:37:26]free content buf [18:37:26]Sock 7.Close socket [18:37:26]Sock 7.Thread stoped [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:42]accept exits with 9 [18:38:42]New connection [18:38:42]New thread 3067043172 created [18:38:42]Thread 3066899812 joined [18:38:42]Waiting for new connection... [18:38:42] Sock 9.Parse request [18:38:42]Sock 9.Check first char [18:38:42]Sock 9.First char is OK [18:38:42]request: POST /json_proto HTTP/1.0 [18:38:42]Method: POST [18:38:42]URL: /json_proto [18:38:42]Method is POST - this is cgi request [18:38:42]url: /json_proto [18:38:42]query_string will be loaded in cgi processing [18:38:42]execute_cgi json_proto POST (null) [18:38:42]execute_cgi path=json_proto method=POST [18:38:42]POST find Content-Length [18:38:42]Host: 172.17.51.3:8080 [18:38:42]Content-Length: 677 [18:38:42]Content-Type: application/json [18:38:42] [18:38:42]POST finish read [18:38:42]Found Content-Length = 677 [18:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:42]execute_script... [18:38:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:42]POST & json_proto [18:38:42]process_json_proto [18:38:42]json parsed OK: [18:38:42]protocol is kg_v1.0 [18:38:42]action value=close_receipt [18:38:42]process_action close_receipt [18:38:42]cmd_close_receipt [18:38:42]MH_GetDate [18:38:42]Write to MH i2c: F0 00 00 88 68 DF [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 09 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 09 00 88 68 00 B9 42 19 67 04 C1 95 66 23 [18:38:42]GetLastDocTimeStamp 1729708650 [18:38:42]current date 1729708729 [18:38:42]FM_GetShiftState [18:38:42]SAM_PROTO_GetShiftState [18:38:42]wFMCommunicate request_size=4 [18:38:42]MH_SAM_APDU [18:38:42]CAPDU: 80 13 01 00 [18:38:42]Write to MH i2c: E2 08 00 89 68 80 13 01 00 00 00 00 00 6E [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0E 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0E 00 89 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 28 [18:38:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:38:42]wFMCommunicate OK [18:38:42]SAM_PROTO_GetShiftState done [18:38:42]FM_GetShiftState done [18:38:42]opened in 1729643755 [18:38:42]opened+sec_in_day 1729730155 [18:38:42]quantity*price = 50041 [18:38:42]sum+1 = 50042 [18:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 202 23.10.2024 18:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31258 ФПД: 16582762769709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31258&fm=16582762769709&tin=02508201610067®Number=0000000000186857&sum=50000 [18:38:43]StoreToDocumentArchive [18:38:43]shift 117 fd 31258 [18:38:43]save to /storage/0117/doc_00031258 [18:38:43]save last doc name /storage/0117/doc_00031258 to /storage/kkm_last_doc_name [18:38:43]save OK [18:38:43]Clear old archive folders... [18:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:43]tlvbuf is 00D5E1C0 [18:38:43]SAM_PROTO_ClearQueue [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 09 00 00 [18:38:43]Write to MH i2c: E2 08 00 96 68 80 09 00 00 00 00 00 00 70 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 96 68 00 90 00 72 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_ClearQueue done [18:38:43]KKMCreateOFDPacket [18:38:43]OFDProtocolAddRootSTLVToBuf [18:38:43]FM_MakeSignedData [18:38:43]FM_MakeSignedData [18:38:43]SAM_PROTO_SignData [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 01 02 [18:38:43]Write to MH i2c: E2 08 00 97 68 80 0D 01 02 00 00 00 00 78 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 97 68 00 90 00 73 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=255 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B9 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 7A 00 00 35 04 06 00 0F [18:38:43]Write to MH i2c: E2 02 01 98 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B9 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 7A 00 00 35 04 06 00 0F 00 00 66 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 98 68 00 90 00 74 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=10 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 02 02 05 14 F9 AF 2D 2D [18:38:43]Write to MH i2c: E2 0D 00 99 68 80 0D 02 02 05 00 14 F9 AF 2D 2D 00 00 9B [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 99 68 00 90 00 75 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 03 02 [18:38:43]Write to MH i2c: E2 08 00 9A 68 80 0D 03 02 00 00 00 00 7D [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0B 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0B 00 9A 68 00 2C DE 06 55 91 89 E3 08 90 00 E8 [18:38:43]RAPDU: 2C DE 06 55 91 89 E3 08 90 00 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_SignData done [18:38:43]FM_MakeSignedData done [18:38:43]CreateOFDProtocolMessage [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 11 00 00 [18:38:43]Write to MH i2c: E2 08 00 9B 68 80 11 00 00 00 00 00 00 7D [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 9B 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [18:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:43]wFMCommunicate OK [18:38:43]CreateOFDProtocolMessage done [18:38:43]OFDSenderStorePacket 31258 [18:38:43]StoreOFDPacket docnum=31258 [18:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 8E 07 01 75 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B9 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 7A 00 00 35 04 06 00 0F 14 F9 AF 2D 2D 2C DE 06 55 91 89 E3 08 [18:38:43]CheckFolder [18:38:43]dirname=/storage/ofd_packets [18:38:43]CheckFolder done [18:38:43]ProducePacketName [18:38:43]name=ofd_packets/00031258 [18:38:43]NVStorageSaveData ofd_packets/00031258 [18:38:43]File name is /storage/ofd_packets/00031258 [18:38:43]Write 301 bytes [18:38:43]NVStorageSaveData done [18:38:43]OFDSenderStorePacket done [18:38:43]KKMCreateOFDPacket done [18:38:43]NVStorageSaveData kkm_last_timestamp [18:38:43]File name is /storage/kkm_last_timestamp [18:38:43]Write 4 bytes [18:38:43]NVStorageSaveData done [18:38:43]ExternCall_PrintAddStr [18:38:43]wPrintStart [18:38:43]Write to MH i2c: 01 00 00 9C 68 04 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 9C 68 00 00 00 00 00 FF 0F 19 [18:38:43]RasterBufferAndPrint [18:38:43]line Счет N : (1)343706 [18:38:43]line ИНН: 02508201610067 [18:38:43]line Контрольно-Кассовый Чек [18:38:43]line ПРОДАЖА [18:38:43]line ТРК (МРК, ГНК) : 63 [18:38:43]line Товар: 2710124130 [18:38:43]line Аи-92-К-2 [18:38:43]line 7.480 * 66.90 [18:38:43]line = 500.41 [18:38:43]line НДС 12% НСП 1% [18:38:43]line > о реализуемом товаре [18:38:43]line ОКРУГЛЕНИЕ: -0.41 [18:38:43]line ИТОГО: 500.00 [18:38:43]line Внесено: 500.00 [18:38:43]line СДАЧА: 0.00 [18:38:43]line НСП 1% : 4.43 [18:38:43]line НДС 12% : 53.14 [18:38:43]line Наличными: 500.00 [18:38:43]line Безнал.: 0.00 [18:38:43]line Место: АЗС № 78 "Партнер Нефть" [18:38:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:38:43]line СНО: Общий режим [18:38:43]line Чек 202 23.10.2024 18:38 [18:38:43]line Смена: 117 ФФД: 1.0 [18:38:43]line ЗНМ: 0300000137 [18:38:43]line РНМ: 0000000000186857 [18:38:43]line Версия ККМ: v1.0 [18:38:43]line ФМ: 0000000002094219 [18:38:43]line ФД: 31258 [18:38:43]line ФПД: 16582762769709 [18:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31258&fm=16582762769709&tin=02508201610067®Number=0000000000186857&sum=50000 [18:38:44]OFD Sender: Processing packet 31258 [packets to send 11, broken 10] [18:38:44]ProducePacketName [18:38:44]name=ofd_packets/00031258 [18:38:44]OFD Sender: To server: pG, [18:38:44]CommunicateWithHost lk.salyk.kg:30040 [18:38:44]ConnectInit lk.salyk.kg [18:38:44]written 0, free lines is 4095 [18:38:44]Connected sock=10 [18:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 35 8E 07 01 75 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B9 42 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 7A 00 00 35 04 06 00 0F 14 F9 AF 2D 2D 2C DE 06 55 91 89 E3 08 [18:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 39 93 47 00 42 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 7A 00 00 F4 03 04 00 33 ED 18 67 B6 04 01 00 00 79 E2 CE C6 C3 7C 3A 04 [18:38:44]CommunicateWithHost err = 0 [18:38:44]CheckOFDResponse [18:38:44]1017 (14) - 77093643461234 [18:38:44]1041 (16) - 0000000002094219 [18:38:44]1040 (4) - 31258 [18:38:44]1012 (4) - 23.10.2024 12:33 [18:38:44]1206 (1) - 0 [18:38:44]OFD Sender: Remove packet 31258 [18:38:44]ProducePacketName [18:38:44]name=ofd_packets/00031258 [18:38:44]NVStorageDeleteData [18:38:44]Write to MH i2c: 01 00 00 C7 68 2F [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 07 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 07 00 C7 68 00 00 00 00 00 FB 0C 3D [18:38:44]RasterBufferAndPrint [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]written 0, free lines is 3332 [18:38:44]MH_Cut [18:38:44]Write to MH i2c: D1 01 00 CE 68 01 08 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 01 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 01 00 CE 68 00 07 [18:38:44]Write to MH i2c: 01 00 00 CF 68 37 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:45]OFD Sender: No OFD packet to send [18:38:45]*** Cut start [18:38:45]*** Partial cut [18:38:45]*** CUTSNS_PIN = 1 [18:38:45]*** CUTSNS_PIN = 0 [18:38:45]*** Brake cut motor [18:38:45]Read from MH i2c: 01 [18:38:45]MH_I2C_Read... [18:38:45]*** Stop cut motor [18:38:45]*** Cut end [18:38:45]Read from MH i2c: 01 07 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: 01 07 00 CF 68 00 00 00 00 00 FF 0F 4C [18:38:45]process_action close_receipt done [18:38:45]requested_data is exist [18:38:45]produce_requested_data [18:38:45]requested_item fm.sn is exist - process it [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 11 00 00 [18:38:45]Write to MH i2c: E2 08 00 D0 68 80 11 00 00 00 00 00 00 B2 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:45]Read from MH i2c: E2 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 17 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 17 00 D0 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [18:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:38:45]wFMCommunicate OK [18:38:45]requested_item fd.num is exist - process it [18:38:45]SAM_PROTO_GetFieldsCounters [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 13 00 00 [18:38:45]Write to MH i2c: E2 08 00 D1 68 80 13 00 00 00 00 00 00 B5 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 62 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 62 00 D1 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [18:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_GetFieldsCounters done [18:38:46]requested_item shift.num is exist - process it [18:38:46]requested_item shift.opened is exist - process it [18:38:46]req_shift_opened [18:38:46]FM_GetShiftState [18:38:46]SAM_PROTO_GetShiftState [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 13 01 00 [18:38:46]Write to MH i2c: E2 08 00 D2 68 80 13 01 00 00 00 00 00 B7 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0E 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0E 00 D2 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 71 [18:38:46]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_GetShiftState done [18:38:46]FM_GetShiftState done [18:38:46]req_shift_opened done [18:38:46]requested_item shift.open_date is exist - process it [18:38:46]req_shift_open_date [18:38:46]req_shift_open_date done [18:38:46]produce_requested_data done [18:38:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31258,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:38:46]process_action_free close_receipt [18:38:46]json_value_free [18:38:46]json_value_free done [18:38:46]process_json_proto returns [18:38:46]Send response to host [18:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31258,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:38:46]free response buf [18:38:46]execute_script done [18:38:46]execute_script returns [18:38:46]free content buf [18:38:46]Sock 9.Close socket [18:38:46]Sock 9.Thread stoped [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:47]accept exits with 7 [18:43:47]New connection [18:43:47]New thread 3066899812 created [18:43:47]Thread 3067043172 joined [18:43:47]Waiting for new connection... [18:43:47] Sock 7.Parse request [18:43:47]Sock 7.Check first char [18:43:47]Sock 7.First char is OK [18:43:47]request: POST /json_proto HTTP/1.0 [18:43:47]Method: POST [18:43:47]URL: /json_proto [18:43:47]Method is POST - this is cgi request [18:43:47]url: /json_proto [18:43:47]query_string will be loaded in cgi processing [18:43:47]execute_cgi json_proto POST (null) [18:43:47]execute_cgi path=json_proto method=POST [18:43:47]POST find Content-Length [18:43:47]Host: 172.17.51.3:8080 [18:43:47]Content-Length: 682 [18:43:47]Content-Type: application/json [18:43:47] [18:43:47]POST finish read [18:43:47]Found Content-Length = 682 [18:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 45.690, "sum" : 3390.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3450.00, "total" : 3390.00, "payments": [ { "type": 0, "sum" : 3390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:47]execute_script... [18:43:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 45.690, "sum" : 3390.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3450.00, "total" : 3390.00, "payments": [ { "type": 0, "sum" : 3390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:47]POST & json_proto [18:43:47]process_json_proto [18:43:47]json parsed OK: [18:43:47]protocol is kg_v1.0 [18:43:47]action value=close_receipt [18:43:47]process_action close_receipt [18:43:47]cmd_close_receipt [18:43:47]MH_GetDate [18:43:47]Write to MH i2c: F0 00 00 D3 68 2A [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 09 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 09 00 D3 68 00 EB 43 19 67 04 C1 95 66 A1 [18:43:47]GetLastDocTimeStamp 1729708729 [18:43:47]current date 1729709035 [18:43:47]FM_GetShiftState [18:43:47]SAM_PROTO_GetShiftState [18:43:47]wFMCommunicate request_size=4 [18:43:47]MH_SAM_APDU [18:43:47]CAPDU: 80 13 01 00 [18:43:47]Write to MH i2c: E2 08 00 D4 68 80 13 01 00 00 00 00 00 B9 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:47]Read from MH i2c: E2 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 D4 68 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 73 [18:43:47]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:43:47]wFMCommunicate OK [18:43:47]SAM_PROTO_GetShiftState done [18:43:47]FM_GetShiftState done [18:43:47]opened in 1729643755 [18:43:47]opened+sec_in_day 1729730155 [18:43:47]quantity*price = 339019 [18:43:47]sum+1 = 339021 [18:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 3390.00 Внесено: 3450.00 СДАЧА: 60.00 НСП 1% : 30.00 НДС 12% : 360.02 Наличными: 3390.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 203 23.10.2024 18:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31259 ФПД: 257035194087361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31259&fm=257035194087361&tin=02508201610067®Number=0000000000186857&sum=339000 [18:43:49]StoreToDocumentArchive [18:43:49]shift 117 fd 31259 [18:43:49]save to /storage/0117/doc_00031259 [18:43:49]save last doc name /storage/0117/doc_00031259 to /storage/kkm_last_doc_name [18:43:49]save OK [18:43:49]Clear old archive folders... [18:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:49]tlvbuf is 00E47170 [18:43:49]SAM_PROTO_ClearQueue [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 09 00 00 [18:43:49]Write to MH i2c: E2 08 00 E1 68 80 09 00 00 00 00 00 00 BB [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 E1 68 00 90 00 BD [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]SAM_PROTO_ClearQueue done [18:43:49]KKMCreateOFDPacket [18:43:49]OFDProtocolAddRootSTLVToBuf [18:43:49]FM_MakeSignedData [18:43:49]FM_MakeSignedData [18:43:49]SAM_PROTO_SignData [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 01 02 [18:43:49]Write to MH i2c: E2 08 00 E2 68 80 0D 01 02 00 00 00 00 C3 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 E2 68 00 90 00 BE [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=255 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A B2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4C 2C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 2C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 8C 00 00 00 00 07 04 06 00 38 2C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EB 43 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 7A 00 00 35 04 06 00 E9 [18:43:49]Write to MH i2c: E2 02 01 E3 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A B2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4C 2C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 2C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 8C 00 00 00 00 07 04 06 00 38 2C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EB 43 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 7A 00 00 35 04 06 00 E9 00 00 C4 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 E3 68 00 90 00 BF [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=10 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 02 02 05 C5 AB 70 37 C1 [18:43:49]Write to MH i2c: E2 0D 00 E4 68 80 0D 02 02 05 00 C5 AB 70 37 C1 00 00 A8 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 E4 68 00 90 00 C0 [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 03 02 [18:43:49]Write to MH i2c: E2 08 00 E5 68 80 0D 03 02 00 00 00 00 C8 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 0B 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 0B 00 E5 68 00 05 4F CB BD FE 5B FD B7 90 00 B2 [18:43:49]RAPDU: 05 4F CB BD FE 5B FD B7 90 00 [18:43:49]wFMCommunicate OK [18:43:49]SAM_PROTO_SignData done [18:43:49]FM_MakeSignedData done [18:43:49]CreateOFDProtocolMessage [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 11 00 00 [18:43:49]Write to MH i2c: E2 08 00 E6 68 80 11 00 00 00 00 00 00 C8 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 E6 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [18:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:43:49]wFMCommunicate OK [18:43:49]CreateOFDProtocolMessage done [18:43:49]OFDSenderStorePacket 31259 [18:43:49]StoreOFDPacket docnum=31259 [18:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 94 07 01 07 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A B2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4C 2C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 2C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 8C 00 00 00 00 07 04 06 00 38 2C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EB 43 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 7A 00 00 35 04 06 00 E9 C5 AB 70 37 C1 05 4F CB BD FE 5B FD B7 [18:43:49]CheckFolder [18:43:49]dirname=/storage/ofd_packets [18:43:49]CheckFolder done [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00031259 [18:43:49]NVStorageSaveData ofd_packets/00031259 [18:43:49]File name is /storage/ofd_packets/00031259 [18:43:49]Write 301 bytes [18:43:49]NVStorageSaveData done [18:43:49]OFDSenderStorePacket done [18:43:49]KKMCreateOFDPacket done [18:43:49]NVStorageSaveData kkm_last_timestamp [18:43:49]File name is /storage/kkm_last_timestamp [18:43:49]Write 4 bytes [18:43:49]NVStorageSaveData done [18:43:49]ExternCall_PrintAddStr [18:43:49]wPrintStart [18:43:49]Write to MH i2c: 01 00 00 E7 68 4F [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 E7 68 00 00 00 00 00 FF 0F 64 [18:43:49]RasterBufferAndPrint [18:43:49]line Счет N : (1)343707 [18:43:49]line ИНН: 02508201610067 [18:43:49]line Контрольно-Кассовый Чек [18:43:49]line ПРОДАЖА [18:43:49]line ТРК (МРК, ГНК) : 32 [18:43:49]line Товар: 2710124500 [18:43:49]line Аи-95-К-3 [18:43:49]line 45.690 * 74.20 [18:43:49]line = 3390.20 [18:43:49]line НДС 12% НСП 1% [18:43:49]line > о реализуемом товаре [18:43:49]line ОКРУГЛЕНИЕ: -0.20 [18:43:49]line ИТОГО: 3390.00 [18:43:49]line Внесено: 3450.00 [18:43:49]line СДАЧА: 60.00 [18:43:49]line НСП 1% : 30.00 [18:43:49]line НДС 12% : 360.02 [18:43:49]line Наличными: 3390.00 [18:43:49]line Безнал.: 0.00 [18:43:49]line Место: АЗС № 78 "Партнер Нефть" [18:43:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:43:49]line СНО: Общий режим [18:43:49]line Чек 203 23.10.2024 18:43 [18:43:49]line Смена: 117 ФФД: 1.0 [18:43:49]line ЗНМ: 0300000137 [18:43:49]line РНМ: 0000000000186857 [18:43:49]line Версия ККМ: v1.0 [18:43:49]line ФМ: 0000000002094219 [18:43:49]line ФД: 31259 [18:43:49]line ФПД: 257035194087361 [18:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31259&fm=257035194087361&tin=02508201610067®Number=0000000000186857&sum=339000 [18:43:49]written 0, free lines is 4095 [18:43:49]OFD Sender: Processing packet 31259 [packets to send 11, broken 10] [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00031259 [18:43:49]OFD Sender: To server: pG, [18:43:49]CommunicateWithHost lk.salyk.kg:30040 [18:43:49]ConnectInit lk.salyk.kg [18:43:49]Connected sock=10 [18:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 94 07 01 07 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A B2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4C 2C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 2C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 8C 00 00 00 00 07 04 06 00 38 2C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 EB 43 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 7A 00 00 35 04 06 00 E9 C5 AB 70 37 C1 05 4F CB BD FE 5B FD B7 [18:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8F D9 47 00 58 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 7A 00 00 F4 03 04 00 64 EE 18 67 B6 04 01 00 00 B6 DE BB 7E F7 59 D8 E7 [18:43:49]CommunicateWithHost err = 0 [18:43:49]CheckOFDResponse [18:43:49]1017 (14) - 77093643461234 [18:43:49]1041 (16) - 0000000002094219 [18:43:49]1040 (4) - 31259 [18:43:49]1012 (4) - 23.10.2024 12:39 [18:43:49]1206 (1) - 0 [18:43:49]OFD Sender: Remove packet 31259 [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00031259 [18:43:49]NVStorageDeleteData [18:43:50]Write to MH i2c: 01 00 00 12 69 7B [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 07 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 07 00 12 69 00 00 00 00 00 F3 0C 81 [18:43:50]RasterBufferAndPrint [18:43:50]line [18:43:50]line [18:43:50]line [18:43:50]line [18:43:50]line [18:43:50]written 0, free lines is 3321 [18:43:50]MH_Cut [18:43:50]Write to MH i2c: D1 01 00 19 69 01 54 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 01 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: D1 01 00 19 69 00 53 [18:43:50]Write to MH i2c: 01 00 00 1A 69 83 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]OFD Sender: No OFD packet to send [18:43:50]*** Cut start [18:43:50]*** Partial cut [18:43:50]*** CUTSNS_PIN = 1 [18:43:50]*** CUTSNS_PIN = 0 [18:43:50]*** Brake cut motor [18:43:51]Read from MH i2c: 01 [18:43:51]MH_I2C_Read... [18:43:51]*** Stop cut motor [18:43:51]*** Cut end [18:43:51]Read from MH i2c: 01 07 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 07 00 1A 69 00 00 00 00 00 FF 0F 98 [18:43:51]process_action close_receipt done [18:43:51]requested_data is exist [18:43:51]produce_requested_data [18:43:51]requested_item fm.sn is exist - process it [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 11 00 00 [18:43:51]Write to MH i2c: E2 08 00 1B 69 80 11 00 00 00 00 00 00 FE [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 1B 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4C [18:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:43:51]wFMCommunicate OK [18:43:51]requested_item fd.num is exist - process it [18:43:51]SAM_PROTO_GetFieldsCounters [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 00 00 [18:43:51]Write to MH i2c: E2 08 00 1C 69 80 13 00 00 00 00 00 00 01 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 1C 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetFieldsCounters done [18:43:51]requested_item shift.num is exist - process it [18:43:51]requested_item shift.opened is exist - process it [18:43:51]req_shift_opened [18:43:51]FM_GetShiftState [18:43:51]SAM_PROTO_GetShiftState [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 01 00 [18:43:51]Write to MH i2c: E2 08 00 1D 69 80 13 01 00 00 00 00 00 03 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 1D 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BD [18:43:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetShiftState done [18:43:51]FM_GetShiftState done [18:43:51]req_shift_opened done [18:43:51]requested_item shift.open_date is exist - process it [18:43:51]req_shift_open_date [18:43:51]req_shift_open_date done [18:43:51]produce_requested_data done [18:43:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31259,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:43:51]process_action_free close_receipt [18:43:51]json_value_free [18:43:51]json_value_free done [18:43:51]process_json_proto returns [18:43:51]Send response to host [18:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31259,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:43:51]free response buf [18:43:51]execute_script done [18:43:51]execute_script returns [18:43:51]free content buf [18:43:51]Sock 7.Close socket [18:43:51]Sock 7.Thread stoped [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:50]accept exits with 9 [18:44:50]New connection [18:44:50]New thread 3067043172 created [18:44:50]Thread 3066899812 joined [18:44:50]Waiting for new connection... [18:44:50] Sock 9.Parse request [18:44:50]Sock 9.Check first char [18:44:50]Sock 9.First char is OK [18:44:50]request: POST /json_proto HTTP/1.0 [18:44:50]Method: POST [18:44:50]URL: /json_proto [18:44:50]Method is POST - this is cgi request [18:44:50]url: /json_proto [18:44:50]query_string will be loaded in cgi processing [18:44:50]execute_cgi json_proto POST (null) [18:44:50]execute_cgi path=json_proto method=POST [18:44:50]POST find Content-Length [18:44:50]Host: 172.17.51.3:8080 [18:44:50]Content-Length: 677 [18:44:50]Content-Type: application/json [18:44:50] [18:44:50]POST finish read [18:44:50]Found Content-Length = 677 [18:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:50]execute_script... [18:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:50]POST & json_proto [18:44:50]process_json_proto [18:44:50]json parsed OK: [18:44:50]protocol is kg_v1.0 [18:44:50]action value=close_receipt [18:44:50]process_action close_receipt [18:44:50]cmd_close_receipt [18:44:50]MH_GetDate [18:44:50]Write to MH i2c: F0 00 00 1E 69 76 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 09 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 09 00 1E 69 00 2A 44 19 67 04 C1 95 66 2D [18:44:50]GetLastDocTimeStamp 1729709035 [18:44:50]current date 1729709098 [18:44:50]FM_GetShiftState [18:44:50]SAM_PROTO_GetShiftState [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 13 01 00 [18:44:50]Write to MH i2c: E2 08 00 1F 69 80 13 01 00 00 00 00 00 05 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0E 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0E 00 1F 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BF [18:44:50]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:44:50]wFMCommunicate OK [18:44:50]SAM_PROTO_GetShiftState done [18:44:50]FM_GetShiftState done [18:44:50]opened in 1729643755 [18:44:50]opened+sec_in_day 1729730155 [18:44:50]quantity*price = 40006 [18:44:50]sum+1 = 40007 [18:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 204 23.10.2024 18:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31260 ФПД: 153626245447730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184458&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31260&fm=153626245447730&tin=02508201610067®Number=0000000000186857&sum=40000 [18:44:52]StoreToDocumentArchive [18:44:52]shift 117 fd 31260 [18:44:52]save to /storage/0117/doc_00031260 [18:44:52]save last doc name /storage/0117/doc_00031260 to /storage/kkm_last_doc_name [18:44:52]save OK [18:44:52]Clear old archive folders... [18:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:52]tlvbuf is 00E90680 [18:44:52]SAM_PROTO_ClearQueue [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 09 00 00 [18:44:52]Write to MH i2c: E2 08 00 2C 69 80 09 00 00 00 00 00 00 07 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2C 69 00 90 00 09 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_ClearQueue done [18:44:52]KKMCreateOFDPacket [18:44:52]OFDProtocolAddRootSTLVToBuf [18:44:52]FM_MakeSignedData [18:44:52]FM_MakeSignedData [18:44:52]SAM_PROTO_SignData [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 01 02 [18:44:52]Write to MH i2c: E2 08 00 2D 69 80 0D 01 02 00 00 00 00 0F [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2D 69 00 90 00 0A [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=255 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2A 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 7A 00 00 35 04 06 00 8B [18:44:52]Write to MH i2c: E2 02 01 2E 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2A 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 7A 00 00 35 04 06 00 8B 00 00 BF [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2E 69 00 90 00 0B [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=10 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 05 B8 E5 C9 C0 32 [18:44:52]Write to MH i2c: E2 0D 00 2F 69 80 0D 02 02 05 00 B8 E5 C9 C0 32 00 00 74 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2F 69 00 90 00 0C [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 03 02 [18:44:52]Write to MH i2c: E2 08 00 30 69 80 0D 03 02 00 00 00 00 14 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0B 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0B 00 30 69 00 D9 9C 2B B9 51 6D 99 D9 90 00 9E [18:44:52]RAPDU: D9 9C 2B B9 51 6D 99 D9 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_SignData done [18:44:52]FM_MakeSignedData done [18:44:52]CreateOFDProtocolMessage [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 11 00 00 [18:44:52]Write to MH i2c: E2 08 00 31 69 80 11 00 00 00 00 00 00 14 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 17 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 17 00 31 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [18:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:44:52]wFMCommunicate OK [18:44:52]CreateOFDProtocolMessage done [18:44:52]OFDSenderStorePacket 31260 [18:44:52]StoreOFDPacket docnum=31260 [18:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 3A 07 01 5A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2A 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 7A 00 00 35 04 06 00 8B B8 E5 C9 C0 32 D9 9C 2B B9 51 6D 99 D9 [18:44:52]CheckFolder [18:44:52]dirname=/storage/ofd_packets [18:44:52]CheckFolder done [18:44:52]ProducePacketName [18:44:52]name=ofd_packets/00031260 [18:44:52]NVStorageSaveData ofd_packets/00031260 [18:44:52]File name is /storage/ofd_packets/00031260 [18:44:52]Write 301 bytes [18:44:52]NVStorageSaveData done [18:44:52]OFDSenderStorePacket done [18:44:52]KKMCreateOFDPacket done [18:44:52]NVStorageSaveData kkm_last_timestamp [18:44:52]File name is /storage/kkm_last_timestamp [18:44:52]Write 4 bytes [18:44:52]NVStorageSaveData done [18:44:52]ExternCall_PrintAddStr [18:44:52]wPrintStart [18:44:52]Write to MH i2c: 01 00 00 32 69 9B [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 07 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 07 00 32 69 00 00 00 00 00 FF 0F B0 [18:44:52]RasterBufferAndPrint [18:44:52]line Счет N : (1)343708 [18:44:52]line ИНН: 02508201610067 [18:44:52]line Контрольно-Кассовый Чек [18:44:52]line ПРОДАЖА [18:44:52]line ТРК (МРК, ГНК) : 63 [18:44:52]line Товар: 2710124130 [18:44:52]line Аи-92-К-2 [18:44:52]line 5.980 * 66.90 [18:44:52]line = 400.06 [18:44:52]line НДС 12% НСП 1% [18:44:52]line > о реализуемом товаре [18:44:52]line ОКРУГЛЕНИЕ: -0.06 [18:44:52]line ИТОГО: 400.00 [18:44:52]line Внесено: 400.00 [18:44:52]line СДАЧА: 0.00 [18:44:52]line НСП 1% : 3.54 [18:44:52]line НДС 12% : 42.48 [18:44:52]line Наличными: 400.00 [18:44:52]line Безнал.: 0.00 [18:44:52]line Место: АЗС № 78 "Партнер Нефть" [18:44:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:44:52]line СНО: Общий режим [18:44:52]line Чек 204 23.10.2024 18:44 [18:44:52]line Смена: 117 ФФД: 1.0 [18:44:52]line ЗНМ: 0300000137 [18:44:52]line РНМ: 0000000000186857 [18:44:52]line Версия ККМ: v1.0 [18:44:52]line ФМ: 0000000002094219 [18:44:52]line ФД: 31260 [18:44:52]line ФПД: 153626245447730 [18:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184458&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31260&fm=153626245447730&tin=02508201610067®Number=0000000000186857&sum=40000 [18:44:52]OFD Sender: Processing packet 31260 [packets to send 11, broken 10] [18:44:52]ProducePacketName [18:44:52]name=ofd_packets/00031260 [18:44:52]OFD Sender: To server: pG, [18:44:52]CommunicateWithHost lk.salyk.kg:30040 [18:44:52]ConnectInit lk.salyk.kg [18:44:52]written 0, free lines is 4095 [18:44:53]Connected sock=10 [18:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 3A 07 01 5A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2A 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 7A 00 00 35 04 06 00 8B B8 E5 C9 C0 32 D9 9C 2B B9 51 6D 99 D9 [18:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 77 33 47 00 68 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 7A 00 00 F4 03 04 00 A4 EE 18 67 B6 04 01 00 00 F2 3F C4 CE 6C B4 38 9D [18:44:53]CommunicateWithHost err = 0 [18:44:53]CheckOFDResponse [18:44:53]1017 (14) - 77093643461234 [18:44:53]1041 (16) - 0000000002094219 [18:44:53]1040 (4) - 31260 [18:44:53]1012 (4) - 23.10.2024 12:40 [18:44:53]1206 (1) - 0 [18:44:53]OFD Sender: Remove packet 31260 [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00031260 [18:44:53]NVStorageDeleteData [18:44:53]Write to MH i2c: 01 00 00 5D 69 C6 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 5D 69 00 00 00 00 00 EF 0C C8 [18:44:53]RasterBufferAndPrint [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]line [18:44:53]written 0, free lines is 3317 [18:44:53]MH_Cut [18:44:53]Write to MH i2c: D1 01 00 64 69 01 9F [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 01 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: D1 01 00 64 69 00 9E [18:44:53]Write to MH i2c: 01 00 00 65 69 CE [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]OFD Sender: No OFD packet to send [18:44:54]*** Cut start [18:44:54]*** Partial cut [18:44:54]*** CUTSNS_PIN = 1 [18:44:54]*** CUTSNS_PIN = 0 [18:44:54]*** Brake cut motor [18:44:54]Read from MH i2c: 01 [18:44:54]MH_I2C_Read... [18:44:54]*** Stop cut motor [18:44:54]*** Cut end [18:44:54]Read from MH i2c: 01 07 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: 01 07 00 65 69 00 00 00 00 00 FF 0F E3 [18:44:54]process_action close_receipt done [18:44:54]requested_data is exist [18:44:54]produce_requested_data [18:44:54]requested_item fm.sn is exist - process it [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 11 00 00 [18:44:54]Write to MH i2c: E2 08 00 66 69 80 11 00 00 00 00 00 00 49 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:54]Read from MH i2c: E2 17 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 17 00 66 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [18:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:44:54]wFMCommunicate OK [18:44:54]requested_item fd.num is exist - process it [18:44:54]SAM_PROTO_GetFieldsCounters [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 00 00 [18:44:54]Write to MH i2c: E2 08 00 67 69 80 13 00 00 00 00 00 00 4C [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 62 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 62 00 67 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [18:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetFieldsCounters done [18:44:54]requested_item shift.num is exist - process it [18:44:54]requested_item shift.opened is exist - process it [18:44:54]req_shift_opened [18:44:54]FM_GetShiftState [18:44:54]SAM_PROTO_GetShiftState [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 01 00 [18:44:54]Write to MH i2c: E2 08 00 68 69 80 13 01 00 00 00 00 00 4E [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 68 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 08 [18:44:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetShiftState done [18:44:54]FM_GetShiftState done [18:44:54]req_shift_opened done [18:44:54]requested_item shift.open_date is exist - process it [18:44:54]req_shift_open_date [18:44:54]req_shift_open_date done [18:44:54]produce_requested_data done [18:44:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31260,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:44:54]process_action_free close_receipt [18:44:54]json_value_free [18:44:54]json_value_free done [18:44:54]process_json_proto returns [18:44:54]Send response to host [18:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31260,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:44:54]free response buf [18:44:54]execute_script done [18:44:54]execute_script returns [18:44:54]free content buf [18:44:54]Sock 9.Close socket [18:44:54]Sock 9.Thread stoped [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:00]accept exits with 7 [18:47:00]New connection [18:47:00]New thread 3066899812 created [18:47:00]Thread 3067043172 joined [18:47:00]Waiting for new connection... [18:47:00] Sock 7.Parse request [18:47:00]Sock 7.Check first char [18:47:00]Sock 7.First char is OK [18:47:00]request: POST /json_proto HTTP/1.0 [18:47:00]Method: POST [18:47:00]URL: /json_proto [18:47:00]Method is POST - this is cgi request [18:47:00]url: /json_proto [18:47:00]query_string will be loaded in cgi processing [18:47:00]execute_cgi json_proto POST (null) [18:47:00]execute_cgi path=json_proto method=POST [18:47:00]POST find Content-Length [18:47:00]Host: 172.17.51.3:8080 [18:47:00]Content-Length: 977 [18:47:00]Content-Type: application/json [18:47:00] [18:47:00]POST finish read [18:47:00]Found Content-Length = 977 [18:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:00]execute_script... [18:47:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:00]POST & json_proto [18:47:00]process_json_proto [18:47:00]json parsed OK: [18:47:00]protocol is kg_v1.0 [18:47:00]action value=close_receipt [18:47:00]process_action close_receipt [18:47:00]cmd_close_receipt [18:47:00]MH_GetDate [18:47:00]Write to MH i2c: F0 00 00 69 69 C1 [18:47:00]Write i2c OK [18:47:00]MH_I2C_Read... [18:47:00]Read from MH i2c: F0 [18:47:00]MH_I2C_Read... [18:47:00]Read from MH i2c: F0 09 00 [18:47:00]MH_I2C_Read... [18:47:00]Read from MH i2c: F0 09 00 69 69 00 AC 44 19 67 04 C1 95 66 FA [18:47:00]GetLastDocTimeStamp 1729709098 [18:47:00]current date 1729709228 [18:47:00]FM_GetShiftState [18:47:00]SAM_PROTO_GetShiftState [18:47:00]wFMCommunicate request_size=4 [18:47:00]MH_SAM_APDU [18:47:00]CAPDU: 80 13 01 00 [18:47:00]Write to MH i2c: E2 08 00 6A 69 80 13 01 00 00 00 00 00 50 [18:47:00]Write i2c OK [18:47:00]MH_I2C_Read... [18:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:00]Read from MH i2c: E2 [18:47:00]MH_I2C_Read... [18:47:00]Read from MH i2c: E2 0E 00 [18:47:00]MH_I2C_Read... [18:47:00]Read from MH i2c: E2 0E 00 6A 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0A [18:47:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:47:00]wFMCommunicate OK [18:47:00]SAM_PROTO_GetShiftState done [18:47:00]FM_GetShiftState done [18:47:00]opened in 1729643755 [18:47:00]opened+sec_in_day 1729730155 [18:47:00]quantity*price = 400064 [18:47:00]sum+1 = 400065 [18:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 205 23.10.2024 18:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 53.20 сом ФМ: 0000000002094219 ФД: 31261 ФПД: 206491108183533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184708&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31261&fm=206491108183533&tin=02508201610067®Number=0000000000186857&sum=400000 [18:47:02]StoreToDocumentArchive [18:47:02]shift 117 fd 31261 [18:47:02]save to /storage/0117/doc_00031261 [18:47:02]save last doc name /storage/0117/doc_00031261 to /storage/kkm_last_doc_name [18:47:02]save OK [18:47:02]Clear old archive folders... [18:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:47:02]tlvbuf is 00D65350 [18:47:02]SAM_PROTO_ClearQueue [18:47:02]wFMCommunicate request_size=4 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 09 00 00 [18:47:02]Write to MH i2c: E2 08 00 77 69 80 09 00 00 00 00 00 00 52 [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 77 69 00 90 00 54 [18:47:02]RAPDU: 90 00 [18:47:02]wFMCommunicate OK [18:47:02]SAM_PROTO_ClearQueue done [18:47:02]KKMCreateOFDPacket [18:47:02]OFDProtocolAddRootSTLVToBuf [18:47:02]FM_MakeSignedData [18:47:02]FM_MakeSignedData [18:47:02]SAM_PROTO_SignData [18:47:02]wFMCommunicate request_size=4 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 0D 01 02 [18:47:02]Write to MH i2c: E2 08 00 78 69 80 0D 01 02 00 00 00 00 5A [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 78 69 00 90 00 55 [18:47:02]RAPDU: 90 00 [18:47:02]wFMCommunicate OK [18:47:02]wFMCommunicate request_size=255 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 AC 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 7A 00 00 35 04 06 00 BB CD 75 27 [18:47:02]Write to MH i2c: E2 02 01 79 69 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 AC 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 7A 00 00 35 04 06 00 BB CD 75 27 00 00 DD [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 79 69 00 90 00 56 [18:47:02]RAPDU: 90 00 [18:47:02]wFMCommunicate OK [18:47:02]wFMCommunicate request_size=7 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 0D 02 02 02 0D ED [18:47:02]Write to MH i2c: E2 0A 00 7A 69 80 0D 02 02 02 00 0D ED 00 00 5B [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 03 00 7A 69 00 90 00 57 [18:47:02]RAPDU: 90 00 [18:47:02]wFMCommunicate OK [18:47:02]wFMCommunicate request_size=4 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 0D 03 02 [18:47:02]Write to MH i2c: E2 08 00 7B 69 80 0D 03 02 00 00 00 00 5F [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 0B 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 0B 00 7B 69 00 C4 3A 2B 69 07 07 E7 35 90 00 1C [18:47:02]RAPDU: C4 3A 2B 69 07 07 E7 35 90 00 [18:47:02]wFMCommunicate OK [18:47:02]SAM_PROTO_SignData done [18:47:02]FM_MakeSignedData done [18:47:02]CreateOFDProtocolMessage [18:47:02]wFMCommunicate request_size=4 [18:47:02]MH_SAM_APDU [18:47:02]CAPDU: 80 11 00 00 [18:47:02]Write to MH i2c: E2 08 00 7C 69 80 11 00 00 00 00 00 00 5F [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:02]Read from MH i2c: E2 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 17 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: E2 17 00 7C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [18:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:47:02]wFMCommunicate OK [18:47:02]CreateOFDProtocolMessage done [18:47:02]OFDSenderStorePacket 31261 [18:47:02]StoreOFDPacket docnum=31261 [18:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 32 C8 04 01 7E 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 AC 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 7A 00 00 35 04 06 00 BB CD 75 27 0D ED C4 3A 2B 69 07 07 E7 35 [18:47:02]CheckFolder [18:47:02]dirname=/storage/ofd_packets [18:47:02]CheckFolder done [18:47:02]ProducePacketName [18:47:02]name=ofd_packets/00031261 [18:47:02]NVStorageSaveData ofd_packets/00031261 [18:47:02]File name is /storage/ofd_packets/00031261 [18:47:02]Write 298 bytes [18:47:02]NVStorageSaveData done [18:47:02]OFDSenderStorePacket done [18:47:02]KKMCreateOFDPacket done [18:47:02]NVStorageSaveData kkm_last_timestamp [18:47:02]File name is /storage/kkm_last_timestamp [18:47:02]Write 4 bytes [18:47:02]NVStorageSaveData done [18:47:02]ExternCall_PrintAddStr [18:47:02]wPrintStart [18:47:02]Write to MH i2c: 01 00 00 7D 69 E6 [18:47:02]Write i2c OK [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 [18:47:02]MH_I2C_Read... [18:47:02]Read from MH i2c: 01 07 00 7D 69 00 00 00 00 00 FF 0F FB [18:47:02]RasterBufferAndPrint [18:47:02]line Счет N : (1)343709 [18:47:02]line ИНН: 02508201610067 [18:47:02]line Контрольно-Кассовый Чек [18:47:02]line ПРОДАЖА [18:47:02]line ТРК (МРК, ГНК) : 44 [18:47:02]line Товар: 2710194210 [18:47:02]line ДТ-К-2 [18:47:02]line 53.200 * 75.20 [18:47:02]line = 4000.64 [18:47:02]line НДС 12% НСП 1% [18:47:02]line > о реализуемом товаре [18:47:02]line ОКРУГЛЕНИЕ: -0.64 [18:47:02]line ИТОГО: 4000.00 [18:47:02]line Внесено: 4000.00 [18:47:02]line СДАЧА: 0.00 [18:47:02]line НСП 1% : 35.40 [18:47:02]line НДС 12% : 424.85 [18:47:02]line Наличными: 4000.00 [18:47:02]line Безнал.: 0.00 [18:47:02]line Место: АЗС № 78 "Партнер Нефть" [18:47:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:47:02]line СНО: Общий режим [18:47:02]line Чек 205 23.10.2024 18:47 [18:47:02]line Смена: 117 ФФД: 1.0 [18:47:02]line ЗНМ: 0300000137 [18:47:02]line РНМ: 0000000000186857 [18:47:02]line Версия ККМ: v1.0 [18:47:02]line [18:47:02]line Дисконтная программа [18:47:02]line ДТ [18:47:02]line номер 78 [18:47:02]line сэкономлено 53.20 сом [18:47:02]line ФМ: 0000000002094219 [18:47:02]line ФД: 31261 [18:47:02]line ФПД: 206491108183533 [18:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184708&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31261&fm=206491108183533&tin=02508201610067®Number=0000000000186857&sum=400000 [18:47:02]OFD Sender: Processing packet 31261 [packets to send 11, broken 10] [18:47:02]ProducePacketName [18:47:02]name=ofd_packets/00031261 [18:47:02]OFD Sender: To server: pG, [18:47:02]CommunicateWithHost lk.salyk.kg:30040 [18:47:02]ConnectInit lk.salyk.kg [18:47:02]written 0, free lines is 4095 [18:47:02]Connected sock=10 [18:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 32 C8 04 01 7E 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 AC 44 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 7A 00 00 35 04 06 00 BB CD 75 27 0D ED C4 3A 2B 69 07 07 E7 35 [18:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 22 47 00 F8 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 7A 00 00 F4 03 04 00 26 EF 18 67 B6 04 01 00 00 10 63 CE 89 1B 70 95 4C [18:47:03]CommunicateWithHost err = 0 [18:47:03]CheckOFDResponse [18:47:03]1017 (14) - 77093643461234 [18:47:03]1041 (16) - 0000000002094219 [18:47:03]1040 (4) - 31261 [18:47:03]1012 (4) - 23.10.2024 12:42 [18:47:03]1206 (1) - 0 [18:47:03]OFD Sender: Remove packet 31261 [18:47:03]ProducePacketName [18:47:03]name=ofd_packets/00031261 [18:47:03]NVStorageDeleteData [18:47:03]Write to MH i2c: 01 00 00 AD 69 16 [18:47:03]Write i2c OK [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: 01 [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: 01 07 00 [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: 01 07 00 AD 69 00 00 00 00 00 9A 0C C3 [18:47:03]RasterBufferAndPrint [18:47:03]line [18:47:03]line [18:47:03]line [18:47:03]line [18:47:03]line [18:47:03]written 0, free lines is 3233 [18:47:03]MH_Cut [18:47:03]Write to MH i2c: D1 01 00 B4 69 01 EF [18:47:03]Write i2c OK [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: D1 [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: D1 01 00 [18:47:03]MH_I2C_Read... [18:47:03]Read from MH i2c: D1 01 00 B4 69 00 EE [18:47:03]Write to MH i2c: 01 00 00 B5 69 1E [18:47:03]Write i2c OK [18:47:03]MH_I2C_Read... [18:47:03]OFD Sender: No OFD packet to send [18:47:04]*** Cut start [18:47:04]*** Partial cut [18:47:04]*** CUTSNS_PIN = 1 [18:47:04]*** CUTSNS_PIN = 0 [18:47:04]*** Brake cut motor [18:47:04]Read from MH i2c: 01 [18:47:04]MH_I2C_Read... [18:47:04]*** Stop cut motor [18:47:04]*** Cut end [18:47:04]Read from MH i2c: 01 07 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: 01 07 00 B5 69 00 00 00 00 00 FF 0F 33 [18:47:04]process_action close_receipt done [18:47:04]requested_data is exist [18:47:04]produce_requested_data [18:47:04]requested_item fm.sn is exist - process it [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 11 00 00 [18:47:04]Write to MH i2c: E2 08 00 B6 69 80 11 00 00 00 00 00 00 99 [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 17 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 17 00 B6 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [18:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:47:04]wFMCommunicate OK [18:47:04]requested_item fd.num is exist - process it [18:47:04]SAM_PROTO_GetFieldsCounters [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 13 00 00 [18:47:04]Write to MH i2c: E2 08 00 B7 69 80 13 00 00 00 00 00 00 9C [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 62 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 62 00 B7 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:04]wFMCommunicate OK [18:47:04]SAM_PROTO_GetFieldsCounters done [18:47:04]requested_item shift.num is exist - process it [18:47:04]requested_item shift.opened is exist - process it [18:47:04]req_shift_opened [18:47:04]FM_GetShiftState [18:47:04]SAM_PROTO_GetShiftState [18:47:04]wFMCommunicate request_size=4 [18:47:04]MH_SAM_APDU [18:47:04]CAPDU: 80 13 01 00 [18:47:04]Write to MH i2c: E2 08 00 B8 69 80 13 01 00 00 00 00 00 9E [18:47:04]Write i2c OK [18:47:04]MH_I2C_Read... [18:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:04]Read from MH i2c: E2 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 [18:47:04]MH_I2C_Read... [18:47:04]Read from MH i2c: E2 0E 00 B8 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 58 [18:47:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:47:04]wFMCommunicate OK [18:47:04]SAM_PROTO_GetShiftState done [18:47:04]FM_GetShiftState done [18:47:04]req_shift_opened done [18:47:04]requested_item shift.open_date is exist - process it [18:47:04]req_shift_open_date [18:47:04]req_shift_open_date done [18:47:04]produce_requested_data done [18:47:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31261,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:47:04]process_action_free close_receipt [18:47:04]json_value_free [18:47:04]json_value_free done [18:47:04]process_json_proto returns [18:47:04]Send response to host [18:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31261,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:47:04]free response buf [18:47:04]execute_script done [18:47:04]execute_script returns [18:47:04]free content buf [18:47:04]Sock 7.Close socket [18:47:04]Sock 7.Thread stoped [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:39]accept exits with 9 [18:49:39]New connection [18:49:39]New thread 3067043172 created [18:49:39]Thread 3066899812 joined [18:49:39]Waiting for new connection... [18:49:39] Sock 9.Parse request [18:49:39]Sock 9.Check first char [18:49:39]Sock 9.First char is OK [18:49:39]request: POST /json_proto HTTP/1.0 [18:49:39]Method: POST [18:49:39]URL: /json_proto [18:49:39]Method is POST - this is cgi request [18:49:39]url: /json_proto [18:49:39]query_string will be loaded in cgi processing [18:49:39]execute_cgi json_proto POST (null) [18:49:39]execute_cgi path=json_proto method=POST [18:49:39]POST find Content-Length [18:49:39]Host: 172.17.51.3:8080 [18:49:39]Content-Length: 677 [18:49:39]Content-Type: application/json [18:49:39] [18:49:39]POST finish read [18:49:39]Found Content-Length = 677 [18:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:39]execute_script... [18:49:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:39]POST & json_proto [18:49:39]process_json_proto [18:49:39]json parsed OK: [18:49:39]protocol is kg_v1.0 [18:49:39]action value=close_receipt [18:49:39]process_action close_receipt [18:49:39]cmd_close_receipt [18:49:39]MH_GetDate [18:49:39]Write to MH i2c: F0 00 00 B9 69 11 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: F0 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: F0 09 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: F0 09 00 B9 69 00 4A 45 19 67 04 C1 95 66 E9 [18:49:39]GetLastDocTimeStamp 1729709228 [18:49:39]current date 1729709386 [18:49:39]FM_GetShiftState [18:49:39]SAM_PROTO_GetShiftState [18:49:39]wFMCommunicate request_size=4 [18:49:39]MH_SAM_APDU [18:49:39]CAPDU: 80 13 01 00 [18:49:39]Write to MH i2c: E2 08 00 BA 69 80 13 01 00 00 00 00 00 A0 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:39]Read from MH i2c: E2 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0E 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: E2 0E 00 BA 69 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5A [18:49:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:49:39]wFMCommunicate OK [18:49:39]SAM_PROTO_GetShiftState done [18:49:39]FM_GetShiftState done [18:49:39]opened in 1729643755 [18:49:39]opened+sec_in_day 1729730155 [18:49:39]quantity*price = 50041 [18:49:39]sum+1 = 50042 [18:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 206 23.10.2024 18:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31262 ФПД: 119521735276918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31262&fm=119521735276918&tin=02508201610067®Number=0000000000186857&sum=50000 [18:49:40]StoreToDocumentArchive [18:49:40]shift 117 fd 31262 [18:49:40]save to /storage/0117/doc_00031262 [18:49:40]save last doc name /storage/0117/doc_00031262 to /storage/kkm_last_doc_name [18:49:40]save OK [18:49:40]Clear old archive folders... [18:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:40]tlvbuf is 00CCFF60 [18:49:40]SAM_PROTO_ClearQueue [18:49:40]wFMCommunicate request_size=4 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 09 00 00 [18:49:40]Write to MH i2c: E2 08 00 C7 69 80 09 00 00 00 00 00 00 A2 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 C7 69 00 90 00 A4 [18:49:40]RAPDU: 90 00 [18:49:40]wFMCommunicate OK [18:49:40]SAM_PROTO_ClearQueue done [18:49:40]KKMCreateOFDPacket [18:49:40]OFDProtocolAddRootSTLVToBuf [18:49:40]FM_MakeSignedData [18:49:40]FM_MakeSignedData [18:49:40]SAM_PROTO_SignData [18:49:40]wFMCommunicate request_size=4 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 0D 01 02 [18:49:40]Write to MH i2c: E2 08 00 C8 69 80 0D 01 02 00 00 00 00 AA [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 C8 69 00 90 00 A5 [18:49:40]RAPDU: 90 00 [18:49:40]wFMCommunicate OK [18:49:40]wFMCommunicate request_size=255 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4A 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 7A 00 00 35 04 06 00 6C [18:49:40]Write to MH i2c: E2 02 01 C9 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4A 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 7A 00 00 35 04 06 00 6C 00 00 91 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 C9 69 00 90 00 A6 [18:49:40]RAPDU: 90 00 [18:49:40]wFMCommunicate OK [18:49:40]wFMCommunicate request_size=10 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 0D 02 02 05 B4 52 92 F9 76 [18:49:40]Write to MH i2c: E2 0D 00 CA 69 80 0D 02 02 05 00 B4 52 92 F9 76 00 00 BE [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 03 00 CA 69 00 90 00 A7 [18:49:40]RAPDU: 90 00 [18:49:40]wFMCommunicate OK [18:49:40]wFMCommunicate request_size=4 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 0D 03 02 [18:49:40]Write to MH i2c: E2 08 00 CB 69 80 0D 03 02 00 00 00 00 AF [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 0B 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 0B 00 CB 69 00 2D 46 3B 60 50 DB 9B D5 90 00 59 [18:49:40]RAPDU: 2D 46 3B 60 50 DB 9B D5 90 00 [18:49:40]wFMCommunicate OK [18:49:40]SAM_PROTO_SignData done [18:49:40]FM_MakeSignedData done [18:49:40]CreateOFDProtocolMessage [18:49:40]wFMCommunicate request_size=4 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 11 00 00 [18:49:40]Write to MH i2c: E2 08 00 CC 69 80 11 00 00 00 00 00 00 AF [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:40]Read from MH i2c: E2 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 17 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: E2 17 00 CC 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [18:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:49:40]wFMCommunicate OK [18:49:40]CreateOFDProtocolMessage done [18:49:40]OFDSenderStorePacket 31262 [18:49:40]StoreOFDPacket docnum=31262 [18:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DE 2E 07 01 15 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4A 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 7A 00 00 35 04 06 00 6C B4 52 92 F9 76 2D 46 3B 60 50 DB 9B D5 [18:49:40]CheckFolder [18:49:40]dirname=/storage/ofd_packets [18:49:40]CheckFolder done [18:49:40]ProducePacketName [18:49:40]name=ofd_packets/00031262 [18:49:40]NVStorageSaveData ofd_packets/00031262 [18:49:40]File name is /storage/ofd_packets/00031262 [18:49:40]Write 301 bytes [18:49:40]NVStorageSaveData done [18:49:40]OFDSenderStorePacket done [18:49:40]KKMCreateOFDPacket done [18:49:40]NVStorageSaveData kkm_last_timestamp [18:49:40]File name is /storage/kkm_last_timestamp [18:49:40]Write 4 bytes [18:49:40]NVStorageSaveData done [18:49:40]ExternCall_PrintAddStr [18:49:40]wPrintStart [18:49:40]Write to MH i2c: 01 00 00 CD 69 36 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 07 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 07 00 CD 69 00 00 00 00 00 FF 0F 4B [18:49:40]RasterBufferAndPrint [18:49:40]line Счет N : (1)343710 [18:49:40]line ИНН: 02508201610067 [18:49:40]line Контрольно-Кассовый Чек [18:49:40]line ПРОДАЖА [18:49:40]line ТРК (МРК, ГНК) : 33 [18:49:40]line Товар: 2710124130 [18:49:40]line Аи-92-К-2 [18:49:40]line 7.480 * 66.90 [18:49:40]line = 500.41 [18:49:40]line НДС 12% НСП 1% [18:49:40]line > о реализуемом товаре [18:49:40]line ОКРУГЛЕНИЕ: -0.41 [18:49:40]line ИТОГО: 500.00 [18:49:40]line Внесено: 500.00 [18:49:40]line СДАЧА: 0.00 [18:49:40]line НСП 1% : 4.43 [18:49:40]line НДС 12% : 53.14 [18:49:40]line Наличными: 500.00 [18:49:40]line Безнал.: 0.00 [18:49:40]line Место: АЗС № 78 "Партнер Нефть" [18:49:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:49:40]line СНО: Общий режим [18:49:40]line Чек 206 23.10.2024 18:49 [18:49:40]line Смена: 117 ФФД: 1.0 [18:49:40]line ЗНМ: 0300000137 [18:49:40]line РНМ: 0000000000186857 [18:49:40]line Версия ККМ: v1.0 [18:49:40]line ФМ: 0000000002094219 [18:49:40]line ФД: 31262 [18:49:40]line ФПД: 119521735276918 [18:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184946&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31262&fm=119521735276918&tin=02508201610067®Number=0000000000186857&sum=50000 [18:49:41]OFD Sender: Processing packet 31262 [packets to send 11, broken 10] [18:49:41]ProducePacketName [18:49:41]name=ofd_packets/00031262 [18:49:41]OFD Sender: To server: pG, [18:49:41]CommunicateWithHost lk.salyk.kg:30040 [18:49:41]ConnectInit lk.salyk.kg [18:49:41]written 0, free lines is 4095 [18:49:41]Connected sock=10 [18:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DE 2E 07 01 15 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 4A 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 7A 00 00 35 04 06 00 6C B4 52 92 F9 76 2D 46 3B 60 50 DB 9B D5 [18:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 87 B8 47 00 EE E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 7A 00 00 F4 03 04 00 C4 EF 18 67 B6 04 01 00 00 C6 F9 E3 63 2E 6D 04 E9 [18:49:41]CommunicateWithHost err = 0 [18:49:41]CheckOFDResponse [18:49:41]1017 (14) - 77093643461234 [18:49:41]1041 (16) - 0000000002094219 [18:49:41]1040 (4) - 31262 [18:49:41]1012 (4) - 23.10.2024 12:44 [18:49:41]1206 (1) - 0 [18:49:41]OFD Sender: Remove packet 31262 [18:49:41]ProducePacketName [18:49:41]name=ofd_packets/00031262 [18:49:41]NVStorageDeleteData [18:49:41]Write to MH i2c: 01 00 00 F8 69 61 [18:49:41]Write i2c OK [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: 01 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: 01 07 00 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: 01 07 00 F8 69 00 00 00 00 00 ED 0C 61 [18:49:41]RasterBufferAndPrint [18:49:41]line [18:49:41]line [18:49:41]line [18:49:41]line [18:49:41]line [18:49:41]written 0, free lines is 3315 [18:49:41]MH_Cut [18:49:41]Write to MH i2c: D1 01 00 FF 69 01 3A [18:49:41]Write i2c OK [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: D1 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: D1 01 00 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: D1 01 00 FF 69 00 39 [18:49:41]Write to MH i2c: 01 00 00 00 6A 6A [18:49:41]Write i2c OK [18:49:41]MH_I2C_Read... [18:49:42]OFD Sender: No OFD packet to send [18:49:42]*** Cut start [18:49:42]*** Partial cut [18:49:42]*** CUTSNS_PIN = 1 [18:49:42]*** CUTSNS_PIN = 0 [18:49:42]*** Brake cut motor [18:49:42]Read from MH i2c: 01 [18:49:42]MH_I2C_Read... [18:49:42]*** Stop cut motor [18:49:42]*** Cut end [18:49:42]Read from MH i2c: 01 07 00 [18:49:42]MH_I2C_Read... [18:49:42]Read from MH i2c: 01 07 00 00 6A 00 00 00 00 00 FF 0F 7F [18:49:42]process_action close_receipt done [18:49:42]requested_data is exist [18:49:42]produce_requested_data [18:49:42]requested_item fm.sn is exist - process it [18:49:42]wFMCommunicate request_size=4 [18:49:42]MH_SAM_APDU [18:49:42]CAPDU: 80 11 00 00 [18:49:42]Write to MH i2c: E2 08 00 01 6A 80 11 00 00 00 00 00 00 E5 [18:49:42]Write i2c OK [18:49:42]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 17 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 17 00 01 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [18:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:49:43]wFMCommunicate OK [18:49:43]requested_item fd.num is exist - process it [18:49:43]SAM_PROTO_GetFieldsCounters [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 13 00 00 [18:49:43]Write to MH i2c: E2 08 00 02 6A 80 13 00 00 00 00 00 00 E8 [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 62 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 62 00 02 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [18:49:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:43]wFMCommunicate OK [18:49:43]SAM_PROTO_GetFieldsCounters done [18:49:43]requested_item shift.num is exist - process it [18:49:43]requested_item shift.opened is exist - process it [18:49:43]req_shift_opened [18:49:43]FM_GetShiftState [18:49:43]SAM_PROTO_GetShiftState [18:49:43]wFMCommunicate request_size=4 [18:49:43]MH_SAM_APDU [18:49:43]CAPDU: 80 13 01 00 [18:49:43]Write to MH i2c: E2 08 00 03 6A 80 13 01 00 00 00 00 00 EA [18:49:43]Write i2c OK [18:49:43]MH_I2C_Read... [18:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:43]Read from MH i2c: E2 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 0E 00 [18:49:43]MH_I2C_Read... [18:49:43]Read from MH i2c: E2 0E 00 03 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A4 [18:49:43]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:49:43]wFMCommunicate OK [18:49:43]SAM_PROTO_GetShiftState done [18:49:43]FM_GetShiftState done [18:49:43]req_shift_opened done [18:49:43]requested_item shift.open_date is exist - process it [18:49:43]req_shift_open_date [18:49:43]req_shift_open_date done [18:49:43]produce_requested_data done [18:49:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31262,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:49:43]process_action_free close_receipt [18:49:43]json_value_free [18:49:43]json_value_free done [18:49:43]process_json_proto returns [18:49:43]Send response to host [18:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31262,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:49:43]free response buf [18:49:43]execute_script done [18:49:43]execute_script returns [18:49:43]free content buf [18:49:43]Sock 9.Close socket [18:49:43]Sock 9.Thread stoped [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:15]accept exits with 7 [18:50:15]New connection [18:50:15]New thread 3066899812 created [18:50:15]Thread 3067043172 joined [18:50:15]Waiting for new connection... [18:50:15] Sock 7.Parse request [18:50:15]Sock 7.Check first char [18:50:15]Sock 7.First char is OK [18:50:15]request: POST /json_proto HTTP/1.0 [18:50:15]Method: POST [18:50:15]URL: /json_proto [18:50:15]Method is POST - this is cgi request [18:50:15]url: /json_proto [18:50:15]query_string will be loaded in cgi processing [18:50:15]execute_cgi json_proto POST (null) [18:50:15]execute_cgi path=json_proto method=POST [18:50:15]POST find Content-Length [18:50:15]Host: 172.17.51.3:8080 [18:50:15]Content-Length: 682 [18:50:15]Content-Type: application/json [18:50:15] [18:50:15]POST finish read [18:50:15]Found Content-Length = 682 [18:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:15]execute_script... [18:50:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:15]POST & json_proto [18:50:15]process_json_proto [18:50:15]json parsed OK: [18:50:15]protocol is kg_v1.0 [18:50:15]action value=close_receipt [18:50:15]process_action close_receipt [18:50:15]cmd_close_receipt [18:50:15]MH_GetDate [18:50:15]Write to MH i2c: F0 00 00 04 6A 5D [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: F0 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: F0 09 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: F0 09 00 04 6A 00 6F 45 19 67 04 C1 95 66 5A [18:50:15]GetLastDocTimeStamp 1729709386 [18:50:15]current date 1729709423 [18:50:15]FM_GetShiftState [18:50:15]SAM_PROTO_GetShiftState [18:50:15]wFMCommunicate request_size=4 [18:50:15]MH_SAM_APDU [18:50:15]CAPDU: 80 13 01 00 [18:50:15]Write to MH i2c: E2 08 00 05 6A 80 13 01 00 00 00 00 00 EC [18:50:15]Write i2c OK [18:50:15]MH_I2C_Read... [18:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:15]Read from MH i2c: E2 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0E 00 [18:50:15]MH_I2C_Read... [18:50:15]Read from MH i2c: E2 0E 00 05 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A6 [18:50:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:50:15]wFMCommunicate OK [18:50:15]SAM_PROTO_GetShiftState done [18:50:15]FM_GetShiftState done [18:50:15]opened in 1729643755 [18:50:15]opened+sec_in_day 1729730155 [18:50:15]quantity*price = 100021 [18:50:15]sum+1 = 100023 [18:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 207 23.10.2024 18:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31263 ФПД: 106882442935235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185023&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31263&fm=106882442935235&tin=02508201610067®Number=0000000000186857&sum=100000 [18:50:16]StoreToDocumentArchive [18:50:16]shift 117 fd 31263 [18:50:16]save to /storage/0117/doc_00031263 [18:50:16]save last doc name /storage/0117/doc_00031263 to /storage/kkm_last_doc_name [18:50:16]save OK [18:50:16]Clear old archive folders... [18:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:16]tlvbuf is 00D37CE0 [18:50:16]SAM_PROTO_ClearQueue [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 09 00 00 [18:50:16]Write to MH i2c: E2 08 00 12 6A 80 09 00 00 00 00 00 00 EE [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 03 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 03 00 12 6A 00 90 00 F0 [18:50:16]RAPDU: 90 00 [18:50:16]wFMCommunicate OK [18:50:16]SAM_PROTO_ClearQueue done [18:50:16]KKMCreateOFDPacket [18:50:16]OFDProtocolAddRootSTLVToBuf [18:50:16]FM_MakeSignedData [18:50:16]FM_MakeSignedData [18:50:16]SAM_PROTO_SignData [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 0D 01 02 [18:50:16]Write to MH i2c: E2 08 00 13 6A 80 0D 01 02 00 00 00 00 F6 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 03 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 03 00 13 6A 00 90 00 F1 [18:50:16]RAPDU: 90 00 [18:50:16]wFMCommunicate OK [18:50:16]wFMCommunicate request_size=255 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 6F 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 7A 00 00 35 04 06 00 61 [18:50:16]Write to MH i2c: E2 02 01 14 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 6F 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 7A 00 00 35 04 06 00 61 00 00 17 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 14 6A 00 90 00 F2 [18:50:17]RAPDU: 90 00 [18:50:17]wFMCommunicate OK [18:50:17]wFMCommunicate request_size=10 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 0D 02 02 05 35 82 0B 3B C3 [18:50:17]Write to MH i2c: E2 0D 00 15 6A 80 0D 02 02 05 00 35 82 0B 3B C3 00 00 C3 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 15 6A 00 90 00 F3 [18:50:17]RAPDU: 90 00 [18:50:17]wFMCommunicate OK [18:50:17]wFMCommunicate request_size=4 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 0D 03 02 [18:50:17]Write to MH i2c: E2 08 00 16 6A 80 0D 03 02 00 00 00 00 FB [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:17]OFD Sender: No OFD packet to send [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 0B 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 0B 00 16 6A 00 E9 B8 B5 D2 51 75 DA AB 90 00 6F [18:50:17]RAPDU: E9 B8 B5 D2 51 75 DA AB 90 00 [18:50:17]wFMCommunicate OK [18:50:17]SAM_PROTO_SignData done [18:50:17]FM_MakeSignedData done [18:50:17]CreateOFDProtocolMessage [18:50:17]wFMCommunicate request_size=4 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 11 00 00 [18:50:17]Write to MH i2c: E2 08 00 17 6A 80 11 00 00 00 00 00 00 FB [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 17 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 17 00 17 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [18:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:50:17]wFMCommunicate OK [18:50:17]CreateOFDProtocolMessage done [18:50:17]OFDSenderStorePacket 31263 [18:50:17]StoreOFDPacket docnum=31263 [18:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 97 07 01 DC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 6F 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 7A 00 00 35 04 06 00 61 35 82 0B 3B C3 E9 B8 B5 D2 51 75 DA AB [18:50:17]CheckFolder [18:50:17]dirname=/storage/ofd_packets [18:50:17]CheckFolder done [18:50:17]ProducePacketName [18:50:17]name=ofd_packets/00031263 [18:50:17]NVStorageSaveData ofd_packets/00031263 [18:50:17]File name is /storage/ofd_packets/00031263 [18:50:17]Write 301 bytes [18:50:17]NVStorageSaveData done [18:50:17]OFDSenderStorePacket done [18:50:17]KKMCreateOFDPacket done [18:50:17]NVStorageSaveData kkm_last_timestamp [18:50:17]File name is /storage/kkm_last_timestamp [18:50:17]Write 4 bytes [18:50:17]NVStorageSaveData done [18:50:17]ExternCall_PrintAddStr [18:50:17]wPrintStart [18:50:17]Write to MH i2c: 01 00 00 18 6A 82 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 07 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: 01 07 00 18 6A 00 00 00 00 00 FF 0F 97 [18:50:17]RasterBufferAndPrint [18:50:17]line Счет N : (1)343711 [18:50:17]line ИНН: 02508201610067 [18:50:17]line Контрольно-Кассовый Чек [18:50:17]line ПРОДАЖА [18:50:17]line ТРК (МРК, ГНК) : 42 [18:50:17]line Товар: 2710124500 [18:50:17]line Аи-95-К-3 [18:50:17]line 13.480 * 74.20 [18:50:17]line = 1000.22 [18:50:17]line НДС 12% НСП 1% [18:50:17]line > о реализуемом товаре [18:50:17]line ОКРУГЛЕНИЕ: -0.22 [18:50:17]line ИТОГО: 1000.00 [18:50:17]line Внесено: 1000.00 [18:50:17]line СДАЧА: 0.00 [18:50:17]line НСП 1% : 8.85 [18:50:17]line НДС 12% : 106.22 [18:50:17]line Наличными: 1000.00 [18:50:17]line Безнал.: 0.00 [18:50:17]line Место: АЗС № 78 "Партнер Нефть" [18:50:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:50:17]line СНО: Общий режим [18:50:17]line Чек 207 23.10.2024 18:50 [18:50:17]line Смена: 117 ФФД: 1.0 [18:50:17]line ЗНМ: 0300000137 [18:50:17]line РНМ: 0000000000186857 [18:50:17]line Версия ККМ: v1.0 [18:50:17]line ФМ: 0000000002094219 [18:50:17]line ФД: 31263 [18:50:17]line ФПД: 106882442935235 [18:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185023&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31263&fm=106882442935235&tin=02508201610067®Number=0000000000186857&sum=100000 [18:50:17]OFD Sender: Processing packet 31263 [packets to send 11, broken 10] [18:50:17]ProducePacketName [18:50:17]name=ofd_packets/00031263 [18:50:17]OFD Sender: To server: pG, [18:50:17]CommunicateWithHost lk.salyk.kg:30040 [18:50:17]ConnectInit lk.salyk.kg [18:50:17]written 0, free lines is 4095 [18:50:17]Connected sock=10 [18:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 97 07 01 DC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 6F 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 7A 00 00 35 04 06 00 61 35 82 0B 3B C3 E9 B8 B5 D2 51 75 DA AB [18:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 20 4F 47 00 64 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 7A 00 00 F4 03 04 00 E8 EF 18 67 B6 04 01 00 00 B9 36 F6 14 04 81 44 D2 [18:50:17]CommunicateWithHost err = 0 [18:50:17]CheckOFDResponse [18:50:17]1017 (14) - 77093643461234 [18:50:17]1041 (16) - 0000000002094219 [18:50:17]1040 (4) - 31263 [18:50:17]1012 (4) - 23.10.2024 12:45 [18:50:17]1206 (1) - 0 [18:50:17]OFD Sender: Remove packet 31263 [18:50:17]ProducePacketName [18:50:17]name=ofd_packets/00031263 [18:50:17]NVStorageDeleteData [18:50:18]Write to MH i2c: 01 00 00 43 6A AD [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 07 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 07 00 43 6A 00 00 00 00 00 FC 0C BC [18:50:18]RasterBufferAndPrint [18:50:18]line [18:50:18]line [18:50:18]line [18:50:18]line [18:50:18]line [18:50:18]written 0, free lines is 3331 [18:50:18]MH_Cut [18:50:18]Write to MH i2c: D1 01 00 4A 6A 01 86 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: D1 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: D1 01 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: D1 01 00 4A 6A 00 85 [18:50:18]Write to MH i2c: 01 00 00 4B 6A B5 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]OFD Sender: No OFD packet to send [18:50:18]*** Cut start [18:50:18]*** Partial cut [18:50:18]*** CUTSNS_PIN = 1 [18:50:18]*** CUTSNS_PIN = 0 [18:50:18]*** Brake cut motor [18:50:19]Read from MH i2c: 01 [18:50:19]MH_I2C_Read... [18:50:19]*** Stop cut motor [18:50:19]*** Cut end [18:50:19]Read from MH i2c: 01 07 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 07 00 4B 6A 00 00 00 00 00 FF 0F CA [18:50:19]process_action close_receipt done [18:50:19]requested_data is exist [18:50:19]produce_requested_data [18:50:19]requested_item fm.sn is exist - process it [18:50:19]wFMCommunicate request_size=4 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 11 00 00 [18:50:19]Write to MH i2c: E2 08 00 4C 6A 80 11 00 00 00 00 00 00 30 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 17 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 17 00 4C 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [18:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:50:19]wFMCommunicate OK [18:50:19]requested_item fd.num is exist - process it [18:50:19]SAM_PROTO_GetFieldsCounters [18:50:19]wFMCommunicate request_size=4 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 13 00 00 [18:50:19]Write to MH i2c: E2 08 00 4D 6A 80 13 00 00 00 00 00 00 33 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 62 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 62 00 4D 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [18:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:19]wFMCommunicate OK [18:50:19]SAM_PROTO_GetFieldsCounters done [18:50:19]requested_item shift.num is exist - process it [18:50:19]requested_item shift.opened is exist - process it [18:50:19]req_shift_opened [18:50:19]FM_GetShiftState [18:50:19]SAM_PROTO_GetShiftState [18:50:19]wFMCommunicate request_size=4 [18:50:19]MH_SAM_APDU [18:50:19]CAPDU: 80 13 01 00 [18:50:19]Write to MH i2c: E2 08 00 4E 6A 80 13 01 00 00 00 00 00 35 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:19]Read from MH i2c: E2 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 0E 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: E2 0E 00 4E 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EF [18:50:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:50:19]wFMCommunicate OK [18:50:19]SAM_PROTO_GetShiftState done [18:50:19]FM_GetShiftState done [18:50:19]req_shift_opened done [18:50:19]requested_item shift.open_date is exist - process it [18:50:19]req_shift_open_date [18:50:19]req_shift_open_date done [18:50:19]produce_requested_data done [18:50:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31263,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:50:19]process_action_free close_receipt [18:50:19]json_value_free [18:50:19]json_value_free done [18:50:19]process_json_proto returns [18:50:19]Send response to host [18:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31263,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:50:19]free response buf [18:50:19]execute_script done [18:50:19]execute_script returns [18:50:19]free content buf [18:50:19]Sock 7.Close socket [18:50:19]Sock 7.Thread stoped [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:55]accept exits with 9 [18:51:55]New connection [18:51:55]New thread 3067043172 created [18:51:55]Thread 3066899812 joined [18:51:55]Waiting for new connection... [18:51:55] Sock 9.Parse request [18:51:55]Sock 9.Check first char [18:51:55]Sock 9.First char is OK [18:51:55]request: POST /json_proto HTTP/1.0 [18:51:55]Method: POST [18:51:55]URL: /json_proto [18:51:55]Method is POST - this is cgi request [18:51:55]url: /json_proto [18:51:55]query_string will be loaded in cgi processing [18:51:55]execute_cgi json_proto POST (null) [18:51:55]execute_cgi path=json_proto method=POST [18:51:55]POST find Content-Length [18:51:55]Host: 172.17.51.3:8080 [18:51:55]Content-Length: 677 [18:51:55]Content-Type: application/json [18:51:55] [18:51:55]POST finish read [18:51:55]Found Content-Length = 677 [18:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:55]execute_script... [18:51:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:55]POST & json_proto [18:51:55]process_json_proto [18:51:55]json parsed OK: [18:51:55]protocol is kg_v1.0 [18:51:55]action value=close_receipt [18:51:55]process_action close_receipt [18:51:55]cmd_close_receipt [18:51:55]MH_GetDate [18:51:55]Write to MH i2c: F0 00 00 4F 6A A8 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 09 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 09 00 4F 6A 00 D3 45 19 67 04 C1 95 66 09 [18:51:55]GetLastDocTimeStamp 1729709423 [18:51:55]current date 1729709523 [18:51:55]FM_GetShiftState [18:51:55]SAM_PROTO_GetShiftState [18:51:55]wFMCommunicate request_size=4 [18:51:55]MH_SAM_APDU [18:51:55]CAPDU: 80 13 01 00 [18:51:55]Write to MH i2c: E2 08 00 50 6A 80 13 01 00 00 00 00 00 37 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 50 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F1 [18:51:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:51:55]wFMCommunicate OK [18:51:55]SAM_PROTO_GetShiftState done [18:51:55]FM_GetShiftState done [18:51:55]opened in 1729643755 [18:51:55]opened+sec_in_day 1729730155 [18:51:55]quantity*price = 40006 [18:51:55]sum+1 = 40007 [18:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 208 23.10.2024 18:52 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31264 ФПД: 12227976765645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31264&fm=12227976765645&tin=02508201610067®Number=0000000000186857&sum=40000 [18:51:57]StoreToDocumentArchive [18:51:57]shift 117 fd 31264 [18:51:57]save to /storage/0117/doc_00031264 [18:51:57]save last doc name /storage/0117/doc_00031264 to /storage/kkm_last_doc_name [18:51:57]save OK [18:51:57]Clear old archive folders... [18:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:57]tlvbuf is 00F62C50 [18:51:57]SAM_PROTO_ClearQueue [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 09 00 00 [18:51:57]Write to MH i2c: E2 08 00 5D 6A 80 09 00 00 00 00 00 00 39 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 5D 6A 00 90 00 3B [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_ClearQueue done [18:51:57]KKMCreateOFDPacket [18:51:57]OFDProtocolAddRootSTLVToBuf [18:51:57]FM_MakeSignedData [18:51:57]FM_MakeSignedData [18:51:57]SAM_PROTO_SignData [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 01 02 [18:51:57]Write to MH i2c: E2 08 00 5E 6A 80 0D 01 02 00 00 00 00 41 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 5E 6A 00 90 00 3C [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=255 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D3 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 7A 00 00 35 04 06 00 0B [18:51:57]Write to MH i2c: E2 02 01 5F 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D3 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 7A 00 00 35 04 06 00 0B 00 00 23 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 5F 6A 00 90 00 3D [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=10 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 02 02 05 1F 0C 36 20 CD [18:51:57]Write to MH i2c: E2 0D 00 60 6A 80 0D 02 02 05 00 1F 0C 36 20 CD 00 00 9C [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 60 6A 00 90 00 3E [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 03 02 [18:51:57]Write to MH i2c: E2 08 00 61 6A 80 0D 03 02 00 00 00 00 46 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0B 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0B 00 61 6A 00 FD 9D 1B F7 E4 C0 75 B9 90 00 C5 [18:51:57]RAPDU: FD 9D 1B F7 E4 C0 75 B9 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_SignData done [18:51:57]FM_MakeSignedData done [18:51:57]CreateOFDProtocolMessage [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 11 00 00 [18:51:57]Write to MH i2c: E2 08 00 62 6A 80 11 00 00 00 00 00 00 46 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 62 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [18:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:57]wFMCommunicate OK [18:51:57]CreateOFDProtocolMessage done [18:51:57]OFDSenderStorePacket 31264 [18:51:57]StoreOFDPacket docnum=31264 [18:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 D0 07 01 FA E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D3 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 7A 00 00 35 04 06 00 0B 1F 0C 36 20 CD FD 9D 1B F7 E4 C0 75 B9 [18:51:57]CheckFolder [18:51:57]dirname=/storage/ofd_packets [18:51:57]CheckFolder done [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00031264 [18:51:57]NVStorageSaveData ofd_packets/00031264 [18:51:57]File name is /storage/ofd_packets/00031264 [18:51:57]Write 301 bytes [18:51:57]NVStorageSaveData done [18:51:57]OFDSenderStorePacket done [18:51:57]KKMCreateOFDPacket done [18:51:57]NVStorageSaveData kkm_last_timestamp [18:51:57]File name is /storage/kkm_last_timestamp [18:51:57]Write 4 bytes [18:51:57]NVStorageSaveData done [18:51:57]ExternCall_PrintAddStr [18:51:57]wPrintStart [18:51:57]Write to MH i2c: 01 00 00 63 6A CD [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 63 6A 00 00 00 00 00 FF 0F E2 [18:51:57]RasterBufferAndPrint [18:51:57]line Счет N : (1)343712 [18:51:57]line ИНН: 02508201610067 [18:51:57]line Контрольно-Кассовый Чек [18:51:57]line ПРОДАЖА [18:51:57]line ТРК (МРК, ГНК) : 53 [18:51:57]line Товар: 2710124130 [18:51:57]line Аи-92-К-2 [18:51:57]line 5.980 * 66.90 [18:51:57]line = 400.06 [18:51:57]line НДС 12% НСП 1% [18:51:57]line > о реализуемом товаре [18:51:57]line ОКРУГЛЕНИЕ: -0.06 [18:51:57]line ИТОГО: 400.00 [18:51:57]line Внесено: 400.00 [18:51:57]line СДАЧА: 0.00 [18:51:57]line НСП 1% : 3.54 [18:51:57]line НДС 12% : 42.48 [18:51:57]line Наличными: 400.00 [18:51:57]line Безнал.: 0.00 [18:51:57]line Место: АЗС № 78 "Партнер Нефть" [18:51:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:57]line СНО: Общий режим [18:51:57]line Чек 208 23.10.2024 18:52 [18:51:57]line Смена: 117 ФФД: 1.0 [18:51:57]line ЗНМ: 0300000137 [18:51:57]line РНМ: 0000000000186857 [18:51:57]line Версия ККМ: v1.0 [18:51:57]line ФМ: 0000000002094219 [18:51:57]line ФД: 31264 [18:51:57]line ФПД: 12227976765645 [18:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31264&fm=12227976765645&tin=02508201610067®Number=0000000000186857&sum=40000 [18:51:57]OFD Sender: Processing packet 31264 [packets to send 11, broken 10] [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00031264 [18:51:57]OFD Sender: To server: pG, [18:51:57]CommunicateWithHost lk.salyk.kg:30040 [18:51:57]ConnectInit lk.salyk.kg [18:51:57]written 0, free lines is 4095 [18:51:58]Connected sock=10 [18:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A2 D0 07 01 FA E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D3 45 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 7A 00 00 35 04 06 00 0B 1F 0C 36 20 CD FD 9D 1B F7 E4 C0 75 B9 [18:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 73 E9 47 00 C6 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 7A 00 00 F4 03 04 00 4D F0 18 67 B6 04 01 00 00 3B 13 1B 5E 44 E9 4C 1B [18:51:58]CommunicateWithHost err = 0 [18:51:58]CheckOFDResponse [18:51:58]1017 (14) - 77093643461234 [18:51:58]1041 (16) - 0000000002094219 [18:51:58]1040 (4) - 31264 [18:51:58]1012 (4) - 23.10.2024 12:47 [18:51:58]1206 (1) - 0 [18:51:58]OFD Sender: Remove packet 31264 [18:51:58]ProducePacketName [18:51:58]name=ofd_packets/00031264 [18:51:58]NVStorageDeleteData [18:51:58]Write to MH i2c: 01 00 00 8E 6A F8 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 07 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 07 00 8E 6A 00 00 00 00 00 F8 0C 03 [18:51:58]RasterBufferAndPrint [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]written 0, free lines is 3330 [18:51:58]MH_Cut [18:51:58]Write to MH i2c: D1 01 00 95 6A 01 D1 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 01 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 01 00 95 6A 00 D0 [18:51:58]Write to MH i2c: 01 00 00 96 6A 00 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]OFD Sender: No OFD packet to send [18:51:59]*** Cut start [18:51:59]*** Partial cut [18:51:59]*** CUTSNS_PIN = 1 [18:51:59]*** CUTSNS_PIN = 0 [18:51:59]*** Brake cut motor [18:51:59]Read from MH i2c: 01 [18:51:59]MH_I2C_Read... [18:51:59]*** Stop cut motor [18:51:59]*** Cut end [18:51:59]Read from MH i2c: 01 07 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: 01 07 00 96 6A 00 00 00 00 00 FF 0F 15 [18:51:59]process_action close_receipt done [18:51:59]requested_data is exist [18:51:59]produce_requested_data [18:51:59]requested_item fm.sn is exist - process it [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 11 00 00 [18:51:59]Write to MH i2c: E2 08 00 97 6A 80 11 00 00 00 00 00 00 7B [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 17 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 17 00 97 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [18:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:59]wFMCommunicate OK [18:51:59]requested_item fd.num is exist - process it [18:51:59]SAM_PROTO_GetFieldsCounters [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 13 00 00 [18:51:59]Write to MH i2c: E2 08 00 98 6A 80 13 00 00 00 00 00 00 7E [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 62 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 62 00 98 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [18:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_GetFieldsCounters done [18:51:59]requested_item shift.num is exist - process it [18:51:59]requested_item shift.opened is exist - process it [18:51:59]req_shift_opened [18:51:59]FM_GetShiftState [18:51:59]SAM_PROTO_GetShiftState [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 13 01 00 [18:51:59]Write to MH i2c: E2 08 00 99 6A 80 13 01 00 00 00 00 00 80 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 99 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3A [18:51:59]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_GetShiftState done [18:51:59]FM_GetShiftState done [18:51:59]req_shift_opened done [18:51:59]requested_item shift.open_date is exist - process it [18:51:59]req_shift_open_date [18:51:59]req_shift_open_date done [18:51:59]produce_requested_data done [18:51:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31264,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:51:59]process_action_free close_receipt [18:51:59]json_value_free [18:51:59]json_value_free done [18:51:59]process_json_proto returns [18:51:59]Send response to host [18:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31264,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:51:59]free response buf [18:51:59]execute_script done [18:51:59]execute_script returns [18:51:59]free content buf [18:51:59]Sock 9.Close socket [18:51:59]Sock 9.Thread stoped [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:19]accept exits with 7 [18:56:19]New connection [18:56:19]New thread 3066899812 created [18:56:19]Thread 3067043172 joined [18:56:19]Waiting for new connection... [18:56:19] Sock 7.Parse request [18:56:19]Sock 7.Check first char [18:56:19]Sock 7.First char is OK [18:56:19]request: POST /json_proto HTTP/1.0 [18:56:19]Method: POST [18:56:19]URL: /json_proto [18:56:19]Method is POST - this is cgi request [18:56:19]url: /json_proto [18:56:19]query_string will be loaded in cgi processing [18:56:19]execute_cgi json_proto POST (null) [18:56:19]execute_cgi path=json_proto method=POST [18:56:19]POST find Content-Length [18:56:19]Host: 172.17.51.3:8080 [18:56:19]Content-Length: 800 [18:56:19]Content-Type: application/json [18:56:19] [18:56:19]POST finish read [18:56:19]Found Content-Length = 800 [18:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:19]execute_script... [18:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1675797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:19]POST & json_proto [18:56:19]process_json_proto [18:56:19]json parsed OK: [18:56:19]protocol is kg_v1.0 [18:56:19]action value=close_receipt [18:56:19]process_action close_receipt [18:56:19]cmd_close_receipt [18:56:19]MH_GetDate [18:56:19]Write to MH i2c: F0 00 00 9A 6A F3 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 09 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 09 00 9A 6A 00 DA 46 19 67 04 C1 95 66 5C [18:56:19]GetLastDocTimeStamp 1729709523 [18:56:19]current date 1729709786 [18:56:19]FM_GetShiftState [18:56:19]SAM_PROTO_GetShiftState [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 13 01 00 [18:56:19]Write to MH i2c: E2 08 00 9B 6A 80 13 01 00 00 00 00 00 82 [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0E 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0E 00 9B 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 3C [18:56:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:56:19]wFMCommunicate OK [18:56:19]SAM_PROTO_GetShiftState done [18:56:19]FM_GetShiftState done [18:56:19]opened in 1729643755 [18:56:19]opened+sec_in_day 1729730155 [18:56:19]quantity*price = 0 [18:56:19]sum+1 = 1 [18:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 209 23.10.2024 18:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 1675797 ФМ: 0000000002094219 ФД: 31265 ФПД: 262444591540367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31265&fm=262444591540367&tin=02508201610067®Number=0000000000186857&sum=0 [18:56:20]StoreToDocumentArchive [18:56:20]shift 117 fd 31265 [18:56:20]save to /storage/0117/doc_00031265 [18:56:20]save last doc name /storage/0117/doc_00031265 to /storage/kkm_last_doc_name [18:56:20]save OK [18:56:20]Clear old archive folders... [18:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:20]tlvbuf is 00DA43E0 [18:56:20]SAM_PROTO_ClearQueue [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 09 00 00 [18:56:20]Write to MH i2c: E2 08 00 A8 6A 80 09 00 00 00 00 00 00 84 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 A8 6A 00 90 00 86 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_ClearQueue done [18:56:20]KKMCreateOFDPacket [18:56:20]OFDProtocolAddRootSTLVToBuf [18:56:20]FM_MakeSignedData [18:56:20]FM_MakeSignedData [18:56:20]SAM_PROTO_SignData [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 01 02 [18:56:20]Write to MH i2c: E2 08 00 A9 6A 80 0D 01 02 00 00 00 00 8C [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 A9 6A 00 90 00 87 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=255 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 46 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 7A 00 00 35 04 06 00 EE [18:56:20]Write to MH i2c: E2 02 01 AA 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 46 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 7A 00 00 35 04 06 00 EE 00 00 E8 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 AA 6A 00 90 00 88 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=10 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 02 02 05 B1 24 A6 E8 8F [18:56:20]Write to MH i2c: E2 0D 00 AB 6A 80 0D 02 02 05 00 B1 24 A6 E8 8F 00 00 8B [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 AB 6A 00 90 00 89 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 03 02 [18:56:20]Write to MH i2c: E2 08 00 AC 6A 80 0D 03 02 00 00 00 00 91 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0B 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0B 00 AC 6A 00 D4 17 24 A2 52 3E 10 0F 90 00 F2 [18:56:20]RAPDU: D4 17 24 A2 52 3E 10 0F 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_SignData done [18:56:20]FM_MakeSignedData done [18:56:20]CreateOFDProtocolMessage [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 11 00 00 [18:56:20]Write to MH i2c: E2 08 00 AD 6A 80 11 00 00 00 00 00 00 91 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 AD 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [18:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:56:20]wFMCommunicate OK [18:56:20]CreateOFDProtocolMessage done [18:56:20]OFDSenderStorePacket 31265 [18:56:20]StoreOFDPacket docnum=31265 [18:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 F0 07 01 25 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 46 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 7A 00 00 35 04 06 00 EE B1 24 A6 E8 8F D4 17 24 A2 52 3E 10 0F [18:56:20]CheckFolder [18:56:20]dirname=/storage/ofd_packets [18:56:20]CheckFolder done [18:56:20]ProducePacketName [18:56:20]name=ofd_packets/00031265 [18:56:20]NVStorageSaveData ofd_packets/00031265 [18:56:20]File name is /storage/ofd_packets/00031265 [18:56:20]Write 301 bytes [18:56:20]NVStorageSaveData done [18:56:20]OFDSenderStorePacket done [18:56:20]KKMCreateOFDPacket done [18:56:20]NVStorageSaveData kkm_last_timestamp [18:56:20]File name is /storage/kkm_last_timestamp [18:56:20]Write 4 bytes [18:56:20]NVStorageSaveData done [18:56:20]ExternCall_PrintAddStr [18:56:20]wPrintStart [18:56:20]Write to MH i2c: 01 00 00 AE 6A 18 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 AE 6A 00 00 00 00 00 FF 0F 2D [18:56:20]RasterBufferAndPrint [18:56:20]line Счет N : (1)343713 [18:56:20]line ИНН: 02508201610067 [18:56:20]line Контрольно-Кассовый Чек [18:56:20]line ПРОДАЖА [18:56:20]line ТРК (МРК, ГНК) : 62 [18:56:20]line Товар: 2710124500 [18:56:20]line Аи-95-К-3 [18:56:20]line 40.000 * 0.00 [18:56:20]line = 0.00 [18:56:20]line НДС 12% НСП 1% [18:56:20]line > о реализуемом товаре [18:56:20]line ИТОГО: 0.00 [18:56:20]line НСП 1% : 0.00 [18:56:20]line НДС 12% : 0.00 [18:56:20]line Наличными: 0.00 [18:56:20]line Безнал.: 0.00 [18:56:20]line Место: АЗС № 78 "Партнер Нефть" [18:56:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:56:20]line СНО: Общий режим [18:56:20]line Чек 209 23.10.2024 18:56 [18:56:20]line Смена: 117 ФФД: 1.0 [18:56:20]line ЗНМ: 0300000137 [18:56:20]line РНМ: 0000000000186857 [18:56:20]line Версия ККМ: v1.0 [18:56:20]line Талоны: Топливные Талоны [18:56:20]line 1675797 [18:56:20]line ФМ: 0000000002094219 [18:56:20]line ФД: 31265 [18:56:21]line ФПД: 262444591540367 [18:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31265&fm=262444591540367&tin=02508201610067®Number=0000000000186857&sum=0 [18:56:21]OFD Sender: Processing packet 31265 [packets to send 11, broken 10] [18:56:21]ProducePacketName [18:56:21]name=ofd_packets/00031265 [18:56:21]OFD Sender: To server: pG, [18:56:21]CommunicateWithHost lk.salyk.kg:30040 [18:56:21]ConnectInit lk.salyk.kg [18:56:21]written 0, free lines is 4095 [18:56:21]Connected sock=10 [18:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 F0 07 01 25 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 46 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 7A 00 00 35 04 06 00 EE B1 24 A6 E8 8F D4 17 24 A2 52 3E 10 0F [18:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F3 DB 47 00 62 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 32 30 39 34 32 31 39 10 04 04 00 21 7A 00 00 F4 03 04 00 54 F1 18 67 B6 04 01 00 00 7D DE 19 12 06 DF 1A 31 [18:56:21]CommunicateWithHost err = 0 [18:56:21]CheckOFDResponse [18:56:21]1017 (14) - 77093643461234 [18:56:21]1041 (16) - 0000000002094219 [18:56:21]1040 (4) - 31265 [18:56:21]1012 (4) - 23.10.2024 12:51 [18:56:21]1206 (1) - 0 [18:56:21]OFD Sender: Remove packet 31265 [18:56:21]ProducePacketName [18:56:21]name=ofd_packets/00031265 [18:56:21]NVStorageDeleteData [18:56:21]Write to MH i2c: 01 00 00 D8 6A 42 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 D8 6A 00 00 00 00 00 F9 0C 4E [18:56:21]RasterBufferAndPrint [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]written 0, free lines is 3327 [18:56:21]MH_Cut [18:56:21]Write to MH i2c: D1 01 00 DF 6A 01 1B [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 DF 6A 00 1A [18:56:21]Write to MH i2c: 01 00 00 E0 6A 4A [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]OFD Sender: No OFD packet to send [18:56:22]*** Cut start [18:56:22]*** Partial cut [18:56:22]*** CUTSNS_PIN = 1 [18:56:22]*** CUTSNS_PIN = 0 [18:56:22]*** Brake cut motor [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]*** Stop cut motor [18:56:22]*** Cut end [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 E0 6A 00 00 00 00 00 FF 0F 5F [18:56:22]process_action close_receipt done [18:56:22]requested_data is exist [18:56:22]produce_requested_data [18:56:22]requested_item fm.sn is exist - process it [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 11 00 00 [18:56:22]Write to MH i2c: E2 08 00 E1 6A 80 11 00 00 00 00 00 00 C5 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:22]Read from MH i2c: E2 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 17 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 17 00 E1 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [18:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:56:22]wFMCommunicate OK [18:56:22]requested_item fd.num is exist - process it [18:56:22]SAM_PROTO_GetFieldsCounters [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 13 00 00 [18:56:22]Write to MH i2c: E2 08 00 E2 6A 80 13 00 00 00 00 00 00 C8 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:22]Read from MH i2c: E2 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 62 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 62 00 E2 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [18:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:22]wFMCommunicate OK [18:56:22]SAM_PROTO_GetFieldsCounters done [18:56:22]requested_item shift.num is exist - process it [18:56:22]requested_item shift.opened is exist - process it [18:56:22]req_shift_opened [18:56:22]FM_GetShiftState [18:56:22]SAM_PROTO_GetShiftState [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 13 01 00 [18:56:22]Write to MH i2c: E2 08 00 E3 6A 80 13 01 00 00 00 00 00 CA [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:22]Read from MH i2c: E2 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 0E 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 0E 00 E3 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 84 [18:56:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:56:22]wFMCommunicate OK [18:56:22]SAM_PROTO_GetShiftState done [18:56:22]FM_GetShiftState done [18:56:22]req_shift_opened done [18:56:22]requested_item shift.open_date is exist - process it [18:56:22]req_shift_open_date [18:56:22]req_shift_open_date done [18:56:22]produce_requested_data done [18:56:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31265,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:56:22]process_action_free close_receipt [18:56:22]json_value_free [18:56:22]json_value_free done [18:56:22]process_json_proto returns [18:56:22]Send response to host [18:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31265,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:56:22]free response buf [18:56:22]execute_script done [18:56:22]execute_script returns [18:56:22]free content buf [18:56:22]Sock 7.Close socket [18:56:22]Sock 7.Thread stoped [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:37]accept exits with 9 [18:58:37]New connection [18:58:37]New thread 3067043172 created [18:58:37]Thread 3066899812 joined [18:58:37]Waiting for new connection... [18:58:37] Sock 9.Parse request [18:58:37]Sock 9.Check first char [18:58:37]Sock 9.First char is OK [18:58:37]request: POST /json_proto HTTP/1.0 [18:58:37]Method: POST [18:58:37]URL: /json_proto [18:58:37]Method is POST - this is cgi request [18:58:37]url: /json_proto [18:58:37]query_string will be loaded in cgi processing [18:58:37]execute_cgi json_proto POST (null) [18:58:37]execute_cgi path=json_proto method=POST [18:58:37]POST find Content-Length [18:58:37]Host: 172.17.51.3:8080 [18:58:37]Content-Length: 677 [18:58:37]Content-Type: application/json [18:58:37] [18:58:37]POST finish read [18:58:37]Found Content-Length = 677 [18:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:37]execute_script... [18:58:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:37]POST & json_proto [18:58:37]process_json_proto [18:58:37]json parsed OK: [18:58:37]protocol is kg_v1.0 [18:58:37]action value=close_receipt [18:58:37]process_action close_receipt [18:58:37]cmd_close_receipt [18:58:37]MH_GetDate [18:58:37]Write to MH i2c: F0 00 00 E4 6A 3D [18:58:37]Write i2c OK [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: F0 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: F0 09 00 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: F0 09 00 E4 6A 00 65 47 19 67 04 C1 95 66 32 [18:58:37]GetLastDocTimeStamp 1729709786 [18:58:37]current date 1729709925 [18:58:37]FM_GetShiftState [18:58:37]SAM_PROTO_GetShiftState [18:58:37]wFMCommunicate request_size=4 [18:58:37]MH_SAM_APDU [18:58:37]CAPDU: 80 13 01 00 [18:58:37]Write to MH i2c: E2 08 00 E5 6A 80 13 01 00 00 00 00 00 CC [18:58:37]Write i2c OK [18:58:37]MH_I2C_Read... [18:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:37]Read from MH i2c: E2 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: E2 0E 00 [18:58:37]MH_I2C_Read... [18:58:37]Read from MH i2c: E2 0E 00 E5 6A 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 86 [18:58:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:58:37]wFMCommunicate OK [18:58:37]SAM_PROTO_GetShiftState done [18:58:37]FM_GetShiftState done [18:58:37]opened in 1729643755 [18:58:37]opened+sec_in_day 1729730155 [18:58:37]quantity*price = 20003 [18:58:37]sum+1 = 20004 [18:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 210 23.10.2024 18:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31266 ФПД: 20936794687277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185845&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31266&fm=20936794687277&tin=02508201610067®Number=0000000000186857&sum=20000 [18:58:38]StoreToDocumentArchive [18:58:38]shift 117 fd 31266 [18:58:38]save to /storage/0117/doc_00031266 [18:58:38]save last doc name /storage/0117/doc_00031266 to /storage/kkm_last_doc_name [18:58:38]save OK [18:58:38]Clear old archive folders... [18:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:38]tlvbuf is 00E22640 [18:58:38]SAM_PROTO_ClearQueue [18:58:38]wFMCommunicate request_size=4 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 09 00 00 [18:58:38]Write to MH i2c: E2 08 00 F2 6A 80 09 00 00 00 00 00 00 CE [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 F2 6A 00 90 00 D0 [18:58:38]RAPDU: 90 00 [18:58:38]wFMCommunicate OK [18:58:38]SAM_PROTO_ClearQueue done [18:58:38]KKMCreateOFDPacket [18:58:38]OFDProtocolAddRootSTLVToBuf [18:58:38]FM_MakeSignedData [18:58:38]FM_MakeSignedData [18:58:38]SAM_PROTO_SignData [18:58:38]wFMCommunicate request_size=4 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 0D 01 02 [18:58:38]Write to MH i2c: E2 08 00 F3 6A 80 0D 01 02 00 00 00 00 D6 [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 F3 6A 00 90 00 D1 [18:58:38]RAPDU: 90 00 [18:58:38]wFMCommunicate OK [18:58:38]wFMCommunicate request_size=255 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 65 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 7A 00 00 35 04 06 00 13 [18:58:38]Write to MH i2c: E2 02 01 F4 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 65 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 7A 00 00 35 04 06 00 13 00 00 4B [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:38]Read from MH i2c: E2 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 [18:58:38]MH_I2C_Read... [18:58:38]Read from MH i2c: E2 03 00 F4 6A 00 90 00 D2 [18:58:38]RAPDU: 90 00 [18:58:38]wFMCommunicate OK [18:58:38]wFMCommunicate request_size=10 [18:58:38]MH_SAM_APDU [18:58:38]CAPDU: 80 0D 02 02 05 0A BA 35 C7 2D [18:58:38]Write to MH i2c: E2 0D 00 F5 6A 80 0D 02 02 05 00 0A BA 35 C7 2D 00 00 D0 [18:58:38]Write i2c OK [18:58:38]MH_I2C_Read... [18:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:39]Read from MH i2c: E2 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 03 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 03 00 F5 6A 00 90 00 D3 [18:58:39]RAPDU: 90 00 [18:58:39]wFMCommunicate OK [18:58:39]wFMCommunicate request_size=4 [18:58:39]MH_SAM_APDU [18:58:39]CAPDU: 80 0D 03 02 [18:58:39]Write to MH i2c: E2 08 00 F6 6A 80 0D 03 02 00 00 00 00 DB [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:39]Read from MH i2c: E2 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 0B 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 0B 00 F6 6A 00 89 D1 7C 11 42 63 F0 D7 90 00 2F [18:58:39]RAPDU: 89 D1 7C 11 42 63 F0 D7 90 00 [18:58:39]wFMCommunicate OK [18:58:39]SAM_PROTO_SignData done [18:58:39]FM_MakeSignedData done [18:58:39]CreateOFDProtocolMessage [18:58:39]wFMCommunicate request_size=4 [18:58:39]MH_SAM_APDU [18:58:39]CAPDU: 80 11 00 00 [18:58:39]Write to MH i2c: E2 08 00 F7 6A 80 11 00 00 00 00 00 00 DB [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:39]Read from MH i2c: E2 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 17 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 17 00 F7 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [18:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:58:39]wFMCommunicate OK [18:58:39]CreateOFDProtocolMessage done [18:58:39]OFDSenderStorePacket 31266 [18:58:39]StoreOFDPacket docnum=31266 [18:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA F0 07 01 16 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 65 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 7A 00 00 35 04 06 00 13 0A BA 35 C7 2D 89 D1 7C 11 42 63 F0 D7 [18:58:39]CheckFolder [18:58:39]dirname=/storage/ofd_packets [18:58:39]CheckFolder done [18:58:39]ProducePacketName [18:58:39]name=ofd_packets/00031266 [18:58:39]NVStorageSaveData ofd_packets/00031266 [18:58:39]File name is /storage/ofd_packets/00031266 [18:58:39]Write 301 bytes [18:58:39]NVStorageSaveData done [18:58:39]OFDSenderStorePacket done [18:58:39]KKMCreateOFDPacket done [18:58:39]NVStorageSaveData kkm_last_timestamp [18:58:39]File name is /storage/kkm_last_timestamp [18:58:39]Write 4 bytes [18:58:39]NVStorageSaveData done [18:58:39]ExternCall_PrintAddStr [18:58:39]wPrintStart [18:58:39]Write to MH i2c: 01 00 00 F8 6A 62 [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 07 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 07 00 F8 6A 00 00 00 00 00 FF 0F 77 [18:58:39]RasterBufferAndPrint [18:58:39]line Счет N : (1)343714 [18:58:39]line ИНН: 02508201610067 [18:58:39]line Контрольно-Кассовый Чек [18:58:39]line ПРОДАЖА [18:58:39]line ТРК (МРК, ГНК) : 63 [18:58:39]line Товар: 2710124130 [18:58:39]line Аи-92-К-2 [18:58:39]line 2.990 * 66.90 [18:58:39]line = 200.03 [18:58:39]line НДС 12% НСП 1% [18:58:39]line > о реализуемом товаре [18:58:39]line ОКРУГЛЕНИЕ: -0.03 [18:58:39]line ИТОГО: 200.00 [18:58:39]line Внесено: 200.00 [18:58:39]line СДАЧА: 0.00 [18:58:39]line НСП 1% : 1.77 [18:58:39]line НДС 12% : 21.24 [18:58:39]line Наличными: 200.00 [18:58:39]line Безнал.: 0.00 [18:58:39]line Место: АЗС № 78 "Партнер Нефть" [18:58:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:58:39]line СНО: Общий режим [18:58:39]line Чек 210 23.10.2024 18:58 [18:58:39]line Смена: 117 ФФД: 1.0 [18:58:39]line ЗНМ: 0300000137 [18:58:39]line РНМ: 0000000000186857 [18:58:39]line Версия ККМ: v1.0 [18:58:39]line ФМ: 0000000002094219 [18:58:39]line ФД: 31266 [18:58:39]line ФПД: 20936794687277 [18:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185845&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31266&fm=20936794687277&tin=02508201610067®Number=0000000000186857&sum=20000 [18:58:39]written 0, free lines is 4095 [18:58:39]OFD Sender: Processing packet 31266 [packets to send 11, broken 10] [18:58:39]ProducePacketName [18:58:39]name=ofd_packets/00031266 [18:58:39]OFD Sender: To server: pG, [18:58:39]CommunicateWithHost lk.salyk.kg:30040 [18:58:39]ConnectInit lk.salyk.kg [18:58:39]Connected sock=7 [18:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA F0 07 01 16 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 65 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 7A 00 00 35 04 06 00 13 0A BA 35 C7 2D 89 D1 7C 11 42 63 F0 D7 [18:58:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 41 17 47 00 1C 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 7A 00 00 F4 03 04 00 DE F1 18 67 B6 04 01 00 00 B7 57 17 B8 EC 4E D6 84 [18:58:39]CommunicateWithHost err = 0 [18:58:39]CheckOFDResponse [18:58:39]1017 (14) - 77093643461234 [18:58:39]1041 (16) - 0000000002094219 [18:58:39]1040 (4) - 31266 [18:58:39]1012 (4) - 23.10.2024 12:53 [18:58:39]1206 (1) - 0 [18:58:39]OFD Sender: Remove packet 31266 [18:58:39]ProducePacketName [18:58:39]name=ofd_packets/00031266 [18:58:39]NVStorageDeleteData [18:58:39]Write to MH i2c: 01 00 00 23 6B 8E [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 07 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: 01 07 00 23 6B 00 00 00 00 00 0E 0D B0 [18:58:39]RasterBufferAndPrint [18:58:39]line [18:58:39]line [18:58:39]line [18:58:39]line [18:58:39]line [18:58:39]written 0, free lines is 3352 [18:58:39]MH_Cut [18:58:39]Write to MH i2c: D1 01 00 2A 6B 01 67 [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: D1 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: D1 01 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: D1 01 00 2A 6B 00 66 [18:58:39]Write to MH i2c: 01 00 00 2B 6B 96 [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:40]OFD Sender: No OFD packet to send [18:58:40]*** Cut start [18:58:40]*** Partial cut [18:58:40]*** CUTSNS_PIN = 1 [18:58:40]*** CUTSNS_PIN = 0 [18:58:40]*** Brake cut motor [18:58:41]Read from MH i2c: 01 [18:58:41]MH_I2C_Read... [18:58:41]*** Stop cut motor [18:58:41]*** Cut end [18:58:41]Read from MH i2c: 01 07 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: 01 07 00 2B 6B 00 00 00 00 00 FF 0F AB [18:58:41]process_action close_receipt done [18:58:41]requested_data is exist [18:58:41]produce_requested_data [18:58:41]requested_item fm.sn is exist - process it [18:58:41]wFMCommunicate request_size=4 [18:58:41]MH_SAM_APDU [18:58:41]CAPDU: 80 11 00 00 [18:58:41]Write to MH i2c: E2 08 00 2C 6B 80 11 00 00 00 00 00 00 11 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:41]Read from MH i2c: E2 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 17 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 17 00 2C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [18:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:58:41]wFMCommunicate OK [18:58:41]requested_item fd.num is exist - process it [18:58:41]SAM_PROTO_GetFieldsCounters [18:58:41]wFMCommunicate request_size=4 [18:58:41]MH_SAM_APDU [18:58:41]CAPDU: 80 13 00 00 [18:58:41]Write to MH i2c: E2 08 00 2D 6B 80 13 00 00 00 00 00 00 14 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:41]Read from MH i2c: E2 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 62 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 62 00 2D 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [18:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:41]wFMCommunicate OK [18:58:41]SAM_PROTO_GetFieldsCounters done [18:58:41]requested_item shift.num is exist - process it [18:58:41]requested_item shift.opened is exist - process it [18:58:41]req_shift_opened [18:58:41]FM_GetShiftState [18:58:41]SAM_PROTO_GetShiftState [18:58:41]wFMCommunicate request_size=4 [18:58:41]MH_SAM_APDU [18:58:41]CAPDU: 80 13 01 00 [18:58:41]Write to MH i2c: E2 08 00 2E 6B 80 13 01 00 00 00 00 00 16 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:41]Read from MH i2c: E2 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 0E 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: E2 0E 00 2E 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D0 [18:58:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:58:41]wFMCommunicate OK [18:58:41]SAM_PROTO_GetShiftState done [18:58:41]FM_GetShiftState done [18:58:41]req_shift_opened done [18:58:41]requested_item shift.open_date is exist - process it [18:58:41]req_shift_open_date [18:58:41]req_shift_open_date done [18:58:41]produce_requested_data done [18:58:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31266,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:58:41]process_action_free close_receipt [18:58:41]json_value_free [18:58:41]json_value_free done [18:58:41]process_json_proto returns [18:58:41]Send response to host [18:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31266,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:58:41]free response buf [18:58:41]execute_script done [18:58:41]execute_script returns [18:58:41]free content buf [18:58:41]Sock 9.Close socket [18:58:41]Sock 9.Thread stoped [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:42]accept exits with 10 [18:59:42]New connection [18:59:42]New thread 3066899812 created [18:59:42]Thread 3067043172 joined [18:59:42]Waiting for new connection... [18:59:42] Sock 10.Parse request [18:59:42]Sock 10.Check first char [18:59:42]Sock 10.First char is OK [18:59:42]request: POST /json_proto HTTP/1.0 [18:59:42]Method: POST [18:59:42]URL: /json_proto [18:59:42]Method is POST - this is cgi request [18:59:42]url: /json_proto [18:59:42]query_string will be loaded in cgi processing [18:59:42]execute_cgi json_proto POST (null) [18:59:42]execute_cgi path=json_proto method=POST [18:59:42]POST find Content-Length [18:59:42]Host: 172.17.51.3:8080 [18:59:42]Content-Length: 682 [18:59:42]Content-Type: application/json [18:59:42] [18:59:42]POST finish read [18:59:42]Found Content-Length = 682 [18:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:42]execute_script... [18:59:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:42]POST & json_proto [18:59:42]process_json_proto [18:59:42]json parsed OK: [18:59:42]protocol is kg_v1.0 [18:59:42]action value=close_receipt [18:59:42]process_action close_receipt [18:59:42]cmd_close_receipt [18:59:42]MH_GetDate [18:59:42]Write to MH i2c: F0 00 00 2F 6B 89 [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 09 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 09 00 2F 6B 00 A6 47 19 67 04 C1 95 66 BF [18:59:42]GetLastDocTimeStamp 1729709925 [18:59:42]current date 1729709990 [18:59:42]FM_GetShiftState [18:59:42]SAM_PROTO_GetShiftState [18:59:42]wFMCommunicate request_size=4 [18:59:42]MH_SAM_APDU [18:59:42]CAPDU: 80 13 01 00 [18:59:42]Write to MH i2c: E2 08 00 30 6B 80 13 01 00 00 00 00 00 18 [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:42]Read from MH i2c: E2 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 30 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 D2 [18:59:42]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:59:42]wFMCommunicate OK [18:59:42]SAM_PROTO_GetShiftState done [18:59:42]FM_GetShiftState done [18:59:42]opened in 1729643755 [18:59:42]opened+sec_in_day 1729730155 [18:59:42]quantity*price = 100021 [18:59:42]sum+1 = 100023 [18:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 211 23.10.2024 18:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31267 ФПД: 181666675516469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31267&fm=181666675516469&tin=02508201610067®Number=0000000000186857&sum=100000 [18:59:44]StoreToDocumentArchive [18:59:44]shift 117 fd 31267 [18:59:44]save to /storage/0117/doc_00031267 [18:59:44]save last doc name /storage/0117/doc_00031267 to /storage/kkm_last_doc_name [18:59:44]save OK [18:59:44]Clear old archive folders... [18:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:44]tlvbuf is 00F00510 [18:59:44]SAM_PROTO_ClearQueue [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 09 00 00 [18:59:44]Write to MH i2c: E2 08 00 3D 6B 80 09 00 00 00 00 00 00 1A [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 3D 6B 00 90 00 1C [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_ClearQueue done [18:59:44]KKMCreateOFDPacket [18:59:44]OFDProtocolAddRootSTLVToBuf [18:59:44]FM_MakeSignedData [18:59:44]FM_MakeSignedData [18:59:44]SAM_PROTO_SignData [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 01 02 [18:59:44]Write to MH i2c: E2 08 00 3E 6B 80 0D 01 02 00 00 00 00 22 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 3E 6B 00 90 00 1D [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=255 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A6 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 7A 00 00 35 04 06 00 A5 [18:59:44]Write to MH i2c: E2 02 01 3F 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A6 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 7A 00 00 35 04 06 00 A5 00 00 C8 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 3F 6B 00 90 00 1E [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=10 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 02 02 05 39 91 A9 64 35 [18:59:44]Write to MH i2c: E2 0D 00 40 6B 80 0D 02 02 05 00 39 91 A9 64 35 00 00 3B [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 40 6B 00 90 00 1F [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 03 02 [18:59:44]Write to MH i2c: E2 08 00 41 6B 80 0D 03 02 00 00 00 00 27 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 41 6B 00 21 31 50 44 01 8C C9 6C 90 00 D0 [18:59:44]RAPDU: 21 31 50 44 01 8C C9 6C 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_SignData done [18:59:44]FM_MakeSignedData done [18:59:44]CreateOFDProtocolMessage [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 11 00 00 [18:59:44]Write to MH i2c: E2 08 00 42 6B 80 11 00 00 00 00 00 00 27 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 42 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [18:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:59:44]wFMCommunicate OK [18:59:44]CreateOFDProtocolMessage done [18:59:44]OFDSenderStorePacket 31267 [18:59:44]StoreOFDPacket docnum=31267 [18:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F5 D8 07 01 26 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A6 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 7A 00 00 35 04 06 00 A5 39 91 A9 64 35 21 31 50 44 01 8C C9 6C [18:59:44]CheckFolder [18:59:44]dirname=/storage/ofd_packets [18:59:44]CheckFolder done [18:59:44]ProducePacketName [18:59:44]name=ofd_packets/00031267 [18:59:44]NVStorageSaveData ofd_packets/00031267 [18:59:44]File name is /storage/ofd_packets/00031267 [18:59:44]Write 301 bytes [18:59:44]NVStorageSaveData done [18:59:44]OFDSenderStorePacket done [18:59:44]KKMCreateOFDPacket done [18:59:44]NVStorageSaveData kkm_last_timestamp [18:59:44]File name is /storage/kkm_last_timestamp [18:59:44]Write 4 bytes [18:59:44]NVStorageSaveData done [18:59:44]ExternCall_PrintAddStr [18:59:44]wPrintStart [18:59:44]Write to MH i2c: 01 00 00 43 6B AE [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 43 6B 00 00 00 00 00 FF 0F C3 [18:59:44]RasterBufferAndPrint [18:59:44]line Счет N : (1)343715 [18:59:44]line ИНН: 02508201610067 [18:59:44]line Контрольно-Кассовый Чек [18:59:44]line ПРОДАЖА [18:59:44]line ТРК (МРК, ГНК) : 42 [18:59:44]line Товар: 2710124500 [18:59:44]line Аи-95-К-3 [18:59:44]line 13.480 * 74.20 [18:59:44]line = 1000.22 [18:59:44]line НДС 12% НСП 1% [18:59:44]line > о реализуемом товаре [18:59:44]line ОКРУГЛЕНИЕ: -0.22 [18:59:44]line ИТОГО: 1000.00 [18:59:44]line Внесено: 1000.00 [18:59:44]line СДАЧА: 0.00 [18:59:44]line НСП 1% : 8.85 [18:59:44]line НДС 12% : 106.22 [18:59:44]line Наличными: 1000.00 [18:59:44]line Безнал.: 0.00 [18:59:44]line Место: АЗС № 78 "Партнер Нефть" [18:59:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:59:44]line СНО: Общий режим [18:59:44]line Чек 211 23.10.2024 18:59 [18:59:44]line Смена: 117 ФФД: 1.0 [18:59:44]line ЗНМ: 0300000137 [18:59:44]line РНМ: 0000000000186857 [18:59:44]line Версия ККМ: v1.0 [18:59:44]line ФМ: 0000000002094219 [18:59:44]line ФД: 31267 [18:59:44]line ФПД: 181666675516469 [18:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31267&fm=181666675516469&tin=02508201610067®Number=0000000000186857&sum=100000 [18:59:44]OFD Sender: Processing packet 31267 [packets to send 11, broken 10] [18:59:44]ProducePacketName [18:59:44]name=ofd_packets/00031267 [18:59:44]OFD Sender: To server: pG, [18:59:44]CommunicateWithHost lk.salyk.kg:30040 [18:59:44]ConnectInit lk.salyk.kg [18:59:44]written 0, free lines is 4095 [18:59:45]Connected sock=9 [18:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F5 D8 07 01 26 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A6 47 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 7A 00 00 35 04 06 00 A5 39 91 A9 64 35 21 31 50 44 01 8C C9 6C [18:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F5 96 47 00 D1 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 7A 00 00 F4 03 04 00 20 F2 18 67 B6 04 01 00 00 E2 3A 96 91 15 91 A2 83 [18:59:45]CommunicateWithHost err = 0 [18:59:45]CheckOFDResponse [18:59:45]1017 (14) - 77093643461234 [18:59:45]1041 (16) - 0000000002094219 [18:59:45]1040 (4) - 31267 [18:59:45]1012 (4) - 23.10.2024 12:54 [18:59:45]1206 (1) - 0 [18:59:45]OFD Sender: Remove packet 31267 [18:59:45]ProducePacketName [18:59:45]name=ofd_packets/00031267 [18:59:45]NVStorageDeleteData [18:59:45]Write to MH i2c: 01 00 00 6E 6B D9 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 6E 6B 00 00 00 00 00 F3 0C DF [18:59:45]RasterBufferAndPrint [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]written 0, free lines is 3321 [18:59:45]MH_Cut [18:59:45]Write to MH i2c: D1 01 00 75 6B 01 B2 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 01 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 01 00 75 6B 00 B1 [18:59:45]Write to MH i2c: 01 00 00 76 6B E1 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]OFD Sender: No OFD packet to send [18:59:46]*** Cut start [18:59:46]*** Partial cut [18:59:46]*** CUTSNS_PIN = 1 [18:59:46]*** CUTSNS_PIN = 0 [18:59:46]*** Brake cut motor [18:59:46]Read from MH i2c: 01 [18:59:46]MH_I2C_Read... [18:59:46]*** Stop cut motor [18:59:46]*** Cut end [18:59:46]Read from MH i2c: 01 07 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: 01 07 00 76 6B 00 00 00 00 00 FF 0F F6 [18:59:46]process_action close_receipt done [18:59:46]requested_data is exist [18:59:46]produce_requested_data [18:59:46]requested_item fm.sn is exist - process it [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 11 00 00 [18:59:46]Write to MH i2c: E2 08 00 77 6B 80 11 00 00 00 00 00 00 5C [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 17 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 17 00 77 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [18:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:59:46]wFMCommunicate OK [18:59:46]requested_item fd.num is exist - process it [18:59:46]SAM_PROTO_GetFieldsCounters [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 13 00 00 [18:59:46]Write to MH i2c: E2 08 00 78 6B 80 13 00 00 00 00 00 00 5F [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 62 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 62 00 78 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [18:59:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:46]wFMCommunicate OK [18:59:46]SAM_PROTO_GetFieldsCounters done [18:59:46]requested_item shift.num is exist - process it [18:59:46]requested_item shift.opened is exist - process it [18:59:46]req_shift_opened [18:59:46]FM_GetShiftState [18:59:46]SAM_PROTO_GetShiftState [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 13 01 00 [18:59:46]Write to MH i2c: E2 08 00 79 6B 80 13 01 00 00 00 00 00 61 [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 0E 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 0E 00 79 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1B [18:59:46]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [18:59:46]wFMCommunicate OK [18:59:46]SAM_PROTO_GetShiftState done [18:59:46]FM_GetShiftState done [18:59:46]req_shift_opened done [18:59:46]requested_item shift.open_date is exist - process it [18:59:46]req_shift_open_date [18:59:46]req_shift_open_date done [18:59:46]produce_requested_data done [18:59:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31267,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [18:59:46]process_action_free close_receipt [18:59:46]json_value_free [18:59:46]json_value_free done [18:59:46]process_json_proto returns [18:59:46]Send response to host [18:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31267,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [18:59:46]free response buf [18:59:46]execute_script done [18:59:46]execute_script returns [18:59:46]free content buf [18:59:46]Sock 10.Close socket [18:59:46]Sock 10.Thread stoped [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:12]accept exits with 7 [19:01:12]New connection [19:01:12]New thread 3067043172 created [19:01:12]Thread 3066899812 joined [19:01:12]Waiting for new connection... [19:01:12] Sock 7.Parse request [19:01:12]Sock 7.Check first char [19:01:12]Sock 7.First char is OK [19:01:12]request: POST /json_proto HTTP/1.0 [19:01:12]Method: POST [19:01:12]URL: /json_proto [19:01:12]Method is POST - this is cgi request [19:01:12]url: /json_proto [19:01:12]query_string will be loaded in cgi processing [19:01:12]execute_cgi json_proto POST (null) [19:01:12]execute_cgi path=json_proto method=POST [19:01:12]POST find Content-Length [19:01:12]Host: 172.17.51.3:8080 [19:01:12]Content-Length: 688 [19:01:12]Content-Type: application/json [19:01:12] [19:01:12]POST finish read [19:01:12]Found Content-Length = 688 [19:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:12]execute_script... [19:01:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:12]POST & json_proto [19:01:12]process_json_proto [19:01:12]json parsed OK: [19:01:12]protocol is kg_v1.0 [19:01:12]action value=close_receipt [19:01:12]process_action close_receipt [19:01:12]cmd_close_receipt [19:01:12]MH_GetDate [19:01:12]Write to MH i2c: F0 00 00 7A 6B D4 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: F0 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: F0 09 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: F0 09 00 7A 6B 00 00 48 19 67 04 C1 95 66 65 [19:01:12]GetLastDocTimeStamp 1729709990 [19:01:12]current date 1729710080 [19:01:12]FM_GetShiftState [19:01:12]SAM_PROTO_GetShiftState [19:01:12]wFMCommunicate request_size=4 [19:01:12]MH_SAM_APDU [19:01:12]CAPDU: 80 13 01 00 [19:01:12]Write to MH i2c: E2 08 00 7B 6B 80 13 01 00 00 00 00 00 63 [19:01:12]Write i2c OK [19:01:12]MH_I2C_Read... [19:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:12]Read from MH i2c: E2 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0E 00 [19:01:12]MH_I2C_Read... [19:01:12]Read from MH i2c: E2 0E 00 7B 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 1D [19:01:12]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:01:12]wFMCommunicate OK [19:01:12]SAM_PROTO_GetShiftState done [19:01:12]FM_GetShiftState done [19:01:12]opened in 1729643755 [19:01:12]opened+sec_in_day 1729730155 [19:01:12]quantity*price = 300076 [19:01:12]sum+1 = 300077 [19:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 212 23.10.2024 19:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31268 ФПД: 225955236594721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31268&fm=225955236594721&tin=02508201610067®Number=0000000000186857&sum=300000 [19:01:13]StoreToDocumentArchive [19:01:13]shift 117 fd 31268 [19:01:13]save to /storage/0117/doc_00031268 [19:01:13]save last doc name /storage/0117/doc_00031268 to /storage/kkm_last_doc_name [19:01:13]save OK [19:01:13]Clear old archive folders... [19:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:01:13]tlvbuf is 00EFFE60 [19:01:13]SAM_PROTO_ClearQueue [19:01:13]wFMCommunicate request_size=4 [19:01:13]MH_SAM_APDU [19:01:13]CAPDU: 80 09 00 00 [19:01:13]Write to MH i2c: E2 08 00 88 6B 80 09 00 00 00 00 00 00 65 [19:01:13]Write i2c OK [19:01:13]MH_I2C_Read... [19:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:13]Read from MH i2c: E2 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 88 6B 00 90 00 67 [19:01:13]RAPDU: 90 00 [19:01:13]wFMCommunicate OK [19:01:13]SAM_PROTO_ClearQueue done [19:01:13]KKMCreateOFDPacket [19:01:13]OFDProtocolAddRootSTLVToBuf [19:01:13]FM_MakeSignedData [19:01:13]FM_MakeSignedData [19:01:13]SAM_PROTO_SignData [19:01:13]wFMCommunicate request_size=4 [19:01:13]MH_SAM_APDU [19:01:13]CAPDU: 80 0D 01 02 [19:01:13]Write to MH i2c: E2 08 00 89 6B 80 0D 01 02 00 00 00 00 6D [19:01:13]Write i2c OK [19:01:13]MH_I2C_Read... [19:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:13]Read from MH i2c: E2 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 89 6B 00 90 00 68 [19:01:13]RAPDU: 90 00 [19:01:13]wFMCommunicate OK [19:01:13]wFMCommunicate request_size=255 [19:01:13]MH_SAM_APDU [19:01:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 00 48 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 7A 00 [19:01:13]Write to MH i2c: E2 02 01 8A 6B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 00 48 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 7A 00 00 00 58 [19:01:13]Write i2c OK [19:01:13]MH_I2C_Read... [19:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:13]Read from MH i2c: E2 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 [19:01:13]MH_I2C_Read... [19:01:13]Read from MH i2c: E2 03 00 8A 6B 00 90 00 69 [19:01:13]RAPDU: 90 00 [19:01:13]wFMCommunicate OK [19:01:13]wFMCommunicate request_size=16 [19:01:13]MH_SAM_APDU [19:01:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 81 4D 9C C4 21 [19:01:13]Write to MH i2c: E2 13 00 8B 6B 80 0D 02 02 0B 00 00 35 04 06 00 CD 81 4D 9C C4 21 00 00 E1 [19:01:13]Write i2c OK [19:01:13]MH_I2C_Read... [19:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:13]Read from MH i2c: E2 [19:01:13]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 03 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 03 00 8B 6B 00 90 00 6A [19:01:14]RAPDU: 90 00 [19:01:14]wFMCommunicate OK [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 0D 03 02 [19:01:14]Write to MH i2c: E2 08 00 8C 6B 80 0D 03 02 00 00 00 00 72 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0B 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0B 00 8C 6B 00 00 65 22 8D 82 8B 1E 6D 90 00 1F [19:01:14]RAPDU: 00 65 22 8D 82 8B 1E 6D 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_SignData done [19:01:14]FM_MakeSignedData done [19:01:14]CreateOFDProtocolMessage [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 11 00 00 [19:01:14]Write to MH i2c: E2 08 00 8D 6B 80 11 00 00 00 00 00 00 72 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 17 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 17 00 8D 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [19:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:01:14]wFMCommunicate OK [19:01:14]CreateOFDProtocolMessage done [19:01:14]OFDSenderStorePacket 31268 [19:01:14]StoreOFDPacket docnum=31268 [19:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B0 DE 0D 01 D4 EC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 00 48 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 7A 00 00 35 04 06 00 CD 81 4D 9C C4 21 00 65 22 8D 82 8B 1E 6D [19:01:14]CheckFolder [19:01:14]dirname=/storage/ofd_packets [19:01:14]CheckFolder done [19:01:14]ProducePacketName [19:01:14]name=ofd_packets/00031268 [19:01:14]NVStorageSaveData ofd_packets/00031268 [19:01:14]File name is /storage/ofd_packets/00031268 [19:01:14]Write 307 bytes [19:01:14]NVStorageSaveData done [19:01:14]OFDSenderStorePacket done [19:01:14]KKMCreateOFDPacket done [19:01:14]NVStorageSaveData kkm_last_timestamp [19:01:14]File name is /storage/kkm_last_timestamp [19:01:14]Write 4 bytes [19:01:14]NVStorageSaveData done [19:01:14]ExternCall_PrintAddStr [19:01:14]wPrintStart [19:01:14]Write to MH i2c: 01 00 00 8E 6B F9 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 07 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 07 00 8E 6B 00 00 00 00 00 FF 0F 0E [19:01:14]RasterBufferAndPrint [19:01:14]line Счет N : (1)343716 [19:01:14]line ИНН: 02508201610067 [19:01:14]line Контрольно-Кассовый Чек [19:01:14]line ПРОДАЖА [19:01:14]line ТРК (МРК, ГНК) : 51 [19:01:14]line Товар: 2710194210 [19:01:14]line D-ENERGY Дт-К-2 [19:01:14]line 38.870 * 77.20 [19:01:14]line = 3000.76 [19:01:14]line НДС 12% НСП 1% [19:01:14]line > о реализуемом товаре [19:01:14]line ОКРУГЛЕНИЕ: -0.76 [19:01:14]line ИТОГО: 3000.00 [19:01:14]line Внесено: 3000.00 [19:01:14]line СДАЧА: 0.00 [19:01:14]line НСП 1% : 26.55 [19:01:14]line НДС 12% : 318.66 [19:01:14]line Наличными: 3000.00 [19:01:14]line Безнал.: 0.00 [19:01:14]line Место: АЗС № 78 "Партнер Нефть" [19:01:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:01:14]line СНО: Общий режим [19:01:14]line Чек 212 23.10.2024 19:01 [19:01:14]line Смена: 117 ФФД: 1.0 [19:01:14]line ЗНМ: 0300000137 [19:01:14]line РНМ: 0000000000186857 [19:01:14]line Версия ККМ: v1.0 [19:01:14]line ФМ: 0000000002094219 [19:01:14]line ФД: 31268 [19:01:14]line ФПД: 225955236594721 [19:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31268&fm=225955236594721&tin=02508201610067®Number=0000000000186857&sum=300000 [19:01:14]OFD Sender: Processing packet 31268 [packets to send 11, broken 10] [19:01:14]ProducePacketName [19:01:14]name=ofd_packets/00031268 [19:01:14]OFD Sender: To server: pG, [19:01:14]CommunicateWithHost lk.salyk.kg:30040 [19:01:14]ConnectInit lk.salyk.kg [19:01:14]written 0, free lines is 4095 [19:01:14]Connected sock=10 [19:01:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B0 DE 0D 01 D4 EC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 00 48 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 7A 00 00 35 04 06 00 CD 81 4D 9C C4 21 00 65 22 8D 82 8B 1E 6D [19:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 D8 47 00 D7 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 7A 00 00 F4 03 04 00 79 F2 18 67 B6 04 01 00 00 DD 22 3D E0 14 58 03 D2 [19:01:14]CommunicateWithHost err = 0 [19:01:14]CheckOFDResponse [19:01:14]1017 (14) - 77093643461234 [19:01:14]1041 (16) - 0000000002094219 [19:01:14]1040 (4) - 31268 [19:01:14]1012 (4) - 23.10.2024 12:56 [19:01:14]1206 (1) - 0 [19:01:14]OFD Sender: Remove packet 31268 [19:01:14]ProducePacketName [19:01:14]name=ofd_packets/00031268 [19:01:14]NVStorageDeleteData [19:01:14]Write to MH i2c: 01 00 00 B9 6B 24 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 07 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: 01 07 00 B9 6B 00 00 00 00 00 F3 0C 2A [19:01:14]RasterBufferAndPrint [19:01:14]line [19:01:14]line [19:01:14]line [19:01:14]line [19:01:14]line [19:01:14]written 0, free lines is 3324 [19:01:14]MH_Cut [19:01:14]Write to MH i2c: D1 01 00 C0 6B 01 FD [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: D1 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: D1 01 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: D1 01 00 C0 6B 00 FC [19:01:14]Write to MH i2c: 01 00 00 C1 6B 2C [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:15]OFD Sender: No OFD packet to send [19:01:15]*** Cut start [19:01:15]*** Partial cut [19:01:15]*** CUTSNS_PIN = 1 [19:01:15]*** CUTSNS_PIN = 0 [19:01:15]*** Brake cut motor [19:01:16]Read from MH i2c: 01 [19:01:16]MH_I2C_Read... [19:01:16]*** Stop cut motor [19:01:16]*** Cut end [19:01:16]Read from MH i2c: 01 07 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 C1 6B 00 00 00 00 00 FF 0F 41 [19:01:16]process_action close_receipt done [19:01:16]requested_data is exist [19:01:16]produce_requested_data [19:01:16]requested_item fm.sn is exist - process it [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 11 00 00 [19:01:16]Write to MH i2c: E2 08 00 C2 6B 80 11 00 00 00 00 00 00 A7 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 C2 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [19:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:01:16]wFMCommunicate OK [19:01:16]requested_item fd.num is exist - process it [19:01:16]SAM_PROTO_GetFieldsCounters [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 13 00 00 [19:01:16]Write to MH i2c: E2 08 00 C3 6B 80 13 00 00 00 00 00 00 AA [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 62 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 62 00 C3 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_GetFieldsCounters done [19:01:16]requested_item shift.num is exist - process it [19:01:16]requested_item shift.opened is exist - process it [19:01:16]req_shift_opened [19:01:16]FM_GetShiftState [19:01:16]SAM_PROTO_GetShiftState [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 13 01 00 [19:01:16]Write to MH i2c: E2 08 00 C4 6B 80 13 01 00 00 00 00 00 AC [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 C4 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 66 [19:01:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_GetShiftState done [19:01:16]FM_GetShiftState done [19:01:16]req_shift_opened done [19:01:16]requested_item shift.open_date is exist - process it [19:01:16]req_shift_open_date [19:01:16]req_shift_open_date done [19:01:16]produce_requested_data done [19:01:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31268,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:01:16]process_action_free close_receipt [19:01:16]json_value_free [19:01:16]json_value_free done [19:01:16]process_json_proto returns [19:01:16]Send response to host [19:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31268,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:01:16]free response buf [19:01:16]execute_script done [19:01:16]execute_script returns [19:01:16]free content buf [19:01:16]Sock 7.Close socket [19:01:16]Sock 7.Thread stoped [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:53]accept exits with 9 [19:06:53]New connection [19:06:53]New thread 3066899812 created [19:06:53]Thread 3067043172 joined [19:06:53]Waiting for new connection... [19:06:53] Sock 9.Parse request [19:06:53]Sock 9.Check first char [19:06:53]Sock 9.First char is OK [19:06:53]request: POST /json_proto HTTP/1.0 [19:06:53]Method: POST [19:06:53]URL: /json_proto [19:06:53]Method is POST - this is cgi request [19:06:53]url: /json_proto [19:06:53]query_string will be loaded in cgi processing [19:06:53]execute_cgi json_proto POST (null) [19:06:53]execute_cgi path=json_proto method=POST [19:06:53]POST find Content-Length [19:06:53]Host: 172.17.51.3:8080 [19:06:53]Content-Length: 688 [19:06:53]Content-Type: application/json [19:06:53] [19:06:53]POST finish read [19:06:53]Found Content-Length = 688 [19:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:53]execute_script... [19:06:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:53]POST & json_proto [19:06:53]process_json_proto [19:06:53]json parsed OK: [19:06:53]protocol is kg_v1.0 [19:06:53]action value=close_receipt [19:06:53]process_action close_receipt [19:06:53]cmd_close_receipt [19:06:53]MH_GetDate [19:06:53]Write to MH i2c: F0 00 00 C5 6B 1F [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: F0 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: F0 09 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: F0 09 00 C5 6B 00 55 49 19 67 04 C1 95 66 06 [19:06:53]GetLastDocTimeStamp 1729710080 [19:06:53]current date 1729710421 [19:06:53]FM_GetShiftState [19:06:53]SAM_PROTO_GetShiftState [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 13 01 00 [19:06:53]Write to MH i2c: E2 08 00 C6 6B 80 13 01 00 00 00 00 00 AE [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0E 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0E 00 C6 6B 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 68 [19:06:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:06:53]wFMCommunicate OK [19:06:53]SAM_PROTO_GetShiftState done [19:06:53]FM_GetShiftState done [19:06:53]opened in 1729643755 [19:06:53]opened+sec_in_day 1729730155 [19:06:53]quantity*price = 150076 [19:06:53]sum+1 = 150078 [19:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 213 23.10.2024 19:07 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31269 ФПД: 258307067256653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31269&fm=258307067256653&tin=02508201610067®Number=0000000000186857&sum=150000 [19:06:54]StoreToDocumentArchive [19:06:54]shift 117 fd 31269 [19:06:54]save to /storage/0117/doc_00031269 [19:06:54]save last doc name /storage/0117/doc_00031269 to /storage/kkm_last_doc_name [19:06:54]save OK [19:06:54]Clear old archive folders... [19:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:06:54]tlvbuf is 00CCD410 [19:06:54]SAM_PROTO_ClearQueue [19:06:54]wFMCommunicate request_size=4 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 09 00 00 [19:06:54]Write to MH i2c: E2 08 00 D3 6B 80 09 00 00 00 00 00 00 B0 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 D3 6B 00 90 00 B2 [19:06:54]RAPDU: 90 00 [19:06:54]wFMCommunicate OK [19:06:54]SAM_PROTO_ClearQueue done [19:06:54]KKMCreateOFDPacket [19:06:54]OFDProtocolAddRootSTLVToBuf [19:06:54]FM_MakeSignedData [19:06:54]FM_MakeSignedData [19:06:54]SAM_PROTO_SignData [19:06:54]wFMCommunicate request_size=4 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 0D 01 02 [19:06:54]Write to MH i2c: E2 08 00 D4 6B 80 0D 01 02 00 00 00 00 B8 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 D4 6B 00 90 00 B3 [19:06:54]RAPDU: 90 00 [19:06:54]wFMCommunicate OK [19:06:54]wFMCommunicate request_size=255 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 7A 00 [19:06:54]Write to MH i2c: E2 02 01 D5 6B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 7A 00 00 00 6B [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:54]Read from MH i2c: E2 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: E2 03 00 D5 6B 00 90 00 B4 [19:06:54]RAPDU: 90 00 [19:06:54]wFMCommunicate OK [19:06:54]wFMCommunicate request_size=16 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EA ED CC FC 9F 4D [19:06:54]Write to MH i2c: E2 13 00 D6 6B 80 0D 02 02 0B 00 00 35 04 06 00 EA ED CC FC 9F 4D 00 00 9B [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 03 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 03 00 D6 6B 00 90 00 B5 [19:06:55]RAPDU: 90 00 [19:06:55]wFMCommunicate OK [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 0D 03 02 [19:06:55]Write to MH i2c: E2 08 00 D7 6B 80 0D 03 02 00 00 00 00 BD [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0B 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0B 00 D7 6B 00 ED DB 52 E4 85 C4 2C 3C 90 00 6D [19:06:55]RAPDU: ED DB 52 E4 85 C4 2C 3C 90 00 [19:06:55]wFMCommunicate OK [19:06:55]SAM_PROTO_SignData done [19:06:55]FM_MakeSignedData done [19:06:55]CreateOFDProtocolMessage [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 11 00 00 [19:06:55]Write to MH i2c: E2 08 00 D8 6B 80 11 00 00 00 00 00 00 BD [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 D8 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [19:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:06:55]wFMCommunicate OK [19:06:55]CreateOFDProtocolMessage done [19:06:55]OFDSenderStorePacket 31269 [19:06:55]StoreOFDPacket docnum=31269 [19:06:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D1 CB 0D 01 00 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 7A 00 00 35 04 06 00 EA ED CC FC 9F 4D ED DB 52 E4 85 C4 2C 3C [19:06:55]CheckFolder [19:06:55]dirname=/storage/ofd_packets [19:06:55]CheckFolder done [19:06:55]ProducePacketName [19:06:55]name=ofd_packets/00031269 [19:06:55]NVStorageSaveData ofd_packets/00031269 [19:06:55]File name is /storage/ofd_packets/00031269 [19:06:55]Write 307 bytes [19:06:55]NVStorageSaveData done [19:06:55]OFDSenderStorePacket done [19:06:55]KKMCreateOFDPacket done [19:06:55]NVStorageSaveData kkm_last_timestamp [19:06:55]File name is /storage/kkm_last_timestamp [19:06:55]Write 4 bytes [19:06:55]NVStorageSaveData done [19:06:55]ExternCall_PrintAddStr [19:06:55]wPrintStart [19:06:55]Write to MH i2c: 01 00 00 D9 6B 44 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 D9 6B 00 00 00 00 00 FF 0F 59 [19:06:55]RasterBufferAndPrint [19:06:55]line Счет N : (1)343717 [19:06:55]line ИНН: 02508201610067 [19:06:55]line Контрольно-Кассовый Чек [19:06:55]line ПРОДАЖА [19:06:55]line ТРК (МРК, ГНК) : 61 [19:06:55]line Товар: 2710194210 [19:06:55]line D-ENERGY Дт-К-2 [19:06:55]line 19.440 * 77.20 [19:06:55]line = 1500.77 [19:06:55]line НДС 12% НСП 1% [19:06:55]line > о реализуемом товаре [19:06:55]line ОКРУГЛЕНИЕ: -0.77 [19:06:55]line ИТОГО: 1500.00 [19:06:55]line Внесено: 1500.00 [19:06:55]line СДАЧА: 0.00 [19:06:55]line НСП 1% : 13.28 [19:06:55]line НДС 12% : 159.37 [19:06:55]line Наличными: 1500.00 [19:06:55]line Безнал.: 0.00 [19:06:55]line Место: АЗС № 78 "Партнер Нефть" [19:06:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:06:55]line СНО: Общий режим [19:06:55]line Чек 213 23.10.2024 19:07 [19:06:55]line Смена: 117 ФФД: 1.0 [19:06:55]line ЗНМ: 0300000137 [19:06:55]line РНМ: 0000000000186857 [19:06:55]line Версия ККМ: v1.0 [19:06:55]line ФМ: 0000000002094219 [19:06:55]line ФД: 31269 [19:06:55]line ФПД: 258307067256653 [19:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31269&fm=258307067256653&tin=02508201610067®Number=0000000000186857&sum=150000 [19:06:55]OFD Sender: Processing packet 31269 [packets to send 11, broken 10] [19:06:55]ProducePacketName [19:06:55]name=ofd_packets/00031269 [19:06:55]OFD Sender: To server: pG, [19:06:55]CommunicateWithHost lk.salyk.kg:30040 [19:06:55]ConnectInit lk.salyk.kg [19:06:55]written 0, free lines is 4095 [19:06:55]Connected sock=10 [19:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D1 CB 0D 01 00 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 55 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 7A 00 00 35 04 06 00 EA ED CC FC 9F 4D ED DB 52 E4 85 C4 2C 3C [19:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 65 47 00 F0 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 7A 00 00 F4 03 04 00 CE F3 18 67 B6 04 01 00 00 37 6C 99 65 3A FD 4A E0 [19:06:55]CommunicateWithHost err = 0 [19:06:55]CheckOFDResponse [19:06:55]1017 (14) - 77093643461234 [19:06:55]1041 (16) - 0000000002094219 [19:06:55]1040 (4) - 31269 [19:06:55]1012 (4) - 23.10.2024 13:02 [19:06:55]1206 (1) - 0 [19:06:55]OFD Sender: Remove packet 31269 [19:06:55]ProducePacketName [19:06:55]name=ofd_packets/00031269 [19:06:55]NVStorageDeleteData [19:06:55]Write to MH i2c: 01 00 00 04 6C 70 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 04 6C 00 00 00 00 00 EE 0C 71 [19:06:55]RasterBufferAndPrint [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]line [19:06:55]written 0, free lines is 3316 [19:06:55]MH_Cut [19:06:55]Write to MH i2c: D1 01 00 0B 6C 01 49 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 01 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: D1 01 00 0B 6C 00 48 [19:06:55]Write to MH i2c: 01 00 00 0C 6C 78 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:56]OFD Sender: No OFD packet to send [19:06:56]*** Cut start [19:06:56]*** Partial cut [19:06:56]*** CUTSNS_PIN = 1 [19:06:56]*** CUTSNS_PIN = 0 [19:06:56]*** Brake cut motor [19:06:57]Read from MH i2c: 01 [19:06:57]MH_I2C_Read... [19:06:57]*** Stop cut motor [19:06:57]*** Cut end [19:06:57]Read from MH i2c: 01 07 00 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: 01 07 00 0C 6C 00 00 00 00 00 FF 0F 8D [19:06:57]process_action close_receipt done [19:06:57]requested_data is exist [19:06:57]produce_requested_data [19:06:57]requested_item fm.sn is exist - process it [19:06:57]wFMCommunicate request_size=4 [19:06:57]MH_SAM_APDU [19:06:57]CAPDU: 80 11 00 00 [19:06:57]Write to MH i2c: E2 08 00 0D 6C 80 11 00 00 00 00 00 00 F3 [19:06:57]Write i2c OK [19:06:57]MH_I2C_Read... [19:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:57]Read from MH i2c: E2 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 17 00 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 17 00 0D 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [19:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:06:57]wFMCommunicate OK [19:06:57]requested_item fd.num is exist - process it [19:06:57]SAM_PROTO_GetFieldsCounters [19:06:57]wFMCommunicate request_size=4 [19:06:57]MH_SAM_APDU [19:06:57]CAPDU: 80 13 00 00 [19:06:57]Write to MH i2c: E2 08 00 0E 6C 80 13 00 00 00 00 00 00 F6 [19:06:57]Write i2c OK [19:06:57]MH_I2C_Read... [19:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:57]Read from MH i2c: E2 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 62 00 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 62 00 0E 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:57]wFMCommunicate OK [19:06:57]SAM_PROTO_GetFieldsCounters done [19:06:57]requested_item shift.num is exist - process it [19:06:57]requested_item shift.opened is exist - process it [19:06:57]req_shift_opened [19:06:57]FM_GetShiftState [19:06:57]SAM_PROTO_GetShiftState [19:06:57]wFMCommunicate request_size=4 [19:06:57]MH_SAM_APDU [19:06:57]CAPDU: 80 13 01 00 [19:06:57]Write to MH i2c: E2 08 00 0F 6C 80 13 01 00 00 00 00 00 F8 [19:06:57]Write i2c OK [19:06:57]MH_I2C_Read... [19:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:57]Read from MH i2c: E2 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 0E 00 [19:06:57]MH_I2C_Read... [19:06:57]Read from MH i2c: E2 0E 00 0F 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B2 [19:06:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:06:57]wFMCommunicate OK [19:06:57]SAM_PROTO_GetShiftState done [19:06:57]FM_GetShiftState done [19:06:57]req_shift_opened done [19:06:57]requested_item shift.open_date is exist - process it [19:06:57]req_shift_open_date [19:06:57]req_shift_open_date done [19:06:57]produce_requested_data done [19:06:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31269,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:06:57]process_action_free close_receipt [19:06:57]json_value_free [19:06:57]json_value_free done [19:06:57]process_json_proto returns [19:06:57]Send response to host [19:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31269,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:06:57]free response buf [19:06:57]execute_script done [19:06:57]execute_script returns [19:06:57]free content buf [19:06:57]Sock 9.Close socket [19:06:57]Sock 9.Thread stoped [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:15]accept exits with 7 [19:08:15]New connection [19:08:15]New thread 3067043172 created [19:08:15]Thread 3066899812 joined [19:08:15]Waiting for new connection... [19:08:15] Sock 7.Parse request [19:08:15]Sock 7.Check first char [19:08:15]Sock 7.First char is OK [19:08:15]request: POST /json_proto HTTP/1.0 [19:08:15]Method: POST [19:08:15]URL: /json_proto [19:08:15]Method is POST - this is cgi request [19:08:15]url: /json_proto [19:08:15]query_string will be loaded in cgi processing [19:08:15]execute_cgi json_proto POST (null) [19:08:15]execute_cgi path=json_proto method=POST [19:08:15]POST find Content-Length [19:08:15]Host: 172.17.51.3:8080 [19:08:15]Content-Length: 674 [19:08:15]Content-Type: application/json [19:08:15] [19:08:15]POST finish read [19:08:15]Found Content-Length = 674 [19:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:15]execute_script... [19:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:15]POST & json_proto [19:08:15]process_json_proto [19:08:15]json parsed OK: [19:08:15]protocol is kg_v1.0 [19:08:15]action value=close_receipt [19:08:15]process_action close_receipt [19:08:15]cmd_close_receipt [19:08:15]MH_GetDate [19:08:15]Write to MH i2c: F0 00 00 10 6C 6B [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 09 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 09 00 10 6C 00 A7 49 19 67 04 C1 95 66 A4 [19:08:15]GetLastDocTimeStamp 1729710421 [19:08:15]current date 1729710503 [19:08:15]FM_GetShiftState [19:08:15]SAM_PROTO_GetShiftState [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 13 01 00 [19:08:15]Write to MH i2c: E2 08 00 11 6C 80 13 01 00 00 00 00 00 FA [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 11 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 B4 [19:08:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:08:15]wFMCommunicate OK [19:08:15]SAM_PROTO_GetShiftState done [19:08:15]FM_GetShiftState done [19:08:15]opened in 1729643755 [19:08:15]opened+sec_in_day 1729730155 [19:08:15]quantity*price = 30022 [19:08:15]sum+1 = 30024 [19:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 214 23.10.2024 19:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31270 ФПД: 204405008447286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31270&fm=204405008447286&tin=02508201610067®Number=0000000000186857&sum=30000 [19:08:16]StoreToDocumentArchive [19:08:16]shift 117 fd 31270 [19:08:16]save to /storage/0117/doc_00031270 [19:08:16]save last doc name /storage/0117/doc_00031270 to /storage/kkm_last_doc_name [19:08:16]save OK [19:08:16]Clear old archive folders... [19:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:08:16]tlvbuf is 00D37D30 [19:08:16]SAM_PROTO_ClearQueue [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 09 00 00 [19:08:16]Write to MH i2c: E2 08 00 1E 6C 80 09 00 00 00 00 00 00 FC [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 1E 6C 00 90 00 FE [19:08:16]RAPDU: 90 00 [19:08:16]wFMCommunicate OK [19:08:16]SAM_PROTO_ClearQueue done [19:08:16]KKMCreateOFDPacket [19:08:16]OFDProtocolAddRootSTLVToBuf [19:08:16]FM_MakeSignedData [19:08:16]FM_MakeSignedData [19:08:16]SAM_PROTO_SignData [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 0D 01 02 [19:08:16]Write to MH i2c: E2 08 00 1F 6C 80 0D 01 02 00 00 00 00 04 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 1F 6C 00 90 00 FF [19:08:17]RAPDU: 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=255 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A7 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 7A 00 00 35 04 06 00 B9 E7 BF EB [19:08:17]Write to MH i2c: E2 02 01 20 6C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A7 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 7A 00 00 35 04 06 00 B9 E7 BF EB 00 00 ED [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 20 6C 00 90 00 00 [19:08:17]RAPDU: 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=7 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 0D 02 02 02 37 36 [19:08:17]Write to MH i2c: E2 0A 00 21 6C 80 0D 02 02 02 00 37 36 00 00 78 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 21 6C 00 90 00 01 [19:08:17]RAPDU: 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 0D 03 02 [19:08:17]Write to MH i2c: E2 08 00 22 6C 80 0D 03 02 00 00 00 00 09 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 0B 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 0B 00 22 6C 00 EF B5 14 1F 57 EF A3 73 90 00 3D [19:08:17]RAPDU: EF B5 14 1F 57 EF A3 73 90 00 [19:08:17]wFMCommunicate OK [19:08:17]SAM_PROTO_SignData done [19:08:17]FM_MakeSignedData done [19:08:17]CreateOFDProtocolMessage [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 11 00 00 [19:08:17]Write to MH i2c: E2 08 00 23 6C 80 11 00 00 00 00 00 00 09 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 17 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 17 00 23 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [19:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:08:17]wFMCommunicate OK [19:08:17]CreateOFDProtocolMessage done [19:08:17]OFDSenderStorePacket 31270 [19:08:17]StoreOFDPacket docnum=31270 [19:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B1 A9 04 01 38 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A7 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 7A 00 00 35 04 06 00 B9 E7 BF EB 37 36 EF B5 14 1F 57 EF A3 73 [19:08:17]CheckFolder [19:08:17]dirname=/storage/ofd_packets [19:08:17]CheckFolder done [19:08:17]ProducePacketName [19:08:17]name=ofd_packets/00031270 [19:08:17]NVStorageSaveData ofd_packets/00031270 [19:08:17]File name is /storage/ofd_packets/00031270 [19:08:17]Write 298 bytes [19:08:17]NVStorageSaveData done [19:08:17]OFDSenderStorePacket done [19:08:17]KKMCreateOFDPacket done [19:08:17]NVStorageSaveData kkm_last_timestamp [19:08:17]File name is /storage/kkm_last_timestamp [19:08:17]Write 4 bytes [19:08:17]NVStorageSaveData done [19:08:17]ExternCall_PrintAddStr [19:08:17]wPrintStart [19:08:17]Write to MH i2c: 01 00 00 24 6C 90 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 07 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 07 00 24 6C 00 00 00 00 00 FF 0F A5 [19:08:17]RasterBufferAndPrint [19:08:17]line Счет N : (1)343718 [19:08:17]line ИНН: 02508201610067 [19:08:17]line Контрольно-Кассовый Чек [19:08:17]line ПРОДАЖА [19:08:17]line ТРК (МРК, ГНК) : 64 [19:08:17]line Товар: 2710194210 [19:08:17]line ДТ-К-2 [19:08:17]line 3.940 * 76.20 [19:08:17]line = 300.23 [19:08:17]line НДС 12% НСП 1% [19:08:17]line > о реализуемом товаре [19:08:17]line ОКРУГЛЕНИЕ: -0.23 [19:08:17]line ИТОГО: 300.00 [19:08:17]line Внесено: 300.00 [19:08:17]line СДАЧА: 0.00 [19:08:17]line НСП 1% : 2.66 [19:08:17]line НДС 12% : 31.88 [19:08:17]line Наличными: 300.00 [19:08:17]line Безнал.: 0.00 [19:08:17]line Место: АЗС № 78 "Партнер Нефть" [19:08:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:08:17]line СНО: Общий режим [19:08:17]line Чек 214 23.10.2024 19:08 [19:08:17]line Смена: 117 ФФД: 1.0 [19:08:17]line ЗНМ: 0300000137 [19:08:17]line РНМ: 0000000000186857 [19:08:17]line Версия ККМ: v1.0 [19:08:17]line ФМ: 0000000002094219 [19:08:17]line ФД: 31270 [19:08:17]line ФПД: 204405008447286 [19:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T190823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31270&fm=204405008447286&tin=02508201610067®Number=0000000000186857&sum=30000 [19:08:17]OFD Sender: Processing packet 31270 [packets to send 11, broken 10] [19:08:17]ProducePacketName [19:08:17]name=ofd_packets/00031270 [19:08:17]OFD Sender: To server: pG, [19:08:17]CommunicateWithHost lk.salyk.kg:30040 [19:08:17]ConnectInit lk.salyk.kg [19:08:17]written 0, free lines is 4095 [19:08:17]Connected sock=10 [19:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B1 A9 04 01 38 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A7 49 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 7A 00 00 35 04 06 00 B9 E7 BF EB 37 36 EF B5 14 1F 57 EF A3 73 [19:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6E 6D 47 00 8F 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 32 30 39 34 32 31 39 10 04 04 00 26 7A 00 00 F4 03 04 00 20 F4 18 67 B6 04 01 00 00 C7 B2 71 84 61 02 56 FA [19:08:18]CommunicateWithHost err = 0 [19:08:18]CheckOFDResponse [19:08:18]1017 (14) - 77093643461234 [19:08:18]1041 (16) - 0000000002094219 [19:08:18]1040 (4) - 31270 [19:08:18]1012 (4) - 23.10.2024 13:03 [19:08:18]1206 (1) - 0 [19:08:18]OFD Sender: Remove packet 31270 [19:08:18]ProducePacketName [19:08:18]name=ofd_packets/00031270 [19:08:18]NVStorageDeleteData [19:08:18]Write to MH i2c: 01 00 00 4F 6C BB [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 07 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 EE 0C BC [19:08:18]RasterBufferAndPrint [19:08:18]line [19:08:18]line [19:08:18]line [19:08:18]line [19:08:18]line [19:08:18]written 0, free lines is 3316 [19:08:18]MH_Cut [19:08:18]Write to MH i2c: D1 01 00 56 6C 01 94 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: D1 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: D1 01 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: D1 01 00 56 6C 00 93 [19:08:18]Write to MH i2c: 01 00 00 57 6C C3 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]OFD Sender: No OFD packet to send [19:08:18]*** Cut start [19:08:18]*** Partial cut [19:08:18]*** CUTSNS_PIN = 1 [19:08:18]*** CUTSNS_PIN = 0 [19:08:19]*** Brake cut motor [19:08:19]Read from MH i2c: 01 [19:08:19]MH_I2C_Read... [19:08:19]*** Stop cut motor [19:08:19]*** Cut end [19:08:19]Read from MH i2c: 01 07 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: 01 07 00 57 6C 00 00 00 00 00 FF 0F D8 [19:08:19]process_action close_receipt done [19:08:19]requested_data is exist [19:08:19]produce_requested_data [19:08:19]requested_item fm.sn is exist - process it [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 11 00 00 [19:08:19]Write to MH i2c: E2 08 00 58 6C 80 11 00 00 00 00 00 00 3E [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 17 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 17 00 58 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [19:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:08:19]wFMCommunicate OK [19:08:19]requested_item fd.num is exist - process it [19:08:19]SAM_PROTO_GetFieldsCounters [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 13 00 00 [19:08:19]Write to MH i2c: E2 08 00 59 6C 80 13 00 00 00 00 00 00 41 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 62 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 62 00 59 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [19:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:19]wFMCommunicate OK [19:08:19]SAM_PROTO_GetFieldsCounters done [19:08:19]requested_item shift.num is exist - process it [19:08:19]requested_item shift.opened is exist - process it [19:08:19]req_shift_opened [19:08:19]FM_GetShiftState [19:08:19]SAM_PROTO_GetShiftState [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 13 01 00 [19:08:19]Write to MH i2c: E2 08 00 5A 6C 80 13 01 00 00 00 00 00 43 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 0E 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 0E 00 5A 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FD [19:08:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:08:19]wFMCommunicate OK [19:08:19]SAM_PROTO_GetShiftState done [19:08:19]FM_GetShiftState done [19:08:19]req_shift_opened done [19:08:19]requested_item shift.open_date is exist - process it [19:08:19]req_shift_open_date [19:08:19]req_shift_open_date done [19:08:19]produce_requested_data done [19:08:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31270,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:08:19]process_action_free close_receipt [19:08:19]json_value_free [19:08:19]json_value_free done [19:08:19]process_json_proto returns [19:08:19]Send response to host [19:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31270,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:08:19]free response buf [19:08:19]execute_script done [19:08:19]execute_script returns [19:08:19]free content buf [19:08:19]Sock 7.Close socket [19:08:19]Sock 7.Thread stoped [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:22]accept exits with 9 [19:10:22]New connection [19:10:22]New thread 3066899812 created [19:10:22]Thread 3067043172 joined [19:10:22]Waiting for new connection... [19:10:22] Sock 9.Parse request [19:10:22]Sock 9.Check first char [19:10:22]Sock 9.First char is OK [19:10:22]request: POST /json_proto HTTP/1.0 [19:10:22]Method: POST [19:10:22]URL: /json_proto [19:10:22]Method is POST - this is cgi request [19:10:22]url: /json_proto [19:10:22]query_string will be loaded in cgi processing [19:10:22]execute_cgi json_proto POST (null) [19:10:22]execute_cgi path=json_proto method=POST [19:10:22]POST find Content-Length [19:10:22]Host: 172.17.51.3:8080 [19:10:22]Content-Length: 753 [19:10:22]Content-Type: application/json [19:10:22] [19:10:22]POST finish read [19:10:22]Found Content-Length = 753 [19:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 1.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:22]execute_script... [19:10:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 1.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101093", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:22]POST & json_proto [19:10:22]process_json_proto [19:10:22]json parsed OK: [19:10:22]protocol is kg_v1.0 [19:10:22]action value=close_receipt [19:10:22]process_action close_receipt [19:10:22]cmd_close_receipt [19:10:22]MH_GetDate [19:10:22]Write to MH i2c: F0 00 00 5B 6C B6 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: F0 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: F0 09 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: F0 09 00 5B 6C 00 26 4A 19 67 04 C1 95 66 6F [19:10:22]GetLastDocTimeStamp 1729710503 [19:10:22]current date 1729710630 [19:10:22]FM_GetShiftState [19:10:22]SAM_PROTO_GetShiftState [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 13 01 00 [19:10:22]Write to MH i2c: E2 08 00 5C 6C 80 13 01 00 00 00 00 00 45 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 5C 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FF [19:10:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_GetShiftState done [19:10:22]FM_GetShiftState done [19:10:22]opened in 1729643755 [19:10:22]opened+sec_in_day 1729730155 [19:10:22]quantity*price = 0 [19:10:22]sum+1 = 1 [19:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 215 23.10.2024 19:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101093 ФМ: 0000000002094219 ФД: 31271 ФПД: 265084340847170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191030&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31271&fm=265084340847170&tin=02508201610067®Number=0000000000186857&sum=0 [19:10:23]StoreToDocumentArchive [19:10:23]shift 117 fd 31271 [19:10:23]save to /storage/0117/doc_00031271 [19:10:23]save last doc name /storage/0117/doc_00031271 to /storage/kkm_last_doc_name [19:10:23]save OK [19:10:23]Clear old archive folders... [19:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:23]tlvbuf is 00D046B0 [19:10:23]SAM_PROTO_ClearQueue [19:10:23]wFMCommunicate request_size=4 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 09 00 00 [19:10:23]Write to MH i2c: E2 08 00 69 6C 80 09 00 00 00 00 00 00 47 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:23]Read from MH i2c: E2 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 69 6C 00 90 00 49 [19:10:23]RAPDU: 90 00 [19:10:23]wFMCommunicate OK [19:10:23]SAM_PROTO_ClearQueue done [19:10:23]KKMCreateOFDPacket [19:10:23]OFDProtocolAddRootSTLVToBuf [19:10:23]FM_MakeSignedData [19:10:23]FM_MakeSignedData [19:10:23]SAM_PROTO_SignData [19:10:23]wFMCommunicate request_size=4 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 0D 01 02 [19:10:23]Write to MH i2c: E2 08 00 6A 6C 80 0D 01 02 00 00 00 00 4F [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:23]Read from MH i2c: E2 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 6A 6C 00 90 00 4A [19:10:23]RAPDU: 90 00 [19:10:23]wFMCommunicate OK [19:10:23]wFMCommunicate request_size=255 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 26 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 7A 00 00 35 04 06 00 F1 [19:10:23]Write to MH i2c: E2 02 01 6B 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 26 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 7A 00 00 35 04 06 00 F1 00 00 CE [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]OFD Sender: No OFD packet to send [19:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:23]Read from MH i2c: E2 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 6B 6C 00 90 00 4B [19:10:23]RAPDU: 90 00 [19:10:23]wFMCommunicate OK [19:10:23]wFMCommunicate request_size=10 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 0D 02 02 05 17 C1 F8 C2 42 [19:10:23]Write to MH i2c: E2 0D 00 6C 6C 80 0D 02 02 05 00 17 C1 F8 C2 42 00 00 30 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:23]Read from MH i2c: E2 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 03 00 6C 6C 00 90 00 4C [19:10:23]RAPDU: 90 00 [19:10:23]wFMCommunicate OK [19:10:23]wFMCommunicate request_size=4 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 0D 03 02 [19:10:23]Write to MH i2c: E2 08 00 6D 6C 80 0D 03 02 00 00 00 00 54 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:23]Read from MH i2c: E2 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 0B 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: E2 0B 00 6D 6C 00 02 EF 76 F0 0D 0F 04 DC 90 00 A8 [19:10:23]RAPDU: 02 EF 76 F0 0D 0F 04 DC 90 00 [19:10:23]wFMCommunicate OK [19:10:23]SAM_PROTO_SignData done [19:10:23]FM_MakeSignedData done [19:10:23]CreateOFDProtocolMessage [19:10:23]wFMCommunicate request_size=4 [19:10:23]MH_SAM_APDU [19:10:23]CAPDU: 80 11 00 00 [19:10:23]Write to MH i2c: E2 08 00 6E 6C 80 11 00 00 00 00 00 00 54 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 6E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [19:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:24]wFMCommunicate OK [19:10:24]CreateOFDProtocolMessage done [19:10:24]OFDSenderStorePacket 31271 [19:10:24]StoreOFDPacket docnum=31271 [19:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 C8 07 01 9B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 26 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 7A 00 00 35 04 06 00 F1 17 C1 F8 C2 42 02 EF 76 F0 0D 0F 04 DC [19:10:24]CheckFolder [19:10:24]dirname=/storage/ofd_packets [19:10:24]CheckFolder done [19:10:24]ProducePacketName [19:10:24]name=ofd_packets/00031271 [19:10:24]NVStorageSaveData ofd_packets/00031271 [19:10:24]File name is /storage/ofd_packets/00031271 [19:10:24]Write 301 bytes [19:10:24]NVStorageSaveData done [19:10:24]OFDSenderStorePacket done [19:10:24]KKMCreateOFDPacket done [19:10:24]NVStorageSaveData kkm_last_timestamp [19:10:24]File name is /storage/kkm_last_timestamp [19:10:24]Write 4 bytes [19:10:24]NVStorageSaveData done [19:10:24]ExternCall_PrintAddStr [19:10:24]wPrintStart [19:10:24]Write to MH i2c: 01 00 00 6F 6C DB [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 6F 6C 00 00 00 00 00 FF 0F F0 [19:10:24]RasterBufferAndPrint [19:10:24]line Счет N : (1)343719 [19:10:24]line ИНН: 02508201610067 [19:10:24]line Контрольно-Кассовый Чек [19:10:24]line ПРОДАЖА [19:10:24]line ТРК (МРК, ГНК) : 53 [19:10:24]line Товар: 2710124130 [19:10:24]line Аи-92-К-2 [19:10:24]line 1.950 * 0.00 [19:10:24]line = 0.00 [19:10:24]line НДС 12% НСП 1% [19:10:24]line > о реализуемом товаре [19:10:24]line ИТОГО: 0.00 [19:10:24]line НСП 1% : 0.00 [19:10:24]line НДС 12% : 0.00 [19:10:24]line Наличными: 0.00 [19:10:24]line Безнал.: 0.00 [19:10:24]line Место: АЗС № 78 "Партнер Нефть" [19:10:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:10:24]line СНО: Общий режим [19:10:24]line Чек 215 23.10.2024 19:10 [19:10:24]line Смена: 117 ФФД: 1.0 [19:10:24]line ЗНМ: 0300000137 [19:10:24]line РНМ: 0000000000186857 [19:10:24]line Версия ККМ: v1.0 [19:10:24]line Талоны: ТК ГПНА Online [19:10:24]line 30101093 [19:10:24]line ФМ: 0000000002094219 [19:10:24]line ФД: 31271 [19:10:24]line ФПД: 265084340847170 [19:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191030&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31271&fm=265084340847170&tin=02508201610067®Number=0000000000186857&sum=0 [19:10:24]OFD Sender: Processing packet 31271 [packets to send 11, broken 10] [19:10:24]ProducePacketName [19:10:24]name=ofd_packets/00031271 [19:10:24]OFD Sender: To server: pG, [19:10:24]CommunicateWithHost lk.salyk.kg:30040 [19:10:24]ConnectInit lk.salyk.kg [19:10:24]written 0, free lines is 4095 [19:10:24]Connected sock=10 [19:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 83 C8 07 01 9B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 26 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 7A 00 00 35 04 06 00 F1 17 C1 F8 C2 42 02 EF 76 F0 0D 0F 04 DC [19:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8B A6 47 00 E7 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 32 30 39 34 32 31 39 10 04 04 00 27 7A 00 00 F4 03 04 00 9F F4 18 67 B6 04 01 00 00 7D 30 66 B9 AE FA 71 5B [19:10:24]CommunicateWithHost err = 0 [19:10:24]CheckOFDResponse [19:10:24]1017 (14) - 77093643461234 [19:10:24]1041 (16) - 0000000002094219 [19:10:24]1040 (4) - 31271 [19:10:24]1012 (4) - 23.10.2024 13:05 [19:10:24]1206 (1) - 0 [19:10:24]OFD Sender: Remove packet 31271 [19:10:24]ProducePacketName [19:10:24]name=ofd_packets/00031271 [19:10:24]NVStorageDeleteData [19:10:24]Write to MH i2c: 01 00 00 99 6C 05 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 99 6C 00 00 00 00 00 FB 0C 13 [19:10:24]RasterBufferAndPrint [19:10:24]line [19:10:24]line [19:10:24]line [19:10:24]line [19:10:24]line [19:10:24]written 0, free lines is 3332 [19:10:24]MH_Cut [19:10:24]Write to MH i2c: D1 01 00 A0 6C 01 DE [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: D1 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: D1 01 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: D1 01 00 A0 6C 00 DD [19:10:24]Write to MH i2c: 01 00 00 A1 6C 0D [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:25]OFD Sender: No OFD packet to send [19:10:25]*** Cut start [19:10:25]*** Partial cut [19:10:25]*** CUTSNS_PIN = 1 [19:10:25]*** CUTSNS_PIN = 0 [19:10:25]*** Brake cut motor [19:10:26]Read from MH i2c: 01 [19:10:26]MH_I2C_Read... [19:10:26]*** Stop cut motor [19:10:26]*** Cut end [19:10:26]Read from MH i2c: 01 07 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: 01 07 00 A1 6C 00 00 00 00 00 FF 0F 22 [19:10:26]process_action close_receipt done [19:10:26]requested_data is exist [19:10:26]produce_requested_data [19:10:26]requested_item fm.sn is exist - process it [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 11 00 00 [19:10:26]Write to MH i2c: E2 08 00 A2 6C 80 11 00 00 00 00 00 00 88 [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 17 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 17 00 A2 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [19:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:26]wFMCommunicate OK [19:10:26]requested_item fd.num is exist - process it [19:10:26]SAM_PROTO_GetFieldsCounters [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 13 00 00 [19:10:26]Write to MH i2c: E2 08 00 A3 6C 80 13 00 00 00 00 00 00 8B [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 62 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 62 00 A3 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:26]wFMCommunicate OK [19:10:26]SAM_PROTO_GetFieldsCounters done [19:10:26]requested_item shift.num is exist - process it [19:10:26]requested_item shift.opened is exist - process it [19:10:26]req_shift_opened [19:10:26]FM_GetShiftState [19:10:26]SAM_PROTO_GetShiftState [19:10:26]wFMCommunicate request_size=4 [19:10:26]MH_SAM_APDU [19:10:26]CAPDU: 80 13 01 00 [19:10:26]Write to MH i2c: E2 08 00 A4 6C 80 13 01 00 00 00 00 00 8D [19:10:26]Write i2c OK [19:10:26]MH_I2C_Read... [19:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:26]Read from MH i2c: E2 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 0E 00 [19:10:26]MH_I2C_Read... [19:10:26]Read from MH i2c: E2 0E 00 A4 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 47 [19:10:26]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:10:26]wFMCommunicate OK [19:10:26]SAM_PROTO_GetShiftState done [19:10:26]FM_GetShiftState done [19:10:26]req_shift_opened done [19:10:26]requested_item shift.open_date is exist - process it [19:10:26]req_shift_open_date [19:10:26]req_shift_open_date done [19:10:26]produce_requested_data done [19:10:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31271,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:10:26]process_action_free close_receipt [19:10:26]json_value_free [19:10:26]json_value_free done [19:10:26]process_json_proto returns [19:10:26]Send response to host [19:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31271,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:10:26]free response buf [19:10:26]execute_script done [19:10:26]execute_script returns [19:10:26]free content buf [19:10:26]Sock 9.Close socket [19:10:26]Sock 9.Thread stoped [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:34]accept exits with 7 [19:12:34]New connection [19:12:34]New thread 3067043172 created [19:12:34]Thread 3066899812 joined [19:12:34]Waiting for new connection... [19:12:34] Sock 7.Parse request [19:12:34]Sock 7.Check first char [19:12:34]Sock 7.First char is OK [19:12:34]request: POST /json_proto HTTP/1.0 [19:12:34]Method: POST [19:12:34]URL: /json_proto [19:12:34]Method is POST - this is cgi request [19:12:34]url: /json_proto [19:12:34]query_string will be loaded in cgi processing [19:12:34]execute_cgi json_proto POST (null) [19:12:34]execute_cgi path=json_proto method=POST [19:12:34]POST find Content-Length [19:12:34]Host: 172.17.51.3:8080 [19:12:34]Content-Length: 688 [19:12:34]Content-Type: application/json [19:12:34] [19:12:34]POST finish read [19:12:34]Found Content-Length = 688 [19:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:34]execute_script... [19:12:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:34]POST & json_proto [19:12:34]process_json_proto [19:12:34]json parsed OK: [19:12:34]protocol is kg_v1.0 [19:12:34]action value=close_receipt [19:12:34]process_action close_receipt [19:12:34]cmd_close_receipt [19:12:34]MH_GetDate [19:12:34]Write to MH i2c: F0 00 00 A5 6C 00 [19:12:34]Write i2c OK [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: F0 [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: F0 09 00 [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: F0 09 00 A5 6C 00 A9 4A 19 67 04 C1 95 66 3C [19:12:34]GetLastDocTimeStamp 1729710630 [19:12:34]current date 1729710761 [19:12:34]FM_GetShiftState [19:12:34]SAM_PROTO_GetShiftState [19:12:34]wFMCommunicate request_size=4 [19:12:34]MH_SAM_APDU [19:12:34]CAPDU: 80 13 01 00 [19:12:34]Write to MH i2c: E2 08 00 A6 6C 80 13 01 00 00 00 00 00 8F [19:12:34]Write i2c OK [19:12:34]MH_I2C_Read... [19:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:34]Read from MH i2c: E2 [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: E2 0E 00 [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: E2 0E 00 A6 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 49 [19:12:34]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:12:34]wFMCommunicate OK [19:12:34]SAM_PROTO_GetShiftState done [19:12:34]FM_GetShiftState done [19:12:34]opened in 1729643755 [19:12:34]opened+sec_in_day 1729730155 [19:12:34]quantity*price = 300076 [19:12:34]sum+1 = 300077 [19:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 216 23.10.2024 19:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31272 ФПД: 126565256627591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31272&fm=126565256627591&tin=02508201610067®Number=0000000000186857&sum=300000 [19:12:35]StoreToDocumentArchive [19:12:35]shift 117 fd 31272 [19:12:35]save to /storage/0117/doc_00031272 [19:12:35]save last doc name /storage/0117/doc_00031272 to /storage/kkm_last_doc_name [19:12:35]save OK [19:12:35]Clear old archive folders... [19:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:12:35]tlvbuf is 00D37B00 [19:12:35]SAM_PROTO_ClearQueue [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 09 00 00 [19:12:35]Write to MH i2c: E2 08 00 B3 6C 80 09 00 00 00 00 00 00 91 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 B3 6C 00 90 00 93 [19:12:35]RAPDU: 90 00 [19:12:35]wFMCommunicate OK [19:12:35]SAM_PROTO_ClearQueue done [19:12:35]KKMCreateOFDPacket [19:12:35]OFDProtocolAddRootSTLVToBuf [19:12:35]FM_MakeSignedData [19:12:35]FM_MakeSignedData [19:12:35]SAM_PROTO_SignData [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 0D 01 02 [19:12:35]Write to MH i2c: E2 08 00 B4 6C 80 0D 01 02 00 00 00 00 99 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 B4 6C 00 90 00 94 [19:12:35]RAPDU: 90 00 [19:12:35]wFMCommunicate OK [19:12:35]wFMCommunicate request_size=255 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A9 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 7A 00 [19:12:35]Write to MH i2c: E2 02 01 B5 6C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A9 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 7A 00 00 00 37 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]OFD Sender: No OFD packet to send [19:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 B5 6C 00 90 00 95 [19:12:35]RAPDU: 90 00 [19:12:35]wFMCommunicate OK [19:12:35]wFMCommunicate request_size=16 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 73 1C 45 29 85 87 [19:12:35]Write to MH i2c: E2 13 00 B6 6C 80 0D 02 02 0B 00 00 35 04 06 00 73 1C 45 29 85 87 00 00 FA [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 03 00 B6 6C 00 90 00 96 [19:12:35]RAPDU: 90 00 [19:12:35]wFMCommunicate OK [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 0D 03 02 [19:12:35]Write to MH i2c: E2 08 00 B7 6C 80 0D 03 02 00 00 00 00 9E [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0B 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0B 00 B7 6C 00 50 6E C1 2B CC 32 2A 1A 90 00 8B [19:12:35]RAPDU: 50 6E C1 2B CC 32 2A 1A 90 00 [19:12:35]wFMCommunicate OK [19:12:35]SAM_PROTO_SignData done [19:12:35]FM_MakeSignedData done [19:12:35]CreateOFDProtocolMessage [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 11 00 00 [19:12:35]Write to MH i2c: E2 08 00 B8 6C 80 11 00 00 00 00 00 00 9E [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 17 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 17 00 B8 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [19:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:12:35]wFMCommunicate OK [19:12:35]CreateOFDProtocolMessage done [19:12:35]OFDSenderStorePacket 31272 [19:12:35]StoreOFDPacket docnum=31272 [19:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 BA D7 0D 01 98 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A9 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 7A 00 00 35 04 06 00 73 1C 45 29 85 87 50 6E C1 2B CC 32 2A 1A [19:12:35]CheckFolder [19:12:35]dirname=/storage/ofd_packets [19:12:35]CheckFolder done [19:12:35]ProducePacketName [19:12:35]name=ofd_packets/00031272 [19:12:35]NVStorageSaveData ofd_packets/00031272 [19:12:35]File name is /storage/ofd_packets/00031272 [19:12:35]Write 307 bytes [19:12:35]NVStorageSaveData done [19:12:35]OFDSenderStorePacket done [19:12:35]KKMCreateOFDPacket done [19:12:35]NVStorageSaveData kkm_last_timestamp [19:12:35]File name is /storage/kkm_last_timestamp [19:12:35]Write 4 bytes [19:12:35]NVStorageSaveData done [19:12:35]ExternCall_PrintAddStr [19:12:35]wPrintStart [19:12:35]Write to MH i2c: 01 00 00 B9 6C 25 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: 01 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: 01 07 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: 01 07 00 B9 6C 00 00 00 00 00 FF 0F 3A [19:12:35]RasterBufferAndPrint [19:12:35]line Счет N : (1)343720 [19:12:35]line ИНН: 02508201610067 [19:12:35]line Контрольно-Кассовый Чек [19:12:35]line ПРОДАЖА [19:12:35]line ТРК (МРК, ГНК) : 61 [19:12:35]line Товар: 2710194210 [19:12:35]line D-ENERGY Дт-К-2 [19:12:35]line 38.870 * 77.20 [19:12:35]line = 3000.76 [19:12:35]line НДС 12% НСП 1% [19:12:35]line > о реализуемом товаре [19:12:35]line ОКРУГЛЕНИЕ: -0.76 [19:12:35]line ИТОГО: 3000.00 [19:12:35]line Внесено: 3000.00 [19:12:35]line СДАЧА: 0.00 [19:12:35]line НСП 1% : 26.55 [19:12:35]line НДС 12% : 318.66 [19:12:35]line Наличными: 3000.00 [19:12:35]line Безнал.: 0.00 [19:12:35]line Место: АЗС № 78 "Партнер Нефть" [19:12:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:12:35]line СНО: Общий режим [19:12:35]line Чек 216 23.10.2024 19:12 [19:12:35]line Смена: 117 ФФД: 1.0 [19:12:35]line ЗНМ: 0300000137 [19:12:35]line РНМ: 0000000000186857 [19:12:35]line Версия ККМ: v1.0 [19:12:35]line ФМ: 0000000002094219 [19:12:35]line ФД: 31272 [19:12:35]line ФПД: 126565256627591 [19:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31272&fm=126565256627591&tin=02508201610067®Number=0000000000186857&sum=300000 [19:12:36]OFD Sender: Processing packet 31272 [packets to send 11, broken 10] [19:12:36]ProducePacketName [19:12:36]name=ofd_packets/00031272 [19:12:36]OFD Sender: To server: pG, [19:12:36]CommunicateWithHost lk.salyk.kg:30040 [19:12:36]ConnectInit lk.salyk.kg [19:12:36]written 0, free lines is 4095 [19:12:36]Connected sock=10 [19:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 BA D7 0D 01 98 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A9 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 7A 00 00 35 04 06 00 73 1C 45 29 85 87 50 6E C1 2B CC 32 2A 1A [19:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B7 7B 47 00 91 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 32 30 39 34 32 31 39 10 04 04 00 28 7A 00 00 F4 03 04 00 23 F5 18 67 B6 04 01 00 00 B0 64 BD 75 DF 66 F7 17 [19:12:36]CommunicateWithHost err = 0 [19:12:36]CheckOFDResponse [19:12:36]1017 (14) - 77093643461234 [19:12:36]1041 (16) - 0000000002094219 [19:12:36]1040 (4) - 31272 [19:12:36]1012 (4) - 23.10.2024 13:07 [19:12:36]1206 (1) - 0 [19:12:36]OFD Sender: Remove packet 31272 [19:12:36]ProducePacketName [19:12:36]name=ofd_packets/00031272 [19:12:36]NVStorageDeleteData [19:12:36]Write to MH i2c: 01 00 00 E4 6C 50 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 07 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 07 00 E4 6C 00 00 00 00 00 F9 0C 5C [19:12:36]RasterBufferAndPrint [19:12:36]line [19:12:36]line [19:12:36]line [19:12:36]line [19:12:36]line [19:12:36]written 0, free lines is 3330 [19:12:36]MH_Cut [19:12:36]Write to MH i2c: D1 01 00 EB 6C 01 29 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: D1 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: D1 01 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: D1 01 00 EB 6C 00 28 [19:12:36]Write to MH i2c: 01 00 00 EC 6C 58 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]OFD Sender: No OFD packet to send [19:12:37]*** Cut start [19:12:37]*** Partial cut [19:12:37]*** CUTSNS_PIN = 1 [19:12:37]*** CUTSNS_PIN = 0 [19:12:37]*** Brake cut motor [19:12:37]Read from MH i2c: 01 [19:12:37]MH_I2C_Read... [19:12:37]*** Stop cut motor [19:12:37]*** Cut end [19:12:37]Read from MH i2c: 01 07 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: 01 07 00 EC 6C 00 00 00 00 00 FF 0F 6D [19:12:37]process_action close_receipt done [19:12:37]requested_data is exist [19:12:37]produce_requested_data [19:12:37]requested_item fm.sn is exist - process it [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 11 00 00 [19:12:37]Write to MH i2c: E2 08 00 ED 6C 80 11 00 00 00 00 00 00 D3 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 17 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 17 00 ED 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [19:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:12:37]wFMCommunicate OK [19:12:37]requested_item fd.num is exist - process it [19:12:37]SAM_PROTO_GetFieldsCounters [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 13 00 00 [19:12:37]Write to MH i2c: E2 08 00 EE 6C 80 13 00 00 00 00 00 00 D6 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 62 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 62 00 EE 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [19:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:37]wFMCommunicate OK [19:12:37]SAM_PROTO_GetFieldsCounters done [19:12:37]requested_item shift.num is exist - process it [19:12:37]requested_item shift.opened is exist - process it [19:12:37]req_shift_opened [19:12:37]FM_GetShiftState [19:12:37]SAM_PROTO_GetShiftState [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 13 01 00 [19:12:37]Write to MH i2c: E2 08 00 EF 6C 80 13 01 00 00 00 00 00 D8 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:38]Read from MH i2c: E2 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0E 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0E 00 EF 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 92 [19:12:38]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:12:38]wFMCommunicate OK [19:12:38]SAM_PROTO_GetShiftState done [19:12:38]FM_GetShiftState done [19:12:38]req_shift_opened done [19:12:38]requested_item shift.open_date is exist - process it [19:12:38]req_shift_open_date [19:12:38]req_shift_open_date done [19:12:38]produce_requested_data done [19:12:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31272,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:12:38]process_action_free close_receipt [19:12:38]json_value_free [19:12:38]json_value_free done [19:12:38]process_json_proto returns [19:12:38]Send response to host [19:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31272,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:12:38]free response buf [19:12:38]execute_script done [19:12:38]execute_script returns [19:12:38]free content buf [19:12:38]Sock 7.Close socket [19:12:38]Sock 7.Thread stoped [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:48]accept exits with 9 [19:13:48]New connection [19:13:48]New thread 3066899812 created [19:13:48]Thread 3067043172 joined [19:13:48]Waiting for new connection... [19:13:48] Sock 9.Parse request [19:13:48]Sock 9.Check first char [19:13:48]Sock 9.First char is OK [19:13:48]request: POST /json_proto HTTP/1.0 [19:13:48]Method: POST [19:13:48]URL: /json_proto [19:13:48]Method is POST - this is cgi request [19:13:48]url: /json_proto [19:13:48]query_string will be loaded in cgi processing [19:13:48]execute_cgi json_proto POST (null) [19:13:48]execute_cgi path=json_proto method=POST [19:13:48]POST find Content-Length [19:13:48]Host: 172.17.51.3:8080 [19:13:48]Content-Length: 677 [19:13:48]Content-Type: application/json [19:13:48] [19:13:48]POST finish read [19:13:48]Found Content-Length = 677 [19:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:48]execute_script... [19:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:48]POST & json_proto [19:13:48]process_json_proto [19:13:48]json parsed OK: [19:13:48]protocol is kg_v1.0 [19:13:48]action value=close_receipt [19:13:48]process_action close_receipt [19:13:48]cmd_close_receipt [19:13:48]MH_GetDate [19:13:48]Write to MH i2c: F0 00 00 F0 6C 4B [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 09 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: F0 09 00 F0 6C 00 F3 4A 19 67 04 C1 95 66 D1 [19:13:48]GetLastDocTimeStamp 1729710761 [19:13:48]current date 1729710835 [19:13:48]FM_GetShiftState [19:13:48]SAM_PROTO_GetShiftState [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 01 00 [19:13:48]Write to MH i2c: E2 08 00 F1 6C 80 13 01 00 00 00 00 00 DA [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 F1 6C 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 94 [19:13:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetShiftState done [19:13:48]FM_GetShiftState done [19:13:48]opened in 1729643755 [19:13:48]opened+sec_in_day 1729730155 [19:13:48]quantity*price = 30038 [19:13:48]sum+1 = 30039 [19:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 217 23.10.2024 19:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31273 ФПД: 136802763958354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31273&fm=136802763958354&tin=02508201610067®Number=0000000000186857&sum=30000 [19:13:49]StoreToDocumentArchive [19:13:49]shift 117 fd 31273 [19:13:49]save to /storage/0117/doc_00031273 [19:13:49]save last doc name /storage/0117/doc_00031273 to /storage/kkm_last_doc_name [19:13:49]save OK [19:13:49]Clear old archive folders... [19:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:49]tlvbuf is 00CD02C0 [19:13:49]SAM_PROTO_ClearQueue [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 09 00 00 [19:13:49]Write to MH i2c: E2 08 00 FE 6C 80 09 00 00 00 00 00 00 DC [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 FE 6C 00 90 00 DE [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_ClearQueue done [19:13:49]KKMCreateOFDPacket [19:13:49]OFDProtocolAddRootSTLVToBuf [19:13:49]FM_MakeSignedData [19:13:49]FM_MakeSignedData [19:13:49]SAM_PROTO_SignData [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 01 02 [19:13:49]Write to MH i2c: E2 08 00 FF 6C 80 0D 01 02 00 00 00 00 E4 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 FF 6C 00 90 00 DF [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=255 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F3 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 7A 00 00 35 04 06 00 7C [19:13:49]Write to MH i2c: E2 02 01 00 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F3 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 7A 00 00 35 04 06 00 7C 00 00 94 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 00 6D 00 90 00 E1 [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=10 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 02 02 05 6B E0 26 68 52 [19:13:49]Write to MH i2c: E2 0D 00 01 6D 80 0D 02 02 05 00 6B E0 26 68 52 00 00 1D [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 03 00 01 6D 00 90 00 E2 [19:13:49]RAPDU: 90 00 [19:13:49]wFMCommunicate OK [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 0D 03 02 [19:13:49]Write to MH i2c: E2 08 00 02 6D 80 0D 03 02 00 00 00 00 EA [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0B 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0B 00 02 6D 00 C0 1B B9 18 99 77 6D 8C 90 00 A0 [19:13:49]RAPDU: C0 1B B9 18 99 77 6D 8C 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_SignData done [19:13:49]FM_MakeSignedData done [19:13:49]CreateOFDProtocolMessage [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 11 00 00 [19:13:49]Write to MH i2c: E2 08 00 03 6D 80 11 00 00 00 00 00 00 EA [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 17 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 17 00 03 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [19:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:13:49]wFMCommunicate OK [19:13:49]CreateOFDProtocolMessage done [19:13:49]OFDSenderStorePacket 31273 [19:13:49]StoreOFDPacket docnum=31273 [19:13:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 F9 07 01 F6 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F3 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 7A 00 00 35 04 06 00 7C 6B E0 26 68 52 C0 1B B9 18 99 77 6D 8C [19:13:49]CheckFolder [19:13:49]dirname=/storage/ofd_packets [19:13:49]CheckFolder done [19:13:49]ProducePacketName [19:13:49]name=ofd_packets/00031273 [19:13:49]NVStorageSaveData ofd_packets/00031273 [19:13:49]File name is /storage/ofd_packets/00031273 [19:13:49]Write 301 bytes [19:13:49]NVStorageSaveData done [19:13:49]OFDSenderStorePacket done [19:13:49]KKMCreateOFDPacket done [19:13:49]NVStorageSaveData kkm_last_timestamp [19:13:49]File name is /storage/kkm_last_timestamp [19:13:49]Write 4 bytes [19:13:49]NVStorageSaveData done [19:13:49]ExternCall_PrintAddStr [19:13:49]wPrintStart [19:13:49]Write to MH i2c: 01 00 00 04 6D 71 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 07 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 07 00 04 6D 00 00 00 00 00 FF 0F 86 [19:13:49]RasterBufferAndPrint [19:13:49]line Счет N : (1)343721 [19:13:49]line ИНН: 02508201610067 [19:13:49]line Контрольно-Кассовый Чек [19:13:49]line ПРОДАЖА [19:13:49]line ТРК (МРК, ГНК) : 53 [19:13:49]line Товар: 2710124130 [19:13:49]line Аи-92-К-2 [19:13:49]line 4.490 * 66.90 [19:13:49]line = 300.38 [19:13:49]line НДС 12% НСП 1% [19:13:49]line > о реализуемом товаре [19:13:49]line ОКРУГЛЕНИЕ: -0.38 [19:13:49]line ИТОГО: 300.00 [19:13:49]line Внесено: 300.00 [19:13:49]line СДАЧА: 0.00 [19:13:49]line НСП 1% : 2.66 [19:13:49]line НДС 12% : 31.90 [19:13:49]line Наличными: 300.00 [19:13:49]line Безнал.: 0.00 [19:13:49]line Место: АЗС № 78 "Партнер Нефть" [19:13:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:13:49]line СНО: Общий режим [19:13:49]line Чек 217 23.10.2024 19:13 [19:13:49]line Смена: 117 ФФД: 1.0 [19:13:49]line ЗНМ: 0300000137 [19:13:49]line РНМ: 0000000000186857 [19:13:49]line Версия ККМ: v1.0 [19:13:49]line ФМ: 0000000002094219 [19:13:49]line ФД: 31273 [19:13:49]line ФПД: 136802763958354 [19:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191355&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31273&fm=136802763958354&tin=02508201610067®Number=0000000000186857&sum=30000 [19:13:50]OFD Sender: Processing packet 31273 [packets to send 11, broken 10] [19:13:50]ProducePacketName [19:13:50]name=ofd_packets/00031273 [19:13:50]OFD Sender: To server: pG, [19:13:50]CommunicateWithHost lk.salyk.kg:30040 [19:13:50]ConnectInit lk.salyk.kg [19:13:50]written 0, free lines is 4095 [19:13:50]Connected sock=10 [19:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F6 F9 07 01 F6 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F3 4A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 7A 00 00 35 04 06 00 7C 6B E0 26 68 52 C0 1B B9 18 99 77 6D 8C [19:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 EE 47 00 F0 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 7A 00 00 F4 03 04 00 6D F5 18 67 B6 04 01 00 00 ED 9B D2 5C 41 41 AB B3 [19:13:50]CommunicateWithHost err = 0 [19:13:50]CheckOFDResponse [19:13:50]1017 (14) - 77093643461234 [19:13:50]1041 (16) - 0000000002094219 [19:13:50]1040 (4) - 31273 [19:13:50]1012 (4) - 23.10.2024 13:09 [19:13:50]1206 (1) - 0 [19:13:50]OFD Sender: Remove packet 31273 [19:13:50]ProducePacketName [19:13:50]name=ofd_packets/00031273 [19:13:50]NVStorageDeleteData [19:13:50]Write to MH i2c: 01 00 00 2F 6D 9C [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: 01 07 00 2F 6D 00 00 00 00 00 F1 0C A0 [19:13:50]RasterBufferAndPrint [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]line [19:13:50]written 0, free lines is 3322 [19:13:50]MH_Cut [19:13:50]Write to MH i2c: D1 01 00 36 6D 01 75 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 01 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: D1 01 00 36 6D 00 74 [19:13:50]Write to MH i2c: 01 00 00 37 6D A4 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]OFD Sender: No OFD packet to send [19:13:51]*** Cut start [19:13:51]*** Partial cut [19:13:51]*** CUTSNS_PIN = 1 [19:13:51]*** CUTSNS_PIN = 0 [19:13:51]*** Brake cut motor [19:13:51]Read from MH i2c: 01 [19:13:51]MH_I2C_Read... [19:13:51]*** Stop cut motor [19:13:51]*** Cut end [19:13:51]Read from MH i2c: 01 07 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 07 00 37 6D 00 00 00 00 00 FF 0F B9 [19:13:51]process_action close_receipt done [19:13:51]requested_data is exist [19:13:51]produce_requested_data [19:13:51]requested_item fm.sn is exist - process it [19:13:51]wFMCommunicate request_size=4 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 11 00 00 [19:13:51]Write to MH i2c: E2 08 00 38 6D 80 11 00 00 00 00 00 00 1F [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 17 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 17 00 38 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [19:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:13:51]wFMCommunicate OK [19:13:51]requested_item fd.num is exist - process it [19:13:51]SAM_PROTO_GetFieldsCounters [19:13:51]wFMCommunicate request_size=4 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 13 00 00 [19:13:51]Write to MH i2c: E2 08 00 39 6D 80 13 00 00 00 00 00 00 22 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 62 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 62 00 39 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_GetFieldsCounters done [19:13:52]requested_item shift.num is exist - process it [19:13:52]requested_item shift.opened is exist - process it [19:13:52]req_shift_opened [19:13:52]FM_GetShiftState [19:13:52]SAM_PROTO_GetShiftState [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 13 01 00 [19:13:52]Write to MH i2c: E2 08 00 3A 6D 80 13 01 00 00 00 00 00 24 [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 0E 00 3A 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DE [19:13:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_GetShiftState done [19:13:52]FM_GetShiftState done [19:13:52]req_shift_opened done [19:13:52]requested_item shift.open_date is exist - process it [19:13:52]req_shift_open_date [19:13:52]req_shift_open_date done [19:13:52]produce_requested_data done [19:13:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31273,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:13:52]process_action_free close_receipt [19:13:52]json_value_free [19:13:52]json_value_free done [19:13:52]process_json_proto returns [19:13:52]Send response to host [19:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31273,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:13:52]free response buf [19:13:52]execute_script done [19:13:52]execute_script returns [19:13:52]free content buf [19:13:52]Sock 9.Close socket [19:13:52]Sock 9.Thread stoped [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:13]accept exits with 7 [19:14:13]New connection [19:14:13]New thread 3067043172 created [19:14:13]Thread 3066899812 joined [19:14:13]Waiting for new connection... [19:14:13] Sock 7.Parse request [19:14:13]Sock 7.Check first char [19:14:13]Sock 7.First char is OK [19:14:13]request: POST /json_proto HTTP/1.0 [19:14:13]Method: POST [19:14:13]URL: /json_proto [19:14:13]Method is POST - this is cgi request [19:14:13]url: /json_proto [19:14:13]query_string will be loaded in cgi processing [19:14:13]execute_cgi json_proto POST (null) [19:14:13]execute_cgi path=json_proto method=POST [19:14:13]POST find Content-Length [19:14:13]Host: 172.17.51.3:8080 [19:14:13]Content-Length: 677 [19:14:13]Content-Type: application/json [19:14:13] [19:14:13]POST finish read [19:14:13]Found Content-Length = 677 [19:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:13]execute_script... [19:14:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:13]POST & json_proto [19:14:13]process_json_proto [19:14:13]json parsed OK: [19:14:13]protocol is kg_v1.0 [19:14:13]action value=close_receipt [19:14:13]process_action close_receipt [19:14:13]cmd_close_receipt [19:14:13]MH_GetDate [19:14:13]Write to MH i2c: F0 00 00 3B 6D 97 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: F0 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: F0 09 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: F0 09 00 3B 6D 00 0D 4B 19 67 04 C1 95 66 38 [19:14:13]GetLastDocTimeStamp 1729710835 [19:14:13]current date 1729710861 [19:14:13]FM_GetShiftState [19:14:13]SAM_PROTO_GetShiftState [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 13 01 00 [19:14:13]Write to MH i2c: E2 08 00 3C 6D 80 13 01 00 00 00 00 00 26 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:14]Read from MH i2c: E2 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: E2 0E 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: E2 0E 00 3C 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E0 [19:14:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:14:14]wFMCommunicate OK [19:14:14]SAM_PROTO_GetShiftState done [19:14:14]FM_GetShiftState done [19:14:14]opened in 1729643755 [19:14:14]opened+sec_in_day 1729730155 [19:14:14]quantity*price = 50041 [19:14:14]sum+1 = 50042 [19:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 218 23.10.2024 19:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31274 ФПД: 26935208267416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191421&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31274&fm=26935208267416&tin=02508201610067®Number=0000000000186857&sum=50000 [19:14:15]StoreToDocumentArchive [19:14:15]shift 117 fd 31274 [19:14:15]save to /storage/0117/doc_00031274 [19:14:15]save last doc name /storage/0117/doc_00031274 to /storage/kkm_last_doc_name [19:14:15]save OK [19:14:15]Clear old archive folders... [19:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:15]tlvbuf is 00D5E770 [19:14:15]SAM_PROTO_ClearQueue [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 09 00 00 [19:14:15]Write to MH i2c: E2 08 00 49 6D 80 09 00 00 00 00 00 00 28 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 49 6D 00 90 00 2A [19:14:15]RAPDU: 90 00 [19:14:15]wFMCommunicate OK [19:14:15]SAM_PROTO_ClearQueue done [19:14:15]KKMCreateOFDPacket [19:14:15]OFDProtocolAddRootSTLVToBuf [19:14:15]FM_MakeSignedData [19:14:15]FM_MakeSignedData [19:14:15]SAM_PROTO_SignData [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 0D 01 02 [19:14:15]Write to MH i2c: E2 08 00 4A 6D 80 0D 01 02 00 00 00 00 30 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 4A 6D 00 90 00 2B [19:14:15]RAPDU: 90 00 [19:14:15]wFMCommunicate OK [19:14:15]wFMCommunicate request_size=255 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0D 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 7A 00 00 35 04 06 00 18 [19:14:15]Write to MH i2c: E2 02 01 4B 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0D 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 7A 00 00 35 04 06 00 18 00 00 A4 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 4B 6D 00 90 00 2C [19:14:15]RAPDU: 90 00 [19:14:15]wFMCommunicate OK [19:14:15]wFMCommunicate request_size=10 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 0D 02 02 05 7F 57 85 4E 98 [19:14:15]Write to MH i2c: E2 0D 00 4C 6D 80 0D 02 02 05 00 7F 57 85 4E 98 00 00 7E [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 03 00 4C 6D 00 90 00 2D [19:14:15]RAPDU: 90 00 [19:14:15]wFMCommunicate OK [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 0D 03 02 [19:14:15]Write to MH i2c: E2 08 00 4D 6D 80 0D 03 02 00 00 00 00 35 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 0B 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 0B 00 4D 6D 00 08 51 F1 0B 34 E9 18 50 90 00 10 [19:14:15]RAPDU: 08 51 F1 0B 34 E9 18 50 90 00 [19:14:15]wFMCommunicate OK [19:14:15]SAM_PROTO_SignData done [19:14:15]FM_MakeSignedData done [19:14:15]CreateOFDProtocolMessage [19:14:15]wFMCommunicate request_size=4 [19:14:15]MH_SAM_APDU [19:14:15]CAPDU: 80 11 00 00 [19:14:15]Write to MH i2c: E2 08 00 4E 6D 80 11 00 00 00 00 00 00 35 [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:15]Read from MH i2c: E2 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 17 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: E2 17 00 4E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [19:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:14:15]wFMCommunicate OK [19:14:15]CreateOFDProtocolMessage done [19:14:15]OFDSenderStorePacket 31274 [19:14:15]StoreOFDPacket docnum=31274 [19:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 9B 07 01 C8 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0D 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 7A 00 00 35 04 06 00 18 7F 57 85 4E 98 08 51 F1 0B 34 E9 18 50 [19:14:15]CheckFolder [19:14:15]dirname=/storage/ofd_packets [19:14:15]CheckFolder done [19:14:15]ProducePacketName [19:14:15]name=ofd_packets/00031274 [19:14:15]NVStorageSaveData ofd_packets/00031274 [19:14:15]File name is /storage/ofd_packets/00031274 [19:14:15]Write 301 bytes [19:14:15]NVStorageSaveData done [19:14:15]OFDSenderStorePacket done [19:14:15]KKMCreateOFDPacket done [19:14:15]NVStorageSaveData kkm_last_timestamp [19:14:15]File name is /storage/kkm_last_timestamp [19:14:15]Write 4 bytes [19:14:15]NVStorageSaveData done [19:14:15]ExternCall_PrintAddStr [19:14:15]wPrintStart [19:14:15]Write to MH i2c: 01 00 00 4F 6D BC [19:14:15]Write i2c OK [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: 01 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: 01 07 00 [19:14:15]MH_I2C_Read... [19:14:15]Read from MH i2c: 01 07 00 4F 6D 00 00 00 00 00 FF 0F D1 [19:14:15]RasterBufferAndPrint [19:14:15]line Счет N : (1)343722 [19:14:15]line ИНН: 02508201610067 [19:14:15]line Контрольно-Кассовый Чек [19:14:15]line ПРОДАЖА [19:14:15]line ТРК (МРК, ГНК) : 63 [19:14:15]line Товар: 2710124130 [19:14:15]line Аи-92-К-2 [19:14:15]line 7.480 * 66.90 [19:14:15]line = 500.41 [19:14:15]line НДС 12% НСП 1% [19:14:15]line > о реализуемом товаре [19:14:15]line ОКРУГЛЕНИЕ: -0.41 [19:14:15]line ИТОГО: 500.00 [19:14:15]line Внесено: 500.00 [19:14:15]line СДАЧА: 0.00 [19:14:15]line НСП 1% : 4.43 [19:14:15]line НДС 12% : 53.14 [19:14:15]line Наличными: 500.00 [19:14:15]line Безнал.: 0.00 [19:14:15]line Место: АЗС № 78 "Партнер Нефть" [19:14:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:14:15]line СНО: Общий режим [19:14:15]line Чек 218 23.10.2024 19:14 [19:14:15]line Смена: 117 ФФД: 1.0 [19:14:15]line ЗНМ: 0300000137 [19:14:15]line РНМ: 0000000000186857 [19:14:15]line Версия ККМ: v1.0 [19:14:15]line ФМ: 0000000002094219 [19:14:15]line ФД: 31274 [19:14:15]line ФПД: 26935208267416 [19:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191421&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31274&fm=26935208267416&tin=02508201610067®Number=0000000000186857&sum=50000 [19:14:16]OFD Sender: Processing packet 31274 [packets to send 11, broken 10] [19:14:16]ProducePacketName [19:14:16]name=ofd_packets/00031274 [19:14:16]OFD Sender: To server: pG, [19:14:16]CommunicateWithHost lk.salyk.kg:30040 [19:14:16]ConnectInit lk.salyk.kg [19:14:16]written 0, free lines is 4095 [19:14:16]Connected sock=10 [19:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 94 9B 07 01 C8 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0D 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 7A 00 00 35 04 06 00 18 7F 57 85 4E 98 08 51 F1 0B 34 E9 18 50 [19:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AB 34 47 00 CE C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 7A 00 00 F4 03 04 00 87 F5 18 67 B6 04 01 00 00 9C DB F1 52 B1 CA 72 E4 [19:14:16]CommunicateWithHost err = 0 [19:14:16]CheckOFDResponse [19:14:16]1017 (14) - 77093643461234 [19:14:16]1041 (16) - 0000000002094219 [19:14:16]1040 (4) - 31274 [19:14:16]1012 (4) - 23.10.2024 13:09 [19:14:16]1206 (1) - 0 [19:14:16]OFD Sender: Remove packet 31274 [19:14:16]ProducePacketName [19:14:16]name=ofd_packets/00031274 [19:14:16]NVStorageDeleteData [19:14:16]Write to MH i2c: 01 00 00 7A 6D E7 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 7A 6D 00 00 00 00 00 E6 0C E0 [19:14:16]RasterBufferAndPrint [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]written 0, free lines is 3308 [19:14:16]MH_Cut [19:14:16]Write to MH i2c: D1 01 00 81 6D 01 C0 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: D1 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: D1 01 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: D1 01 00 81 6D 00 BF [19:14:16]Write to MH i2c: 01 00 00 82 6D EF [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]OFD Sender: No OFD packet to send [19:14:17]*** Cut start [19:14:17]*** Partial cut [19:14:17]*** CUTSNS_PIN = 1 [19:14:17]*** CUTSNS_PIN = 0 [19:14:17]*** Brake cut motor [19:14:17]Read from MH i2c: 01 [19:14:17]MH_I2C_Read... [19:14:17]*** Stop cut motor [19:14:17]*** Cut end [19:14:17]Read from MH i2c: 01 07 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: 01 07 00 82 6D 00 00 00 00 00 FF 0F 04 [19:14:17]process_action close_receipt done [19:14:17]requested_data is exist [19:14:17]produce_requested_data [19:14:17]requested_item fm.sn is exist - process it [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 11 00 00 [19:14:17]Write to MH i2c: E2 08 00 83 6D 80 11 00 00 00 00 00 00 6A [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 17 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 17 00 83 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [19:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:14:17]wFMCommunicate OK [19:14:17]requested_item fd.num is exist - process it [19:14:17]SAM_PROTO_GetFieldsCounters [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 13 00 00 [19:14:17]Write to MH i2c: E2 08 00 84 6D 80 13 00 00 00 00 00 00 6D [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 62 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 62 00 84 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:17]wFMCommunicate OK [19:14:17]SAM_PROTO_GetFieldsCounters done [19:14:17]requested_item shift.num is exist - process it [19:14:17]requested_item shift.opened is exist - process it [19:14:17]req_shift_opened [19:14:17]FM_GetShiftState [19:14:17]SAM_PROTO_GetShiftState [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 13 01 00 [19:14:17]Write to MH i2c: E2 08 00 85 6D 80 13 01 00 00 00 00 00 6F [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:18]Read from MH i2c: E2 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 0E 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 0E 00 85 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 29 [19:14:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:14:18]wFMCommunicate OK [19:14:18]SAM_PROTO_GetShiftState done [19:14:18]FM_GetShiftState done [19:14:18]req_shift_opened done [19:14:18]requested_item shift.open_date is exist - process it [19:14:18]req_shift_open_date [19:14:18]req_shift_open_date done [19:14:18]produce_requested_data done [19:14:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31274,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:14:18]process_action_free close_receipt [19:14:18]json_value_free [19:14:18]json_value_free done [19:14:18]process_json_proto returns [19:14:18]Send response to host [19:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31274,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:14:18]free response buf [19:14:18]execute_script done [19:14:18]execute_script returns [19:14:18]free content buf [19:14:18]Sock 7.Close socket [19:14:18]Sock 7.Thread stoped [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:35]accept exits with 9 [19:17:35]New connection [19:17:35]New thread 3066899812 created [19:17:35]Thread 3067043172 joined [19:17:35]Waiting for new connection... [19:17:35] Sock 9.Parse request [19:17:35]Sock 9.Check first char [19:17:35]Sock 9.First char is OK [19:17:35]request: POST /json_proto HTTP/1.0 [19:17:35]Method: POST [19:17:35]URL: /json_proto [19:17:35]Method is POST - this is cgi request [19:17:35]url: /json_proto [19:17:35]query_string will be loaded in cgi processing [19:17:35]execute_cgi json_proto POST (null) [19:17:35]execute_cgi path=json_proto method=POST [19:17:35]POST find Content-Length [19:17:35]Host: 172.17.51.3:8080 [19:17:35]Content-Length: 843 [19:17:35]Content-Type: application/json [19:17:35] [19:17:35]POST finish read [19:17:35]Found Content-Length = 843 [19:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:35]execute_script... [19:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:35]POST & json_proto [19:17:35]process_json_proto [19:17:35]json parsed OK: [19:17:35]protocol is kg_v1.0 [19:17:35]action value=close_receipt [19:17:35]process_action close_receipt [19:17:35]cmd_close_receipt [19:17:35]MH_GetDate [19:17:35]Write to MH i2c: F0 00 00 86 6D E2 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: F0 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: F0 09 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: F0 09 00 86 6D 00 D6 4B 19 67 04 C1 95 66 4C [19:17:35]GetLastDocTimeStamp 1729710861 [19:17:35]current date 1729711062 [19:17:35]FM_GetShiftState [19:17:35]SAM_PROTO_GetShiftState [19:17:35]wFMCommunicate request_size=4 [19:17:35]MH_SAM_APDU [19:17:35]CAPDU: 80 13 01 00 [19:17:35]Write to MH i2c: E2 08 00 87 6D 80 13 01 00 00 00 00 00 71 [19:17:35]Write i2c OK [19:17:35]MH_I2C_Read... [19:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:35]Read from MH i2c: E2 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 0E 00 [19:17:35]MH_I2C_Read... [19:17:35]Read from MH i2c: E2 0E 00 87 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 2B [19:17:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:17:35]wFMCommunicate OK [19:17:35]SAM_PROTO_GetShiftState done [19:17:35]FM_GetShiftState done [19:17:35]opened in 1729643755 [19:17:35]opened+sec_in_day 1729730155 [19:17:35]quantity*price = 200031 [19:17:35]sum+1 = 200032 [19:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 219 23.10.2024 19:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31275 ФПД: 7936773958066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191742&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31275&fm=7936773958066&tin=02508201610067®Number=0000000000186857&sum=200031 [19:17:36]StoreToDocumentArchive [19:17:36]shift 117 fd 31275 [19:17:36]save to /storage/0117/doc_00031275 [19:17:36]save last doc name /storage/0117/doc_00031275 to /storage/kkm_last_doc_name [19:17:36]save OK [19:17:36]Clear old archive folders... [19:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:36]tlvbuf is 00CD0280 [19:17:36]SAM_PROTO_ClearQueue [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 09 00 00 [19:17:36]Write to MH i2c: E2 08 00 94 6D 80 09 00 00 00 00 00 00 73 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 94 6D 00 90 00 75 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]SAM_PROTO_ClearQueue done [19:17:36]KKMCreateOFDPacket [19:17:36]OFDProtocolAddRootSTLVToBuf [19:17:36]FM_MakeSignedData [19:17:36]FM_MakeSignedData [19:17:36]SAM_PROTO_SignData [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 01 02 [19:17:36]Write to MH i2c: E2 08 00 95 6D 80 0D 01 02 00 00 00 00 7B [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 95 6D 00 90 00 76 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=255 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 7A 00 00 35 04 06 00 07 [19:17:36]Write to MH i2c: E2 02 01 96 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 7A 00 00 35 04 06 00 07 00 00 29 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 96 6D 00 90 00 77 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=10 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 02 02 05 37 EC 97 A9 B2 [19:17:36]Write to MH i2c: E2 0D 00 97 6D 80 0D 02 02 05 00 37 EC 97 A9 B2 00 00 9D [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 97 6D 00 90 00 78 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 03 02 [19:17:36]Write to MH i2c: E2 08 00 98 6D 80 0D 03 02 00 00 00 00 80 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 0B 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 0B 00 98 6D 00 27 90 46 70 A7 19 1D AC 90 00 77 [19:17:36]RAPDU: 27 90 46 70 A7 19 1D AC 90 00 [19:17:36]wFMCommunicate OK [19:17:36]SAM_PROTO_SignData done [19:17:36]FM_MakeSignedData done [19:17:36]CreateOFDProtocolMessage [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 11 00 00 [19:17:36]Write to MH i2c: E2 08 00 99 6D 80 11 00 00 00 00 00 00 80 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 17 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 17 00 99 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [19:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:17:36]wFMCommunicate OK [19:17:36]CreateOFDProtocolMessage done [19:17:36]OFDSenderStorePacket 31275 [19:17:36]StoreOFDPacket docnum=31275 [19:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CF F3 07 01 22 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 7A 00 00 35 04 06 00 07 37 EC 97 A9 B2 27 90 46 70 A7 19 1D AC [19:17:36]CheckFolder [19:17:36]dirname=/storage/ofd_packets [19:17:36]CheckFolder done [19:17:36]ProducePacketName [19:17:36]name=ofd_packets/00031275 [19:17:36]NVStorageSaveData ofd_packets/00031275 [19:17:36]File name is /storage/ofd_packets/00031275 [19:17:36]Write 301 bytes [19:17:36]NVStorageSaveData done [19:17:36]OFDSenderStorePacket done [19:17:36]KKMCreateOFDPacket done [19:17:36]NVStorageSaveData kkm_last_timestamp [19:17:36]File name is /storage/kkm_last_timestamp [19:17:36]Write 4 bytes [19:17:36]NVStorageSaveData done [19:17:36]ExternCall_PrintAddStr [19:17:36]wPrintStart [19:17:36]Write to MH i2c: 01 00 00 9A 6D 07 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 9A 6D 00 00 00 00 00 FF 0F 1C [19:17:36]RasterBufferAndPrint [19:17:36]line Счет N : (1)343723 [19:17:36]line ИНН: 02508201610067 [19:17:36]line Контрольно-Кассовый Чек [19:17:36]line ПРОДАЖА [19:17:36]line ТРК (МРК, ГНК) : 53 [19:17:36]line Товар: 2710124130 [19:17:36]line Аи-92-К-2 [19:17:36]line 29.900 * 66.90 [19:17:36]line = 2000.31 [19:17:36]line НДС 12% НСП 1% [19:17:36]line > о реализуемом товаре [19:17:36]line ИТОГО: 2000.31 [19:17:36]line НСП 1% : 17.70 [19:17:36]line НДС 12% : 212.42 [19:17:36]line Наличными: 0.00 [19:17:36]line Безнал.: 2000.31 [19:17:36]line Место: АЗС № 78 "Партнер Нефть" [19:17:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:17:36]line СНО: Общий режим [19:17:36]line Чек 219 23.10.2024 19:17 [19:17:36]line Смена: 117 ФФД: 1.0 [19:17:36]line ЗНМ: 0300000137 [19:17:36]line РНМ: 0000000000186857 [19:17:36]line Версия ККМ: v1.0 [19:17:36]line Платежная система: АКБ Кыргызстан [19:17:36]line ФМ: 0000000002094219 [19:17:36]line ФД: 31275 [19:17:36]line ФПД: 7936773958066 [19:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191742&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31275&fm=7936773958066&tin=02508201610067®Number=0000000000186857&sum=200031 [19:17:37]OFD Sender: Processing packet 31275 [packets to send 11, broken 10] [19:17:37]ProducePacketName [19:17:37]name=ofd_packets/00031275 [19:17:37]OFD Sender: To server: pG, [19:17:37]CommunicateWithHost lk.salyk.kg:30040 [19:17:37]ConnectInit lk.salyk.kg [19:17:37]written 0, free lines is 4095 [19:17:37]Connected sock=10 [19:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CF F3 07 01 22 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 4B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 7A 00 00 35 04 06 00 07 37 EC 97 A9 B2 27 90 46 70 A7 19 1D AC [19:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8C 58 47 00 EA 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 7A 00 00 F4 03 04 00 50 F6 18 67 B6 04 01 00 00 18 7D 11 50 3C 78 4F 67 [19:17:37]CommunicateWithHost err = 0 [19:17:37]CheckOFDResponse [19:17:37]1017 (14) - 77093643461234 [19:17:37]1041 (16) - 0000000002094219 [19:17:37]1040 (4) - 31275 [19:17:37]1012 (4) - 23.10.2024 13:12 [19:17:37]1206 (1) - 0 [19:17:37]OFD Sender: Remove packet 31275 [19:17:37]ProducePacketName [19:17:37]name=ofd_packets/00031275 [19:17:37]NVStorageDeleteData [19:17:37]Write to MH i2c: 01 00 00 C4 6D 31 [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 07 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 07 00 C4 6D 00 00 00 00 00 04 0D 49 [19:17:37]RasterBufferAndPrint [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]written 0, free lines is 3339 [19:17:37]MH_Cut [19:17:37]Write to MH i2c: D1 01 00 CB 6D 01 0A [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 01 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 01 00 CB 6D 00 09 [19:17:37]Write to MH i2c: 01 00 00 CC 6D 39 [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:38]OFD Sender: No OFD packet to send [19:17:38]*** Cut start [19:17:38]*** Partial cut [19:17:38]*** CUTSNS_PIN = 1 [19:17:38]*** CUTSNS_PIN = 0 [19:17:38]*** Brake cut motor [19:17:38]Read from MH i2c: 01 [19:17:38]MH_I2C_Read... [19:17:38]*** Stop cut motor [19:17:38]*** Cut end [19:17:38]Read from MH i2c: 01 07 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: 01 07 00 CC 6D 00 00 00 00 00 FF 0F 4E [19:17:38]process_action close_receipt done [19:17:38]requested_data is exist [19:17:38]produce_requested_data [19:17:38]requested_item fm.sn is exist - process it [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 11 00 00 [19:17:38]Write to MH i2c: E2 08 00 CD 6D 80 11 00 00 00 00 00 00 B4 [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 17 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 17 00 CD 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [19:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:17:38]wFMCommunicate OK [19:17:38]requested_item fd.num is exist - process it [19:17:38]SAM_PROTO_GetFieldsCounters [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 13 00 00 [19:17:38]Write to MH i2c: E2 08 00 CE 6D 80 13 00 00 00 00 00 00 B7 [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 62 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 62 00 CE 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:39]wFMCommunicate OK [19:17:39]SAM_PROTO_GetFieldsCounters done [19:17:39]requested_item shift.num is exist - process it [19:17:39]requested_item shift.opened is exist - process it [19:17:39]req_shift_opened [19:17:39]FM_GetShiftState [19:17:39]SAM_PROTO_GetShiftState [19:17:39]wFMCommunicate request_size=4 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 13 01 00 [19:17:39]Write to MH i2c: E2 08 00 CF 6D 80 13 01 00 00 00 00 00 B9 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 0E 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 0E 00 CF 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 73 [19:17:39]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:17:39]wFMCommunicate OK [19:17:39]SAM_PROTO_GetShiftState done [19:17:39]FM_GetShiftState done [19:17:39]req_shift_opened done [19:17:39]requested_item shift.open_date is exist - process it [19:17:39]req_shift_open_date [19:17:39]req_shift_open_date done [19:17:39]produce_requested_data done [19:17:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31275,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:17:39]process_action_free close_receipt [19:17:39]json_value_free [19:17:39]json_value_free done [19:17:39]process_json_proto returns [19:17:39]Send response to host [19:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31275,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:17:39]free response buf [19:17:39]execute_script done [19:17:39]execute_script returns [19:17:39]free content buf [19:17:39]Sock 9.Close socket [19:17:39]Sock 9.Thread stoped [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:10]accept exits with 7 [19:35:10]New connection [19:35:10]New thread 3067043172 created [19:35:10]Thread 3066899812 joined [19:35:10]Waiting for new connection... [19:35:10] Sock 7.Parse request [19:35:10]Sock 7.Check first char [19:35:10]Sock 7.First char is OK [19:35:10]request: POST /json_proto HTTP/1.0 [19:35:10]Method: POST [19:35:10]URL: /json_proto [19:35:10]Method is POST - this is cgi request [19:35:10]url: /json_proto [19:35:10]query_string will be loaded in cgi processing [19:35:10]execute_cgi json_proto POST (null) [19:35:10]execute_cgi path=json_proto method=POST [19:35:10]POST find Content-Length [19:35:10]Host: 172.17.51.3:8080 [19:35:10]Content-Length: 840 [19:35:10]Content-Type: application/json [19:35:10] [19:35:10]POST finish read [19:35:10]Found Content-Length = 840 [19:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:10]execute_script... [19:35:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:10]POST & json_proto [19:35:10]process_json_proto [19:35:10]json parsed OK: [19:35:10]protocol is kg_v1.0 [19:35:10]action value=close_receipt [19:35:10]process_action close_receipt [19:35:10]cmd_close_receipt [19:35:10]MH_GetDate [19:35:10]Write to MH i2c: F0 00 00 D0 6D 2C [19:35:10]Write i2c OK [19:35:10]MH_I2C_Read... [19:35:10]Read from MH i2c: F0 [19:35:10]MH_I2C_Read... [19:35:10]Read from MH i2c: F0 09 00 [19:35:10]MH_I2C_Read... [19:35:10]Read from MH i2c: F0 09 00 D0 6D 00 F6 4F 19 67 04 C1 95 66 BA [19:35:10]GetLastDocTimeStamp 1729711062 [19:35:10]current date 1729712118 [19:35:10]FM_GetShiftState [19:35:10]SAM_PROTO_GetShiftState [19:35:10]wFMCommunicate request_size=4 [19:35:10]MH_SAM_APDU [19:35:10]CAPDU: 80 13 01 00 [19:35:10]Write to MH i2c: E2 08 00 D1 6D 80 13 01 00 00 00 00 00 BB [19:35:10]Write i2c OK [19:35:10]MH_I2C_Read... [19:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:10]Read from MH i2c: E2 [19:35:10]MH_I2C_Read... [19:35:10]Read from MH i2c: E2 0E 00 [19:35:10]MH_I2C_Read... [19:35:10]Read from MH i2c: E2 0E 00 D1 6D 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 75 [19:35:10]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:35:10]wFMCommunicate OK [19:35:10]SAM_PROTO_GetShiftState done [19:35:10]FM_GetShiftState done [19:35:10]opened in 1729643755 [19:35:10]opened+sec_in_day 1729730155 [19:35:10]quantity*price = 20003 [19:35:10]sum+1 = 20004 [19:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 220 23.10.2024 19:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31276 ФПД: 227979978203701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31276&fm=227979978203701&tin=02508201610067®Number=0000000000186857&sum=20003 [19:35:11]StoreToDocumentArchive [19:35:11]shift 117 fd 31276 [19:35:11]save to /storage/0117/doc_00031276 [19:35:11]save last doc name /storage/0117/doc_00031276 to /storage/kkm_last_doc_name [19:35:11]save OK [19:35:11]Clear old archive folders... [19:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:11]tlvbuf is B6DBE880 [19:35:11]SAM_PROTO_ClearQueue [19:35:11]wFMCommunicate request_size=4 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 09 00 00 [19:35:11]Write to MH i2c: E2 08 00 DE 6D 80 09 00 00 00 00 00 00 BD [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:11]Read from MH i2c: E2 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 03 00 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 03 00 DE 6D 00 90 00 BF [19:35:11]RAPDU: 90 00 [19:35:11]wFMCommunicate OK [19:35:11]SAM_PROTO_ClearQueue done [19:35:11]KKMCreateOFDPacket [19:35:11]OFDProtocolAddRootSTLVToBuf [19:35:11]FM_MakeSignedData [19:35:11]FM_MakeSignedData [19:35:11]SAM_PROTO_SignData [19:35:11]wFMCommunicate request_size=4 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 0D 01 02 [19:35:11]Write to MH i2c: E2 08 00 DF 6D 80 0D 01 02 00 00 00 00 C5 [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:11]Read from MH i2c: E2 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 03 00 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 03 00 DF 6D 00 90 00 C0 [19:35:11]RAPDU: 90 00 [19:35:11]wFMCommunicate OK [19:35:11]wFMCommunicate request_size=255 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F6 4F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 7A 00 00 35 04 06 00 CF [19:35:11]Write to MH i2c: E2 02 01 E0 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F6 4F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 7A 00 00 35 04 06 00 CF 00 00 A9 [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:12]Read from MH i2c: E2 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 03 00 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 03 00 E0 6D 00 90 00 C1 [19:35:12]RAPDU: 90 00 [19:35:12]wFMCommunicate OK [19:35:12]wFMCommunicate request_size=10 [19:35:12]MH_SAM_APDU [19:35:12]CAPDU: 80 0D 02 02 05 58 B9 9D E2 35 [19:35:12]Write to MH i2c: E2 0D 00 E1 6D 80 0D 02 02 05 00 58 B9 9D E2 35 00 00 97 [19:35:12]Write i2c OK [19:35:12]MH_I2C_Read... [19:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:12]Read from MH i2c: E2 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 03 00 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 03 00 E1 6D 00 90 00 C2 [19:35:12]RAPDU: 90 00 [19:35:12]wFMCommunicate OK [19:35:12]wFMCommunicate request_size=4 [19:35:12]MH_SAM_APDU [19:35:12]CAPDU: 80 0D 03 02 [19:35:12]Write to MH i2c: E2 08 00 E2 6D 80 0D 03 02 00 00 00 00 CA [19:35:12]Write i2c OK [19:35:12]MH_I2C_Read... [19:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:12]Read from MH i2c: E2 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 0B 00 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 0B 00 E2 6D 00 F2 92 9A AA 4E B7 E9 05 90 00 86 [19:35:12]RAPDU: F2 92 9A AA 4E B7 E9 05 90 00 [19:35:12]wFMCommunicate OK [19:35:12]SAM_PROTO_SignData done [19:35:12]FM_MakeSignedData done [19:35:12]CreateOFDProtocolMessage [19:35:12]wFMCommunicate request_size=4 [19:35:12]MH_SAM_APDU [19:35:12]CAPDU: 80 11 00 00 [19:35:12]Write to MH i2c: E2 08 00 E3 6D 80 11 00 00 00 00 00 00 CA [19:35:12]Write i2c OK [19:35:12]MH_I2C_Read... [19:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:12]Read from MH i2c: E2 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 17 00 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: E2 17 00 E3 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [19:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:12]wFMCommunicate OK [19:35:12]CreateOFDProtocolMessage done [19:35:12]OFDSenderStorePacket 31276 [19:35:12]StoreOFDPacket docnum=31276 [19:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 5B 07 01 B2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F6 4F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 7A 00 00 35 04 06 00 CF 58 B9 9D E2 35 F2 92 9A AA 4E B7 E9 05 [19:35:12]CheckFolder [19:35:12]dirname=/storage/ofd_packets [19:35:12]CheckFolder done [19:35:12]ProducePacketName [19:35:12]name=ofd_packets/00031276 [19:35:12]NVStorageSaveData ofd_packets/00031276 [19:35:12]File name is /storage/ofd_packets/00031276 [19:35:12]Write 301 bytes [19:35:12]NVStorageSaveData done [19:35:12]OFDSenderStorePacket done [19:35:12]KKMCreateOFDPacket done [19:35:12]NVStorageSaveData kkm_last_timestamp [19:35:12]File name is /storage/kkm_last_timestamp [19:35:12]Write 4 bytes [19:35:12]NVStorageSaveData done [19:35:12]ExternCall_PrintAddStr [19:35:12]wPrintStart [19:35:12]Write to MH i2c: 01 00 00 E4 6D 51 [19:35:12]OFD Sender: Processing packet 31276 [packets to send 11, broken 10] [19:35:12]ProducePacketName [19:35:12]name=ofd_packets/00031276 [19:35:12]OFD Sender: To server: pG, [19:35:12]CommunicateWithHost lk.salyk.kg:30040 [19:35:12]ConnectInit lk.salyk.kg [19:35:12]Write i2c OK [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: 01 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: 01 07 00 [19:35:12]MH_I2C_Read... [19:35:12]Read from MH i2c: 01 07 00 E4 6D 00 00 00 00 00 FF 0F 66 [19:35:12]RasterBufferAndPrint [19:35:12]line Счет N : (1)343724 [19:35:12]line ИНН: 02508201610067 [19:35:12]line Контрольно-Кассовый Чек [19:35:12]line ПРОДАЖА [19:35:12]line ТРК (МРК, ГНК) : 53 [19:35:12]line Товар: 2710124130 [19:35:12]line Аи-92-К-2 [19:35:12]line 2.990 * 66.90 [19:35:12]line = 200.03 [19:35:12]line НДС 12% НСП 1% [19:35:12]line > о реализуемом товаре [19:35:12]line ИТОГО: 200.03 [19:35:12]line НСП 1% : 1.77 [19:35:12]line НДС 12% : 21.24 [19:35:12]line Наличными: 0.00 [19:35:12]line Безнал.: 200.03 [19:35:12]line Место: АЗС № 78 "Партнер Нефть" [19:35:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:35:12]line СНО: Общий режим [19:35:12]line Чек 220 23.10.2024 19:35 [19:35:12]line Смена: 117 ФФД: 1.0 [19:35:12]line ЗНМ: 0300000137 [19:35:12]line РНМ: 0000000000186857 [19:35:12]line Версия ККМ: v1.0 [19:35:12]line Платежная система: АКБ Кыргызстан [19:35:12]line ФМ: 0000000002094219 [19:35:12]line ФД: 31276 [19:35:12]line ФПД: 227979978203701 [19:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31276&fm=227979978203701&tin=02508201610067®Number=0000000000186857&sum=20003 [19:35:12]Connected sock=10 [19:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 5B 07 01 B2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F6 4F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 7A 00 00 35 04 06 00 CF 58 B9 9D E2 35 F2 92 9A AA 4E B7 E9 05 [19:35:12]written 0, free lines is 4095 [19:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 79 67 47 00 83 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 7A 00 00 F4 03 04 00 6F FA 18 67 B6 04 01 00 00 F2 87 34 57 40 85 0F 09 [19:35:12]CommunicateWithHost err = 0 [19:35:12]CheckOFDResponse [19:35:12]1017 (14) - 77093643461234 [19:35:12]1041 (16) - 0000000002094219 [19:35:12]1040 (4) - 31276 [19:35:12]1012 (4) - 23.10.2024 13:30 [19:35:12]1206 (1) - 0 [19:35:12]OFD Sender: Remove packet 31276 [19:35:12]ProducePacketName [19:35:12]name=ofd_packets/00031276 [19:35:12]NVStorageDeleteData [19:35:13]Write to MH i2c: 01 00 00 0E 6E 7C [19:35:13]Write i2c OK [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: 01 [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: 01 07 00 [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: 01 07 00 0E 6E 00 00 00 00 00 02 0D 92 [19:35:13]RasterBufferAndPrint [19:35:13]line [19:35:13]line [19:35:13]line [19:35:13]line [19:35:13]line [19:35:13]written 0, free lines is 3336 [19:35:13]MH_Cut [19:35:13]Write to MH i2c: D1 01 00 15 6E 01 55 [19:35:13]Write i2c OK [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: D1 [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: D1 01 00 [19:35:13]MH_I2C_Read... [19:35:13]Read from MH i2c: D1 01 00 15 6E 00 54 [19:35:13]Write to MH i2c: 01 00 00 16 6E 84 [19:35:13]Write i2c OK [19:35:13]MH_I2C_Read... [19:35:13]OFD Sender: No OFD packet to send [19:35:13]*** Cut start [19:35:13]*** Partial cut [19:35:13]*** CUTSNS_PIN = 1 [19:35:13]*** CUTSNS_PIN = 0 [19:35:13]*** Brake cut motor [19:35:14]Read from MH i2c: 01 [19:35:14]MH_I2C_Read... [19:35:14]*** Stop cut motor [19:35:14]*** Cut end [19:35:14]Read from MH i2c: 01 07 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: 01 07 00 16 6E 00 00 00 00 00 FF 0F 99 [19:35:14]process_action close_receipt done [19:35:14]requested_data is exist [19:35:14]produce_requested_data [19:35:14]requested_item fm.sn is exist - process it [19:35:14]wFMCommunicate request_size=4 [19:35:14]MH_SAM_APDU [19:35:14]CAPDU: 80 11 00 00 [19:35:14]Write to MH i2c: E2 08 00 17 6E 80 11 00 00 00 00 00 00 FF [19:35:14]Write i2c OK [19:35:14]MH_I2C_Read... [19:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:14]Read from MH i2c: E2 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 17 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 17 00 17 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [19:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:14]wFMCommunicate OK [19:35:14]requested_item fd.num is exist - process it [19:35:14]SAM_PROTO_GetFieldsCounters [19:35:14]wFMCommunicate request_size=4 [19:35:14]MH_SAM_APDU [19:35:14]CAPDU: 80 13 00 00 [19:35:14]Write to MH i2c: E2 08 00 18 6E 80 13 00 00 00 00 00 00 02 [19:35:14]Write i2c OK [19:35:14]MH_I2C_Read... [19:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:14]Read from MH i2c: E2 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 62 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 62 00 18 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:14]wFMCommunicate OK [19:35:14]SAM_PROTO_GetFieldsCounters done [19:35:14]requested_item shift.num is exist - process it [19:35:14]requested_item shift.opened is exist - process it [19:35:14]req_shift_opened [19:35:14]FM_GetShiftState [19:35:14]SAM_PROTO_GetShiftState [19:35:14]wFMCommunicate request_size=4 [19:35:14]MH_SAM_APDU [19:35:14]CAPDU: 80 13 01 00 [19:35:14]Write to MH i2c: E2 08 00 19 6E 80 13 01 00 00 00 00 00 04 [19:35:14]Write i2c OK [19:35:14]MH_I2C_Read... [19:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:14]Read from MH i2c: E2 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 0E 00 [19:35:14]MH_I2C_Read... [19:35:14]Read from MH i2c: E2 0E 00 19 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BE [19:35:14]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:35:14]wFMCommunicate OK [19:35:14]SAM_PROTO_GetShiftState done [19:35:14]FM_GetShiftState done [19:35:14]req_shift_opened done [19:35:14]requested_item shift.open_date is exist - process it [19:35:14]req_shift_open_date [19:35:14]req_shift_open_date done [19:35:14]produce_requested_data done [19:35:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31276,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:35:14]process_action_free close_receipt [19:35:14]json_value_free [19:35:14]json_value_free done [19:35:14]process_json_proto returns [19:35:14]Send response to host [19:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31276,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:35:14]free response buf [19:35:14]execute_script done [19:35:14]execute_script returns [19:35:14]free content buf [19:35:14]Sock 7.Close socket [19:35:14]Sock 7.Thread stoped [19:35:18]OFD Sender: No OFD packet to send [19:35:20]accept exits with 9 [19:35:20]New connection [19:35:20]New thread 3066899812 created [19:35:20]Thread 3067043172 joined [19:35:20]Waiting for new connection... [19:35:20] Sock 9.Parse request [19:35:20]Sock 9.Check first char [19:35:20]Sock 9.First char is OK [19:35:20]request: POST /json_proto HTTP/1.0 [19:35:20]Method: POST [19:35:20]URL: /json_proto [19:35:20]Method is POST - this is cgi request [19:35:20]url: /json_proto [19:35:20]query_string will be loaded in cgi processing [19:35:20]execute_cgi json_proto POST (null) [19:35:20]execute_cgi path=json_proto method=POST [19:35:20]POST find Content-Length [19:35:20]Host: 172.17.51.3:8080 [19:35:20]Content-Length: 677 [19:35:20]Content-Type: application/json [19:35:20] [19:35:20]POST finish read [19:35:20]Found Content-Length = 677 [19:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:20]execute_script... [19:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:20]POST & json_proto [19:35:20]process_json_proto [19:35:20]json parsed OK: [19:35:20]protocol is kg_v1.0 [19:35:20]action value=close_receipt [19:35:20]process_action close_receipt [19:35:20]cmd_close_receipt [19:35:20]MH_GetDate [19:35:20]Write to MH i2c: F0 00 00 1A 6E 77 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 09 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: F0 09 00 1A 6E 00 00 50 19 67 04 C1 95 66 10 [19:35:20]GetLastDocTimeStamp 1729712118 [19:35:20]current date 1729712128 [19:35:20]FM_GetShiftState [19:35:20]SAM_PROTO_GetShiftState [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 01 00 [19:35:20]Write to MH i2c: E2 08 00 1B 6E 80 13 01 00 00 00 00 00 06 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 1B 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C0 [19:35:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetShiftState done [19:35:20]FM_GetShiftState done [19:35:20]opened in 1729643755 [19:35:20]opened+sec_in_day 1729730155 [19:35:20]quantity*price = 30038 [19:35:20]sum+1 = 30039 [19:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 221 23.10.2024 19:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31277 ФПД: 170667224367165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31277&fm=170667224367165&tin=02508201610067®Number=0000000000186857&sum=30000 [19:35:21]StoreToDocumentArchive [19:35:21]shift 117 fd 31277 [19:35:21]save to /storage/0117/doc_00031277 [19:35:21]save last doc name /storage/0117/doc_00031277 to /storage/kkm_last_doc_name [19:35:21]save OK [19:35:21]Clear old archive folders... [19:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:21]tlvbuf is 00D679D0 [19:35:21]SAM_PROTO_ClearQueue [19:35:21]wFMCommunicate request_size=4 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 09 00 00 [19:35:21]Write to MH i2c: E2 08 00 28 6E 80 09 00 00 00 00 00 00 08 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 28 6E 00 90 00 0A [19:35:21]RAPDU: 90 00 [19:35:21]wFMCommunicate OK [19:35:21]SAM_PROTO_ClearQueue done [19:35:21]KKMCreateOFDPacket [19:35:21]OFDProtocolAddRootSTLVToBuf [19:35:21]FM_MakeSignedData [19:35:21]FM_MakeSignedData [19:35:21]SAM_PROTO_SignData [19:35:21]wFMCommunicate request_size=4 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 0D 01 02 [19:35:21]Write to MH i2c: E2 08 00 29 6E 80 0D 01 02 00 00 00 00 10 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 29 6E 00 90 00 0B [19:35:21]RAPDU: 90 00 [19:35:21]wFMCommunicate OK [19:35:21]wFMCommunicate request_size=255 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 00 50 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 7A 00 00 35 04 06 00 9B [19:35:21]Write to MH i2c: E2 02 01 2A 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 00 50 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 7A 00 00 35 04 06 00 9B 00 00 F9 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 03 00 2A 6E 00 90 00 0C [19:35:21]RAPDU: 90 00 [19:35:21]wFMCommunicate OK [19:35:21]wFMCommunicate request_size=10 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 0D 02 02 05 38 8F 48 80 3D [19:35:21]Write to MH i2c: E2 0D 00 2B 6E 80 0D 02 02 05 00 38 8F 48 80 3D 00 00 E9 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 03 00 2B 6E 00 90 00 0D [19:35:22]RAPDU: 90 00 [19:35:22]wFMCommunicate OK [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 0D 03 02 [19:35:22]Write to MH i2c: E2 08 00 2C 6E 80 0D 03 02 00 00 00 00 15 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0B 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0B 00 2C 6E 00 A3 3E D6 1C 24 D4 92 DD 90 00 50 [19:35:22]RAPDU: A3 3E D6 1C 24 D4 92 DD 90 00 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_SignData done [19:35:22]FM_MakeSignedData done [19:35:22]CreateOFDProtocolMessage [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 11 00 00 [19:35:22]Write to MH i2c: E2 08 00 2D 6E 80 11 00 00 00 00 00 00 15 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 2D 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [19:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:22]wFMCommunicate OK [19:35:22]CreateOFDProtocolMessage done [19:35:22]OFDSenderStorePacket 31277 [19:35:22]StoreOFDPacket docnum=31277 [19:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B7 1B 07 01 91 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 00 50 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 7A 00 00 35 04 06 00 9B 38 8F 48 80 3D A3 3E D6 1C 24 D4 92 DD [19:35:22]CheckFolder [19:35:22]dirname=/storage/ofd_packets [19:35:22]CheckFolder done [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00031277 [19:35:22]NVStorageSaveData ofd_packets/00031277 [19:35:22]File name is /storage/ofd_packets/00031277 [19:35:22]Write 301 bytes [19:35:22]NVStorageSaveData done [19:35:22]OFDSenderStorePacket done [19:35:22]KKMCreateOFDPacket done [19:35:22]NVStorageSaveData kkm_last_timestamp [19:35:22]File name is /storage/kkm_last_timestamp [19:35:22]Write 4 bytes [19:35:22]NVStorageSaveData done [19:35:22]ExternCall_PrintAddStr [19:35:22]wPrintStart [19:35:22]Write to MH i2c: 01 00 00 2E 6E 9C [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 2E 6E 00 00 00 00 00 FF 0F B1 [19:35:22]RasterBufferAndPrint [19:35:22]line Счет N : (1)343725 [19:35:22]line ИНН: 02508201610067 [19:35:22]line Контрольно-Кассовый Чек [19:35:22]line ПРОДАЖА [19:35:22]line ТРК (МРК, ГНК) : 43 [19:35:22]line Товар: 2710124130 [19:35:22]line Аи-92-К-2 [19:35:22]line 4.490 * 66.90 [19:35:22]line = 300.38 [19:35:22]line НДС 12% НСП 1% [19:35:22]line > о реализуемом товаре [19:35:22]line ОКРУГЛЕНИЕ: -0.38 [19:35:22]line ИТОГО: 300.00 [19:35:22]line Внесено: 300.00 [19:35:22]line СДАЧА: 0.00 [19:35:22]line НСП 1% : 2.66 [19:35:22]line НДС 12% : 31.90 [19:35:22]line Наличными: 300.00 [19:35:22]line Безнал.: 0.00 [19:35:22]line Место: АЗС № 78 "Партнер Нефть" [19:35:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:35:22]line СНО: Общий режим [19:35:22]line Чек 221 23.10.2024 19:35 [19:35:22]line Смена: 117 ФФД: 1.0 [19:35:22]line ЗНМ: 0300000137 [19:35:22]line РНМ: 0000000000186857 [19:35:22]line Версия ККМ: v1.0 [19:35:22]line ФМ: 0000000002094219 [19:35:22]line ФД: 31277 [19:35:22]line ФПД: 170667224367165 [19:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31277&fm=170667224367165&tin=02508201610067®Number=0000000000186857&sum=30000 [19:35:22]OFD Sender: Processing packet 31277 [packets to send 11, broken 10] [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00031277 [19:35:22]OFD Sender: To server: pG, [19:35:22]CommunicateWithHost lk.salyk.kg:30040 [19:35:22]ConnectInit lk.salyk.kg [19:35:22]written 0, free lines is 4095 [19:35:22]Connected sock=10 [19:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B7 1B 07 01 91 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 00 50 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 7A 00 00 35 04 06 00 9B 38 8F 48 80 3D A3 3E D6 1C 24 D4 92 DD [19:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8F 10 47 00 A9 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 7A 00 00 F4 03 04 00 79 FA 18 67 B6 04 01 00 00 E0 98 E3 7B 9F 78 2D 39 [19:35:22]CommunicateWithHost err = 0 [19:35:22]CheckOFDResponse [19:35:22]1017 (14) - 77093643461234 [19:35:22]1041 (16) - 0000000002094219 [19:35:22]1040 (4) - 31277 [19:35:22]1012 (4) - 23.10.2024 13:30 [19:35:22]1206 (1) - 0 [19:35:22]OFD Sender: Remove packet 31277 [19:35:22]ProducePacketName [19:35:22]name=ofd_packets/00031277 [19:35:22]NVStorageDeleteData [19:35:22]Write to MH i2c: 01 00 00 59 6E C7 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 59 6E 00 00 00 00 00 EF 0C C9 [19:35:22]RasterBufferAndPrint [19:35:22]line [19:35:22]line [19:35:22]line [19:35:22]line [19:35:22]line [19:35:22]written 0, free lines is 3323 [19:35:22]MH_Cut [19:35:22]Write to MH i2c: D1 01 00 60 6E 01 A0 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: D1 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: D1 01 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: D1 01 00 60 6E 00 9F [19:35:22]Write to MH i2c: 01 00 00 61 6E CF [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:23]OFD Sender: No OFD packet to send [19:35:23]*** Cut start [19:35:23]*** Partial cut [19:35:23]*** CUTSNS_PIN = 1 [19:35:23]*** CUTSNS_PIN = 0 [19:35:23]*** Brake cut motor [19:35:23]Read from MH i2c: 01 [19:35:23]MH_I2C_Read... [19:35:23]*** Stop cut motor [19:35:23]*** Cut end [19:35:23]Read from MH i2c: 01 07 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: 01 07 00 61 6E 00 00 00 00 00 FF 0F E4 [19:35:23]process_action close_receipt done [19:35:23]requested_data is exist [19:35:23]produce_requested_data [19:35:23]requested_item fm.sn is exist - process it [19:35:23]wFMCommunicate request_size=4 [19:35:23]MH_SAM_APDU [19:35:23]CAPDU: 80 11 00 00 [19:35:23]Write to MH i2c: E2 08 00 62 6E 80 11 00 00 00 00 00 00 4A [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:23]Read from MH i2c: E2 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: E2 17 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: E2 17 00 62 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [19:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:23]wFMCommunicate OK [19:35:23]requested_item fd.num is exist - process it [19:35:23]SAM_PROTO_GetFieldsCounters [19:35:23]wFMCommunicate request_size=4 [19:35:23]MH_SAM_APDU [19:35:23]CAPDU: 80 13 00 00 [19:35:23]Write to MH i2c: E2 08 00 63 6E 80 13 00 00 00 00 00 00 4D [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 62 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 62 00 63 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [19:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:24]wFMCommunicate OK [19:35:24]SAM_PROTO_GetFieldsCounters done [19:35:24]requested_item shift.num is exist - process it [19:35:24]requested_item shift.opened is exist - process it [19:35:24]req_shift_opened [19:35:24]FM_GetShiftState [19:35:24]SAM_PROTO_GetShiftState [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 13 01 00 [19:35:24]Write to MH i2c: E2 08 00 64 6E 80 13 01 00 00 00 00 00 4F [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 0E 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 0E 00 64 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 09 [19:35:24]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:35:24]wFMCommunicate OK [19:35:24]SAM_PROTO_GetShiftState done [19:35:24]FM_GetShiftState done [19:35:24]req_shift_opened done [19:35:24]requested_item shift.open_date is exist - process it [19:35:24]req_shift_open_date [19:35:24]req_shift_open_date done [19:35:24]produce_requested_data done [19:35:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31277,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:35:24]process_action_free close_receipt [19:35:24]json_value_free [19:35:24]json_value_free done [19:35:24]process_json_proto returns [19:35:24]Send response to host [19:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31277,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:35:24]free response buf [19:35:24]execute_script done [19:35:24]execute_script returns [19:35:24]free content buf [19:35:24]Sock 9.Close socket [19:35:24]Sock 9.Thread stoped [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:49]accept exits with 7 [19:46:49]New connection [19:46:49]New thread 3067043172 created [19:46:49]Thread 3066899812 joined [19:46:49]Waiting for new connection... [19:46:49] Sock 7.Parse request [19:46:49]Sock 7.Check first char [19:46:49]Sock 7.First char is OK [19:46:49]request: POST /json_proto HTTP/1.0 [19:46:49]Method: POST [19:46:49]URL: /json_proto [19:46:49]Method is POST - this is cgi request [19:46:49]url: /json_proto [19:46:49]query_string will be loaded in cgi processing [19:46:49]execute_cgi json_proto POST (null) [19:46:49]execute_cgi path=json_proto method=POST [19:46:49]POST find Content-Length [19:46:49]Host: 172.17.51.3:8080 [19:46:49]Content-Length: 677 [19:46:49]Content-Type: application/json [19:46:49] [19:46:49]POST finish read [19:46:49]Found Content-Length = 677 [19:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:49]execute_script... [19: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 : (1)343726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:49]POST & json_proto [19:46:49]process_json_proto [19:46:49]json parsed OK: [19:46:49]protocol is kg_v1.0 [19:46:49]action value=close_receipt [19:46:49]process_action close_receipt [19:46:49]cmd_close_receipt [19:46:49]MH_GetDate [19:46:49]Write to MH i2c: F0 00 00 65 6E C2 [19:46:49]Write i2c OK [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: F0 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: F0 09 00 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: F0 09 00 65 6E 00 B1 52 19 67 04 C1 95 66 0E [19:46:49]GetLastDocTimeStamp 1729712128 [19:46:49]current date 1729712817 [19:46:49]FM_GetShiftState [19:46:49]SAM_PROTO_GetShiftState [19:46:49]wFMCommunicate request_size=4 [19:46:49]MH_SAM_APDU [19:46:49]CAPDU: 80 13 01 00 [19:46:49]Write to MH i2c: E2 08 00 66 6E 80 13 01 00 00 00 00 00 51 [19:46:49]Write i2c OK [19:46:49]MH_I2C_Read... [19:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:49]Read from MH i2c: E2 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: E2 0E 00 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: E2 0E 00 66 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 0B [19:46:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:46:49]wFMCommunicate OK [19:46:49]SAM_PROTO_GetShiftState done [19:46:49]FM_GetShiftState done [19:46:49]opened in 1729643755 [19:46:49]opened+sec_in_day 1729730155 [19:46:49]quantity*price = 40068 [19:46:49]sum+1 = 40069 [19:46:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 222 23.10.2024 19:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31278 ФПД: 215192451227878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31278&fm=215192451227878&tin=02508201610067®Number=0000000000186857&sum=40000 [19:46:50]StoreToDocumentArchive [19:46:50]shift 117 fd 31278 [19:46:50]save to /storage/0117/doc_00031278 [19:46:50]save last doc name /storage/0117/doc_00031278 to /storage/kkm_last_doc_name [19:46:50]save OK [19:46:50]Clear old archive folders... [19:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:50]tlvbuf is 00F003E0 [19:46:50]SAM_PROTO_ClearQueue [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 09 00 00 [19:46:50]Write to MH i2c: E2 08 00 73 6E 80 09 00 00 00 00 00 00 53 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 73 6E 00 90 00 55 [19:46:50]RAPDU: 90 00 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_ClearQueue done [19:46:50]KKMCreateOFDPacket [19:46:50]OFDProtocolAddRootSTLVToBuf [19:46:50]FM_MakeSignedData [19:46:50]FM_MakeSignedData [19:46:50]SAM_PROTO_SignData [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 0D 01 02 [19:46:50]Write to MH i2c: E2 08 00 74 6E 80 0D 01 02 00 00 00 00 5B [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 74 6E 00 90 00 56 [19:46:50]RAPDU: 90 00 [19:46:50]wFMCommunicate OK [19:46:50]wFMCommunicate request_size=255 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 52 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 7A 00 00 35 04 06 00 C3 [19:46:50]Write to MH i2c: E2 02 01 75 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 52 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 7A 00 00 35 04 06 00 C3 00 00 DD [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 75 6E 00 90 00 57 [19:46:50]RAPDU: 90 00 [19:46:50]wFMCommunicate OK [19:46:50]wFMCommunicate request_size=10 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 0D 02 02 05 B7 65 9D 20 E6 [19:46:50]Write to MH i2c: E2 0D 00 76 6E 80 0D 02 02 05 00 B7 65 9D 20 E6 00 00 27 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 03 00 76 6E 00 90 00 58 [19:46:50]RAPDU: 90 00 [19:46:50]wFMCommunicate OK [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 0D 03 02 [19:46:50]Write to MH i2c: E2 08 00 77 6E 80 0D 03 02 00 00 00 00 60 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0B 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0B 00 77 6E 00 DA 3D 7F 84 E8 10 48 20 90 00 DB [19:46:50]RAPDU: DA 3D 7F 84 E8 10 48 20 90 00 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_SignData done [19:46:50]FM_MakeSignedData done [19:46:50]CreateOFDProtocolMessage [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 11 00 00 [19:46:50]Write to MH i2c: E2 08 00 78 6E 80 11 00 00 00 00 00 00 60 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 17 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 17 00 78 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [19:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:46:50]wFMCommunicate OK [19:46:50]CreateOFDProtocolMessage done [19:46:50]OFDSenderStorePacket 31278 [19:46:50]StoreOFDPacket docnum=31278 [19:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4C 9D 07 01 54 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 52 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 7A 00 00 35 04 06 00 C3 B7 65 9D 20 E6 DA 3D 7F 84 E8 10 48 20 [19:46:50]CheckFolder [19:46:50]dirname=/storage/ofd_packets [19:46:50]CheckFolder done [19:46:50]ProducePacketName [19:46:50]name=ofd_packets/00031278 [19:46:50]NVStorageSaveData ofd_packets/00031278 [19:46:50]File name is /storage/ofd_packets/00031278 [19:46:50]Write 301 bytes [19:46:50]NVStorageSaveData done [19:46:50]OFDSenderStorePacket done [19:46:50]KKMCreateOFDPacket done [19:46:50]NVStorageSaveData kkm_last_timestamp [19:46:50]File name is /storage/kkm_last_timestamp [19:46:50]Write 4 bytes [19:46:50]NVStorageSaveData done [19:46:50]ExternCall_PrintAddStr [19:46:50]wPrintStart [19:46:50]Write to MH i2c: 01 00 00 79 6E E7 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 79 6E 00 00 00 00 00 FF 0F FC [19:46:50]RasterBufferAndPrint [19:46:50]line Счет N : (1)343726 [19:46:50]line ИНН: 02508201610067 [19:46:50]line Контрольно-Кассовый Чек [19:46:50]line ПРОДАЖА [19:46:50]line ТРК (МРК, ГНК) : 62 [19:46:50]line Товар: 2710124500 [19:46:50]line Аи-95-К-3 [19:46:50]line 5.400 * 74.20 [19:46:50]line = 400.68 [19:46:50]line НДС 12% НСП 1% [19:46:50]line > о реализуемом товаре [19:46:50]line ОКРУГЛЕНИЕ: -0.68 [19:46:50]line ИТОГО: 400.00 [19:46:50]line Внесено: 400.00 [19:46:50]line СДАЧА: 0.00 [19:46:50]line НСП 1% : 3.55 [19:46:50]line НДС 12% : 42.55 [19:46:50]line Наличными: 400.00 [19:46:50]line Безнал.: 0.00 [19:46:50]line Место: АЗС № 78 "Партнер Нефть" [19:46:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:46:50]line СНО: Общий режим [19:46:50]line Чек 222 23.10.2024 19:46 [19:46:50]line Смена: 117 ФФД: 1.0 [19:46:50]line ЗНМ: 0300000137 [19:46:50]line РНМ: 0000000000186857 [19:46:50]line Версия ККМ: v1.0 [19:46:50]line ФМ: 0000000002094219 [19:46:50]line ФД: 31278 [19:46:50]line ФПД: 215192451227878 [19:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T194657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31278&fm=215192451227878&tin=02508201610067®Number=0000000000186857&sum=40000 [19:46:50]OFD Sender: Processing packet 31278 [packets to send 11, broken 10] [19:46:50]ProducePacketName [19:46:50]name=ofd_packets/00031278 [19:46:50]OFD Sender: To server: pG, [19:46:50]CommunicateWithHost lk.salyk.kg:30040 [19:46:50]ConnectInit lk.salyk.kg [19:46:50]written 0, free lines is 4095 [19:46:50]Connected sock=10 [19:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4C 9D 07 01 54 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 52 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 7A 00 00 35 04 06 00 C3 B7 65 9D 20 E6 DA 3D 7F 84 E8 10 48 20 [19:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 29 23 47 00 9C 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 7A 00 00 F4 03 04 00 2A FD 18 67 B6 04 01 00 00 55 19 0F CF 0B 9E 9F CB [19:46:51]CommunicateWithHost err = 0 [19:46:51]CheckOFDResponse [19:46:51]1017 (14) - 77093643461234 [19:46:51]1041 (16) - 0000000002094219 [19:46:51]1040 (4) - 31278 [19:46:51]1012 (4) - 23.10.2024 13:42 [19:46:51]1206 (1) - 0 [19:46:51]OFD Sender: Remove packet 31278 [19:46:51]ProducePacketName [19:46:51]name=ofd_packets/00031278 [19:46:51]NVStorageDeleteData [19:46:51]Write to MH i2c: 01 00 00 A4 6E 12 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: 01 07 00 A4 6E 00 00 00 00 00 F1 0C 16 [19:46:51]RasterBufferAndPrint [19:46:51]line [19:46:51]line [19:46:51]line [19:46:51]line [19:46:51]line [19:46:51]written 0, free lines is 3319 [19:46:51]MH_Cut [19:46:51]Write to MH i2c: D1 01 00 AB 6E 01 EB [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: D1 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: D1 01 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: D1 01 00 AB 6E 00 EA [19:46:51]Write to MH i2c: 01 00 00 AC 6E 1A [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]OFD Sender: No OFD packet to send [19:46:52]*** Cut start [19:46:52]*** Partial cut [19:46:52]*** CUTSNS_PIN = 1 [19:46:52]*** CUTSNS_PIN = 0 [19:46:52]*** Brake cut motor [19:46:52]Read from MH i2c: 01 [19:46:52]MH_I2C_Read... [19:46:52]*** Stop cut motor [19:46:52]*** Cut end [19:46:52]Read from MH i2c: 01 07 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 AC 6E 00 00 00 00 00 FF 0F 2F [19:46:52]process_action close_receipt done [19:46:52]requested_data is exist [19:46:52]produce_requested_data [19:46:52]requested_item fm.sn is exist - process it [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 11 00 00 [19:46:52]Write to MH i2c: E2 08 00 AD 6E 80 11 00 00 00 00 00 00 95 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 17 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 17 00 AD 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [19:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:46:52]wFMCommunicate OK [19:46:52]requested_item fd.num is exist - process it [19:46:52]SAM_PROTO_GetFieldsCounters [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 13 00 00 [19:46:52]Write to MH i2c: E2 08 00 AE 6E 80 13 00 00 00 00 00 00 98 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 62 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 62 00 AE 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:52]wFMCommunicate OK [19:46:52]SAM_PROTO_GetFieldsCounters done [19:46:52]requested_item shift.num is exist - process it [19:46:52]requested_item shift.opened is exist - process it [19:46:52]req_shift_opened [19:46:52]FM_GetShiftState [19:46:52]SAM_PROTO_GetShiftState [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 13 01 00 [19:46:52]Write to MH i2c: E2 08 00 AF 6E 80 13 01 00 00 00 00 00 9A [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0E 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0E 00 AF 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 54 [19:46:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [19:46:52]wFMCommunicate OK [19:46:52]SAM_PROTO_GetShiftState done [19:46:52]FM_GetShiftState done [19:46:52]req_shift_opened done [19:46:52]requested_item shift.open_date is exist - process it [19:46:52]req_shift_open_date [19:46:52]req_shift_open_date done [19:46:52]produce_requested_data done [19:46:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31278,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [19:46:52]process_action_free close_receipt [19:46:52]json_value_free [19:46:52]json_value_free done [19:46:52]process_json_proto returns [19:46:52]Send response to host [19:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31278,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [19:46:52]free response buf [19:46:52]execute_script done [19:46:52]execute_script returns [19:46:52]free content buf [19:46:52]Sock 7.Close socket [19:46:52]Sock 7.Thread stoped [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:00:58]accept exits with 9 [20:00:58]New connection [20:00:58]New thread 3066899812 created [20:00:58]Thread 3067043172 joined [20:00:58]Waiting for new connection... [20:00:58] Sock 9.Parse request [20:00:58]Sock 9.Check first char [20:00:58]Sock 9.First char is OK [20:00:58]request: POST /json_proto HTTP/1.0 [20:00:58]Method: POST [20:00:58]URL: /json_proto [20:00:58]Method is POST - this is cgi request [20:00:58]url: /json_proto [20:00:58]query_string will be loaded in cgi processing [20:00:58]execute_cgi json_proto POST (null) [20:00:58]execute_cgi path=json_proto method=POST [20:00:58]POST find Content-Length [20:00:58]Host: 172.17.51.3:8080 [20:00:58]Content-Length: 682 [20:00:58]Content-Type: application/json [20:00:58] [20:00:58]POST finish read [20:00:58]Found Content-Length = 682 [20:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:58]execute_script... [20:00:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:58]POST & json_proto [20:00:58]process_json_proto [20:00:58]json parsed OK: [20:00:58]protocol is kg_v1.0 [20:00:58]action value=close_receipt [20:00:58]process_action close_receipt [20:00:58]cmd_close_receipt [20:00:58]MH_GetDate [20:00:58]Write to MH i2c: F0 00 00 B0 6E 0D [20:00:58]Write i2c OK [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: F0 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: F0 09 00 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: F0 09 00 B0 6E 00 02 56 19 67 04 C1 95 66 AE [20:00:58]GetLastDocTimeStamp 1729712817 [20:00:58]current date 1729713666 [20:00:58]FM_GetShiftState [20:00:58]SAM_PROTO_GetShiftState [20:00:58]wFMCommunicate request_size=4 [20:00:58]MH_SAM_APDU [20:00:58]CAPDU: 80 13 01 00 [20:00:58]Write to MH i2c: E2 08 00 B1 6E 80 13 01 00 00 00 00 00 9C [20:00:58]Write i2c OK [20:00:58]MH_I2C_Read... [20:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:58]Read from MH i2c: E2 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: E2 0E 00 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: E2 0E 00 B1 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 56 [20:00:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:00:58]wFMCommunicate OK [20:00:58]SAM_PROTO_GetShiftState done [20:00:58]FM_GetShiftState done [20:00:58]opened in 1729643755 [20:00:58]opened+sec_in_day 1729730155 [20:00:58]quantity*price = 100015 [20:00:58]sum+1 = 100017 [20:00:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 223 23.10.2024 20:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31279 ФПД: 12734277806330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200106&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31279&fm=12734277806330&tin=02508201610067®Number=0000000000186857&sum=100000 [20:00:59]StoreToDocumentArchive [20:00:59]shift 117 fd 31279 [20:00:59]save to /storage/0117/doc_00031279 [20:00:59]save last doc name /storage/0117/doc_00031279 to /storage/kkm_last_doc_name [20:00:59]save OK [20:00:59]Clear old archive folders... [20:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:59]tlvbuf is 00D33A70 [20:00:59]SAM_PROTO_ClearQueue [20:00:59]wFMCommunicate request_size=4 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 09 00 00 [20:00:59]Write to MH i2c: E2 08 00 BE 6E 80 09 00 00 00 00 00 00 9E [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:59]Read from MH i2c: E2 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 03 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 03 00 BE 6E 00 90 00 A0 [20:00:59]RAPDU: 90 00 [20:00:59]wFMCommunicate OK [20:00:59]SAM_PROTO_ClearQueue done [20:00:59]KKMCreateOFDPacket [20:00:59]OFDProtocolAddRootSTLVToBuf [20:00:59]FM_MakeSignedData [20:00:59]FM_MakeSignedData [20:00:59]SAM_PROTO_SignData [20:00:59]wFMCommunicate request_size=4 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 0D 01 02 [20:00:59]Write to MH i2c: E2 08 00 BF 6E 80 0D 01 02 00 00 00 00 A6 [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:59]Read from MH i2c: E2 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 03 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 03 00 BF 6E 00 90 00 A1 [20:00:59]RAPDU: 90 00 [20:00:59]wFMCommunicate OK [20:00:59]wFMCommunicate request_size=255 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 02 56 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 7A 00 00 35 04 06 00 0B [20:00:59]Write to MH i2c: E2 02 01 C0 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 02 56 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 7A 00 00 35 04 06 00 0B 00 00 11 [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 03 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 03 00 C0 6E 00 90 00 A2 [20:01:00]RAPDU: 90 00 [20:01:00]wFMCommunicate OK [20:01:00]wFMCommunicate request_size=10 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 0D 02 02 05 94 EE 1A E8 FA [20:01:00]Write to MH i2c: E2 0D 00 C1 6E 80 0D 02 02 05 00 94 EE 1A E8 FA 00 00 31 [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 03 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 03 00 C1 6E 00 90 00 A3 [20:01:00]RAPDU: 90 00 [20:01:00]wFMCommunicate OK [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 0D 03 02 [20:01:00]Write to MH i2c: E2 08 00 C2 6E 80 0D 03 02 00 00 00 00 AB [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0B 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0B 00 C2 6E 00 B3 01 63 E8 F4 E2 16 7B 90 00 12 [20:01:00]RAPDU: B3 01 63 E8 F4 E2 16 7B 90 00 [20:01:00]wFMCommunicate OK [20:01:00]SAM_PROTO_SignData done [20:01:00]FM_MakeSignedData done [20:01:00]CreateOFDProtocolMessage [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 11 00 00 [20:01:00]Write to MH i2c: E2 08 00 C3 6E 80 11 00 00 00 00 00 00 AB [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 17 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 17 00 C3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [20:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:01:00]wFMCommunicate OK [20:01:00]CreateOFDProtocolMessage done [20:01:00]OFDSenderStorePacket 31279 [20:01:00]StoreOFDPacket docnum=31279 [20:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 5D 07 01 8E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 02 56 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 7A 00 00 35 04 06 00 0B 94 EE 1A E8 FA B3 01 63 E8 F4 E2 16 7B [20:01:00]CheckFolder [20:01:00]dirname=/storage/ofd_packets [20:01:00]CheckFolder done [20:01:00]ProducePacketName [20:01:00]name=ofd_packets/00031279 [20:01:00]NVStorageSaveData ofd_packets/00031279 [20:01:00]File name is /storage/ofd_packets/00031279 [20:01:00]Write 301 bytes [20:01:00]NVStorageSaveData done [20:01:00]OFDSenderStorePacket done [20:01:00]KKMCreateOFDPacket done [20:01:00]NVStorageSaveData kkm_last_timestamp [20:01:00]File name is /storage/kkm_last_timestamp [20:01:00]Write 4 bytes [20:01:00]NVStorageSaveData done [20:01:00]ExternCall_PrintAddStr [20:01:00]wPrintStart [20:01:00]Write to MH i2c: 01 00 00 C4 6E 32 [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: 01 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: 01 07 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: 01 07 00 C4 6E 00 00 00 00 00 FF 0F 47 [20:01:00]RasterBufferAndPrint [20:01:00]line Счет N : (1)343727 [20:01:00]line ИНН: 02508201610067 [20:01:00]line Контрольно-Кассовый Чек [20:01:00]line ПРОДАЖА [20:01:00]line ТРК (МРК, ГНК) : 53 [20:01:00]line Товар: 2710124130 [20:01:00]line Аи-92-К-2 [20:01:00]line 14.950 * 66.90 [20:01:00]line = 1000.16 [20:01:00]line НДС 12% НСП 1% [20:01:00]line > о реализуемом товаре [20:01:00]line ОКРУГЛЕНИЕ: -0.16 [20:01:00]line ИТОГО: 1000.00 [20:01:00]line Внесено: 1000.00 [20:01:00]line СДАЧА: 0.00 [20:01:00]line НСП 1% : 8.85 [20:01:00]line НДС 12% : 106.21 [20:01:00]line Наличными: 1000.00 [20:01:00]line Безнал.: 0.00 [20:01:00]line Место: АЗС № 78 "Партнер Нефть" [20:01:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:01:00]line СНО: Общий режим [20:01:00]line Чек 223 23.10.2024 20:01 [20:01:00]line Смена: 117 ФФД: 1.0 [20:01:00]line ЗНМ: 0300000137 [20:01:00]line РНМ: 0000000000186857 [20:01:00]line Версия ККМ: v1.0 [20:01:00]line ФМ: 0000000002094219 [20:01:00]line ФД: 31279 [20:01:00]line ФПД: 12734277806330 [20:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200106&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31279&fm=12734277806330&tin=02508201610067®Number=0000000000186857&sum=100000 [20:01:00]OFD Sender: Processing packet 31279 [packets to send 11, broken 10] [20:01:00]ProducePacketName [20:01:00]name=ofd_packets/00031279 [20:01:00]OFD Sender: To server: pG, [20:01:00]CommunicateWithHost lk.salyk.kg:30040 [20:01:00]ConnectInit lk.salyk.kg [20:01:00]written 0, free lines is 4095 [20:01:00]Connected sock=7 [20:01:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 5D 07 01 8E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 02 56 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 7A 00 00 35 04 06 00 0B 94 EE 1A E8 FA B3 01 63 E8 F4 E2 16 7B [20:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DE 8B 47 00 E8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 7A 00 00 F4 03 04 00 7B 00 19 67 B6 04 01 00 00 F9 C7 FE 72 DB 96 25 C0 [20:01:00]CommunicateWithHost err = 0 [20:01:00]CheckOFDResponse [20:01:00]1017 (14) - 77093643461234 [20:01:00]1041 (16) - 0000000002094219 [20:01:00]1040 (4) - 31279 [20:01:00]1012 (4) - 23.10.2024 13:56 [20:01:00]1206 (1) - 0 [20:01:00]OFD Sender: Remove packet 31279 [20:01:00]ProducePacketName [20:01:00]name=ofd_packets/00031279 [20:01:00]NVStorageDeleteData [20:01:01]Write to MH i2c: 01 00 00 EF 6E 5D [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 07 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 07 00 EF 6E 00 00 00 00 00 F3 0C 63 [20:01:01]RasterBufferAndPrint [20:01:01]line [20:01:01]line [20:01:01]line [20:01:01]line [20:01:01]line [20:01:01]written 0, free lines is 3321 [20:01:01]MH_Cut [20:01:01]Write to MH i2c: D1 01 00 F6 6E 01 36 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: D1 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: D1 01 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: D1 01 00 F6 6E 00 35 [20:01:01]Write to MH i2c: 01 00 00 F7 6E 65 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]OFD Sender: No OFD packet to send [20:01:01]*** Cut start [20:01:01]*** Partial cut [20:01:01]*** CUTSNS_PIN = 1 [20:01:01]*** CUTSNS_PIN = 0 [20:01:01]*** Brake cut motor [20:01:02]Read from MH i2c: 01 [20:01:02]MH_I2C_Read... [20:01:02]*** Stop cut motor [20:01:02]*** Cut end [20:01:02]Read from MH i2c: 01 07 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: 01 07 00 F7 6E 00 00 00 00 00 FF 0F 7A [20:01:02]process_action close_receipt done [20:01:02]requested_data is exist [20:01:02]produce_requested_data [20:01:02]requested_item fm.sn is exist - process it [20:01:02]wFMCommunicate request_size=4 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 11 00 00 [20:01:02]Write to MH i2c: E2 08 00 F8 6E 80 11 00 00 00 00 00 00 E0 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 17 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 17 00 F8 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [20:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:01:02]wFMCommunicate OK [20:01:02]requested_item fd.num is exist - process it [20:01:02]SAM_PROTO_GetFieldsCounters [20:01:02]wFMCommunicate request_size=4 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 13 00 00 [20:01:02]Write to MH i2c: E2 08 00 F9 6E 80 13 00 00 00 00 00 00 E3 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 62 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 62 00 F9 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [20:01:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:02]wFMCommunicate OK [20:01:02]SAM_PROTO_GetFieldsCounters done [20:01:02]requested_item shift.num is exist - process it [20:01:02]requested_item shift.opened is exist - process it [20:01:02]req_shift_opened [20:01:02]FM_GetShiftState [20:01:02]SAM_PROTO_GetShiftState [20:01:02]wFMCommunicate request_size=4 [20:01:02]MH_SAM_APDU [20:01:02]CAPDU: 80 13 01 00 [20:01:02]Write to MH i2c: E2 08 00 FA 6E 80 13 01 00 00 00 00 00 E5 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:02]Read from MH i2c: E2 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 0E 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: E2 0E 00 FA 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9F [20:01:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:01:02]wFMCommunicate OK [20:01:02]SAM_PROTO_GetShiftState done [20:01:02]FM_GetShiftState done [20:01:02]req_shift_opened done [20:01:02]requested_item shift.open_date is exist - process it [20:01:02]req_shift_open_date [20:01:02]req_shift_open_date done [20:01:02]produce_requested_data done [20:01:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31279,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:01:02]process_action_free close_receipt [20:01:02]json_value_free [20:01:02]json_value_free done [20:01:02]process_json_proto returns [20:01:02]Send response to host [20:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31279,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:01:02]free response buf [20:01:02]execute_script done [20:01:02]execute_script returns [20:01:02]free content buf [20:01:02]Sock 9.Close socket [20:01:02]Sock 9.Thread stoped [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:16]accept exits with 10 [20:12:16]New connection [20:12:16]New thread 3067043172 created [20:12:16]Thread 3066899812 joined [20:12:16]Waiting for new connection... [20:12:16] Sock 10.Parse request [20:12:16]Sock 10.Check first char [20:12:16]Sock 10.First char is OK [20:12:16]request: POST /json_proto HTTP/1.0 [20:12:16]Method: POST [20:12:16]URL: /json_proto [20:12:16]Method is POST - this is cgi request [20:12:16]url: /json_proto [20:12:16]query_string will be loaded in cgi processing [20:12:16]execute_cgi json_proto POST (null) [20:12:16]execute_cgi path=json_proto method=POST [20:12:16]POST find Content-Length [20:12:16]Host: 172.17.51.3:8080 [20:12:16]Content-Length: 677 [20:12:16]Content-Type: application/json [20:12:16] [20:12:16]POST finish read [20:12:16]Found Content-Length = 677 [20:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:16]execute_script... [20:12:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:16]POST & json_proto [20:12:16]process_json_proto [20:12:16]json parsed OK: [20:12:16]protocol is kg_v1.0 [20:12:16]action value=close_receipt [20:12:16]process_action close_receipt [20:12:16]cmd_close_receipt [20:12:16]MH_GetDate [20:12:16]Write to MH i2c: F0 00 00 FB 6E 58 [20:12:16]Write i2c OK [20:12:16]MH_I2C_Read... [20:12:16]Read from MH i2c: F0 [20:12:16]MH_I2C_Read... [20:12:16]Read from MH i2c: F0 09 00 [20:12:16]MH_I2C_Read... [20:12:16]Read from MH i2c: F0 09 00 FB 6E 00 A8 58 19 67 04 C1 95 66 A1 [20:12:16]GetLastDocTimeStamp 1729713666 [20:12:16]current date 1729714344 [20:12:16]FM_GetShiftState [20:12:16]SAM_PROTO_GetShiftState [20:12:16]wFMCommunicate request_size=4 [20:12:16]MH_SAM_APDU [20:12:16]CAPDU: 80 13 01 00 [20:12:16]Write to MH i2c: E2 08 00 FC 6E 80 13 01 00 00 00 00 00 E7 [20:12:16]Write i2c OK [20:12:16]MH_I2C_Read... [20:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:16]Read from MH i2c: E2 [20:12:16]MH_I2C_Read... [20:12:16]Read from MH i2c: E2 0E 00 [20:12:16]MH_I2C_Read... [20:12:16]Read from MH i2c: E2 0E 00 FC 6E 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 A1 [20:12:16]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:12:16]wFMCommunicate OK [20:12:16]SAM_PROTO_GetShiftState done [20:12:16]FM_GetShiftState done [20:12:16]opened in 1729643755 [20:12:16]opened+sec_in_day 1729730155 [20:12:16]quantity*price = 50041 [20:12:16]sum+1 = 50042 [20:12:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 224 23.10.2024 20:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31280 ФПД: 272489764918017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31280&fm=272489764918017&tin=02508201610067®Number=0000000000186857&sum=50000 [20:12:17]StoreToDocumentArchive [20:12:17]shift 117 fd 31280 [20:12:17]save to /storage/0117/doc_00031280 [20:12:17]save last doc name /storage/0117/doc_00031280 to /storage/kkm_last_doc_name [20:12:17]save OK [20:12:17]Clear old archive folders... [20:12:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:17]tlvbuf is 00F00270 [20:12:17]SAM_PROTO_ClearQueue [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 09 00 00 [20:12:17]Write to MH i2c: E2 08 00 09 6F 80 09 00 00 00 00 00 00 EA [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 09 6F 00 90 00 EC [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]SAM_PROTO_ClearQueue done [20:12:17]KKMCreateOFDPacket [20:12:17]OFDProtocolAddRootSTLVToBuf [20:12:17]FM_MakeSignedData [20:12:17]FM_MakeSignedData [20:12:17]SAM_PROTO_SignData [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 01 02 [20:12:17]Write to MH i2c: E2 08 00 0A 6F 80 0D 01 02 00 00 00 00 F2 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 0A 6F 00 90 00 ED [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=255 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A8 58 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 7A 00 00 35 04 06 00 F7 [20:12:17]Write to MH i2c: E2 02 01 0B 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A8 58 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 7A 00 00 35 04 06 00 F7 00 00 F9 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 0B 6F 00 90 00 EE [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=10 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 02 02 05 D3 F7 A4 93 01 [20:12:17]Write to MH i2c: E2 0D 00 0C 6F 80 0D 02 02 05 00 D3 F7 A4 93 01 00 00 01 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 0C 6F 00 90 00 EF [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 03 02 [20:12:17]Write to MH i2c: E2 08 00 0D 6F 80 0D 03 02 00 00 00 00 F7 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 0B 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 0B 00 0D 6F 00 53 87 11 A1 64 44 C0 69 90 00 55 [20:12:17]RAPDU: 53 87 11 A1 64 44 C0 69 90 00 [20:12:17]wFMCommunicate OK [20:12:17]SAM_PROTO_SignData done [20:12:17]FM_MakeSignedData done [20:12:17]CreateOFDProtocolMessage [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 11 00 00 [20:12:17]Write to MH i2c: E2 08 00 0E 6F 80 11 00 00 00 00 00 00 F7 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 17 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 17 00 0E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [20:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:12:17]wFMCommunicate OK [20:12:17]CreateOFDProtocolMessage done [20:12:17]OFDSenderStorePacket 31280 [20:12:17]StoreOFDPacket docnum=31280 [20:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B A0 07 01 1E 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A8 58 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 7A 00 00 35 04 06 00 F7 D3 F7 A4 93 01 53 87 11 A1 64 44 C0 69 [20:12:17]CheckFolder [20:12:17]dirname=/storage/ofd_packets [20:12:17]CheckFolder done [20:12:17]ProducePacketName [20:12:17]name=ofd_packets/00031280 [20:12:17]NVStorageSaveData ofd_packets/00031280 [20:12:17]File name is /storage/ofd_packets/00031280 [20:12:17]Write 301 bytes [20:12:17]NVStorageSaveData done [20:12:17]OFDSenderStorePacket done [20:12:17]KKMCreateOFDPacket done [20:12:17]NVStorageSaveData kkm_last_timestamp [20:12:17]File name is /storage/kkm_last_timestamp [20:12:17]Write 4 bytes [20:12:17]NVStorageSaveData done [20:12:17]ExternCall_PrintAddStr [20:12:17]wPrintStart [20:12:17]Write to MH i2c: 01 00 00 0F 6F 7E [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 07 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 07 00 0F 6F 00 00 00 00 00 FF 0F 93 [20:12:17]RasterBufferAndPrint [20:12:17]line Счет N : (1)343728 [20:12:17]line ИНН: 02508201610067 [20:12:17]line Контрольно-Кассовый Чек [20:12:17]line ПРОДАЖА [20:12:17]line ТРК (МРК, ГНК) : 63 [20:12:17]line Товар: 2710124130 [20:12:17]line Аи-92-К-2 [20:12:17]line 7.480 * 66.90 [20:12:17]line = 500.41 [20:12:17]line НДС 12% НСП 1% [20:12:17]line > о реализуемом товаре [20:12:17]line ОКРУГЛЕНИЕ: -0.41 [20:12:17]line ИТОГО: 500.00 [20:12:17]line Внесено: 500.00 [20:12:17]line СДАЧА: 0.00 [20:12:17]line НСП 1% : 4.43 [20:12:17]line НДС 12% : 53.14 [20:12:17]line Наличными: 500.00 [20:12:17]line Безнал.: 0.00 [20:12:17]line Место: АЗС № 78 "Партнер Нефть" [20:12:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:12:17]line СНО: Общий режим [20:12:17]line Чек 224 23.10.2024 20:12 [20:12:17]line Смена: 117 ФФД: 1.0 [20:12:17]line ЗНМ: 0300000137 [20:12:17]line РНМ: 0000000000186857 [20:12:17]line Версия ККМ: v1.0 [20:12:17]line ФМ: 0000000002094219 [20:12:17]line ФД: 31280 [20:12:17]line ФПД: 272489764918017 [20:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31280&fm=272489764918017&tin=02508201610067®Number=0000000000186857&sum=50000 [20:12:18]OFD Sender: Processing packet 31280 [packets to send 11, broken 10] [20:12:18]ProducePacketName [20:12:18]name=ofd_packets/00031280 [20:12:18]OFD Sender: To server: pG, [20:12:18]CommunicateWithHost lk.salyk.kg:30040 [20:12:18]ConnectInit lk.salyk.kg [20:12:18]written 0, free lines is 4095 [20:12:18]Connected sock=7 [20:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B A0 07 01 1E 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A8 58 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 7A 00 00 35 04 06 00 F7 D3 F7 A4 93 01 53 87 11 A1 64 44 C0 69 [20:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4F 86 47 00 78 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 7A 00 00 F4 03 04 00 21 03 19 67 B6 04 01 00 00 F6 3F BD F3 3C 66 11 2B [20:12:18]CommunicateWithHost err = 0 [20:12:18]CheckOFDResponse [20:12:18]1017 (14) - 77093643461234 [20:12:18]1041 (16) - 0000000002094219 [20:12:18]1040 (4) - 31280 [20:12:18]1012 (4) - 23.10.2024 14:07 [20:12:18]1206 (1) - 0 [20:12:18]OFD Sender: Remove packet 31280 [20:12:18]ProducePacketName [20:12:18]name=ofd_packets/00031280 [20:12:18]NVStorageDeleteData [20:12:18]Write to MH i2c: 01 00 00 3A 6F A9 [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 07 00 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 07 00 3A 6F 00 00 00 00 00 EC 0C A8 [20:12:18]RasterBufferAndPrint [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]written 0, free lines is 3314 [20:12:18]MH_Cut [20:12:18]Write to MH i2c: D1 01 00 41 6F 01 82 [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 01 00 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 01 00 41 6F 00 81 [20:12:18]Write to MH i2c: 01 00 00 42 6F B1 [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:19]OFD Sender: No OFD packet to send [20:12:19]*** Cut start [20:12:19]*** Partial cut [20:12:19]*** CUTSNS_PIN = 1 [20:12:19]*** CUTSNS_PIN = 0 [20:12:19]*** Brake cut motor [20:12:19]Read from MH i2c: 01 [20:12:19]MH_I2C_Read... [20:12:19]*** Stop cut motor [20:12:19]*** Cut end [20:12:19]Read from MH i2c: 01 07 00 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: 01 07 00 42 6F 00 00 00 00 00 FF 0F C6 [20:12:19]process_action close_receipt done [20:12:19]requested_data is exist [20:12:19]produce_requested_data [20:12:19]requested_item fm.sn is exist - process it [20:12:19]wFMCommunicate request_size=4 [20:12:19]MH_SAM_APDU [20:12:19]CAPDU: 80 11 00 00 [20:12:19]Write to MH i2c: E2 08 00 43 6F 80 11 00 00 00 00 00 00 2C [20:12:19]Write i2c OK [20:12:19]MH_I2C_Read... [20:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:20]Read from MH i2c: E2 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 17 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 17 00 43 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [20:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:12:20]wFMCommunicate OK [20:12:20]requested_item fd.num is exist - process it [20:12:20]SAM_PROTO_GetFieldsCounters [20:12:20]wFMCommunicate request_size=4 [20:12:20]MH_SAM_APDU [20:12:20]CAPDU: 80 13 00 00 [20:12:20]Write to MH i2c: E2 08 00 44 6F 80 13 00 00 00 00 00 00 2F [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:20]Read from MH i2c: E2 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 62 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 62 00 44 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [20:12:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:20]wFMCommunicate OK [20:12:20]SAM_PROTO_GetFieldsCounters done [20:12:20]requested_item shift.num is exist - process it [20:12:20]requested_item shift.opened is exist - process it [20:12:20]req_shift_opened [20:12:20]FM_GetShiftState [20:12:20]SAM_PROTO_GetShiftState [20:12:20]wFMCommunicate request_size=4 [20:12:20]MH_SAM_APDU [20:12:20]CAPDU: 80 13 01 00 [20:12:20]Write to MH i2c: E2 08 00 45 6F 80 13 01 00 00 00 00 00 31 [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:20]Read from MH i2c: E2 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 0E 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 0E 00 45 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 EB [20:12:20]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:12:20]wFMCommunicate OK [20:12:20]SAM_PROTO_GetShiftState done [20:12:20]FM_GetShiftState done [20:12:20]req_shift_opened done [20:12:20]requested_item shift.open_date is exist - process it [20:12:20]req_shift_open_date [20:12:20]req_shift_open_date done [20:12:20]produce_requested_data done [20:12:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31280,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:12:20]process_action_free close_receipt [20:12:20]json_value_free [20:12:20]json_value_free done [20:12:20]process_json_proto returns [20:12:20]Send response to host [20:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31280,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:12:20]free response buf [20:12:20]execute_script done [20:12:20]execute_script returns [20:12:20]free content buf [20:12:20]Sock 10.Close socket [20:12:20]Sock 10.Thread stoped [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:58]accept exits with 9 [20:27:58]New connection [20:27:58]New thread 3066899812 created [20:27:58]Thread 3067043172 joined [20:27:58]Waiting for new connection... [20:27:58] Sock 9.Parse request [20:27:58]Sock 9.Check first char [20:27:58]Sock 9.First char is OK [20:27:58]request: POST /json_proto HTTP/1.0 [20:27:58]Method: POST [20:27:58]URL: /json_proto [20:27:58]Method is POST - this is cgi request [20:27:58]url: /json_proto [20:27:58]query_string will be loaded in cgi processing [20:27:58]execute_cgi json_proto POST (null) [20:27:58]execute_cgi path=json_proto method=POST [20:27:58]POST find Content-Length [20:27:58]Host: 172.17.51.3:8080 [20:27:58]Content-Length: 682 [20:27:58]Content-Type: application/json [20:27:58] [20:27:58]POST finish read [20:27:58]Found Content-Length = 682 [20:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:58]execute_script... [20:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:58]POST & json_proto [20:27:58]process_json_proto [20:27:58]json parsed OK: [20:27:58]protocol is kg_v1.0 [20:27:58]action value=close_receipt [20:27:58]process_action close_receipt [20:27:58]cmd_close_receipt [20:27:58]MH_GetDate [20:27:58]Write to MH i2c: F0 00 00 46 6F A4 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: F0 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: F0 09 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: F0 09 00 46 6F 00 56 5C 19 67 04 C1 95 66 9F [20:27:58]GetLastDocTimeStamp 1729714344 [20:27:58]current date 1729715286 [20:27:58]FM_GetShiftState [20:27:58]SAM_PROTO_GetShiftState [20:27:58]wFMCommunicate request_size=4 [20:27:58]MH_SAM_APDU [20:27:58]CAPDU: 80 13 01 00 [20:27:58]Write to MH i2c: E2 08 00 47 6F 80 13 01 00 00 00 00 00 33 [20:27:58]Write i2c OK [20:27:58]MH_I2C_Read... [20:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:58]Read from MH i2c: E2 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 0E 00 [20:27:58]MH_I2C_Read... [20:27:58]Read from MH i2c: E2 0E 00 47 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 ED [20:27:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:27:58]wFMCommunicate OK [20:27:58]SAM_PROTO_GetShiftState done [20:27:58]FM_GetShiftState done [20:27:58]opened in 1729643755 [20:27:58]opened+sec_in_day 1729730155 [20:27:58]quantity*price = 150056 [20:27:58]sum+1 = 150058 [20:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 225 23.10.2024 20:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31281 ФПД: 84574822942868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202806&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31281&fm=84574822942868&tin=02508201610067®Number=0000000000186857&sum=150000 [20:27:59]StoreToDocumentArchive [20:27:59]shift 117 fd 31281 [20:27:59]save to /storage/0117/doc_00031281 [20:27:59]save last doc name /storage/0117/doc_00031281 to /storage/kkm_last_doc_name [20:27:59]save OK [20:27:59]Clear old archive folders... [20:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:59]tlvbuf is 00D3F350 [20:27:59]SAM_PROTO_ClearQueue [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 09 00 00 [20:27:59]Write to MH i2c: E2 08 00 54 6F 80 09 00 00 00 00 00 00 35 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 54 6F 00 90 00 37 [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]SAM_PROTO_ClearQueue done [20:27:59]KKMCreateOFDPacket [20:27:59]OFDProtocolAddRootSTLVToBuf [20:27:59]FM_MakeSignedData [20:27:59]FM_MakeSignedData [20:27:59]SAM_PROTO_SignData [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 0D 01 02 [20:27:59]Write to MH i2c: E2 08 00 55 6F 80 0D 01 02 00 00 00 00 3D [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 55 6F 00 90 00 38 [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]wFMCommunicate request_size=255 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 56 5C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 7A 00 00 35 04 06 00 4C [20:27:59]Write to MH i2c: E2 02 01 56 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 56 5C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 7A 00 00 35 04 06 00 4C 00 00 96 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 56 6F 00 90 00 39 [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]wFMCommunicate request_size=10 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 0D 02 02 05 EB 9C 47 48 94 [20:27:59]Write to MH i2c: E2 0D 00 57 6F 80 0D 02 02 05 00 EB 9C 47 48 94 00 00 F4 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 03 00 57 6F 00 90 00 3A [20:27:59]RAPDU: 90 00 [20:27:59]wFMCommunicate OK [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 0D 03 02 [20:27:59]Write to MH i2c: E2 08 00 58 6F 80 0D 03 02 00 00 00 00 42 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0B 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 0B 00 58 6F 00 D0 F0 17 A1 02 07 B0 07 90 00 7B [20:27:59]RAPDU: D0 F0 17 A1 02 07 B0 07 90 00 [20:27:59]wFMCommunicate OK [20:27:59]SAM_PROTO_SignData done [20:27:59]FM_MakeSignedData done [20:27:59]CreateOFDProtocolMessage [20:27:59]wFMCommunicate request_size=4 [20:27:59]MH_SAM_APDU [20:27:59]CAPDU: 80 11 00 00 [20:27:59]Write to MH i2c: E2 08 00 59 6F 80 11 00 00 00 00 00 00 42 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]OFD Sender: No OFD packet to send [20:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:59]Read from MH i2c: E2 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: E2 17 00 59 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [20:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:27:59]wFMCommunicate OK [20:27:59]CreateOFDProtocolMessage done [20:27:59]OFDSenderStorePacket 31281 [20:27:59]StoreOFDPacket docnum=31281 [20:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 71 6A 07 01 AA 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 56 5C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 7A 00 00 35 04 06 00 4C EB 9C 47 48 94 D0 F0 17 A1 02 07 B0 07 [20:27:59]CheckFolder [20:27:59]dirname=/storage/ofd_packets [20:27:59]CheckFolder done [20:27:59]ProducePacketName [20:27:59]name=ofd_packets/00031281 [20:27:59]NVStorageSaveData ofd_packets/00031281 [20:27:59]File name is /storage/ofd_packets/00031281 [20:27:59]Write 301 bytes [20:27:59]NVStorageSaveData done [20:27:59]OFDSenderStorePacket done [20:27:59]KKMCreateOFDPacket done [20:27:59]NVStorageSaveData kkm_last_timestamp [20:27:59]File name is /storage/kkm_last_timestamp [20:27:59]Write 4 bytes [20:27:59]NVStorageSaveData done [20:27:59]ExternCall_PrintAddStr [20:27:59]wPrintStart [20:27:59]Write to MH i2c: 01 00 00 5A 6F C9 [20:27:59]Write i2c OK [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 [20:27:59]MH_I2C_Read... [20:27:59]Read from MH i2c: 01 07 00 5A 6F 00 00 00 00 00 FF 0F DE [20:27:59]RasterBufferAndPrint [20:27:59]line Счет N : (1)343729 [20:27:59]line ИНН: 02508201610067 [20:27:59]line Контрольно-Кассовый Чек [20:27:59]line ПРОДАЖА [20:27:59]line ТРК (МРК, ГНК) : 63 [20:27:59]line Товар: 2710124130 [20:27:59]line Аи-92-К-2 [20:27:59]line 22.430 * 66.90 [20:27:59]line = 1500.57 [20:27:59]line НДС 12% НСП 1% [20:27:59]line > о реализуемом товаре [20:27:59]line ОКРУГЛЕНИЕ: -0.57 [20:27:59]line ИТОГО: 1500.00 [20:27:59]line Внесено: 1500.00 [20:27:59]line СДАЧА: 0.00 [20:27:59]line НСП 1% : 13.28 [20:27:59]line НДС 12% : 159.35 [20:27:59]line Наличными: 1500.00 [20:27:59]line Безнал.: 0.00 [20:27:59]line Место: АЗС № 78 "Партнер Нефть" [20:27:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:27:59]line СНО: Общий режим [20:27:59]line Чек 225 23.10.2024 20:28 [20:27:59]line Смена: 117 ФФД: 1.0 [20:27:59]line ЗНМ: 0300000137 [20:27:59]line РНМ: 0000000000186857 [20:27:59]line Версия ККМ: v1.0 [20:27:59]line ФМ: 0000000002094219 [20:27:59]line ФД: 31281 [20:27:59]line ФПД: 84574822942868 [20:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202806&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31281&fm=84574822942868&tin=02508201610067®Number=0000000000186857&sum=150000 [20:28:00]OFD Sender: Processing packet 31281 [packets to send 11, broken 10] [20:28:00]ProducePacketName [20:28:00]name=ofd_packets/00031281 [20:28:00]OFD Sender: To server: pG, [20:28:00]CommunicateWithHost lk.salyk.kg:30040 [20:28:00]ConnectInit lk.salyk.kg [20:28:00]written 0, free lines is 4095 [20:28:00]Connected sock=10 [20:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 71 6A 07 01 AA 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 56 5C 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 7A 00 00 35 04 06 00 4C EB 9C 47 48 94 D0 F0 17 A1 02 07 B0 07 [20:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3D F4 47 00 E8 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 7A 00 00 F4 03 04 00 CF 06 19 67 B6 04 01 00 00 7E 43 3D FD 81 EC 8E 6F [20:28:00]CommunicateWithHost err = 0 [20:28:00]CheckOFDResponse [20:28:00]1017 (14) - 77093643461234 [20:28:00]1041 (16) - 0000000002094219 [20:28:00]1040 (4) - 31281 [20:28:00]1012 (4) - 23.10.2024 14:23 [20:28:00]1206 (1) - 0 [20:28:00]OFD Sender: Remove packet 31281 [20:28:00]ProducePacketName [20:28:00]name=ofd_packets/00031281 [20:28:00]NVStorageDeleteData [20:28:00]Write to MH i2c: 01 00 00 85 6F F4 [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 07 00 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: 01 07 00 85 6F 00 00 00 00 00 EC 0C F3 [20:28:00]RasterBufferAndPrint [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]line [20:28:00]written 0, free lines is 3314 [20:28:00]MH_Cut [20:28:00]Write to MH i2c: D1 01 00 8C 6F 01 CD [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 01 00 [20:28:00]MH_I2C_Read... [20:28:00]Read from MH i2c: D1 01 00 8C 6F 00 CC [20:28:00]Write to MH i2c: 01 00 00 8D 6F FC [20:28:00]Write i2c OK [20:28:00]MH_I2C_Read... [20:28:01]OFD Sender: No OFD packet to send [20:28:01]*** Cut start [20:28:01]*** Partial cut [20:28:01]*** CUTSNS_PIN = 1 [20:28:01]*** CUTSNS_PIN = 0 [20:28:01]*** Brake cut motor [20:28:01]Read from MH i2c: 01 [20:28:01]MH_I2C_Read... [20:28:01]*** Stop cut motor [20:28:01]*** Cut end [20:28:01]Read from MH i2c: 01 07 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: 01 07 00 8D 6F 00 00 00 00 00 FF 0F 11 [20:28:01]process_action close_receipt done [20:28:01]requested_data is exist [20:28:01]produce_requested_data [20:28:01]requested_item fm.sn is exist - process it [20:28:01]wFMCommunicate request_size=4 [20:28:01]MH_SAM_APDU [20:28:01]CAPDU: 80 11 00 00 [20:28:01]Write to MH i2c: E2 08 00 8E 6F 80 11 00 00 00 00 00 00 77 [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:02]Read from MH i2c: E2 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 17 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 17 00 8E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [20:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:28:02]wFMCommunicate OK [20:28:02]requested_item fd.num is exist - process it [20:28:02]SAM_PROTO_GetFieldsCounters [20:28:02]wFMCommunicate request_size=4 [20:28:02]MH_SAM_APDU [20:28:02]CAPDU: 80 13 00 00 [20:28:02]Write to MH i2c: E2 08 00 8F 6F 80 13 00 00 00 00 00 00 7A [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:02]Read from MH i2c: E2 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 62 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 62 00 8F 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:02]wFMCommunicate OK [20:28:02]SAM_PROTO_GetFieldsCounters done [20:28:02]requested_item shift.num is exist - process it [20:28:02]requested_item shift.opened is exist - process it [20:28:02]req_shift_opened [20:28:02]FM_GetShiftState [20:28:02]SAM_PROTO_GetShiftState [20:28:02]wFMCommunicate request_size=4 [20:28:02]MH_SAM_APDU [20:28:02]CAPDU: 80 13 01 00 [20:28:02]Write to MH i2c: E2 08 00 90 6F 80 13 01 00 00 00 00 00 7C [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:02]Read from MH i2c: E2 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 0E 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: E2 0E 00 90 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 36 [20:28:02]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:28:02]wFMCommunicate OK [20:28:02]SAM_PROTO_GetShiftState done [20:28:02]FM_GetShiftState done [20:28:02]req_shift_opened done [20:28:02]requested_item shift.open_date is exist - process it [20:28:02]req_shift_open_date [20:28:02]req_shift_open_date done [20:28:02]produce_requested_data done [20:28:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31281,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:28:02]process_action_free close_receipt [20:28:02]json_value_free [20:28:02]json_value_free done [20:28:02]process_json_proto returns [20:28:02]Send response to host [20:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31281,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:28:02]free response buf [20:28:02]execute_script done [20:28:02]execute_script returns [20:28:02]free content buf [20:28:02]Sock 9.Close socket [20:28:02]Sock 9.Thread stoped [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]accept exits with 7 [20:36:41]New connection [20:36:41]New thread 3067043172 created [20:36:41]Thread 3066899812 joined [20:36:41]Waiting for new connection... [20:36:41] Sock 7.Parse request [20:36:41]Sock 7.Check first char [20:36:41]Sock 7.First char is OK [20:36:41]request: POST /json_proto HTTP/1.0 [20:36:41]Method: POST [20:36:41]URL: /json_proto [20:36:41]Method is POST - this is cgi request [20:36:41]url: /json_proto [20:36:41]query_string will be loaded in cgi processing [20:36:41]execute_cgi json_proto POST (null) [20:36:41]execute_cgi path=json_proto method=POST [20:36:41]POST find Content-Length [20:36:41]Host: 172.17.51.3:8080 [20:36:41]Content-Length: 688 [20:36:41]Content-Type: application/json [20:36:41] [20:36:41]POST finish read [20:36:41]Found Content-Length = 688 [20:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:41]execute_script... [20:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:41]POST & json_proto [20:36:41]process_json_proto [20:36:41]json parsed OK: [20:36:41]protocol is kg_v1.0 [20:36:41]action value=close_receipt [20:36:41]process_action close_receipt [20:36:41]cmd_close_receipt [20:36:41]MH_GetDate [20:36:41]Write to MH i2c: F0 00 00 91 6F EF [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: F0 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: F0 09 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: F0 09 00 91 6F 00 61 5E 19 67 04 C1 95 66 F7 [20:36:41]GetLastDocTimeStamp 1729715286 [20:36:41]current date 1729715809 [20:36:41]FM_GetShiftState [20:36:41]SAM_PROTO_GetShiftState [20:36:41]wFMCommunicate request_size=4 [20:36:41]MH_SAM_APDU [20:36:41]CAPDU: 80 13 01 00 [20:36:41]Write to MH i2c: E2 08 00 92 6F 80 13 01 00 00 00 00 00 7E [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:41]Read from MH i2c: E2 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 0E 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: E2 0E 00 92 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 38 [20:36:41]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:36:41]wFMCommunicate OK [20:36:41]SAM_PROTO_GetShiftState done [20:36:41]FM_GetShiftState done [20:36:41]opened in 1729643755 [20:36:41]opened+sec_in_day 1729730155 [20:36:41]quantity*price = 200025 [20:36:41]sum+1 = 200026 [20:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 226 23.10.2024 20:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31282 ФПД: 42203793583798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31282&fm=42203793583798&tin=02508201610067®Number=0000000000186857&sum=200000 [20:36:42]StoreToDocumentArchive [20:36:42]shift 117 fd 31282 [20:36:42]save to /storage/0117/doc_00031282 [20:36:42]save last doc name /storage/0117/doc_00031282 to /storage/kkm_last_doc_name [20:36:42]save OK [20:36:42]Clear old archive folders... [20:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:36:42]tlvbuf is 00D572C0 [20:36:42]SAM_PROTO_ClearQueue [20:36:42]wFMCommunicate request_size=4 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 09 00 00 [20:36:42]Write to MH i2c: E2 08 00 9F 6F 80 09 00 00 00 00 00 00 80 [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:42]Read from MH i2c: E2 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 9F 6F 00 90 00 82 [20:36:42]RAPDU: 90 00 [20:36:42]wFMCommunicate OK [20:36:42]SAM_PROTO_ClearQueue done [20:36:42]KKMCreateOFDPacket [20:36:42]OFDProtocolAddRootSTLVToBuf [20:36:42]FM_MakeSignedData [20:36:42]FM_MakeSignedData [20:36:42]SAM_PROTO_SignData [20:36:42]wFMCommunicate request_size=4 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 0D 01 02 [20:36:42]Write to MH i2c: E2 08 00 A0 6F 80 0D 01 02 00 00 00 00 88 [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:42]Read from MH i2c: E2 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 A0 6F 00 90 00 83 [20:36:42]RAPDU: 90 00 [20:36:42]wFMCommunicate OK [20:36:42]wFMCommunicate request_size=255 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 61 5E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 7A 00 [20:36:42]Write to MH i2c: E2 02 01 A1 6F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 61 5E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 7A 00 00 00 68 [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:42]Read from MH i2c: E2 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 A1 6F 00 90 00 84 [20:36:42]RAPDU: 90 00 [20:36:42]wFMCommunicate OK [20:36:42]wFMCommunicate request_size=16 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 26 62 56 1F EE B6 [20:36:42]Write to MH i2c: E2 13 00 A2 6F 80 0D 02 02 0B 00 00 35 04 06 00 26 62 56 1F EE B6 00 00 81 [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:42]Read from MH i2c: E2 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 03 00 A2 6F 00 90 00 85 [20:36:42]RAPDU: 90 00 [20:36:42]wFMCommunicate OK [20:36:42]wFMCommunicate request_size=4 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 0D 03 02 [20:36:42]Write to MH i2c: E2 08 00 A3 6F 80 0D 03 02 00 00 00 00 8D [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:42]Read from MH i2c: E2 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 0B 00 [20:36:42]MH_I2C_Read... [20:36:42]Read from MH i2c: E2 0B 00 A3 6F 00 AA C9 6B 4D 7A 55 90 00 90 00 18 [20:36:42]RAPDU: AA C9 6B 4D 7A 55 90 00 90 00 [20:36:42]wFMCommunicate OK [20:36:42]SAM_PROTO_SignData done [20:36:42]FM_MakeSignedData done [20:36:42]CreateOFDProtocolMessage [20:36:42]wFMCommunicate request_size=4 [20:36:42]MH_SAM_APDU [20:36:42]CAPDU: 80 11 00 00 [20:36:42]Write to MH i2c: E2 08 00 A4 6F 80 11 00 00 00 00 00 00 8D [20:36:42]Write i2c OK [20:36:42]MH_I2C_Read... [20:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:43]Read from MH i2c: E2 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 17 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: E2 17 00 A4 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [20:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:36:43]wFMCommunicate OK [20:36:43]CreateOFDProtocolMessage done [20:36:43]OFDSenderStorePacket 31282 [20:36:43]StoreOFDPacket docnum=31282 [20:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B6 EB 0D 01 17 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 61 5E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 7A 00 00 35 04 06 00 26 62 56 1F EE B6 AA C9 6B 4D 7A 55 90 00 [20:36:43]CheckFolder [20:36:43]dirname=/storage/ofd_packets [20:36:43]CheckFolder done [20:36:43]ProducePacketName [20:36:43]name=ofd_packets/00031282 [20:36:43]NVStorageSaveData ofd_packets/00031282 [20:36:43]File name is /storage/ofd_packets/00031282 [20:36:43]Write 307 bytes [20:36:43]NVStorageSaveData done [20:36:43]OFDSenderStorePacket done [20:36:43]KKMCreateOFDPacket done [20:36:43]NVStorageSaveData kkm_last_timestamp [20:36:43]File name is /storage/kkm_last_timestamp [20:36:43]Write 4 bytes [20:36:43]NVStorageSaveData done [20:36:43]ExternCall_PrintAddStr [20:36:43]wPrintStart [20:36:43]Write to MH i2c: 01 00 00 A5 6F 14 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 07 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 07 00 A5 6F 00 00 00 00 00 FF 0F 29 [20:36:43]RasterBufferAndPrint [20:36:43]line Счет N : (1)343730 [20:36:43]line ИНН: 02508201610067 [20:36:43]line Контрольно-Кассовый Чек [20:36:43]line ПРОДАЖА [20:36:43]line ТРК (МРК, ГНК) : 51 [20:36:43]line Товар: 2710194210 [20:36:43]line D-ENERGY Дт-К-2 [20:36:43]line 25.910 * 77.20 [20:36:43]line = 2000.25 [20:36:43]line НДС 12% НСП 1% [20:36:43]line > о реализуемом товаре [20:36:43]line ОКРУГЛЕНИЕ: -0.25 [20:36:43]line ИТОГО: 2000.00 [20:36:43]line Внесено: 2000.00 [20:36:43]line СДАЧА: 0.00 [20:36:43]line НСП 1% : 17.70 [20:36:43]line НДС 12% : 212.42 [20:36:43]line Наличными: 2000.00 [20:36:43]line Безнал.: 0.00 [20:36:43]line Место: АЗС № 78 "Партнер Нефть" [20:36:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:36:43]line СНО: Общий режим [20:36:43]line Чек 226 23.10.2024 20:36 [20:36:43]line Смена: 117 ФФД: 1.0 [20:36:43]line ЗНМ: 0300000137 [20:36:43]line РНМ: 0000000000186857 [20:36:43]line Версия ККМ: v1.0 [20:36:43]line ФМ: 0000000002094219 [20:36:43]line ФД: 31282 [20:36:43]line ФПД: 42203793583798 [20:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31282&fm=42203793583798&tin=02508201610067®Number=0000000000186857&sum=200000 [20:36:43]OFD Sender: Processing packet 31282 [packets to send 11, broken 10] [20:36:43]ProducePacketName [20:36:43]name=ofd_packets/00031282 [20:36:43]OFD Sender: To server: pG, [20:36:43]CommunicateWithHost lk.salyk.kg:30040 [20:36:43]ConnectInit lk.salyk.kg [20:36:43]written 0, free lines is 4095 [20:36:43]Connected sock=10 [20:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B6 EB 0D 01 17 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 61 5E 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 7A 00 00 35 04 06 00 26 62 56 1F EE B6 AA C9 6B 4D 7A 55 90 00 [20:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 60 A3 47 00 F6 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 7A 00 00 F4 03 04 00 DA 08 19 67 B6 04 01 00 00 D6 94 BF B0 17 D2 F9 F6 [20:36:43]CommunicateWithHost err = 0 [20:36:43]CheckOFDResponse [20:36:43]1017 (14) - 77093643461234 [20:36:43]1041 (16) - 0000000002094219 [20:36:43]1040 (4) - 31282 [20:36:43]1012 (4) - 23.10.2024 14:31 [20:36:43]1206 (1) - 0 [20:36:43]OFD Sender: Remove packet 31282 [20:36:43]ProducePacketName [20:36:43]name=ofd_packets/00031282 [20:36:43]NVStorageDeleteData [20:36:43]Write to MH i2c: 01 00 00 D0 6F 3F [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 07 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: 01 07 00 D0 6F 00 00 00 00 00 FB 0C 4D [20:36:43]RasterBufferAndPrint [20:36:43]line [20:36:43]line [20:36:43]line [20:36:43]line [20:36:43]line [20:36:43]written 0, free lines is 3329 [20:36:43]MH_Cut [20:36:43]Write to MH i2c: D1 01 00 D7 6F 01 18 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: D1 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: D1 01 00 [20:36:43]MH_I2C_Read... [20:36:43]Read from MH i2c: D1 01 00 D7 6F 00 17 [20:36:43]Write to MH i2c: 01 00 00 D8 6F 47 [20:36:43]Write i2c OK [20:36:43]MH_I2C_Read... [20:36:44]OFD Sender: No OFD packet to send [20:36:44]*** Cut start [20:36:44]*** Partial cut [20:36:44]*** CUTSNS_PIN = 1 [20:36:44]*** CUTSNS_PIN = 0 [20:36:44]*** Brake cut motor [20:36:45]Read from MH i2c: 01 [20:36:45]MH_I2C_Read... [20:36:45]*** Stop cut motor [20:36:45]*** Cut end [20:36:45]Read from MH i2c: 01 07 00 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: 01 07 00 D8 6F 00 00 00 00 00 FF 0F 5C [20:36:45]process_action close_receipt done [20:36:45]requested_data is exist [20:36:45]produce_requested_data [20:36:45]requested_item fm.sn is exist - process it [20:36:45]wFMCommunicate request_size=4 [20:36:45]MH_SAM_APDU [20:36:45]CAPDU: 80 11 00 00 [20:36:45]Write to MH i2c: E2 08 00 D9 6F 80 11 00 00 00 00 00 00 C2 [20:36:45]Write i2c OK [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 [20:36:45]MH_I2C_Read... [20:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:45]Read from MH i2c: E2 17 00 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 17 00 D9 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [20:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:36:45]wFMCommunicate OK [20:36:45]requested_item fd.num is exist - process it [20:36:45]SAM_PROTO_GetFieldsCounters [20:36:45]wFMCommunicate request_size=4 [20:36:45]MH_SAM_APDU [20:36:45]CAPDU: 80 13 00 00 [20:36:45]Write to MH i2c: E2 08 00 DA 6F 80 13 00 00 00 00 00 00 C5 [20:36:45]Write i2c OK [20:36:45]MH_I2C_Read... [20:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:45]Read from MH i2c: E2 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 62 00 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 62 00 DA 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:45]wFMCommunicate OK [20:36:45]SAM_PROTO_GetFieldsCounters done [20:36:45]requested_item shift.num is exist - process it [20:36:45]requested_item shift.opened is exist - process it [20:36:45]req_shift_opened [20:36:45]FM_GetShiftState [20:36:45]SAM_PROTO_GetShiftState [20:36:45]wFMCommunicate request_size=4 [20:36:45]MH_SAM_APDU [20:36:45]CAPDU: 80 13 01 00 [20:36:45]Write to MH i2c: E2 08 00 DB 6F 80 13 01 00 00 00 00 00 C7 [20:36:45]Write i2c OK [20:36:45]MH_I2C_Read... [20:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:45]Read from MH i2c: E2 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 0E 00 [20:36:45]MH_I2C_Read... [20:36:45]Read from MH i2c: E2 0E 00 DB 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 81 [20:36:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:36:45]wFMCommunicate OK [20:36:45]SAM_PROTO_GetShiftState done [20:36:45]FM_GetShiftState done [20:36:45]req_shift_opened done [20:36:45]requested_item shift.open_date is exist - process it [20:36:45]req_shift_open_date [20:36:45]req_shift_open_date done [20:36:45]produce_requested_data done [20:36:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31282,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:36:45]process_action_free close_receipt [20:36:45]json_value_free [20:36:45]json_value_free done [20:36:45]process_json_proto returns [20:36:45]Send response to host [20:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31282,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:36:45]free response buf [20:36:45]execute_script done [20:36:45]execute_script returns [20:36:45]free content buf [20:36:45]Sock 7.Close socket [20:36:45]Sock 7.Thread stoped [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]accept exits with 9 [20:39:49]New connection [20:39:49]New thread 3066899812 created [20:39:49]Thread 3067043172 joined [20:39:49]Waiting for new connection... [20:39:49] Sock 9.Parse request [20:39:49]Sock 9.Check first char [20:39:49]Sock 9.First char is OK [20:39:49]request: POST /json_proto HTTP/1.0 [20:39:49]Method: POST [20:39:49]URL: /json_proto [20:39:49]Method is POST - this is cgi request [20:39:49]url: /json_proto [20:39:49]query_string will be loaded in cgi processing [20:39:49]execute_cgi json_proto POST (null) [20:39:49]execute_cgi path=json_proto method=POST [20:39:49]POST find Content-Length [20:39:49]Host: 172.17.51.3:8080 [20:39:49]Content-Length: 840 [20:39:49]Content-Type: application/json [20:39:49] [20:39:49]POST finish read [20:39:49]Found Content-Length = 840 [20:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:49]execute_script... [20:39:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:49]POST & json_proto [20:39:49]process_json_proto [20:39:49]json parsed OK: [20:39:49]protocol is kg_v1.0 [20:39:49]action value=close_receipt [20:39:49]process_action close_receipt [20:39:49]cmd_close_receipt [20:39:49]MH_GetDate [20:39:49]Write to MH i2c: F0 00 00 DC 6F 3A [20:39:49]Write i2c OK [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: F0 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: F0 09 00 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: F0 09 00 DC 6F 00 1D 5F 19 67 04 C1 95 66 FF [20:39:49]GetLastDocTimeStamp 1729715809 [20:39:49]current date 1729715997 [20:39:49]FM_GetShiftState [20:39:49]SAM_PROTO_GetShiftState [20:39:49]wFMCommunicate request_size=4 [20:39:49]MH_SAM_APDU [20:39:49]CAPDU: 80 13 01 00 [20:39:49]Write to MH i2c: E2 08 00 DD 6F 80 13 01 00 00 00 00 00 C9 [20:39:49]OFD Sender: No OFD packet to send [20:39:49]Write i2c OK [20:39:49]MH_I2C_Read... [20:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:49]Read from MH i2c: E2 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 0E 00 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 0E 00 DD 6F 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 83 [20:39:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:39:49]wFMCommunicate OK [20:39:49]SAM_PROTO_GetShiftState done [20:39:49]FM_GetShiftState done [20:39:49]opened in 1729643755 [20:39:49]opened+sec_in_day 1729730155 [20:39:49]quantity*price = 30038 [20:39:49]sum+1 = 30039 [20:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 227 23.10.2024 20:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31283 ФПД: 2062512664093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203957&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31283&fm=2062512664093&tin=02508201610067®Number=0000000000186857&sum=30038 [20:39:50]StoreToDocumentArchive [20:39:50]shift 117 fd 31283 [20:39:50]save to /storage/0117/doc_00031283 [20:39:50]save last doc name /storage/0117/doc_00031283 to /storage/kkm_last_doc_name [20:39:50]save OK [20:39:50]Clear old archive folders... [20:39:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:50]tlvbuf is 00D57750 [20:39:50]SAM_PROTO_ClearQueue [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 09 00 00 [20:39:50]Write to MH i2c: E2 08 00 EA 6F 80 09 00 00 00 00 00 00 CB [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 EA 6F 00 90 00 CD [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_ClearQueue done [20:39:50]KKMCreateOFDPacket [20:39:50]OFDProtocolAddRootSTLVToBuf [20:39:50]FM_MakeSignedData [20:39:50]FM_MakeSignedData [20:39:50]SAM_PROTO_SignData [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 01 02 [20:39:50]Write to MH i2c: E2 08 00 EB 6F 80 0D 01 02 00 00 00 00 D3 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 EB 6F 00 90 00 CE [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=255 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 1D 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 7A 00 00 35 04 06 00 01 [20:39:50]Write to MH i2c: E2 02 01 EC 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 1D 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 7A 00 00 35 04 06 00 01 00 00 A6 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 EC 6F 00 90 00 CF [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=10 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 02 02 05 E0 37 55 AE 1D [20:39:50]Write to MH i2c: E2 0D 00 ED 6F 80 0D 02 02 05 00 E0 37 55 AE 1D 00 00 17 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 ED 6F 00 90 00 D0 [20:39:51]RAPDU: 90 00 [20:39:51]wFMCommunicate OK [20:39:51]wFMCommunicate request_size=4 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 0D 03 02 [20:39:51]Write to MH i2c: E2 08 00 EE 6F 80 0D 03 02 00 00 00 00 D8 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 0B 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 0B 00 EE 6F 00 1B E1 78 24 AE 42 8E 73 90 00 62 [20:39:51]RAPDU: 1B E1 78 24 AE 42 8E 73 90 00 [20:39:51]wFMCommunicate OK [20:39:51]SAM_PROTO_SignData done [20:39:51]FM_MakeSignedData done [20:39:51]CreateOFDProtocolMessage [20:39:51]wFMCommunicate request_size=4 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 11 00 00 [20:39:51]Write to MH i2c: E2 08 00 EF 6F 80 11 00 00 00 00 00 00 D8 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 17 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 17 00 EF 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [20:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:39:51]wFMCommunicate OK [20:39:51]CreateOFDProtocolMessage done [20:39:51]OFDSenderStorePacket 31283 [20:39:51]StoreOFDPacket docnum=31283 [20:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 37 07 01 78 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 1D 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 7A 00 00 35 04 06 00 01 E0 37 55 AE 1D 1B E1 78 24 AE 42 8E 73 [20:39:51]CheckFolder [20:39:51]dirname=/storage/ofd_packets [20:39:51]CheckFolder done [20:39:51]ProducePacketName [20:39:51]name=ofd_packets/00031283 [20:39:51]NVStorageSaveData ofd_packets/00031283 [20:39:51]File name is /storage/ofd_packets/00031283 [20:39:51]Write 301 bytes [20:39:51]NVStorageSaveData done [20:39:51]OFDSenderStorePacket done [20:39:51]KKMCreateOFDPacket done [20:39:51]NVStorageSaveData kkm_last_timestamp [20:39:51]File name is /storage/kkm_last_timestamp [20:39:51]Write 4 bytes [20:39:51]NVStorageSaveData done [20:39:51]ExternCall_PrintAddStr [20:39:51]wPrintStart [20:39:51]Write to MH i2c: 01 00 00 F0 6F 5F [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 F0 6F 00 00 00 00 00 FF 0F 74 [20:39:51]RasterBufferAndPrint [20:39:51]line Счет N : (1)343731 [20:39:51]line ИНН: 02508201610067 [20:39:51]line Контрольно-Кассовый Чек [20:39:51]line ПРОДАЖА [20:39:51]line ТРК (МРК, ГНК) : 53 [20:39:51]line Товар: 2710124130 [20:39:51]line Аи-92-К-2 [20:39:51]line 4.490 * 66.90 [20:39:51]line = 300.38 [20:39:51]line НДС 12% НСП 1% [20:39:51]line > о реализуемом товаре [20:39:51]line ИТОГО: 300.38 [20:39:51]line НСП 1% : 2.66 [20:39:51]line НДС 12% : 31.90 [20:39:51]line Наличными: 0.00 [20:39:51]line Безнал.: 300.38 [20:39:51]line Место: АЗС № 78 "Партнер Нефть" [20:39:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:39:51]line СНО: Общий режим [20:39:51]line Чек 227 23.10.2024 20:39 [20:39:51]line Смена: 117 ФФД: 1.0 [20:39:51]line ЗНМ: 0300000137 [20:39:51]line РНМ: 0000000000186857 [20:39:51]line Версия ККМ: v1.0 [20:39:51]line Платежная система: АКБ Кыргызстан [20:39:51]line ФМ: 0000000002094219 [20:39:51]line ФД: 31283 [20:39:51]line ФПД: 2062512664093 [20:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203957&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31283&fm=2062512664093&tin=02508201610067®Number=0000000000186857&sum=30038 [20:39:51]OFD Sender: Processing packet 31283 [packets to send 11, broken 10] [20:39:51]ProducePacketName [20:39:51]name=ofd_packets/00031283 [20:39:51]OFD Sender: To server: pG, [20:39:51]CommunicateWithHost lk.salyk.kg:30040 [20:39:51]ConnectInit lk.salyk.kg [20:39:51]written 0, free lines is 4095 [20:39:51]Connected sock=10 [20:39:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 37 07 01 78 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 1D 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 7A 00 00 35 04 06 00 01 E0 37 55 AE 1D 1B E1 78 24 AE 42 8E 73 [20:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C0 0C 47 00 F1 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 7A 00 00 F4 03 04 00 96 09 19 67 B6 04 01 00 00 43 E4 43 99 DC CC 8B E3 [20:39:51]CommunicateWithHost err = 0 [20:39:51]CheckOFDResponse [20:39:51]1017 (14) - 77093643461234 [20:39:51]1041 (16) - 0000000002094219 [20:39:51]1040 (4) - 31283 [20:39:51]1012 (4) - 23.10.2024 14:35 [20:39:51]1206 (1) - 0 [20:39:51]OFD Sender: Remove packet 31283 [20:39:51]ProducePacketName [20:39:51]name=ofd_packets/00031283 [20:39:51]NVStorageDeleteData [20:39:51]Write to MH i2c: 01 00 00 1A 70 8A [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 1A 70 00 00 00 00 00 0A 0D A8 [20:39:51]RasterBufferAndPrint [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]written 0, free lines is 3344 [20:39:51]MH_Cut [20:39:51]Write to MH i2c: D1 01 00 21 70 01 63 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 21 70 00 62 [20:39:51]Write to MH i2c: 01 00 00 22 70 92 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:52]OFD Sender: No OFD packet to send [20:39:52]*** Cut start [20:39:52]*** Partial cut [20:39:52]*** CUTSNS_PIN = 1 [20:39:52]*** CUTSNS_PIN = 0 [20:39:52]*** Brake cut motor [20:39:53]Read from MH i2c: 01 [20:39:53]MH_I2C_Read... [20:39:53]*** Stop cut motor [20:39:53]*** Cut end [20:39:53]Read from MH i2c: 01 07 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: 01 07 00 22 70 00 00 00 00 00 FF 0F A7 [20:39:53]process_action close_receipt done [20:39:53]requested_data is exist [20:39:53]produce_requested_data [20:39:53]requested_item fm.sn is exist - process it [20:39:53]wFMCommunicate request_size=4 [20:39:53]MH_SAM_APDU [20:39:53]CAPDU: 80 11 00 00 [20:39:53]Write to MH i2c: E2 08 00 23 70 80 11 00 00 00 00 00 00 0D [20:39:53]Write i2c OK [20:39:53]MH_I2C_Read... [20:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:53]Read from MH i2c: E2 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 17 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 17 00 23 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [20:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:39:53]wFMCommunicate OK [20:39:53]requested_item fd.num is exist - process it [20:39:53]SAM_PROTO_GetFieldsCounters [20:39:53]wFMCommunicate request_size=4 [20:39:53]MH_SAM_APDU [20:39:53]CAPDU: 80 13 00 00 [20:39:53]Write to MH i2c: E2 08 00 24 70 80 13 00 00 00 00 00 00 10 [20:39:53]Write i2c OK [20:39:53]MH_I2C_Read... [20:39:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:53]Read from MH i2c: E2 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 62 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 62 00 24 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:39:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:53]wFMCommunicate OK [20:39:53]SAM_PROTO_GetFieldsCounters done [20:39:53]requested_item shift.num is exist - process it [20:39:53]requested_item shift.opened is exist - process it [20:39:53]req_shift_opened [20:39:53]FM_GetShiftState [20:39:53]SAM_PROTO_GetShiftState [20:39:53]wFMCommunicate request_size=4 [20:39:53]MH_SAM_APDU [20:39:53]CAPDU: 80 13 01 00 [20:39:53]Write to MH i2c: E2 08 00 25 70 80 13 01 00 00 00 00 00 12 [20:39:53]Write i2c OK [20:39:53]MH_I2C_Read... [20:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:53]Read from MH i2c: E2 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 25 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CC [20:39:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:39:53]wFMCommunicate OK [20:39:53]SAM_PROTO_GetShiftState done [20:39:53]FM_GetShiftState done [20:39:53]req_shift_opened done [20:39:53]requested_item shift.open_date is exist - process it [20:39:53]req_shift_open_date [20:39:53]req_shift_open_date done [20:39:53]produce_requested_data done [20:39:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31283,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:39:53]process_action_free close_receipt [20:39:53]json_value_free [20:39:53]json_value_free done [20:39:53]process_json_proto returns [20:39:53]Send response to host [20:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31283,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:39:53]free response buf [20:39:53]execute_script done [20:39:53]execute_script returns [20:39:53]free content buf [20:39:53]Sock 9.Close socket [20:39:53]Sock 9.Thread stoped [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:17]accept exits with 7 [20:40:17]New connection [20:40:17]New thread 3067043172 created [20:40:17]Thread 3066899812 joined [20:40:17]Waiting for new connection... [20:40:17] Sock 7.Parse request [20:40:17]Sock 7.Check first char [20:40:17]Sock 7.First char is OK [20:40:17]request: POST /json_proto HTTP/1.0 [20:40:17]Method: POST [20:40:17]URL: /json_proto [20:40:17]Method is POST - this is cgi request [20:40:17]url: /json_proto [20:40:17]query_string will be loaded in cgi processing [20:40:17]execute_cgi json_proto POST (null) [20:40:17]execute_cgi path=json_proto method=POST [20:40:17]POST find Content-Length [20:40:17]Host: 172.17.51.3:8080 [20:40:17]Content-Length: 677 [20:40:17]Content-Type: application/json [20:40:17] [20:40:17]POST finish read [20:40:17]Found Content-Length = 677 [20:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:17]execute_script... [20:40:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:17]POST & json_proto [20:40:17]process_json_proto [20:40:17]json parsed OK: [20:40:17]protocol is kg_v1.0 [20:40:17]action value=close_receipt [20:40:17]process_action close_receipt [20:40:17]cmd_close_receipt [20:40:17]MH_GetDate [20:40:17]Write to MH i2c: F0 00 00 26 70 85 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: F0 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: F0 09 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: F0 09 00 26 70 00 3A 5F 19 67 04 C1 95 66 67 [20:40:17]GetLastDocTimeStamp 1729715997 [20:40:17]current date 1729716026 [20:40:17]FM_GetShiftState [20:40:17]SAM_PROTO_GetShiftState [20:40:17]wFMCommunicate request_size=4 [20:40:17]MH_SAM_APDU [20:40:17]CAPDU: 80 13 01 00 [20:40:17]Write to MH i2c: E2 08 00 27 70 80 13 01 00 00 00 00 00 14 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:18]Read from MH i2c: E2 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0E 00 [20:40:18]MH_I2C_Read... [20:40:18]Read from MH i2c: E2 0E 00 27 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CE [20:40:18]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:40:18]wFMCommunicate OK [20:40:18]SAM_PROTO_GetShiftState done [20:40:18]FM_GetShiftState done [20:40:18]opened in 1729643755 [20:40:18]opened+sec_in_day 1729730155 [20:40:18]quantity*price = 20003 [20:40:18]sum+1 = 20004 [20:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 228 23.10.2024 20:40 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31284 ФПД: 66799108346177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31284&fm=66799108346177&tin=02508201610067®Number=0000000000186857&sum=20000 [20:40:19]StoreToDocumentArchive [20:40:19]shift 117 fd 31284 [20:40:19]save to /storage/0117/doc_00031284 [20:40:19]save last doc name /storage/0117/doc_00031284 to /storage/kkm_last_doc_name [20:40:19]save OK [20:40:19]Clear old archive folders... [20:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:19]tlvbuf is 00D14C90 [20:40:19]SAM_PROTO_ClearQueue [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 09 00 00 [20:40:19]Write to MH i2c: E2 08 00 34 70 80 09 00 00 00 00 00 00 16 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 34 70 00 90 00 18 [20:40:19]RAPDU: 90 00 [20:40:19]wFMCommunicate OK [20:40:19]SAM_PROTO_ClearQueue done [20:40:19]KKMCreateOFDPacket [20:40:19]OFDProtocolAddRootSTLVToBuf [20:40:19]FM_MakeSignedData [20:40:19]FM_MakeSignedData [20:40:19]SAM_PROTO_SignData [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 0D 01 02 [20:40:19]Write to MH i2c: E2 08 00 35 70 80 0D 01 02 00 00 00 00 1E [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 35 70 00 90 00 19 [20:40:19]RAPDU: 90 00 [20:40:19]wFMCommunicate OK [20:40:19]wFMCommunicate request_size=255 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 7A 00 00 35 04 06 00 3C [20:40:19]Write to MH i2c: E2 02 01 36 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 7A 00 00 35 04 06 00 3C 00 00 CD [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 36 70 00 90 00 1A [20:40:19]RAPDU: 90 00 [20:40:19]wFMCommunicate OK [20:40:19]wFMCommunicate request_size=10 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 0D 02 02 05 C0 E1 1F D1 41 [20:40:19]Write to MH i2c: E2 0D 00 37 70 80 0D 02 02 05 00 C0 E1 1F D1 41 00 00 FD [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 03 00 37 70 00 90 00 1B [20:40:19]RAPDU: 90 00 [20:40:19]wFMCommunicate OK [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 0D 03 02 [20:40:19]Write to MH i2c: E2 08 00 38 70 80 0D 03 02 00 00 00 00 23 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0B 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0B 00 38 70 00 43 C3 B6 9E E5 85 DC B3 90 00 77 [20:40:19]RAPDU: 43 C3 B6 9E E5 85 DC B3 90 00 [20:40:19]wFMCommunicate OK [20:40:19]SAM_PROTO_SignData done [20:40:19]FM_MakeSignedData done [20:40:19]CreateOFDProtocolMessage [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 11 00 00 [20:40:19]Write to MH i2c: E2 08 00 39 70 80 11 00 00 00 00 00 00 23 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 17 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 17 00 39 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [20:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:40:19]wFMCommunicate OK [20:40:19]CreateOFDProtocolMessage done [20:40:19]OFDSenderStorePacket 31284 [20:40:19]StoreOFDPacket docnum=31284 [20:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 75 07 01 02 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 7A 00 00 35 04 06 00 3C C0 E1 1F D1 41 43 C3 B6 9E E5 85 DC B3 [20:40:19]CheckFolder [20:40:19]dirname=/storage/ofd_packets [20:40:19]CheckFolder done [20:40:19]ProducePacketName [20:40:19]name=ofd_packets/00031284 [20:40:19]NVStorageSaveData ofd_packets/00031284 [20:40:19]File name is /storage/ofd_packets/00031284 [20:40:19]Write 301 bytes [20:40:19]NVStorageSaveData done [20:40:19]OFDSenderStorePacket done [20:40:19]KKMCreateOFDPacket done [20:40:19]NVStorageSaveData kkm_last_timestamp [20:40:19]File name is /storage/kkm_last_timestamp [20:40:19]Write 4 bytes [20:40:19]NVStorageSaveData done [20:40:19]ExternCall_PrintAddStr [20:40:19]wPrintStart [20:40:19]Write to MH i2c: 01 00 00 3A 70 AA [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 07 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: 01 07 00 3A 70 00 00 00 00 00 FF 0F BF [20:40:19]RasterBufferAndPrint [20:40:19]line Счет N : (1)343732 [20:40:19]line ИНН: 02508201610067 [20:40:19]line Контрольно-Кассовый Чек [20:40:19]line ПРОДАЖА [20:40:19]line ТРК (МРК, ГНК) : 53 [20:40:19]line Товар: 2710124130 [20:40:19]line Аи-92-К-2 [20:40:19]line 2.990 * 66.90 [20:40:19]line = 200.03 [20:40:19]line НДС 12% НСП 1% [20:40:19]line > о реализуемом товаре [20:40:19]line ОКРУГЛЕНИЕ: -0.03 [20:40:19]line ИТОГО: 200.00 [20:40:19]line Внесено: 200.00 [20:40:19]line СДАЧА: 0.00 [20:40:19]line НСП 1% : 1.77 [20:40:19]line НДС 12% : 21.24 [20:40:19]line Наличными: 200.00 [20:40:19]line Безнал.: 0.00 [20:40:19]line Место: АЗС № 78 "Партнер Нефть" [20:40:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:40:19]line СНО: Общий режим [20:40:19]line Чек 228 23.10.2024 20:40 [20:40:19]line Смена: 117 ФФД: 1.0 [20:40:19]line ЗНМ: 0300000137 [20:40:19]line РНМ: 0000000000186857 [20:40:19]line Версия ККМ: v1.0 [20:40:19]line ФМ: 0000000002094219 [20:40:19]line ФД: 31284 [20:40:19]line ФПД: 66799108346177 [20:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31284&fm=66799108346177&tin=02508201610067®Number=0000000000186857&sum=20000 [20:40:20]written 0, free lines is 4095 [20:40:20]OFD Sender: Processing packet 31284 [packets to send 11, broken 10] [20:40:20]ProducePacketName [20:40:20]name=ofd_packets/00031284 [20:40:20]OFD Sender: To server: pG, [20:40:20]CommunicateWithHost lk.salyk.kg:30040 [20:40:20]ConnectInit lk.salyk.kg [20:40:20]Connected sock=10 [20:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7A 75 07 01 02 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 5F 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 7A 00 00 35 04 06 00 3C C0 E1 1F D1 41 43 C3 B6 9E E5 85 DC B3 [20:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3F 0F 47 00 15 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 7A 00 00 F4 03 04 00 B3 09 19 67 B6 04 01 00 00 E7 73 E6 B8 D1 F1 5B DA [20:40:20]CommunicateWithHost err = 0 [20:40:20]CheckOFDResponse [20:40:20]1017 (14) - 77093643461234 [20:40:20]1041 (16) - 0000000002094219 [20:40:20]1040 (4) - 31284 [20:40:20]1012 (4) - 23.10.2024 14:35 [20:40:20]1206 (1) - 0 [20:40:20]OFD Sender: Remove packet 31284 [20:40:20]ProducePacketName [20:40:20]name=ofd_packets/00031284 [20:40:20]NVStorageDeleteData [20:40:20]Write to MH i2c: 01 00 00 65 70 D5 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 65 70 00 00 00 00 00 E5 0C CD [20:40:20]RasterBufferAndPrint [20:40:20]line [20:40:20]line [20:40:20]line [20:40:20]line [20:40:20]line [20:40:20]written 0, free lines is 3307 [20:40:20]MH_Cut [20:40:20]Write to MH i2c: D1 01 00 6C 70 01 AE [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: D1 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: D1 01 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: D1 01 00 6C 70 00 AD [20:40:20]Write to MH i2c: 01 00 00 6D 70 DD [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]OFD Sender: No OFD packet to send [20:40:21]*** Cut start [20:40:21]*** Partial cut [20:40:21]*** CUTSNS_PIN = 1 [20:40:21]*** CUTSNS_PIN = 0 [20:40:21]*** Brake cut motor [20:40:21]Read from MH i2c: 01 [20:40:21]MH_I2C_Read... [20:40:21]*** Stop cut motor [20:40:21]*** Cut end [20:40:21]Read from MH i2c: 01 07 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 6D 70 00 00 00 00 00 FF 0F F2 [20:40:21]process_action close_receipt done [20:40:21]requested_data is exist [20:40:21]produce_requested_data [20:40:21]requested_item fm.sn is exist - process it [20:40:21]wFMCommunicate request_size=4 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 11 00 00 [20:40:21]Write to MH i2c: E2 08 00 6E 70 80 11 00 00 00 00 00 00 58 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:21]Read from MH i2c: E2 17 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 17 00 6E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [20:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:40:21]wFMCommunicate OK [20:40:21]requested_item fd.num is exist - process it [20:40:21]SAM_PROTO_GetFieldsCounters [20:40:21]wFMCommunicate request_size=4 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 13 00 00 [20:40:21]Write to MH i2c: E2 08 00 6F 70 80 13 00 00 00 00 00 00 5B [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 62 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 62 00 6F 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [20:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:21]wFMCommunicate OK [20:40:21]SAM_PROTO_GetFieldsCounters done [20:40:21]requested_item shift.num is exist - process it [20:40:21]requested_item shift.opened is exist - process it [20:40:21]req_shift_opened [20:40:21]FM_GetShiftState [20:40:21]SAM_PROTO_GetShiftState [20:40:21]wFMCommunicate request_size=4 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 13 01 00 [20:40:21]Write to MH i2c: E2 08 00 70 70 80 13 01 00 00 00 00 00 5D [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 0E 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 0E 00 70 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 17 [20:40:22]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:40:22]wFMCommunicate OK [20:40:22]SAM_PROTO_GetShiftState done [20:40:22]FM_GetShiftState done [20:40:22]req_shift_opened done [20:40:22]requested_item shift.open_date is exist - process it [20:40:22]req_shift_open_date [20:40:22]req_shift_open_date done [20:40:22]produce_requested_data done [20:40:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31284,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:40:22]process_action_free close_receipt [20:40:22]json_value_free [20:40:22]json_value_free done [20:40:22]process_json_proto returns [20:40:22]Send response to host [20:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31284,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:40:22]free response buf [20:40:22]execute_script done [20:40:22]execute_script returns [20:40:22]free content buf [20:40:22]Sock 7.Close socket [20:40:22]Sock 7.Thread stoped [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:40]accept exits with 9 [20:44:40]New connection [20:44:40]New thread 3066899812 created [20:44:40]Thread 3067043172 joined [20:44:40]Waiting for new connection... [20:44:40] Sock 9.Parse request [20:44:40]Sock 9.Check first char [20:44:40]Sock 9.First char is OK [20:44:40]request: POST /json_proto HTTP/1.0 [20:44:40]Method: POST [20:44:40]URL: /json_proto [20:44:40]Method is POST - this is cgi request [20:44:40]url: /json_proto [20:44:40]query_string will be loaded in cgi processing [20:44:40]execute_cgi json_proto POST (null) [20:44:40]execute_cgi path=json_proto method=POST [20:44:40]POST find Content-Length [20:44:40]Host: 172.17.51.3:8080 [20:44:40]Content-Length: 682 [20:44:40]Content-Type: application/json [20:44:40] [20:44:40]POST finish read [20:44:40]Found Content-Length = 682 [20:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.780, "sum" : 1523.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1523.00, "payments": [ { "type": 0, "sum" : 1523.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:40]execute_script... [20:44:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.780, "sum" : 1523.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1523.00, "payments": [ { "type": 0, "sum" : 1523.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:40]POST & json_proto [20:44:40]process_json_proto [20:44:40]json parsed OK: [20:44:40]protocol is kg_v1.0 [20:44:40]action value=close_receipt [20:44:40]process_action close_receipt [20:44:40]cmd_close_receipt [20:44:40]MH_GetDate [20:44:40]Write to MH i2c: F0 00 00 71 70 D0 [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: F0 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: F0 09 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: F0 09 00 71 70 00 40 60 19 67 04 C1 95 66 B9 [20:44:40]GetLastDocTimeStamp 1729716026 [20:44:40]current date 1729716288 [20:44:40]FM_GetShiftState [20:44:40]SAM_PROTO_GetShiftState [20:44:40]wFMCommunicate request_size=4 [20:44:40]MH_SAM_APDU [20:44:40]CAPDU: 80 13 01 00 [20:44:40]Write to MH i2c: E2 08 00 72 70 80 13 01 00 00 00 00 00 5F [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:40]Read from MH i2c: E2 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 0E 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: E2 0E 00 72 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 19 [20:44:40]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:44:40]wFMCommunicate OK [20:44:40]SAM_PROTO_GetShiftState done [20:44:40]FM_GetShiftState done [20:44:40]opened in 1729643755 [20:44:40]opened+sec_in_day 1729730155 [20:44:40]quantity*price = 152398 [20:44:40]sum+1 = 152399 [20:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 1523.00 Внесено: 2000.00 СДАЧА: 477.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 1523.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 229 23.10.2024 20:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31285 ФПД: 128799632865754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204448&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31285&fm=128799632865754&tin=02508201610067®Number=0000000000186857&sum=152300 [20:44:41]StoreToDocumentArchive [20:44:41]shift 117 fd 31285 [20:44:41]save to /storage/0117/doc_00031285 [20:44:41]save last doc name /storage/0117/doc_00031285 to /storage/kkm_last_doc_name [20:44:41]save OK [20:44:41]Clear old archive folders... [20:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:41]tlvbuf is 00D5E7B0 [20:44:41]SAM_PROTO_ClearQueue [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 09 00 00 [20:44:41]Write to MH i2c: E2 08 00 7F 70 80 09 00 00 00 00 00 00 61 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 03 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 03 00 7F 70 00 90 00 63 [20:44:41]RAPDU: 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_ClearQueue done [20:44:41]KKMCreateOFDPacket [20:44:41]OFDProtocolAddRootSTLVToBuf [20:44:41]FM_MakeSignedData [20:44:41]FM_MakeSignedData [20:44:41]SAM_PROTO_SignData [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 0D 01 02 [20:44:41]Write to MH i2c: E2 08 00 80 70 80 0D 01 02 00 00 00 00 69 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 03 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 03 00 80 70 00 90 00 64 [20:44:41]RAPDU: 90 00 [20:44:41]wFMCommunicate OK [20:44:41]wFMCommunicate request_size=255 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 EC 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 60 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 7A 00 00 35 04 06 00 75 [20:44:41]Write to MH i2c: E2 02 01 81 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 EC 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 60 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 7A 00 00 35 04 06 00 75 00 00 87 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 81 70 00 90 00 65 [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=10 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 02 02 05 24 80 5D 39 DA [20:44:42]Write to MH i2c: E2 0D 00 82 70 80 0D 02 02 05 00 24 80 5D 39 DA 00 00 8A [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 82 70 00 90 00 66 [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 03 02 [20:44:42]Write to MH i2c: E2 08 00 83 70 80 0D 03 02 00 00 00 00 6E [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0B 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0B 00 83 70 00 D1 33 96 86 23 5F 1C D7 90 00 04 [20:44:42]RAPDU: D1 33 96 86 23 5F 1C D7 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_SignData done [20:44:42]FM_MakeSignedData done [20:44:42]CreateOFDProtocolMessage [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 11 00 00 [20:44:42]Write to MH i2c: E2 08 00 84 70 80 11 00 00 00 00 00 00 6E [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 17 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 17 00 84 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [20:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:44:42]wFMCommunicate OK [20:44:42]CreateOFDProtocolMessage done [20:44:42]OFDSenderStorePacket 31285 [20:44:42]StoreOFDPacket docnum=31285 [20:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 33 07 01 EA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 EC 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 60 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 7A 00 00 35 04 06 00 75 24 80 5D 39 DA D1 33 96 86 23 5F 1C D7 [20:44:42]CheckFolder [20:44:42]dirname=/storage/ofd_packets [20:44:42]CheckFolder done [20:44:42]ProducePacketName [20:44:42]name=ofd_packets/00031285 [20:44:42]NVStorageSaveData ofd_packets/00031285 [20:44:42]File name is /storage/ofd_packets/00031285 [20:44:42]Write 301 bytes [20:44:42]NVStorageSaveData done [20:44:42]OFDSenderStorePacket done [20:44:42]KKMCreateOFDPacket done [20:44:42]NVStorageSaveData kkm_last_timestamp [20:44:42]File name is /storage/kkm_last_timestamp [20:44:42]Write 4 bytes [20:44:42]NVStorageSaveData done [20:44:42]ExternCall_PrintAddStr [20:44:42]wPrintStart [20:44:42]Write to MH i2c: 01 00 00 85 70 F5 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 85 70 00 00 00 00 00 FF 0F 0A [20:44:42]RasterBufferAndPrint [20:44:42]line Счет N : (1)343733 [20:44:42]line ИНН: 02508201610067 [20:44:42]line Контрольно-Кассовый Чек [20:44:42]line ПРОДАЖА [20:44:42]line ТРК (МРК, ГНК) : 53 [20:44:42]line Товар: 2710124130 [20:44:42]line Аи-92-К-2 [20:44:42]line 22.780 * 66.90 [20:44:42]line = 1523.98 [20:44:42]line НДС 12% НСП 1% [20:44:42]line > о реализуемом товаре [20:44:42]line ОКРУГЛЕНИЕ: -0.98 [20:44:42]line ИТОГО: 1523.00 [20:44:42]line Внесено: 2000.00 [20:44:42]line СДАЧА: 477.00 [20:44:42]line НСП 1% : 13.49 [20:44:42]line НДС 12% : 161.84 [20:44:42]line Наличными: 1523.00 [20:44:42]line Безнал.: 0.00 [20:44:42]line Место: АЗС № 78 "Партнер Нефть" [20:44:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:44:42]line СНО: Общий режим [20:44:42]line Чек 229 23.10.2024 20:44 [20:44:42]line Смена: 117 ФФД: 1.0 [20:44:42]line ЗНМ: 0300000137 [20:44:42]line РНМ: 0000000000186857 [20:44:42]line Версия ККМ: v1.0 [20:44:42]line ФМ: 0000000002094219 [20:44:42]line ФД: 31285 [20:44:42]line ФПД: 128799632865754 [20:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204448&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31285&fm=128799632865754&tin=02508201610067®Number=0000000000186857&sum=152300 [20:44:42]OFD Sender: Processing packet 31285 [packets to send 11, broken 10] [20:44:42]ProducePacketName [20:44:42]name=ofd_packets/00031285 [20:44:42]OFD Sender: To server: pG, [20:44:42]CommunicateWithHost lk.salyk.kg:30040 [20:44:42]ConnectInit lk.salyk.kg [20:44:42]written 0, free lines is 4095 [20:44:42]Connected sock=10 [20:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 33 07 01 EA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FC 58 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 EC 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 60 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 7A 00 00 35 04 06 00 75 24 80 5D 39 DA D1 33 96 86 23 5F 1C D7 [20:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3C FA 47 00 52 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 7A 00 00 F4 03 04 00 B9 0A 19 67 B6 04 01 00 00 33 81 CD 2D 82 69 A5 6E [20:44:42]CommunicateWithHost err = 0 [20:44:42]CheckOFDResponse [20:44:42]1017 (14) - 77093643461234 [20:44:42]1041 (16) - 0000000002094219 [20:44:42]1040 (4) - 31285 [20:44:42]1012 (4) - 23.10.2024 14:39 [20:44:42]1206 (1) - 0 [20:44:42]OFD Sender: Remove packet 31285 [20:44:42]ProducePacketName [20:44:42]name=ofd_packets/00031285 [20:44:42]NVStorageDeleteData [20:44:42]Write to MH i2c: 01 00 00 B0 70 20 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 B0 70 00 00 00 00 00 03 0D 37 [20:44:42]RasterBufferAndPrint [20:44:42]line [20:44:42]line [20:44:42]line [20:44:42]line [20:44:42]line [20:44:42]written 0, free lines is 3337 [20:44:43]MH_Cut [20:44:43]Write to MH i2c: D1 01 00 B7 70 01 F9 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 01 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 01 00 B7 70 00 F8 [20:44:43]Write to MH i2c: 01 00 00 B8 70 28 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]OFD Sender: No OFD packet to send [20:44:43]*** Cut start [20:44:43]*** Partial cut [20:44:43]*** CUTSNS_PIN = 1 [20:44:43]*** CUTSNS_PIN = 0 [20:44:43]*** Brake cut motor [20:44:44]Read from MH i2c: 01 [20:44:44]MH_I2C_Read... [20:44:44]*** Stop cut motor [20:44:44]*** Cut end [20:44:44]Read from MH i2c: 01 07 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 B8 70 00 00 00 00 00 FF 0F 3D [20:44:44]process_action close_receipt done [20:44:44]requested_data is exist [20:44:44]produce_requested_data [20:44:44]requested_item fm.sn is exist - process it [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 11 00 00 [20:44:44]Write to MH i2c: E2 08 00 B9 70 80 11 00 00 00 00 00 00 A3 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 B9 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [20:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:44:44]wFMCommunicate OK [20:44:44]requested_item fd.num is exist - process it [20:44:44]SAM_PROTO_GetFieldsCounters [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 13 00 00 [20:44:44]Write to MH i2c: E2 08 00 BA 70 80 13 00 00 00 00 00 00 A6 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 62 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 62 00 BA 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [20:44:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:44]wFMCommunicate OK [20:44:44]SAM_PROTO_GetFieldsCounters done [20:44:44]requested_item shift.num is exist - process it [20:44:44]requested_item shift.opened is exist - process it [20:44:44]req_shift_opened [20:44:44]FM_GetShiftState [20:44:44]SAM_PROTO_GetShiftState [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 13 01 00 [20:44:44]Write to MH i2c: E2 08 00 BB 70 80 13 01 00 00 00 00 00 A8 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 0E 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 0E 00 BB 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 62 [20:44:44]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:44:44]wFMCommunicate OK [20:44:44]SAM_PROTO_GetShiftState done [20:44:44]FM_GetShiftState done [20:44:44]req_shift_opened done [20:44:44]requested_item shift.open_date is exist - process it [20:44:44]req_shift_open_date [20:44:44]req_shift_open_date done [20:44:44]produce_requested_data done [20:44:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31285,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:44:44]process_action_free close_receipt [20:44:44]json_value_free [20:44:44]json_value_free done [20:44:44]process_json_proto returns [20:44:44]Send response to host [20:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31285,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:44:44]free response buf [20:44:44]execute_script done [20:44:44]execute_script returns [20:44:44]free content buf [20:44:44]Sock 9.Close socket [20:44:44]Sock 9.Thread stoped [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:21]accept exits with 7 [20:49:21]New connection [20:49:21]New thread 3067043172 created [20:49:21]Thread 3066899812 joined [20:49:21]Waiting for new connection... [20:49:21] Sock 7.Parse request [20:49:21]Sock 7.Check first char [20:49:21]Sock 7.First char is OK [20:49:21]request: POST /json_proto HTTP/1.0 [20:49:21]Method: POST [20:49:21]URL: /json_proto [20:49:21]Method is POST - this is cgi request [20:49:21]url: /json_proto [20:49:21]query_string will be loaded in cgi processing [20:49:21]execute_cgi json_proto POST (null) [20:49:21]execute_cgi path=json_proto method=POST [20:49:21]POST find Content-Length [20:49:21]Host: 172.17.51.3:8080 [20:49:21]Content-Length: 792 [20:49:21]Content-Type: application/json [20:49:21] [20:49:21]POST finish read [20:49:21]Found Content-Length = 792 [20:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31441", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:21]execute_script... [20:49:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31441", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:21]POST & json_proto [20:49:21]process_json_proto [20:49:21]json parsed OK: [20:49:21]protocol is kg_v1.0 [20:49:21]action value=close_receipt [20:49:21]process_action close_receipt [20:49:21]cmd_close_receipt [20:49:21]MH_GetDate [20:49:21]Write to MH i2c: F0 00 00 BC 70 1B [20:49:21]Write i2c OK [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: F0 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: F0 09 00 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: F0 09 00 BC 70 00 59 61 19 67 04 C1 95 66 1E [20:49:21]GetLastDocTimeStamp 1729716288 [20:49:21]current date 1729716569 [20:49:21]FM_GetShiftState [20:49:21]SAM_PROTO_GetShiftState [20:49:21]wFMCommunicate request_size=4 [20:49:21]MH_SAM_APDU [20:49:21]CAPDU: 80 13 01 00 [20:49:21]Write to MH i2c: E2 08 00 BD 70 80 13 01 00 00 00 00 00 AA [20:49:21]Write i2c OK [20:49:21]MH_I2C_Read... [20:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:21]Read from MH i2c: E2 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: E2 0E 00 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: E2 0E 00 BD 70 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 64 [20:49:21]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:49:21]wFMCommunicate OK [20:49:21]SAM_PROTO_GetShiftState done [20:49:21]FM_GetShiftState done [20:49:21]opened in 1729643755 [20:49:21]opened+sec_in_day 1729730155 [20:49:21]quantity*price = 0 [20:49:21]sum+1 = 1 [20:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 230 23.10.2024 20:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31441 ФМ: 0000000002094219 ФД: 31286 ФПД: 74035383197816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204929&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31286&fm=74035383197816&tin=02508201610067®Number=0000000000186857&sum=0 [20:49:22]StoreToDocumentArchive [20:49:22]shift 117 fd 31286 [20:49:22]save to /storage/0117/doc_00031286 [20:49:22]save last doc name /storage/0117/doc_00031286 to /storage/kkm_last_doc_name [20:49:22]save OK [20:49:22]Clear old archive folders... [20:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:22]tlvbuf is 00D048D0 [20:49:22]SAM_PROTO_ClearQueue [20:49:22]wFMCommunicate request_size=4 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 09 00 00 [20:49:22]Write to MH i2c: E2 08 00 CA 70 80 09 00 00 00 00 00 00 AC [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 CA 70 00 90 00 AE [20:49:22]RAPDU: 90 00 [20:49:22]wFMCommunicate OK [20:49:22]SAM_PROTO_ClearQueue done [20:49:22]KKMCreateOFDPacket [20:49:22]OFDProtocolAddRootSTLVToBuf [20:49:22]FM_MakeSignedData [20:49:22]FM_MakeSignedData [20:49:22]SAM_PROTO_SignData [20:49:22]wFMCommunicate request_size=4 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 0D 01 02 [20:49:22]Write to MH i2c: E2 08 00 CB 70 80 0D 01 02 00 00 00 00 B4 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 CB 70 00 90 00 AF [20:49:22]RAPDU: 90 00 [20:49:22]wFMCommunicate OK [20:49:22]wFMCommunicate request_size=255 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 59 61 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 7A 00 00 35 04 06 00 43 [20:49:22]Write to MH i2c: E2 02 01 CC 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 59 61 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 7A 00 00 35 04 06 00 43 00 00 06 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 CC 70 00 90 00 B0 [20:49:22]RAPDU: 90 00 [20:49:22]wFMCommunicate OK [20:49:22]wFMCommunicate request_size=10 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 0D 02 02 05 55 B4 B7 60 78 [20:49:22]Write to MH i2c: E2 0D 00 CD 70 80 0D 02 02 05 00 55 B4 B7 60 78 00 00 59 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 03 00 CD 70 00 90 00 B1 [20:49:22]RAPDU: 90 00 [20:49:22]wFMCommunicate OK [20:49:22]wFMCommunicate request_size=4 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 0D 03 02 [20:49:22]Write to MH i2c: E2 08 00 CE 70 80 0D 03 02 00 00 00 00 B9 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 0B 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 0B 00 CE 70 00 26 9C 1D 34 7D B5 4D 29 90 00 75 [20:49:22]RAPDU: 26 9C 1D 34 7D B5 4D 29 90 00 [20:49:22]wFMCommunicate OK [20:49:22]SAM_PROTO_SignData done [20:49:22]FM_MakeSignedData done [20:49:22]CreateOFDProtocolMessage [20:49:22]wFMCommunicate request_size=4 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 11 00 00 [20:49:22]Write to MH i2c: E2 08 00 CF 70 80 11 00 00 00 00 00 00 B9 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:22]Read from MH i2c: E2 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 17 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: E2 17 00 CF 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [20:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:49:22]wFMCommunicate OK [20:49:22]CreateOFDProtocolMessage done [20:49:22]OFDSenderStorePacket 31286 [20:49:22]StoreOFDPacket docnum=31286 [20:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 6E 07 01 9C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 59 61 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 7A 00 00 35 04 06 00 43 55 B4 B7 60 78 26 9C 1D 34 7D B5 4D 29 [20:49:22]CheckFolder [20:49:22]dirname=/storage/ofd_packets [20:49:22]CheckFolder done [20:49:22]ProducePacketName [20:49:22]name=ofd_packets/00031286 [20:49:22]NVStorageSaveData ofd_packets/00031286 [20:49:22]File name is /storage/ofd_packets/00031286 [20:49:22]Write 301 bytes [20:49:22]NVStorageSaveData done [20:49:22]OFDSenderStorePacket done [20:49:22]KKMCreateOFDPacket done [20:49:22]NVStorageSaveData kkm_last_timestamp [20:49:22]File name is /storage/kkm_last_timestamp [20:49:22]Write 4 bytes [20:49:22]NVStorageSaveData done [20:49:22]ExternCall_PrintAddStr [20:49:22]wPrintStart [20:49:22]Write to MH i2c: 01 00 00 D0 70 40 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 07 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 07 00 D0 70 00 00 00 00 00 FF 0F 55 [20:49:22]RasterBufferAndPrint [20:49:22]line Счет N : (1)343734 [20:49:22]line ИНН: 02508201610067 [20:49:22]line Контрольно-Кассовый Чек [20:49:22]line ПРОДАЖА [20:49:22]line ТРК (МРК, ГНК) : 62 [20:49:22]line Товар: 2710124500 [20:49:22]line Аи-95-К-3 [20:49:22]line 80.000 * 0.00 [20:49:22]line = 0.00 [20:49:22]line НДС 12% НСП 1% [20:49:22]line > о реализуемом товаре [20:49:22]line ИТОГО: 0.00 [20:49:22]line НСП 1% : 0.00 [20:49:22]line НДС 12% : 0.00 [20:49:22]line Наличными: 0.00 [20:49:22]line Безнал.: 0.00 [20:49:22]line Место: АЗС № 78 "Партнер Нефть" [20:49:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:49:22]line СНО: Общий режим [20:49:22]line Чек 230 23.10.2024 20:49 [20:49:22]line Смена: 117 ФФД: 1.0 [20:49:22]line ЗНМ: 0300000137 [20:49:22]line РНМ: 0000000000186857 [20:49:22]line Версия ККМ: v1.0 [20:49:22]line Талоны: Топливная Карта [20:49:22]line 31441 [20:49:22]line ФМ: 0000000002094219 [20:49:22]line ФД: 31286 [20:49:22]line ФПД: 74035383197816 [20:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204929&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31286&fm=74035383197816&tin=02508201610067®Number=0000000000186857&sum=0 [20:49:23]OFD Sender: Processing packet 31286 [packets to send 11, broken 10] [20:49:23]ProducePacketName [20:49:23]name=ofd_packets/00031286 [20:49:23]OFD Sender: To server: pG, [20:49:23]CommunicateWithHost lk.salyk.kg:30040 [20:49:23]ConnectInit lk.salyk.kg [20:49:23]written 0, free lines is 4095 [20:49:23]Connected sock=10 [20:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B3 6E 07 01 9C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 59 61 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 7A 00 00 35 04 06 00 43 55 B4 B7 60 78 26 9C 1D 34 7D B5 4D 29 [20:49:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5C 87 47 00 5B 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 32 30 39 34 32 31 39 10 04 04 00 36 7A 00 00 F4 03 04 00 D2 0B 19 67 B6 04 01 00 00 E1 4C 82 13 BB 54 A0 D2 [20:49:23]CommunicateWithHost err = 0 [20:49:23]CheckOFDResponse [20:49:23]1017 (14) - 77093643461234 [20:49:23]1041 (16) - 0000000002094219 [20:49:23]1040 (4) - 31286 [20:49:23]1012 (4) - 23.10.2024 14:44 [20:49:23]1206 (1) - 0 [20:49:23]OFD Sender: Remove packet 31286 [20:49:23]ProducePacketName [20:49:23]name=ofd_packets/00031286 [20:49:23]NVStorageDeleteData [20:49:23]Write to MH i2c: 01 00 00 FA 70 6A [20:49:23]Write i2c OK [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: 01 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: 01 07 00 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: 01 07 00 FA 70 00 00 00 00 00 FE 0C 7B [20:49:23]RasterBufferAndPrint [20:49:23]line [20:49:23]line [20:49:23]line [20:49:23]line [20:49:23]line [20:49:23]written 0, free lines is 3332 [20:49:23]MH_Cut [20:49:23]Write to MH i2c: D1 01 00 01 71 01 44 [20:49:23]Write i2c OK [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: D1 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: D1 01 00 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: D1 01 00 01 71 00 43 [20:49:23]Write to MH i2c: 01 00 00 02 71 73 [20:49:23]Write i2c OK [20:49:23]MH_I2C_Read... [20:49:24]OFD Sender: No OFD packet to send [20:49:24]*** Cut start [20:49:24]*** Partial cut [20:49:24]*** CUTSNS_PIN = 1 [20:49:24]*** CUTSNS_PIN = 0 [20:49:24]*** Brake cut motor [20:49:24]Read from MH i2c: 01 [20:49:24]MH_I2C_Read... [20:49:24]*** Stop cut motor [20:49:24]*** Cut end [20:49:24]Read from MH i2c: 01 07 00 [20:49:24]MH_I2C_Read... [20:49:24]Read from MH i2c: 01 07 00 02 71 00 00 00 00 00 FF 0F 88 [20:49:24]process_action close_receipt done [20:49:24]requested_data is exist [20:49:24]produce_requested_data [20:49:24]requested_item fm.sn is exist - process it [20:49:24]wFMCommunicate request_size=4 [20:49:24]MH_SAM_APDU [20:49:24]CAPDU: 80 11 00 00 [20:49:24]Write to MH i2c: E2 08 00 03 71 80 11 00 00 00 00 00 00 EE [20:49:24]Write i2c OK [20:49:24]MH_I2C_Read... [20:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:25]Read from MH i2c: E2 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 17 00 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 17 00 03 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [20:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:49:25]wFMCommunicate OK [20:49:25]requested_item fd.num is exist - process it [20:49:25]SAM_PROTO_GetFieldsCounters [20:49:25]wFMCommunicate request_size=4 [20:49:25]MH_SAM_APDU [20:49:25]CAPDU: 80 13 00 00 [20:49:25]Write to MH i2c: E2 08 00 04 71 80 13 00 00 00 00 00 00 F1 [20:49:25]Write i2c OK [20:49:25]MH_I2C_Read... [20:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:25]Read from MH i2c: E2 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 62 00 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 62 00 04 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:25]wFMCommunicate OK [20:49:25]SAM_PROTO_GetFieldsCounters done [20:49:25]requested_item shift.num is exist - process it [20:49:25]requested_item shift.opened is exist - process it [20:49:25]req_shift_opened [20:49:25]FM_GetShiftState [20:49:25]SAM_PROTO_GetShiftState [20:49:25]wFMCommunicate request_size=4 [20:49:25]MH_SAM_APDU [20:49:25]CAPDU: 80 13 01 00 [20:49:25]Write to MH i2c: E2 08 00 05 71 80 13 01 00 00 00 00 00 F3 [20:49:25]Write i2c OK [20:49:25]MH_I2C_Read... [20:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:25]Read from MH i2c: E2 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 0E 00 [20:49:25]MH_I2C_Read... [20:49:25]Read from MH i2c: E2 0E 00 05 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AD [20:49:25]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:49:25]wFMCommunicate OK [20:49:25]SAM_PROTO_GetShiftState done [20:49:25]FM_GetShiftState done [20:49:25]req_shift_opened done [20:49:25]requested_item shift.open_date is exist - process it [20:49:25]req_shift_open_date [20:49:25]req_shift_open_date done [20:49:25]produce_requested_data done [20:49:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31286,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:49:25]process_action_free close_receipt [20:49:25]json_value_free [20:49:25]json_value_free done [20:49:25]process_json_proto returns [20:49:25]Send response to host [20:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31286,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:49:25]free response buf [20:49:25]execute_script done [20:49:25]execute_script returns [20:49:25]free content buf [20:49:25]Sock 7.Close socket [20:49:25]Sock 7.Thread stoped [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:00]accept exits with 9 [20:53:00]New connection [20:53:00]New thread 3066899812 created [20:53:00]Thread 3067043172 joined [20:53:00]Waiting for new connection... [20:53:00] Sock 9.Parse request [20:53:00]Sock 9.Check first char [20:53:00]Sock 9.First char is OK [20:53:00]request: POST /json_proto HTTP/1.0 [20:53:00]Method: POST [20:53:00]URL: /json_proto [20:53:00]Method is POST - this is cgi request [20:53:00]url: /json_proto [20:53:00]query_string will be loaded in cgi processing [20:53:00]execute_cgi json_proto POST (null) [20:53:00]execute_cgi path=json_proto method=POST [20:53:00]POST find Content-Length [20:53:00]Host: 172.17.51.3:8080 [20:53:00]Content-Length: 683 [20:53:00]Content-Type: application/json [20:53:00] [20:53:00]POST finish read [20:53:00]Found Content-Length = 683 [20:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:00]execute_script... [20:53:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:00]POST & json_proto [20:53:00]process_json_proto [20:53:00]json parsed OK: [20:53:00]protocol is kg_v1.0 [20:53:00]action value=close_receipt [20:53:00]process_action close_receipt [20:53:00]cmd_close_receipt [20:53:00]MH_GetDate [20:53:00]Write to MH i2c: F0 00 00 06 71 66 [20:53:00]Write i2c OK [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: F0 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: F0 09 00 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: F0 09 00 06 71 00 34 62 19 67 04 C1 95 66 45 [20:53:00]GetLastDocTimeStamp 1729716569 [20:53:00]current date 1729716788 [20:53:00]FM_GetShiftState [20:53:00]SAM_PROTO_GetShiftState [20:53:00]wFMCommunicate request_size=4 [20:53:00]MH_SAM_APDU [20:53:00]CAPDU: 80 13 01 00 [20:53:00]Write to MH i2c: E2 08 00 07 71 80 13 01 00 00 00 00 00 F5 [20:53:00]Write i2c OK [20:53:00]MH_I2C_Read... [20:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:00]Read from MH i2c: E2 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: E2 0E 00 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: E2 0E 00 07 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 AF [20:53:00]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:53:00]wFMCommunicate OK [20:53:00]SAM_PROTO_GetShiftState done [20:53:00]FM_GetShiftState done [20:53:00]opened in 1729643755 [20:53:00]opened+sec_in_day 1729730155 [20:53:00]quantity*price = 40066 [20:53:00]sum+1 = 40068 [20:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 231 23.10.2024 20:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31287 ФПД: 252144889862364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205308&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31287&fm=252144889862364&tin=02508201610067®Number=0000000000186857&sum=40000 [20:53:01]StoreToDocumentArchive [20:53:01]shift 117 fd 31287 [20:53:01]save to /storage/0117/doc_00031287 [20:53:01]save last doc name /storage/0117/doc_00031287 to /storage/kkm_last_doc_name [20:53:01]save OK [20:53:01]Clear old archive folders... [20:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:53:01]tlvbuf is 00DCAB40 [20:53:01]SAM_PROTO_ClearQueue [20:53:01]wFMCommunicate request_size=4 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 09 00 00 [20:53:01]Write to MH i2c: E2 08 00 14 71 80 09 00 00 00 00 00 00 F7 [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:01]Read from MH i2c: E2 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 03 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 03 00 14 71 00 90 00 F9 [20:53:01]RAPDU: 90 00 [20:53:01]wFMCommunicate OK [20:53:01]SAM_PROTO_ClearQueue done [20:53:01]KKMCreateOFDPacket [20:53:01]OFDProtocolAddRootSTLVToBuf [20:53:01]FM_MakeSignedData [20:53:01]FM_MakeSignedData [20:53:01]SAM_PROTO_SignData [20:53:01]wFMCommunicate request_size=4 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 0D 01 02 [20:53:01]Write to MH i2c: E2 08 00 15 71 80 0D 01 02 00 00 00 00 FF [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:01]Read from MH i2c: E2 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 03 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 03 00 15 71 00 90 00 FA [20:53:01]RAPDU: 90 00 [20:53:01]wFMCommunicate OK [20:53:01]wFMCommunicate request_size=255 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 34 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 7A 00 [20:53:01]Write to MH i2c: E2 02 01 16 71 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 34 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 7A 00 00 00 24 [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:02]Read from MH i2c: E2 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 03 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 03 00 16 71 00 90 00 FB [20:53:02]RAPDU: 90 00 [20:53:02]wFMCommunicate OK [20:53:02]wFMCommunicate request_size=16 [20:53:02]MH_SAM_APDU [20:53:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 53 0E 97 98 DC [20:53:02]Write to MH i2c: E2 13 00 17 71 80 0D 02 02 0B 00 00 35 04 06 00 E5 53 0E 97 98 DC 00 00 A8 [20:53:02]Write i2c OK [20:53:02]MH_I2C_Read... [20:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:02]Read from MH i2c: E2 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 03 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 03 00 17 71 00 90 00 FC [20:53:02]RAPDU: 90 00 [20:53:02]wFMCommunicate OK [20:53:02]wFMCommunicate request_size=4 [20:53:02]MH_SAM_APDU [20:53:02]CAPDU: 80 0D 03 02 [20:53:02]Write to MH i2c: E2 08 00 18 71 80 0D 03 02 00 00 00 00 04 [20:53:02]Write i2c OK [20:53:02]MH_I2C_Read... [20:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:02]Read from MH i2c: E2 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 0B 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 0B 00 18 71 00 6A 41 BD 3E 3D E0 C0 F5 90 00 7D [20:53:02]RAPDU: 6A 41 BD 3E 3D E0 C0 F5 90 00 [20:53:02]wFMCommunicate OK [20:53:02]SAM_PROTO_SignData done [20:53:02]FM_MakeSignedData done [20:53:02]CreateOFDProtocolMessage [20:53:02]wFMCommunicate request_size=4 [20:53:02]MH_SAM_APDU [20:53:02]CAPDU: 80 11 00 00 [20:53:02]Write to MH i2c: E2 08 00 19 71 80 11 00 00 00 00 00 00 04 [20:53:02]Write i2c OK [20:53:02]MH_I2C_Read... [20:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:02]Read from MH i2c: E2 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 17 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: E2 17 00 19 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [20:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:53:02]wFMCommunicate OK [20:53:02]CreateOFDProtocolMessage done [20:53:02]OFDSenderStorePacket 31287 [20:53:02]StoreOFDPacket docnum=31287 [20:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8A 22 0D 01 2C B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 34 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 7A 00 00 35 04 06 00 E5 53 0E 97 98 DC 6A 41 BD 3E 3D E0 C0 F5 [20:53:02]CheckFolder [20:53:02]dirname=/storage/ofd_packets [20:53:02]CheckFolder done [20:53:02]ProducePacketName [20:53:02]name=ofd_packets/00031287 [20:53:02]NVStorageSaveData ofd_packets/00031287 [20:53:02]File name is /storage/ofd_packets/00031287 [20:53:02]Write 307 bytes [20:53:02]NVStorageSaveData done [20:53:02]OFDSenderStorePacket done [20:53:02]KKMCreateOFDPacket done [20:53:02]NVStorageSaveData kkm_last_timestamp [20:53:02]File name is /storage/kkm_last_timestamp [20:53:02]Write 4 bytes [20:53:02]NVStorageSaveData done [20:53:02]ExternCall_PrintAddStr [20:53:02]wPrintStart [20:53:02]Write to MH i2c: 01 00 00 1A 71 8B [20:53:02]Write i2c OK [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 07 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 07 00 1A 71 00 00 00 00 00 FF 0F A0 [20:53:02]RasterBufferAndPrint [20:53:02]line Счет N : (1)343735 [20:53:02]line ИНН: 02508201610067 [20:53:02]line Контрольно-Кассовый Чек [20:53:02]line ПРОДАЖА [20:53:02]line ТРК (МРК, ГНК) : 61 [20:53:02]line Товар: 2710194210 [20:53:02]line D-ENERGY Дт-К-2 [20:53:02]line 5.190 * 77.20 [20:53:02]line = 400.67 [20:53:02]line НДС 12% НСП 1% [20:53:02]line > о реализуемом товаре [20:53:02]line ОКРУГЛЕНИЕ: -0.67 [20:53:02]line ИТОГО: 400.00 [20:53:02]line Внесено: 400.00 [20:53:02]line СДАЧА: 0.00 [20:53:02]line НСП 1% : 3.55 [20:53:02]line НДС 12% : 42.55 [20:53:02]line Наличными: 400.00 [20:53:02]line Безнал.: 0.00 [20:53:02]line Место: АЗС № 78 "Партнер Нефть" [20:53:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:53:02]line СНО: Общий режим [20:53:02]line Чек 231 23.10.2024 20:53 [20:53:02]line Смена: 117 ФФД: 1.0 [20:53:02]line ЗНМ: 0300000137 [20:53:02]line РНМ: 0000000000186857 [20:53:02]line Версия ККМ: v1.0 [20:53:02]line ФМ: 0000000002094219 [20:53:02]line ФД: 31287 [20:53:02]line ФПД: 252144889862364 [20:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205308&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31287&fm=252144889862364&tin=02508201610067®Number=0000000000186857&sum=40000 [20:53:02]OFD Sender: Processing packet 31287 [packets to send 11, broken 10] [20:53:02]ProducePacketName [20:53:02]name=ofd_packets/00031287 [20:53:02]OFD Sender: To server: pG, [20:53:02]CommunicateWithHost lk.salyk.kg:30040 [20:53:02]ConnectInit lk.salyk.kg [20:53:02]written 0, free lines is 4095 [20:53:02]Connected sock=10 [20:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8A 22 0D 01 2C B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 34 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 7A 00 00 35 04 06 00 E5 53 0E 97 98 DC 6A 41 BD 3E 3D E0 C0 F5 [20:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 E6 47 00 ED 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 7A 00 00 F4 03 04 00 AE 0C 19 67 B6 04 01 00 00 1B AA 2A 1B 58 B2 82 A4 [20:53:02]CommunicateWithHost err = 0 [20:53:02]CheckOFDResponse [20:53:02]1017 (14) - 77093643461234 [20:53:02]1041 (16) - 0000000002094219 [20:53:02]1040 (4) - 31287 [20:53:02]1012 (4) - 23.10.2024 14:48 [20:53:02]1206 (1) - 0 [20:53:02]OFD Sender: Remove packet 31287 [20:53:02]ProducePacketName [20:53:02]name=ofd_packets/00031287 [20:53:02]NVStorageDeleteData [20:53:03]Write to MH i2c: 01 00 00 45 71 B6 [20:53:03]Write i2c OK [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: 01 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: 01 07 00 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: 01 07 00 45 71 00 00 00 00 00 E4 0C AD [20:53:03]RasterBufferAndPrint [20:53:03]line [20:53:03]line [20:53:03]line [20:53:03]line [20:53:03]line [20:53:03]written 0, free lines is 3306 [20:53:03]MH_Cut [20:53:03]Write to MH i2c: D1 01 00 4C 71 01 8F [20:53:03]Write i2c OK [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: D1 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: D1 01 00 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: D1 01 00 4C 71 00 8E [20:53:03]Write to MH i2c: 01 00 00 4D 71 BE [20:53:03]Write i2c OK [20:53:03]MH_I2C_Read... [20:53:03]OFD Sender: No OFD packet to send [20:53:03]*** Cut start [20:53:03]*** Partial cut [20:53:03]*** CUTSNS_PIN = 1 [20:53:03]*** CUTSNS_PIN = 0 [20:53:04]*** Brake cut motor [20:53:04]Read from MH i2c: 01 [20:53:04]MH_I2C_Read... [20:53:04]*** Stop cut motor [20:53:04]*** Cut end [20:53:04]Read from MH i2c: 01 07 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: 01 07 00 4D 71 00 00 00 00 00 FF 0F D3 [20:53:04]process_action close_receipt done [20:53:04]requested_data is exist [20:53:04]produce_requested_data [20:53:04]requested_item fm.sn is exist - process it [20:53:04]wFMCommunicate request_size=4 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 11 00 00 [20:53:04]Write to MH i2c: E2 08 00 4E 71 80 11 00 00 00 00 00 00 39 [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:04]Read from MH i2c: E2 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 17 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 17 00 4E 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [20:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:53:04]wFMCommunicate OK [20:53:04]requested_item fd.num is exist - process it [20:53:04]SAM_PROTO_GetFieldsCounters [20:53:04]wFMCommunicate request_size=4 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 13 00 00 [20:53:04]Write to MH i2c: E2 08 00 4F 71 80 13 00 00 00 00 00 00 3C [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:04]Read from MH i2c: E2 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 62 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 62 00 4F 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [20:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:04]wFMCommunicate OK [20:53:04]SAM_PROTO_GetFieldsCounters done [20:53:04]requested_item shift.num is exist - process it [20:53:04]requested_item shift.opened is exist - process it [20:53:04]req_shift_opened [20:53:04]FM_GetShiftState [20:53:04]SAM_PROTO_GetShiftState [20:53:04]wFMCommunicate request_size=4 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 13 01 00 [20:53:04]Write to MH i2c: E2 08 00 50 71 80 13 01 00 00 00 00 00 3E [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:04]Read from MH i2c: E2 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 0E 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 0E 00 50 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 F8 [20:53:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:53:04]wFMCommunicate OK [20:53:04]SAM_PROTO_GetShiftState done [20:53:04]FM_GetShiftState done [20:53:04]req_shift_opened done [20:53:04]requested_item shift.open_date is exist - process it [20:53:04]req_shift_open_date [20:53:04]req_shift_open_date done [20:53:04]produce_requested_data done [20:53:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31287,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:53:04]process_action_free close_receipt [20:53:04]json_value_free [20:53:04]json_value_free done [20:53:04]process_json_proto returns [20:53:04]Send response to host [20:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31287,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:53:04]free response buf [20:53:04]execute_script done [20:53:04]execute_script returns [20:53:04]free content buf [20:53:04]Sock 9.Close socket [20:53:04]Sock 9.Thread stoped [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:15]accept exits with 7 [20:55:15]New connection [20:55:15]New thread 3067043172 created [20:55:15]Thread 3066899812 joined [20:55:15]Waiting for new connection... [20:55:15] Sock 7.Parse request [20:55:15]Sock 7.Check first char [20:55:15]Sock 7.First char is OK [20:55:15]request: POST /json_proto HTTP/1.0 [20:55:15]Method: POST [20:55:15]URL: /json_proto [20:55:15]Method is POST - this is cgi request [20:55:15]url: /json_proto [20:55:15]query_string will be loaded in cgi processing [20:55:15]execute_cgi json_proto POST (null) [20:55:15]execute_cgi path=json_proto method=POST [20:55:15]POST find Content-Length [20:55:15]Host: 172.17.51.3:8080 [20:55:15]Content-Length: 677 [20:55:15]Content-Type: application/json [20:55:15] [20:55:15]POST finish read [20:55:15]Found Content-Length = 677 [20:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:15]execute_script... [20:55:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:15]POST & json_proto [20:55:15]process_json_proto [20:55:15]json parsed OK: [20:55:15]protocol is kg_v1.0 [20:55:15]action value=close_receipt [20:55:15]process_action close_receipt [20:55:15]cmd_close_receipt [20:55:15]MH_GetDate [20:55:15]Write to MH i2c: F0 00 00 51 71 B1 [20:55:15]Write i2c OK [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: F0 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: F0 09 00 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: F0 09 00 51 71 00 BC 62 19 67 04 C1 95 66 18 [20:55:15]GetLastDocTimeStamp 1729716788 [20:55:15]current date 1729716924 [20:55:15]FM_GetShiftState [20:55:15]SAM_PROTO_GetShiftState [20:55:15]wFMCommunicate request_size=4 [20:55:15]MH_SAM_APDU [20:55:15]CAPDU: 80 13 01 00 [20:55:15]Write to MH i2c: E2 08 00 52 71 80 13 01 00 00 00 00 00 40 [20:55:15]Write i2c OK [20:55:15]MH_I2C_Read... [20:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:15]Read from MH i2c: E2 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: E2 0E 00 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: E2 0E 00 52 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 FA [20:55:15]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:55:15]wFMCommunicate OK [20:55:15]SAM_PROTO_GetShiftState done [20:55:15]FM_GetShiftState done [20:55:15]opened in 1729643755 [20:55:15]opened+sec_in_day 1729730155 [20:55:15]quantity*price = 40006 [20:55:15]sum+1 = 40007 [20:55:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 232 23.10.2024 20:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31288 ФПД: 223415939885594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205524&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31288&fm=223415939885594&tin=02508201610067®Number=0000000000186857&sum=40000 [20:55:17]StoreToDocumentArchive [20:55:17]shift 117 fd 31288 [20:55:17]save to /storage/0117/doc_00031288 [20:55:17]save last doc name /storage/0117/doc_00031288 to /storage/kkm_last_doc_name [20:55:17]save OK [20:55:17]Clear old archive folders... [20:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:17]tlvbuf is 00E84F10 [20:55:17]SAM_PROTO_ClearQueue [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 09 00 00 [20:55:17]Write to MH i2c: E2 08 00 5F 71 80 09 00 00 00 00 00 00 42 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 5F 71 00 90 00 44 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]SAM_PROTO_ClearQueue done [20:55:17]KKMCreateOFDPacket [20:55:17]OFDProtocolAddRootSTLVToBuf [20:55:17]FM_MakeSignedData [20:55:17]FM_MakeSignedData [20:55:17]SAM_PROTO_SignData [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 01 02 [20:55:17]Write to MH i2c: E2 08 00 60 71 80 0D 01 02 00 00 00 00 4A [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 60 71 00 90 00 45 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=255 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 BC 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 7A 00 00 35 04 06 00 CB [20:55:17]Write to MH i2c: E2 02 01 61 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 BC 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 7A 00 00 35 04 06 00 CB 00 00 22 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 61 71 00 90 00 46 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=10 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 02 02 05 32 13 BB EA 1A [20:55:17]Write to MH i2c: E2 0D 00 62 71 80 0D 02 02 05 00 32 13 BB EA 1A 00 00 5B [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 62 71 00 90 00 47 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 03 02 [20:55:17]Write to MH i2c: E2 08 00 63 71 80 0D 03 02 00 00 00 00 4F [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 0B 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 0B 00 63 71 00 71 40 34 60 BA AD 4C E6 90 00 2E [20:55:17]RAPDU: 71 40 34 60 BA AD 4C E6 90 00 [20:55:17]wFMCommunicate OK [20:55:17]SAM_PROTO_SignData done [20:55:17]FM_MakeSignedData done [20:55:17]CreateOFDProtocolMessage [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 11 00 00 [20:55:17]Write to MH i2c: E2 08 00 64 71 80 11 00 00 00 00 00 00 4F [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 17 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 17 00 64 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [20:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:55:17]wFMCommunicate OK [20:55:17]CreateOFDProtocolMessage done [20:55:17]OFDSenderStorePacket 31288 [20:55:17]StoreOFDPacket docnum=31288 [20:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 2A 07 01 4C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 BC 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 7A 00 00 35 04 06 00 CB 32 13 BB EA 1A 71 40 34 60 BA AD 4C E6 [20:55:17]CheckFolder [20:55:17]dirname=/storage/ofd_packets [20:55:17]CheckFolder done [20:55:17]ProducePacketName [20:55:17]name=ofd_packets/00031288 [20:55:17]NVStorageSaveData ofd_packets/00031288 [20:55:17]File name is /storage/ofd_packets/00031288 [20:55:17]Write 301 bytes [20:55:17]NVStorageSaveData done [20:55:17]OFDSenderStorePacket done [20:55:17]KKMCreateOFDPacket done [20:55:17]NVStorageSaveData kkm_last_timestamp [20:55:17]File name is /storage/kkm_last_timestamp [20:55:17]Write 4 bytes [20:55:17]NVStorageSaveData done [20:55:17]ExternCall_PrintAddStr [20:55:17]wPrintStart [20:55:17]Write to MH i2c: 01 00 00 65 71 D6 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 07 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 07 00 65 71 00 00 00 00 00 FF 0F EB [20:55:17]RasterBufferAndPrint [20:55:17]line Счет N : (1)343736 [20:55:17]line ИНН: 02508201610067 [20:55:17]line Контрольно-Кассовый Чек [20:55:17]line ПРОДАЖА [20:55:17]line ТРК (МРК, ГНК) : 63 [20:55:17]line Товар: 2710124130 [20:55:17]line Аи-92-К-2 [20:55:17]line 5.980 * 66.90 [20:55:17]line = 400.06 [20:55:17]line НДС 12% НСП 1% [20:55:17]line > о реализуемом товаре [20:55:17]line ОКРУГЛЕНИЕ: -0.06 [20:55:17]line ИТОГО: 400.00 [20:55:17]line Внесено: 400.00 [20:55:17]line СДАЧА: 0.00 [20:55:17]line НСП 1% : 3.54 [20:55:17]line НДС 12% : 42.48 [20:55:17]line Наличными: 400.00 [20:55:17]line Безнал.: 0.00 [20:55:17]line Место: АЗС № 78 "Партнер Нефть" [20:55:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:55:17]line СНО: Общий режим [20:55:17]line Чек 232 23.10.2024 20:55 [20:55:17]line Смена: 117 ФФД: 1.0 [20:55:17]line ЗНМ: 0300000137 [20:55:17]line РНМ: 0000000000186857 [20:55:17]line Версия ККМ: v1.0 [20:55:17]line ФМ: 0000000002094219 [20:55:17]line ФД: 31288 [20:55:17]line ФПД: 223415939885594 [20:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205524&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31288&fm=223415939885594&tin=02508201610067®Number=0000000000186857&sum=40000 [20:55:17]OFD Sender: Processing packet 31288 [packets to send 11, broken 10] [20:55:17]ProducePacketName [20:55:17]name=ofd_packets/00031288 [20:55:17]OFD Sender: To server: pG, [20:55:17]CommunicateWithHost lk.salyk.kg:30040 [20:55:17]ConnectInit lk.salyk.kg [20:55:17]written 0, free lines is 4095 [20:55:18]Connected sock=10 [20:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EF 2A 07 01 4C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 BC 62 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 7A 00 00 35 04 06 00 CB 32 13 BB EA 1A 71 40 34 60 BA AD 4C E6 [20:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B5 3E 47 00 9C 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 7A 00 00 F4 03 04 00 35 0D 19 67 B6 04 01 00 00 04 FD 42 D8 32 F9 64 87 [20:55:18]CommunicateWithHost err = 0 [20:55:18]CheckOFDResponse [20:55:18]1017 (14) - 77093643461234 [20:55:18]1041 (16) - 0000000002094219 [20:55:18]1040 (4) - 31288 [20:55:18]1012 (4) - 23.10.2024 14:50 [20:55:18]1206 (1) - 0 [20:55:18]OFD Sender: Remove packet 31288 [20:55:18]ProducePacketName [20:55:18]name=ofd_packets/00031288 [20:55:18]NVStorageDeleteData [20:55:18]Write to MH i2c: 01 00 00 90 71 01 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 90 71 00 00 00 00 00 F5 0C 09 [20:55:18]RasterBufferAndPrint [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]written 0, free lines is 3327 [20:55:18]MH_Cut [20:55:18]Write to MH i2c: D1 01 00 97 71 01 DA [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 01 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 01 00 97 71 00 D9 [20:55:18]Write to MH i2c: 01 00 00 98 71 09 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]OFD Sender: No OFD packet to send [20:55:19]*** Cut start [20:55:19]*** Partial cut [20:55:19]*** CUTSNS_PIN = 1 [20:55:19]*** CUTSNS_PIN = 0 [20:55:19]*** Brake cut motor [20:55:19]Read from MH i2c: 01 [20:55:19]MH_I2C_Read... [20:55:19]*** Stop cut motor [20:55:19]*** Cut end [20:55:19]Read from MH i2c: 01 07 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 98 71 00 00 00 00 00 FF 0F 1E [20:55:19]process_action close_receipt done [20:55:19]requested_data is exist [20:55:19]produce_requested_data [20:55:19]requested_item fm.sn is exist - process it [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 11 00 00 [20:55:19]Write to MH i2c: E2 08 00 99 71 80 11 00 00 00 00 00 00 84 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:19]Read from MH i2c: E2 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 17 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 17 00 99 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [20:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:55:19]wFMCommunicate OK [20:55:19]requested_item fd.num is exist - process it [20:55:19]SAM_PROTO_GetFieldsCounters [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 13 00 00 [20:55:19]Write to MH i2c: E2 08 00 9A 71 80 13 00 00 00 00 00 00 87 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:19]Read from MH i2c: E2 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 62 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 62 00 9A 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [20:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:19]wFMCommunicate OK [20:55:19]SAM_PROTO_GetFieldsCounters done [20:55:19]requested_item shift.num is exist - process it [20:55:19]requested_item shift.opened is exist - process it [20:55:19]req_shift_opened [20:55:19]FM_GetShiftState [20:55:19]SAM_PROTO_GetShiftState [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 13 01 00 [20:55:19]Write to MH i2c: E2 08 00 9B 71 80 13 01 00 00 00 00 00 89 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:19]Read from MH i2c: E2 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 0E 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 0E 00 9B 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 43 [20:55:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:55:19]wFMCommunicate OK [20:55:19]SAM_PROTO_GetShiftState done [20:55:19]FM_GetShiftState done [20:55:19]req_shift_opened done [20:55:19]requested_item shift.open_date is exist - process it [20:55:19]req_shift_open_date [20:55:19]req_shift_open_date done [20:55:19]produce_requested_data done [20:55:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31288,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:55:19]process_action_free close_receipt [20:55:19]json_value_free [20:55:19]json_value_free done [20:55:19]process_json_proto returns [20:55:19]Send response to host [20:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31288,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:55:19]free response buf [20:55:19]execute_script done [20:55:19]execute_script returns [20:55:19]free content buf [20:55:19]Sock 7.Close socket [20:55:19]Sock 7.Thread stoped [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:57]accept exits with 9 [20:56:57]New connection [20:56:57]New thread 3066899812 created [20:56:57]Thread 3067043172 joined [20:56:57]Waiting for new connection... [20:56:57] Sock 9.Parse request [20:56:57]Sock 9.Check first char [20:56:57]Sock 9.First char is OK [20:56:57]request: POST /json_proto HTTP/1.0 [20:56:57]Method: POST [20:56:57]URL: /json_proto [20:56:57]Method is POST - this is cgi request [20:56:57]url: /json_proto [20:56:57]query_string will be loaded in cgi processing [20:56:57]execute_cgi json_proto POST (null) [20:56:57]execute_cgi path=json_proto method=POST [20:56:57]POST find Content-Length [20:56:57]Host: 172.17.51.3:8080 [20:56:57]Content-Length: 677 [20:56:57]Content-Type: application/json [20:56:57] [20:56:57]POST finish read [20:56:57]Found Content-Length = 677 [20:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:57]execute_script... [20:56:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:57]POST & json_proto [20:56:57]process_json_proto [20:56:57]json parsed OK: [20:56:57]protocol is kg_v1.0 [20:56:57]action value=close_receipt [20:56:57]process_action close_receipt [20:56:57]cmd_close_receipt [20:56:57]MH_GetDate [20:56:57]Write to MH i2c: F0 00 00 9C 71 FC [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: F0 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: F0 09 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: F0 09 00 9C 71 00 22 63 19 67 04 C1 95 66 CA [20:56:57]GetLastDocTimeStamp 1729716924 [20:56:57]current date 1729717026 [20:56:57]FM_GetShiftState [20:56:57]SAM_PROTO_GetShiftState [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 13 01 00 [20:56:57]Write to MH i2c: E2 08 00 9D 71 80 13 01 00 00 00 00 00 8B [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0E 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0E 00 9D 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 45 [20:56:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:56:57]wFMCommunicate OK [20:56:57]SAM_PROTO_GetShiftState done [20:56:57]FM_GetShiftState done [20:56:57]opened in 1729643755 [20:56:57]opened+sec_in_day 1729730155 [20:56:57]quantity*price = 60009 [20:56:57]sum+1 = 60010 [20:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 233 23.10.2024 20:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31289 ФПД: 256628108040123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205706&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31289&fm=256628108040123&tin=02508201610067®Number=0000000000186857&sum=60000 [20:56:59]StoreToDocumentArchive [20:56:59]shift 117 fd 31289 [20:56:59]save to /storage/0117/doc_00031289 [20:56:59]save last doc name /storage/0117/doc_00031289 to /storage/kkm_last_doc_name [20:56:59]save OK [20:56:59]Clear old archive folders... [20:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:59]tlvbuf is 00D63420 [20:56:59]SAM_PROTO_ClearQueue [20:56:59]wFMCommunicate request_size=4 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 09 00 00 [20:56:59]Write to MH i2c: E2 08 00 AA 71 80 09 00 00 00 00 00 00 8D [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 AA 71 00 90 00 8F [20:56:59]RAPDU: 90 00 [20:56:59]wFMCommunicate OK [20:56:59]SAM_PROTO_ClearQueue done [20:56:59]KKMCreateOFDPacket [20:56:59]OFDProtocolAddRootSTLVToBuf [20:56:59]FM_MakeSignedData [20:56:59]FM_MakeSignedData [20:56:59]SAM_PROTO_SignData [20:56:59]wFMCommunicate request_size=4 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 0D 01 02 [20:56:59]Write to MH i2c: E2 08 00 AB 71 80 0D 01 02 00 00 00 00 95 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 AB 71 00 90 00 90 [20:56:59]RAPDU: 90 00 [20:56:59]wFMCommunicate OK [20:56:59]wFMCommunicate request_size=255 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 22 63 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 7A 00 00 35 04 06 00 E9 [20:56:59]Write to MH i2c: E2 02 01 AC 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 22 63 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 7A 00 00 35 04 06 00 E9 00 00 02 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 AC 71 00 90 00 91 [20:56:59]RAPDU: 90 00 [20:56:59]wFMCommunicate OK [20:56:59]wFMCommunicate request_size=10 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 0D 02 02 05 66 E3 38 17 BB [20:56:59]Write to MH i2c: E2 0D 00 AD 71 80 0D 02 02 05 00 66 E3 38 17 BB 00 00 F5 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 03 00 AD 71 00 90 00 92 [20:56:59]RAPDU: 90 00 [20:56:59]wFMCommunicate OK [20:56:59]wFMCommunicate request_size=4 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 0D 03 02 [20:56:59]Write to MH i2c: E2 08 00 AE 71 80 0D 03 02 00 00 00 00 9A [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 0B 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 0B 00 AE 71 00 FC 46 61 1B 49 59 95 A6 90 00 36 [20:56:59]RAPDU: FC 46 61 1B 49 59 95 A6 90 00 [20:56:59]wFMCommunicate OK [20:56:59]SAM_PROTO_SignData done [20:56:59]FM_MakeSignedData done [20:56:59]CreateOFDProtocolMessage [20:56:59]wFMCommunicate request_size=4 [20:56:59]MH_SAM_APDU [20:56:59]CAPDU: 80 11 00 00 [20:56:59]Write to MH i2c: E2 08 00 AF 71 80 11 00 00 00 00 00 00 9A [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:59]Read from MH i2c: E2 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 17 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: E2 17 00 AF 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [20:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:56:59]wFMCommunicate OK [20:56:59]CreateOFDProtocolMessage done [20:56:59]OFDSenderStorePacket 31289 [20:56:59]StoreOFDPacket docnum=31289 [20:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 3B 07 01 F4 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 22 63 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 7A 00 00 35 04 06 00 E9 66 E3 38 17 BB FC 46 61 1B 49 59 95 A6 [20:56:59]CheckFolder [20:56:59]dirname=/storage/ofd_packets [20:56:59]CheckFolder done [20:56:59]ProducePacketName [20:56:59]name=ofd_packets/00031289 [20:56:59]NVStorageSaveData ofd_packets/00031289 [20:56:59]File name is /storage/ofd_packets/00031289 [20:56:59]Write 301 bytes [20:56:59]NVStorageSaveData done [20:56:59]OFDSenderStorePacket done [20:56:59]KKMCreateOFDPacket done [20:56:59]NVStorageSaveData kkm_last_timestamp [20:56:59]File name is /storage/kkm_last_timestamp [20:56:59]Write 4 bytes [20:56:59]NVStorageSaveData done [20:56:59]ExternCall_PrintAddStr [20:56:59]wPrintStart [20:56:59]Write to MH i2c: 01 00 00 B0 71 21 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 07 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 07 00 B0 71 00 00 00 00 00 FF 0F 36 [20:56:59]RasterBufferAndPrint [20:56:59]line Счет N : (1)343737 [20:56:59]line ИНН: 02508201610067 [20:56:59]line Контрольно-Кассовый Чек [20:56:59]line ПРОДАЖА [20:56:59]line ТРК (МРК, ГНК) : 53 [20:56:59]line Товар: 2710124130 [20:56:59]line Аи-92-К-2 [20:56:59]line 8.970 * 66.90 [20:56:59]line = 600.09 [20:56:59]line НДС 12% НСП 1% [20:56:59]line > о реализуемом товаре [20:56:59]line ОКРУГЛЕНИЕ: -0.09 [20:56:59]line ИТОГО: 600.00 [20:56:59]line Внесено: 600.00 [20:56:59]line СДАЧА: 0.00 [20:56:59]line НСП 1% : 5.31 [20:56:59]line НДС 12% : 63.73 [20:56:59]line Наличными: 600.00 [20:56:59]line Безнал.: 0.00 [20:56:59]line Место: АЗС № 78 "Партнер Нефть" [20:56:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:56:59]line СНО: Общий режим [20:56:59]line Чек 233 23.10.2024 20:57 [20:56:59]line Смена: 117 ФФД: 1.0 [20:56:59]line ЗНМ: 0300000137 [20:56:59]line РНМ: 0000000000186857 [20:56:59]line Версия ККМ: v1.0 [20:56:59]line ФМ: 0000000002094219 [20:56:59]line ФД: 31289 [20:56:59]line ФПД: 256628108040123 [20:56:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205706&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31289&fm=256628108040123&tin=02508201610067®Number=0000000000186857&sum=60000 [20:56:59]OFD Sender: Processing packet 31289 [packets to send 11, broken 10] [20:56:59]ProducePacketName [20:56:59]name=ofd_packets/00031289 [20:56:59]OFD Sender: To server: pG, [20:56:59]CommunicateWithHost lk.salyk.kg:30040 [20:56:59]ConnectInit lk.salyk.kg [20:56:59]written 0, free lines is 4095 [20:57:00]Connected sock=11 [20:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 3B 07 01 F4 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 22 63 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 7A 00 00 35 04 06 00 E9 66 E3 38 17 BB FC 46 61 1B 49 59 95 A6 [20:57:00]Write to MH i2c: 01 00 00 DB 71 4C [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 07 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: 01 07 00 DB 71 00 00 00 00 00 EB 0C 4A [20:57:00]RasterBufferAndPrint [20:57:00]line [20:57:00]line [20:57:00]line [20:57:00]line [20:57:00]line [20:57:00]written 0, free lines is 3313 [20:57:00]MH_Cut [20:57:00]Write to MH i2c: D1 01 00 E2 71 01 25 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: D1 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: D1 01 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: D1 01 00 E2 71 00 24 [20:57:00]Write to MH i2c: 01 00 00 E3 71 54 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 A5 47 00 E0 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 7A 00 00 F4 03 04 00 9B 0D 19 67 B6 04 01 00 00 DF 79 A7 A0 68 3E C4 78 [20:57:00]CommunicateWithHost err = 0 [20:57:00]CheckOFDResponse [20:57:00]1017 (14) - 77093643461234 [20:57:00]1041 (16) - 0000000002094219 [20:57:00]1040 (4) - 31289 [20:57:00]1012 (4) - 23.10.2024 14:52 [20:57:00]1206 (1) - 0 [20:57:00]OFD Sender: Remove packet 31289 [20:57:00]ProducePacketName [20:57:00]name=ofd_packets/00031289 [20:57:00]NVStorageDeleteData [20:57:01]OFD Sender: No OFD packet to send [20:57:01]*** Cut start [20:57:01]*** Partial cut [20:57:01]*** CUTSNS_PIN = 1 [20:57:01]*** CUTSNS_PIN = 0 [20:57:01]*** Brake cut motor [20:57:01]Read from MH i2c: 01 [20:57:01]MH_I2C_Read... [20:57:01]*** Stop cut motor [20:57:01]*** Cut end [20:57:01]Read from MH i2c: 01 07 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 E3 71 00 00 00 00 00 FF 0F 69 [20:57:01]process_action close_receipt done [20:57:01]requested_data is exist [20:57:01]produce_requested_data [20:57:01]requested_item fm.sn is exist - process it [20:57:01]wFMCommunicate request_size=4 [20:57:01]MH_SAM_APDU [20:57:01]CAPDU: 80 11 00 00 [20:57:01]Write to MH i2c: E2 08 00 E4 71 80 11 00 00 00 00 00 00 CF [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:01]Read from MH i2c: E2 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 17 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 17 00 E4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [20:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:57:01]wFMCommunicate OK [20:57:01]requested_item fd.num is exist - process it [20:57:01]SAM_PROTO_GetFieldsCounters [20:57:01]wFMCommunicate request_size=4 [20:57:01]MH_SAM_APDU [20:57:01]CAPDU: 80 13 00 00 [20:57:01]Write to MH i2c: E2 08 00 E5 71 80 13 00 00 00 00 00 00 D2 [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:01]Read from MH i2c: E2 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 62 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 62 00 E5 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [20:57:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:01]wFMCommunicate OK [20:57:01]SAM_PROTO_GetFieldsCounters done [20:57:01]requested_item shift.num is exist - process it [20:57:01]requested_item shift.opened is exist - process it [20:57:01]req_shift_opened [20:57:01]FM_GetShiftState [20:57:01]SAM_PROTO_GetShiftState [20:57:01]wFMCommunicate request_size=4 [20:57:01]MH_SAM_APDU [20:57:01]CAPDU: 80 13 01 00 [20:57:01]Write to MH i2c: E2 08 00 E6 71 80 13 01 00 00 00 00 00 D4 [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:01]Read from MH i2c: E2 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 0E 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: E2 0E 00 E6 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 8E [20:57:01]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [20:57:01]wFMCommunicate OK [20:57:01]SAM_PROTO_GetShiftState done [20:57:01]FM_GetShiftState done [20:57:01]req_shift_opened done [20:57:01]requested_item shift.open_date is exist - process it [20:57:01]req_shift_open_date [20:57:01]req_shift_open_date done [20:57:01]produce_requested_data done [20:57:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31289,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [20:57:01]process_action_free close_receipt [20:57:01]json_value_free [20:57:01]json_value_free done [20:57:01]process_json_proto returns [20:57:01]Send response to host [20:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31289,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [20:57:01]free response buf [20:57:01]execute_script done [20:57:01]execute_script returns [20:57:01]free content buf [20:57:01]Sock 9.Close socket [20:57:01]Sock 9.Thread stoped [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]accept exits with 7 [21:04:31]New connection [21:04:31]New thread 3067043172 created [21:04:31]Thread 3066899812 joined [21:04:31]Waiting for new connection... [21:04:31] Sock 7.Parse request [21:04:31]Sock 7.Check first char [21:04:31]Sock 7.First char is OK [21:04:31]request: POST /json_proto HTTP/1.0 [21:04:31]Method: POST [21:04:31]URL: /json_proto [21:04:31]Method is POST - this is cgi request [21:04:31]url: /json_proto [21:04:31]query_string will be loaded in cgi processing [21:04:31]execute_cgi json_proto POST (null) [21:04:31]execute_cgi path=json_proto method=POST [21:04:31]POST find Content-Length [21:04:31]Host: 172.17.51.3:8080 [21:04:31]Content-Length: 677 [21:04:31]Content-Type: application/json [21:04:31] [21:04:31]POST finish read [21:04:31]Found Content-Length = 677 [21:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:31]execute_script... [21:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:31]POST & json_proto [21:04:31]process_json_proto [21:04:31]json parsed OK: [21:04:31]protocol is kg_v1.0 [21:04:31]action value=close_receipt [21:04:31]process_action close_receipt [21:04:31]cmd_close_receipt [21:04:31]MH_GetDate [21:04:31]Write to MH i2c: F0 00 00 E7 71 47 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: F0 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: F0 09 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: F0 09 00 E7 71 00 E7 64 19 67 04 C1 95 66 DB [21:04:31]GetLastDocTimeStamp 1729717026 [21:04:31]current date 1729717479 [21:04:31]FM_GetShiftState [21:04:31]SAM_PROTO_GetShiftState [21:04:31]wFMCommunicate request_size=4 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 13 01 00 [21:04:31]Write to MH i2c: E2 08 00 E8 71 80 13 01 00 00 00 00 00 D6 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 0E 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 0E 00 E8 71 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 90 [21:04:31]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:04:31]wFMCommunicate OK [21:04:31]SAM_PROTO_GetShiftState done [21:04:31]FM_GetShiftState done [21:04:31]opened in 1729643755 [21:04:31]opened+sec_in_day 1729730155 [21:04:31]quantity*price = 20003 [21:04:31]sum+1 = 20004 [21:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 234 23.10.2024 21:04 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31290 ФПД: 115193892969519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210439&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31290&fm=115193892969519&tin=02508201610067®Number=0000000000186857&sum=20000 [21:04:32]StoreToDocumentArchive [21:04:32]shift 117 fd 31290 [21:04:32]save to /storage/0117/doc_00031290 [21:04:32]save last doc name /storage/0117/doc_00031290 to /storage/kkm_last_doc_name [21:04:32]save OK [21:04:32]Clear old archive folders... [21:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:32]tlvbuf is 00D65EC0 [21:04:32]SAM_PROTO_ClearQueue [21:04:32]wFMCommunicate request_size=4 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 09 00 00 [21:04:32]Write to MH i2c: E2 08 00 F5 71 80 09 00 00 00 00 00 00 D8 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 F5 71 00 90 00 DA [21:04:32]RAPDU: 90 00 [21:04:32]wFMCommunicate OK [21:04:32]SAM_PROTO_ClearQueue done [21:04:32]KKMCreateOFDPacket [21:04:32]OFDProtocolAddRootSTLVToBuf [21:04:32]FM_MakeSignedData [21:04:32]FM_MakeSignedData [21:04:32]SAM_PROTO_SignData [21:04:32]wFMCommunicate request_size=4 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 0D 01 02 [21:04:32]Write to MH i2c: E2 08 00 F6 71 80 0D 01 02 00 00 00 00 E0 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 F6 71 00 90 00 DB [21:04:32]RAPDU: 90 00 [21:04:32]wFMCommunicate OK [21:04:32]wFMCommunicate request_size=255 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 E7 64 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 7A 00 00 35 04 06 00 68 [21:04:32]Write to MH i2c: E2 02 01 F7 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 E7 64 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 7A 00 00 35 04 06 00 68 00 00 79 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 F7 71 00 90 00 DC [21:04:32]RAPDU: 90 00 [21:04:32]wFMCommunicate OK [21:04:32]wFMCommunicate request_size=10 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 0D 02 02 05 C4 AB 12 1C 2F [21:04:32]Write to MH i2c: E2 0D 00 F8 71 80 0D 02 02 05 00 C4 AB 12 1C 2F 00 00 B9 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 03 00 F8 71 00 90 00 DD [21:04:32]RAPDU: 90 00 [21:04:32]wFMCommunicate OK [21:04:32]wFMCommunicate request_size=4 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 0D 03 02 [21:04:32]Write to MH i2c: E2 08 00 F9 71 80 0D 03 02 00 00 00 00 E5 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 0B 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 0B 00 F9 71 00 30 CF 2E B8 8D BA 51 29 90 00 8C [21:04:32]RAPDU: 30 CF 2E B8 8D BA 51 29 90 00 [21:04:32]wFMCommunicate OK [21:04:32]SAM_PROTO_SignData done [21:04:32]FM_MakeSignedData done [21:04:32]CreateOFDProtocolMessage [21:04:32]wFMCommunicate request_size=4 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 11 00 00 [21:04:32]Write to MH i2c: E2 08 00 FA 71 80 11 00 00 00 00 00 00 E5 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:33]Read from MH i2c: E2 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: E2 17 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: E2 17 00 FA 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [21:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:04:33]wFMCommunicate OK [21:04:33]CreateOFDProtocolMessage done [21:04:33]OFDSenderStorePacket 31290 [21:04:33]StoreOFDPacket docnum=31290 [21:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 21 07 01 B7 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 E7 64 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 7A 00 00 35 04 06 00 68 C4 AB 12 1C 2F 30 CF 2E B8 8D BA 51 29 [21:04:33]CheckFolder [21:04:33]dirname=/storage/ofd_packets [21:04:33]CheckFolder done [21:04:33]ProducePacketName [21:04:33]name=ofd_packets/00031290 [21:04:33]NVStorageSaveData ofd_packets/00031290 [21:04:33]File name is /storage/ofd_packets/00031290 [21:04:33]Write 301 bytes [21:04:33]NVStorageSaveData done [21:04:33]OFDSenderStorePacket done [21:04:33]KKMCreateOFDPacket done [21:04:33]NVStorageSaveData kkm_last_timestamp [21:04:33]File name is /storage/kkm_last_timestamp [21:04:33]Write 4 bytes [21:04:33]NVStorageSaveData done [21:04:33]ExternCall_PrintAddStr [21:04:33]wPrintStart [21:04:33]Write to MH i2c: 01 00 00 FB 71 6C [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 FB 71 00 00 00 00 00 FF 0F 81 [21:04:33]RasterBufferAndPrint [21:04:33]line Счет N : (1)343738 [21:04:33]line ИНН: 02508201610067 [21:04:33]line Контрольно-Кассовый Чек [21:04:33]line ПРОДАЖА [21:04:33]line ТРК (МРК, ГНК) : 53 [21:04:33]line Товар: 2710124130 [21:04:33]line Аи-92-К-2 [21:04:33]line 2.990 * 66.90 [21:04:33]line = 200.03 [21:04:33]line НДС 12% НСП 1% [21:04:33]line > о реализуемом товаре [21:04:33]line ОКРУГЛЕНИЕ: -0.03 [21:04:33]line ИТОГО: 200.00 [21:04:33]line Внесено: 200.00 [21:04:33]line СДАЧА: 0.00 [21:04:33]line НСП 1% : 1.77 [21:04:33]line НДС 12% : 21.24 [21:04:33]line Наличными: 200.00 [21:04:33]line Безнал.: 0.00 [21:04:33]line Место: АЗС № 78 "Партнер Нефть" [21:04:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:04:33]line СНО: Общий режим [21:04:33]line Чек 234 23.10.2024 21:04 [21:04:33]line Смена: 117 ФФД: 1.0 [21:04:33]line ЗНМ: 0300000137 [21:04:33]line РНМ: 0000000000186857 [21:04:33]line Версия ККМ: v1.0 [21:04:33]line ФМ: 0000000002094219 [21:04:33]line ФД: 31290 [21:04:33]line ФПД: 115193892969519 [21:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210439&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31290&fm=115193892969519&tin=02508201610067®Number=0000000000186857&sum=20000 [21:04:33]OFD Sender: Processing packet 31290 [packets to send 11, broken 10] [21:04:33]ProducePacketName [21:04:33]name=ofd_packets/00031290 [21:04:33]OFD Sender: To server: pG, [21:04:33]CommunicateWithHost lk.salyk.kg:30040 [21:04:33]ConnectInit lk.salyk.kg [21:04:33]written 0, free lines is 4095 [21:04:33]Connected sock=10 [21:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 21 07 01 B7 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 E7 64 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 7A 00 00 35 04 06 00 68 C4 AB 12 1C 2F 30 CF 2E B8 8D BA 51 29 [21:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 05 21 47 00 66 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 7A 00 00 F4 03 04 00 60 0F 19 67 B6 04 01 00 00 9F 9E 2B 47 C4 C0 E7 38 [21:04:33]CommunicateWithHost err = 0 [21:04:33]CheckOFDResponse [21:04:33]1017 (14) - 77093643461234 [21:04:33]1041 (16) - 0000000002094219 [21:04:33]1040 (4) - 31290 [21:04:33]1012 (4) - 23.10.2024 14:59 [21:04:33]1206 (1) - 0 [21:04:33]OFD Sender: Remove packet 31290 [21:04:33]ProducePacketName [21:04:33]name=ofd_packets/00031290 [21:04:33]NVStorageDeleteData [21:04:33]Write to MH i2c: 01 00 00 26 72 98 [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 26 72 00 00 00 00 00 F6 0C A1 [21:04:33]RasterBufferAndPrint [21:04:33]line [21:04:33]line [21:04:33]line [21:04:33]line [21:04:33]line [21:04:33]written 0, free lines is 3324 [21:04:33]MH_Cut [21:04:33]Write to MH i2c: D1 01 00 2D 72 01 71 [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: D1 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: D1 01 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: D1 01 00 2D 72 00 70 [21:04:33]Write to MH i2c: 01 00 00 2E 72 A0 [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:34]OFD Sender: No OFD packet to send [21:04:34]*** Cut start [21:04:34]*** Partial cut [21:04:34]*** CUTSNS_PIN = 1 [21:04:34]*** CUTSNS_PIN = 0 [21:04:34]*** Brake cut motor [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]*** Stop cut motor [21:04:35]*** Cut end [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 2E 72 00 00 00 00 00 FF 0F B5 [21:04:35]process_action close_receipt done [21:04:35]requested_data is exist [21:04:35]produce_requested_data [21:04:35]requested_item fm.sn is exist - process it [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 11 00 00 [21:04:35]Write to MH i2c: E2 08 00 2F 72 80 11 00 00 00 00 00 00 1B [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:35]Read from MH i2c: E2 17 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 17 00 2F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [21:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:04:35]wFMCommunicate OK [21:04:35]requested_item fd.num is exist - process it [21:04:35]SAM_PROTO_GetFieldsCounters [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 13 00 00 [21:04:35]Write to MH i2c: E2 08 00 30 72 80 13 00 00 00 00 00 00 1E [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 62 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 62 00 30 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:35]wFMCommunicate OK [21:04:35]SAM_PROTO_GetFieldsCounters done [21:04:35]requested_item shift.num is exist - process it [21:04:35]requested_item shift.opened is exist - process it [21:04:35]req_shift_opened [21:04:35]FM_GetShiftState [21:04:35]SAM_PROTO_GetShiftState [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 13 01 00 [21:04:35]Write to MH i2c: E2 08 00 31 72 80 13 01 00 00 00 00 00 20 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0E 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0E 00 31 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DA [21:04:35]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:04:35]wFMCommunicate OK [21:04:35]SAM_PROTO_GetShiftState done [21:04:35]FM_GetShiftState done [21:04:35]req_shift_opened done [21:04:35]requested_item shift.open_date is exist - process it [21:04:35]req_shift_open_date [21:04:35]req_shift_open_date done [21:04:35]produce_requested_data done [21:04:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31290,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:04:35]process_action_free close_receipt [21:04:35]json_value_free [21:04:35]json_value_free done [21:04:35]process_json_proto returns [21:04:35]Send response to host [21:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31290,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:04:35]free response buf [21:04:35]execute_script done [21:04:35]execute_script returns [21:04:35]free content buf [21:04:35]Sock 7.Close socket [21:04:35]Sock 7.Thread stoped [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:23]accept exits with 9 [21:11:23]New connection [21:11:23]New thread 3066899812 created [21:11:23]Thread 3067043172 joined [21:11:23]Waiting for new connection... [21:11:23] Sock 9.Parse request [21:11:23]Sock 9.Check first char [21:11:23]Sock 9.First char is OK [21:11:23]request: POST /json_proto HTTP/1.0 [21:11:23]Method: POST [21:11:23]URL: /json_proto [21:11:23]Method is POST - this is cgi request [21:11:23]url: /json_proto [21:11:23]query_string will be loaded in cgi processing [21:11:23]execute_cgi json_proto POST (null) [21:11:23]execute_cgi path=json_proto method=POST [21:11:23]POST find Content-Length [21:11:23]Host: 172.17.51.3:8080 [21:11:23]Content-Length: 754 [21:11:23]Content-Type: application/json [21:11:23] [21:11:23]POST finish read [21:11:23]Found Content-Length = 754 [21:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30031605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:23]execute_script... [21:11:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30031605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:23]POST & json_proto [21:11:23]process_json_proto [21:11:23]json parsed OK: [21:11:23]protocol is kg_v1.0 [21:11:23]action value=close_receipt [21:11:23]process_action close_receipt [21:11:23]cmd_close_receipt [21:11:23]MH_GetDate [21:11:23]Write to MH i2c: F0 00 00 32 72 93 [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 09 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: F0 09 00 32 72 00 83 66 19 67 04 C1 95 66 C5 [21:11:23]GetLastDocTimeStamp 1729717479 [21:11:23]current date 1729717891 [21:11:23]FM_GetShiftState [21:11:23]SAM_PROTO_GetShiftState [21:11:23]wFMCommunicate request_size=4 [21:11:23]MH_SAM_APDU [21:11:23]CAPDU: 80 13 01 00 [21:11:23]Write to MH i2c: E2 08 00 33 72 80 13 01 00 00 00 00 00 22 [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:23]Read from MH i2c: E2 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: E2 0E 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: E2 0E 00 33 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 DC [21:11:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:11:23]wFMCommunicate OK [21:11:23]SAM_PROTO_GetShiftState done [21:11:23]FM_GetShiftState done [21:11:23]opened in 1729643755 [21:11:23]opened+sec_in_day 1729730155 [21:11:23]quantity*price = 0 [21:11:23]sum+1 = 1 [21:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 235 23.10.2024 21:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30031605 ФМ: 0000000002094219 ФД: 31291 ФПД: 170630809960243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211131&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31291&fm=170630809960243&tin=02508201610067®Number=0000000000186857&sum=0 [21:11:24]StoreToDocumentArchive [21:11:24]shift 117 fd 31291 [21:11:24]save to /storage/0117/doc_00031291 [21:11:24]save last doc name /storage/0117/doc_00031291 to /storage/kkm_last_doc_name [21:11:24]save OK [21:11:24]Clear old archive folders... [21:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:24]tlvbuf is 00F62B80 [21:11:24]SAM_PROTO_ClearQueue [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 09 00 00 [21:11:24]Write to MH i2c: E2 08 00 40 72 80 09 00 00 00 00 00 00 24 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 40 72 00 90 00 26 [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]SAM_PROTO_ClearQueue done [21:11:24]KKMCreateOFDPacket [21:11:24]OFDProtocolAddRootSTLVToBuf [21:11:24]FM_MakeSignedData [21:11:24]FM_MakeSignedData [21:11:24]SAM_PROTO_SignData [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 01 02 [21:11:24]Write to MH i2c: E2 08 00 41 72 80 0D 01 02 00 00 00 00 2C [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 41 72 00 90 00 27 [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]wFMCommunicate request_size=255 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 83 66 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 7A 00 00 35 04 06 00 9B [21:11:24]Write to MH i2c: E2 02 01 42 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 83 66 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 7A 00 00 35 04 06 00 9B 00 00 32 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]OFD Sender: No OFD packet to send [21:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 42 72 00 90 00 28 [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]wFMCommunicate request_size=10 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 02 02 05 30 14 D0 BF 33 [21:11:24]Write to MH i2c: E2 0D 00 43 72 80 0D 02 02 05 00 30 14 D0 BF 33 00 00 3F [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 03 00 43 72 00 90 00 29 [21:11:24]RAPDU: 90 00 [21:11:24]wFMCommunicate OK [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 0D 03 02 [21:11:24]Write to MH i2c: E2 08 00 44 72 80 0D 03 02 00 00 00 00 31 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 0B 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 0B 00 44 72 00 99 71 FC 2E 40 44 26 57 90 00 67 [21:11:24]RAPDU: 99 71 FC 2E 40 44 26 57 90 00 [21:11:24]wFMCommunicate OK [21:11:24]SAM_PROTO_SignData done [21:11:24]FM_MakeSignedData done [21:11:24]CreateOFDProtocolMessage [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 11 00 00 [21:11:24]Write to MH i2c: E2 08 00 45 72 80 11 00 00 00 00 00 00 31 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 17 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 17 00 45 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [21:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:11:24]wFMCommunicate OK [21:11:24]CreateOFDProtocolMessage done [21:11:24]OFDSenderStorePacket 31291 [21:11:24]StoreOFDPacket docnum=31291 [21:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 3F 07 01 23 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 83 66 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 7A 00 00 35 04 06 00 9B 30 14 D0 BF 33 99 71 FC 2E 40 44 26 57 [21:11:24]CheckFolder [21:11:24]dirname=/storage/ofd_packets [21:11:24]CheckFolder done [21:11:24]ProducePacketName [21:11:24]name=ofd_packets/00031291 [21:11:24]NVStorageSaveData ofd_packets/00031291 [21:11:24]File name is /storage/ofd_packets/00031291 [21:11:24]Write 301 bytes [21:11:24]NVStorageSaveData done [21:11:24]OFDSenderStorePacket done [21:11:24]KKMCreateOFDPacket done [21:11:24]NVStorageSaveData kkm_last_timestamp [21:11:24]File name is /storage/kkm_last_timestamp [21:11:24]Write 4 bytes [21:11:24]NVStorageSaveData done [21:11:24]ExternCall_PrintAddStr [21:11:24]wPrintStart [21:11:24]Write to MH i2c: 01 00 00 46 72 B8 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: 01 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: 01 07 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: 01 07 00 46 72 00 00 00 00 00 FF 0F CD [21:11:24]RasterBufferAndPrint [21:11:24]line Счет N : (1)343739 [21:11:24]line ИНН: 02508201610067 [21:11:24]line Контрольно-Кассовый Чек [21:11:24]line ПРОДАЖА [21:11:24]line ТРК (МРК, ГНК) : 62 [21:11:24]line Товар: 2710124500 [21:11:24]line Аи-95-К-3 [21:11:24]line 40.000 * 0.00 [21:11:24]line = 0.00 [21:11:24]line НДС 12% НСП 1% [21:11:24]line > о реализуемом товаре [21:11:24]line ИТОГО: 0.00 [21:11:24]line НСП 1% : 0.00 [21:11:24]line НДС 12% : 0.00 [21:11:24]line Наличными: 0.00 [21:11:24]line Безнал.: 0.00 [21:11:24]line Место: АЗС № 78 "Партнер Нефть" [21:11:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:11:24]line СНО: Общий режим [21:11:24]line Чек 235 23.10.2024 21:11 [21:11:24]line Смена: 117 ФФД: 1.0 [21:11:24]line ЗНМ: 0300000137 [21:11:24]line РНМ: 0000000000186857 [21:11:24]line Версия ККМ: v1.0 [21:11:24]line Талоны: ТК ГПНА Online [21:11:24]line 30031605 [21:11:24]line ФМ: 0000000002094219 [21:11:24]line ФД: 31291 [21:11:24]line ФПД: 170630809960243 [21:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211131&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31291&fm=170630809960243&tin=02508201610067®Number=0000000000186857&sum=0 [21:11:25]OFD Sender: Processing packet 31291 [packets to send 11, broken 10] [21:11:25]ProducePacketName [21:11:25]name=ofd_packets/00031291 [21:11:25]OFD Sender: To server: pG, [21:11:25]CommunicateWithHost lk.salyk.kg:30040 [21:11:25]ConnectInit lk.salyk.kg [21:11:25]written 0, free lines is 4095 [21:11:25]Connected sock=7 [21:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 3F 07 01 23 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 83 66 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 7A 00 00 35 04 06 00 9B 30 14 D0 BF 33 99 71 FC 2E 40 44 26 57 [21:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 56 06 47 00 B7 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 7A 00 00 F4 03 04 00 FC 10 19 67 B6 04 01 00 00 F3 8F 1E 8A 3D E8 97 CD [21:11:25]CommunicateWithHost err = 0 [21:11:25]CheckOFDResponse [21:11:25]1017 (14) - 77093643461234 [21:11:25]1041 (16) - 0000000002094219 [21:11:25]1040 (4) - 31291 [21:11:25]1012 (4) - 23.10.2024 15:06 [21:11:25]1206 (1) - 0 [21:11:25]OFD Sender: Remove packet 31291 [21:11:25]ProducePacketName [21:11:25]name=ofd_packets/00031291 [21:11:25]NVStorageDeleteData [21:11:25]Write to MH i2c: 01 00 00 70 72 E2 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: 01 07 00 70 72 00 00 00 00 00 05 0D FB [21:11:25]RasterBufferAndPrint [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]line [21:11:25]written 0, free lines is 3343 [21:11:25]MH_Cut [21:11:25]Write to MH i2c: D1 01 00 77 72 01 BB [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 01 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: D1 01 00 77 72 00 BA [21:11:25]Write to MH i2c: 01 00 00 78 72 EA [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]OFD Sender: No OFD packet to send [21:11:26]*** Cut start [21:11:26]*** Partial cut [21:11:26]*** CUTSNS_PIN = 1 [21:11:26]*** CUTSNS_PIN = 0 [21:11:26]*** Brake cut motor [21:11:26]Read from MH i2c: 01 [21:11:26]MH_I2C_Read... [21:11:26]*** Stop cut motor [21:11:26]*** Cut end [21:11:26]Read from MH i2c: 01 07 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: 01 07 00 78 72 00 00 00 00 00 FF 0F FF [21:11:26]process_action close_receipt done [21:11:26]requested_data is exist [21:11:26]produce_requested_data [21:11:26]requested_item fm.sn is exist - process it [21:11:26]wFMCommunicate request_size=4 [21:11:26]MH_SAM_APDU [21:11:26]CAPDU: 80 11 00 00 [21:11:26]Write to MH i2c: E2 08 00 79 72 80 11 00 00 00 00 00 00 65 [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:26]Read from MH i2c: E2 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 17 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 17 00 79 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [21:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:11:26]wFMCommunicate OK [21:11:26]requested_item fd.num is exist - process it [21:11:26]SAM_PROTO_GetFieldsCounters [21:11:26]wFMCommunicate request_size=4 [21:11:26]MH_SAM_APDU [21:11:26]CAPDU: 80 13 00 00 [21:11:26]Write to MH i2c: E2 08 00 7A 72 80 13 00 00 00 00 00 00 68 [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 62 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 62 00 7A 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_GetFieldsCounters done [21:11:27]requested_item shift.num is exist - process it [21:11:27]requested_item shift.opened is exist - process it [21:11:27]req_shift_opened [21:11:27]FM_GetShiftState [21:11:27]SAM_PROTO_GetShiftState [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 13 01 00 [21:11:27]Write to MH i2c: E2 08 00 7B 72 80 13 01 00 00 00 00 00 6A [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 7B 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 24 [21:11:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_GetShiftState done [21:11:27]FM_GetShiftState done [21:11:27]req_shift_opened done [21:11:27]requested_item shift.open_date is exist - process it [21:11:27]req_shift_open_date [21:11:27]req_shift_open_date done [21:11:27]produce_requested_data done [21:11:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31291,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:11:27]process_action_free close_receipt [21:11:27]json_value_free [21:11:27]json_value_free done [21:11:27]process_json_proto returns [21:11:27]Send response to host [21:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31291,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:11:27]free response buf [21:11:27]execute_script done [21:11:27]execute_script returns [21:11:27]free content buf [21:11:27]Sock 9.Close socket [21:11:27]Sock 9.Thread stoped [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]accept exits with 10 [21:21:51]New connection [21:21:51]New thread 3067043172 created [21:21:51]Thread 3066899812 joined [21:21:51]Waiting for new connection... [21:21:51] Sock 10.Parse request [21:21:51]Sock 10.Check first char [21:21:51]Sock 10.First char is OK [21:21:51]request: POST /json_proto HTTP/1.0 [21:21:51]Method: POST [21:21:51]URL: /json_proto [21:21:51]Method is POST - this is cgi request [21:21:51]url: /json_proto [21:21:51]query_string will be loaded in cgi processing [21:21:51]execute_cgi json_proto POST (null) [21:21:51]execute_cgi path=json_proto method=POST [21:21:51]POST find Content-Length [21:21:51]Host: 172.17.51.3:8080 [21:21:51]Content-Length: 682 [21:21:51]Content-Type: application/json [21:21:51] [21:21:51]POST finish read [21:21:51]Found Content-Length = 682 [21:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:51]execute_script... [21:21:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:51]POST & json_proto [21:21:51]process_json_proto [21:21:51]json parsed OK: [21:21:51]protocol is kg_v1.0 [21:21:51]action value=close_receipt [21:21:51]process_action close_receipt [21:21:51]cmd_close_receipt [21:21:51]MH_GetDate [21:21:51]Write to MH i2c: F0 00 00 7C 72 DD [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: F0 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: F0 09 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: F0 09 00 7C 72 00 F7 68 19 67 04 C1 95 66 85 [21:21:51]GetLastDocTimeStamp 1729717891 [21:21:51]current date 1729718519 [21:21:51]FM_GetShiftState [21:21:51]SAM_PROTO_GetShiftState [21:21:51]wFMCommunicate request_size=4 [21:21:51]MH_SAM_APDU [21:21:51]CAPDU: 80 13 01 00 [21:21:51]Write to MH i2c: E2 08 00 7D 72 80 13 01 00 00 00 00 00 6C [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:51]Read from MH i2c: E2 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 0E 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 0E 00 7D 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 26 [21:21:51]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:21:51]wFMCommunicate OK [21:21:51]SAM_PROTO_GetShiftState done [21:21:51]FM_GetShiftState done [21:21:51]opened in 1729643755 [21:21:51]opened+sec_in_day 1729730155 [21:21:51]quantity*price = 300064 [21:21:51]sum+1 = 300066 [21:21:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 236 23.10.2024 21:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31292 ФПД: 264849973002107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212159&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31292&fm=264849973002107&tin=02508201610067®Number=0000000000186857&sum=300000 [21:21:52]StoreToDocumentArchive [21:21:52]shift 117 fd 31292 [21:21:52]save to /storage/0117/doc_00031292 [21:21:52]save last doc name /storage/0117/doc_00031292 to /storage/kkm_last_doc_name [21:21:52]save OK [21:21:52]Clear old archive folders... [21:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:52]tlvbuf is B6F6E7F0 [21:21:52]SAM_PROTO_ClearQueue [21:21:52]wFMCommunicate request_size=4 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 09 00 00 [21:21:52]Write to MH i2c: E2 08 00 8A 72 80 09 00 00 00 00 00 00 6E [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 8A 72 00 90 00 70 [21:21:52]RAPDU: 90 00 [21:21:52]wFMCommunicate OK [21:21:52]SAM_PROTO_ClearQueue done [21:21:52]KKMCreateOFDPacket [21:21:52]OFDProtocolAddRootSTLVToBuf [21:21:52]FM_MakeSignedData [21:21:52]FM_MakeSignedData [21:21:52]SAM_PROTO_SignData [21:21:52]wFMCommunicate request_size=4 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 0D 01 02 [21:21:52]Write to MH i2c: E2 08 00 8B 72 80 0D 01 02 00 00 00 00 76 [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 8B 72 00 90 00 71 [21:21:52]RAPDU: 90 00 [21:21:52]wFMCommunicate OK [21:21:52]wFMCommunicate request_size=255 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F7 68 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 7A 00 00 35 04 06 00 F0 [21:21:52]Write to MH i2c: E2 02 01 8C 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F7 68 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 7A 00 00 35 04 06 00 F0 00 00 1F [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 8C 72 00 90 00 72 [21:21:52]RAPDU: 90 00 [21:21:52]wFMCommunicate OK [21:21:52]wFMCommunicate request_size=10 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 0D 02 02 05 E1 30 8F 3F 7B [21:21:52]Write to MH i2c: E2 0D 00 8D 72 80 0D 02 02 05 00 E1 30 8F 3F 7B 00 00 DD [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 03 00 8D 72 00 90 00 73 [21:21:52]RAPDU: 90 00 [21:21:52]wFMCommunicate OK [21:21:52]wFMCommunicate request_size=4 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 0D 03 02 [21:21:52]Write to MH i2c: E2 08 00 8E 72 80 0D 03 02 00 00 00 00 7B [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 0B 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 0B 00 8E 72 00 6D 26 8C 4B 63 01 C4 BD 90 00 CB [21:21:52]RAPDU: 6D 26 8C 4B 63 01 C4 BD 90 00 [21:21:52]wFMCommunicate OK [21:21:52]SAM_PROTO_SignData done [21:21:52]FM_MakeSignedData done [21:21:52]CreateOFDProtocolMessage [21:21:52]wFMCommunicate request_size=4 [21:21:52]MH_SAM_APDU [21:21:52]CAPDU: 80 11 00 00 [21:21:52]Write to MH i2c: E2 08 00 8F 72 80 11 00 00 00 00 00 00 7B [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:52]Read from MH i2c: E2 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 17 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: E2 17 00 8F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [21:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:21:52]wFMCommunicate OK [21:21:52]CreateOFDProtocolMessage done [21:21:52]OFDSenderStorePacket 31292 [21:21:52]StoreOFDPacket docnum=31292 [21:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 63 F9 07 01 CF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F7 68 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 7A 00 00 35 04 06 00 F0 E1 30 8F 3F 7B 6D 26 8C 4B 63 01 C4 BD [21:21:52]CheckFolder [21:21:52]dirname=/storage/ofd_packets [21:21:52]CheckFolder done [21:21:52]ProducePacketName [21:21:52]name=ofd_packets/00031292 [21:21:52]NVStorageSaveData ofd_packets/00031292 [21:21:52]File name is /storage/ofd_packets/00031292 [21:21:52]Write 301 bytes [21:21:52]NVStorageSaveData done [21:21:52]OFDSenderStorePacket done [21:21:52]KKMCreateOFDPacket done [21:21:52]NVStorageSaveData kkm_last_timestamp [21:21:52]File name is /storage/kkm_last_timestamp [21:21:52]Write 4 bytes [21:21:52]NVStorageSaveData done [21:21:52]ExternCall_PrintAddStr [21:21:52]wPrintStart [21:21:52]Write to MH i2c: 01 00 00 90 72 02 [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 07 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 07 00 90 72 00 00 00 00 00 FF 0F 17 [21:21:52]RasterBufferAndPrint [21:21:52]line Счет N : (1)343740 [21:21:52]line ИНН: 02508201610067 [21:21:52]line Контрольно-Кассовый Чек [21:21:52]line ПРОДАЖА [21:21:52]line ТРК (МРК, ГНК) : 32 [21:21:52]line Товар: 2710124500 [21:21:52]line Аи-95-К-3 [21:21:52]line 40.440 * 74.20 [21:21:52]line = 3000.65 [21:21:52]line НДС 12% НСП 1% [21:21:52]line > о реализуемом товаре [21:21:52]line ОКРУГЛЕНИЕ: -0.65 [21:21:52]line ИТОГО: 3000.00 [21:21:52]line Внесено: 3000.00 [21:21:52]line СДАЧА: 0.00 [21:21:52]line НСП 1% : 26.55 [21:21:52]line НДС 12% : 318.65 [21:21:52]line Наличными: 3000.00 [21:21:52]line Безнал.: 0.00 [21:21:52]line Место: АЗС № 78 "Партнер Нефть" [21:21:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:21:52]line СНО: Общий режим [21:21:52]line Чек 236 23.10.2024 21:21 [21:21:52]line Смена: 117 ФФД: 1.0 [21:21:52]line ЗНМ: 0300000137 [21:21:52]line РНМ: 0000000000186857 [21:21:52]line Версия ККМ: v1.0 [21:21:52]line ФМ: 0000000002094219 [21:21:52]line ФД: 31292 [21:21:52]line ФПД: 264849973002107 [21:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212159&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31292&fm=264849973002107&tin=02508201610067®Number=0000000000186857&sum=300000 [21:21:53]OFD Sender: Processing packet 31292 [packets to send 11, broken 10] [21:21:53]ProducePacketName [21:21:53]name=ofd_packets/00031292 [21:21:53]OFD Sender: To server: pG, [21:21:53]CommunicateWithHost lk.salyk.kg:30040 [21:21:53]ConnectInit lk.salyk.kg [21:21:53]written 0, free lines is 4095 [21:21:53]Connected sock=9 [21:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 63 F9 07 01 CF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F7 68 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 7A 00 00 35 04 06 00 F0 E1 30 8F 3F 7B 6D 26 8C 4B 63 01 C4 BD [21:21:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4B F9 47 00 81 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 32 30 39 34 32 31 39 10 04 04 00 3C 7A 00 00 F4 03 04 00 70 13 19 67 B6 04 01 00 00 B0 06 D2 63 14 7F A0 42 [21:21:53]CommunicateWithHost err = 0 [21:21:53]CheckOFDResponse [21:21:53]1017 (14) - 77093643461234 [21:21:53]1041 (16) - 0000000002094219 [21:21:53]1040 (4) - 31292 [21:21:53]1012 (4) - 23.10.2024 15:17 [21:21:53]1206 (1) - 0 [21:21:53]OFD Sender: Remove packet 31292 [21:21:53]ProducePacketName [21:21:53]name=ofd_packets/00031292 [21:21:53]NVStorageDeleteData [21:21:53]Write to MH i2c: 01 00 00 BB 72 2D [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 07 00 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 07 00 BB 72 00 00 00 00 00 01 0D 42 [21:21:53]RasterBufferAndPrint [21:21:53]line [21:21:53]line [21:21:53]line [21:21:53]line [21:21:53]line [21:21:53]written 0, free lines is 3335 [21:21:53]MH_Cut [21:21:53]Write to MH i2c: D1 01 00 C2 72 01 06 [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: D1 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: D1 01 00 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: D1 01 00 C2 72 00 05 [21:21:53]Write to MH i2c: 01 00 00 C3 72 35 [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:54]OFD Sender: No OFD packet to send [21:21:54]*** Cut start [21:21:54]*** Partial cut [21:21:54]*** CUTSNS_PIN = 1 [21:21:54]*** CUTSNS_PIN = 0 [21:21:54]*** Brake cut motor [21:21:54]Read from MH i2c: 01 [21:21:54]MH_I2C_Read... [21:21:54]*** Stop cut motor [21:21:54]*** Cut end [21:21:54]Read from MH i2c: 01 07 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: 01 07 00 C3 72 00 00 00 00 00 FF 0F 4A [21:21:54]process_action close_receipt done [21:21:54]requested_data is exist [21:21:54]produce_requested_data [21:21:54]requested_item fm.sn is exist - process it [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 11 00 00 [21:21:54]Write to MH i2c: E2 08 00 C4 72 80 11 00 00 00 00 00 00 B0 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:54]Read from MH i2c: E2 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 17 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 17 00 C4 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [21:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:21:54]wFMCommunicate OK [21:21:54]requested_item fd.num is exist - process it [21:21:54]SAM_PROTO_GetFieldsCounters [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 13 00 00 [21:21:54]Write to MH i2c: E2 08 00 C5 72 80 13 00 00 00 00 00 00 B3 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 62 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 62 00 C5 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [21:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_GetFieldsCounters done [21:21:55]requested_item shift.num is exist - process it [21:21:55]requested_item shift.opened is exist - process it [21:21:55]req_shift_opened [21:21:55]FM_GetShiftState [21:21:55]SAM_PROTO_GetShiftState [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 13 01 00 [21:21:55]Write to MH i2c: E2 08 00 C6 72 80 13 01 00 00 00 00 00 B5 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0E 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0E 00 C6 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 6F [21:21:55]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_GetShiftState done [21:21:55]FM_GetShiftState done [21:21:55]req_shift_opened done [21:21:55]requested_item shift.open_date is exist - process it [21:21:55]req_shift_open_date [21:21:55]req_shift_open_date done [21:21:55]produce_requested_data done [21:21:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31292,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:21:55]process_action_free close_receipt [21:21:55]json_value_free [21:21:55]json_value_free done [21:21:55]process_json_proto returns [21:21:55]Send response to host [21:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31292,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:21:55]free response buf [21:21:55]execute_script done [21:21:55]execute_script returns [21:21:55]free content buf [21:21:55]Sock 10.Close socket [21:21:55]Sock 10.Thread stoped [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:04]accept exits with 7 [21:22:04]New connection [21:22:04]New thread 3066899812 created [21:22:04]Thread 3067043172 joined [21:22:04]Waiting for new connection... [21:22:04] Sock 7.Parse request [21:22:04]Sock 7.Check first char [21:22:04]Sock 7.First char is OK [21:22:04]request: POST /json_proto HTTP/1.0 [21:22:04]Method: POST [21:22:04]URL: /json_proto [21:22:04]Method is POST - this is cgi request [21:22:04]url: /json_proto [21:22:04]query_string will be loaded in cgi processing [21:22:04]execute_cgi json_proto POST (null) [21:22:04]execute_cgi path=json_proto method=POST [21:22:04]POST find Content-Length [21:22:04]Host: 172.17.51.3:8080 [21:22:04]Content-Length: 677 [21:22:04]Content-Type: application/json [21:22:04] [21:22:04]POST finish read [21:22:04]Found Content-Length = 677 [21:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:04]execute_script... [21:22:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:04]POST & json_proto [21:22:04]process_json_proto [21:22:04]json parsed OK: [21:22:04]protocol is kg_v1.0 [21:22:04]action value=close_receipt [21:22:04]process_action close_receipt [21:22:04]cmd_close_receipt [21:22:04]MH_GetDate [21:22:04]Write to MH i2c: F0 00 00 C7 72 28 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 09 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 09 00 C7 72 00 05 69 19 67 04 C1 95 66 DF [21:22:04]GetLastDocTimeStamp 1729718519 [21:22:04]current date 1729718533 [21:22:04]FM_GetShiftState [21:22:04]SAM_PROTO_GetShiftState [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 01 00 [21:22:04]Write to MH i2c: E2 08 00 C8 72 80 13 01 00 00 00 00 00 B7 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 C8 72 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 71 [21:22:04]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetShiftState done [21:22:04]FM_GetShiftState done [21:22:04]opened in 1729643755 [21:22:04]opened+sec_in_day 1729730155 [21:22:04]quantity*price = 20003 [21:22:04]sum+1 = 20004 [21:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 237 23.10.2024 21:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31293 ФПД: 31965053631221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212213&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31293&fm=31965053631221&tin=02508201610067®Number=0000000000186857&sum=20000 [21:22:05]StoreToDocumentArchive [21:22:05]shift 117 fd 31293 [21:22:05]save to /storage/0117/doc_00031293 [21:22:05]save last doc name /storage/0117/doc_00031293 to /storage/kkm_last_doc_name [21:22:05]save OK [21:22:05]Clear old archive folders... [21:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:05]tlvbuf is 00CC1AC0 [21:22:05]SAM_PROTO_ClearQueue [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 09 00 00 [21:22:05]Write to MH i2c: E2 08 00 D5 72 80 09 00 00 00 00 00 00 B9 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 D5 72 00 90 00 BB [21:22:06]RAPDU: 90 00 [21:22:06]wFMCommunicate OK [21:22:06]SAM_PROTO_ClearQueue done [21:22:06]KKMCreateOFDPacket [21:22:06]OFDProtocolAddRootSTLVToBuf [21:22:06]FM_MakeSignedData [21:22:06]FM_MakeSignedData [21:22:06]SAM_PROTO_SignData [21:22:06]wFMCommunicate request_size=4 [21:22:06]MH_SAM_APDU [21:22:06]CAPDU: 80 0D 01 02 [21:22:06]Write to MH i2c: E2 08 00 D6 72 80 0D 01 02 00 00 00 00 C1 [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 D6 72 00 90 00 BC [21:22:06]RAPDU: 90 00 [21:22:06]wFMCommunicate OK [21:22:06]wFMCommunicate request_size=255 [21:22:06]MH_SAM_APDU [21:22:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 05 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 7A 00 00 35 04 06 00 1D [21:22:06]Write to MH i2c: E2 02 01 D7 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 05 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 7A 00 00 35 04 06 00 1D 00 00 38 [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 D7 72 00 90 00 BD [21:22:06]RAPDU: 90 00 [21:22:06]wFMCommunicate OK [21:22:06]wFMCommunicate request_size=10 [21:22:06]MH_SAM_APDU [21:22:06]CAPDU: 80 0D 02 02 05 12 71 AA BA F5 [21:22:06]Write to MH i2c: E2 0D 00 D8 72 80 0D 02 02 05 00 12 71 AA BA F5 00 00 AA [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 03 00 D8 72 00 90 00 BE [21:22:06]RAPDU: 90 00 [21:22:06]wFMCommunicate OK [21:22:06]wFMCommunicate request_size=4 [21:22:06]MH_SAM_APDU [21:22:06]CAPDU: 80 0D 03 02 [21:22:06]Write to MH i2c: E2 08 00 D9 72 80 0D 03 02 00 00 00 00 C6 [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 0B 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 0B 00 D9 72 00 D1 A6 4B B5 E4 B8 49 71 90 00 94 [21:22:06]RAPDU: D1 A6 4B B5 E4 B8 49 71 90 00 [21:22:06]wFMCommunicate OK [21:22:06]SAM_PROTO_SignData done [21:22:06]FM_MakeSignedData done [21:22:06]CreateOFDProtocolMessage [21:22:06]wFMCommunicate request_size=4 [21:22:06]MH_SAM_APDU [21:22:06]CAPDU: 80 11 00 00 [21:22:06]Write to MH i2c: E2 08 00 DA 72 80 11 00 00 00 00 00 00 C6 [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 17 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 17 00 DA 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [21:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:22:06]wFMCommunicate OK [21:22:06]CreateOFDProtocolMessage done [21:22:06]OFDSenderStorePacket 31293 [21:22:06]StoreOFDPacket docnum=31293 [21:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 41 07 01 B7 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 05 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 7A 00 00 35 04 06 00 1D 12 71 AA BA F5 D1 A6 4B B5 E4 B8 49 71 [21:22:06]CheckFolder [21:22:06]dirname=/storage/ofd_packets [21:22:06]CheckFolder done [21:22:06]ProducePacketName [21:22:06]name=ofd_packets/00031293 [21:22:06]NVStorageSaveData ofd_packets/00031293 [21:22:06]File name is /storage/ofd_packets/00031293 [21:22:06]Write 301 bytes [21:22:06]NVStorageSaveData done [21:22:06]OFDSenderStorePacket done [21:22:06]KKMCreateOFDPacket done [21:22:06]NVStorageSaveData kkm_last_timestamp [21:22:06]File name is /storage/kkm_last_timestamp [21:22:06]Write 4 bytes [21:22:06]NVStorageSaveData done [21:22:06]ExternCall_PrintAddStr [21:22:06]wPrintStart [21:22:06]Write to MH i2c: 01 00 00 DB 72 4D [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 DB 72 00 00 00 00 00 FF 0F 62 [21:22:06]RasterBufferAndPrint [21:22:06]line Счет N : (1)343741 [21:22:06]line ИНН: 02508201610067 [21:22:06]line Контрольно-Кассовый Чек [21:22:06]line ПРОДАЖА [21:22:06]line ТРК (МРК, ГНК) : 63 [21:22:06]line Товар: 2710124130 [21:22:06]line Аи-92-К-2 [21:22:06]line 2.990 * 66.90 [21:22:06]line = 200.03 [21:22:06]line НДС 12% НСП 1% [21:22:06]line > о реализуемом товаре [21:22:06]line ОКРУГЛЕНИЕ: -0.03 [21:22:06]line ИТОГО: 200.00 [21:22:06]line Внесено: 200.00 [21:22:06]line СДАЧА: 0.00 [21:22:06]line НСП 1% : 1.77 [21:22:06]line НДС 12% : 21.24 [21:22:06]line Наличными: 200.00 [21:22:06]line Безнал.: 0.00 [21:22:06]line Место: АЗС № 78 "Партнер Нефть" [21:22:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:22:06]line СНО: Общий режим [21:22:06]line Чек 237 23.10.2024 21:22 [21:22:06]line Смена: 117 ФФД: 1.0 [21:22:06]line ЗНМ: 0300000137 [21:22:06]line РНМ: 0000000000186857 [21:22:06]line Версия ККМ: v1.0 [21:22:06]line ФМ: 0000000002094219 [21:22:06]line ФД: 31293 [21:22:06]line ФПД: 31965053631221 [21:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212213&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31293&fm=31965053631221&tin=02508201610067®Number=0000000000186857&sum=20000 [21:22:06]OFD Sender: Processing packet 31293 [packets to send 11, broken 10] [21:22:06]ProducePacketName [21:22:06]name=ofd_packets/00031293 [21:22:06]OFD Sender: To server: pG, [21:22:06]CommunicateWithHost lk.salyk.kg:30040 [21:22:06]ConnectInit lk.salyk.kg [21:22:06]written 0, free lines is 4095 [21:22:06]Connected sock=10 [21:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 41 07 01 B7 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 05 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 7A 00 00 35 04 06 00 1D 12 71 AA BA F5 D1 A6 4B B5 E4 B8 49 71 [21:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B0 2C 47 00 F3 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 7A 00 00 F4 03 04 00 7E 13 19 67 B6 04 01 00 00 B1 19 88 41 FB 1F 2B DC [21:22:07]CommunicateWithHost err = 0 [21:22:07]CheckOFDResponse [21:22:07]1017 (14) - 77093643461234 [21:22:07]1041 (16) - 0000000002094219 [21:22:07]1040 (4) - 31293 [21:22:07]1012 (4) - 23.10.2024 15:17 [21:22:07]1206 (1) - 0 [21:22:07]OFD Sender: Remove packet 31293 [21:22:07]ProducePacketName [21:22:07]name=ofd_packets/00031293 [21:22:07]NVStorageDeleteData [21:22:07]Write to MH i2c: 01 00 00 06 73 79 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 06 73 00 00 00 00 00 F0 0C 7C [21:22:07]RasterBufferAndPrint [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]written 0, free lines is 3318 [21:22:07]MH_Cut [21:22:07]Write to MH i2c: D1 01 00 0D 73 01 52 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 01 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 01 00 0D 73 00 51 [21:22:07]Write to MH i2c: 01 00 00 0E 73 81 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]OFD Sender: No OFD packet to send [21:22:07]*** Cut start [21:22:07]*** Partial cut [21:22:07]*** CUTSNS_PIN = 1 [21:22:08]*** CUTSNS_PIN = 0 [21:22:08]*** Brake cut motor [21:22:08]Read from MH i2c: 01 [21:22:08]MH_I2C_Read... [21:22:08]*** Stop cut motor [21:22:08]*** Cut end [21:22:08]Read from MH i2c: 01 07 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: 01 07 00 0E 73 00 00 00 00 00 FF 0F 96 [21:22:08]process_action close_receipt done [21:22:08]requested_data is exist [21:22:08]produce_requested_data [21:22:08]requested_item fm.sn is exist - process it [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 11 00 00 [21:22:08]Write to MH i2c: E2 08 00 0F 73 80 11 00 00 00 00 00 00 FC [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 17 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 17 00 0F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [21:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:22:08]wFMCommunicate OK [21:22:08]requested_item fd.num is exist - process it [21:22:08]SAM_PROTO_GetFieldsCounters [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 13 00 00 [21:22:08]Write to MH i2c: E2 08 00 10 73 80 13 00 00 00 00 00 00 FF [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 62 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 62 00 10 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [21:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:08]wFMCommunicate OK [21:22:08]SAM_PROTO_GetFieldsCounters done [21:22:08]requested_item shift.num is exist - process it [21:22:08]requested_item shift.opened is exist - process it [21:22:08]req_shift_opened [21:22:08]FM_GetShiftState [21:22:08]SAM_PROTO_GetShiftState [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 13 01 00 [21:22:08]Write to MH i2c: E2 08 00 11 73 80 13 01 00 00 00 00 00 01 [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 0E 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 0E 00 11 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BB [21:22:08]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:22:08]wFMCommunicate OK [21:22:08]SAM_PROTO_GetShiftState done [21:22:08]FM_GetShiftState done [21:22:08]req_shift_opened done [21:22:08]requested_item shift.open_date is exist - process it [21:22:08]req_shift_open_date [21:22:08]req_shift_open_date done [21:22:08]produce_requested_data done [21:22:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31293,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:22:08]process_action_free close_receipt [21:22:08]json_value_free [21:22:08]json_value_free done [21:22:08]process_json_proto returns [21:22:08]Send response to host [21:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31293,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:22:08]free response buf [21:22:08]execute_script done [21:22:08]execute_script returns [21:22:08]free content buf [21:22:08]Sock 7.Close socket [21:22:08]Sock 7.Thread stoped [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:53]accept exits with 9 [21:22:53]New connection [21:22:53]New thread 3067043172 created [21:22:53]Thread 3066899812 joined [21:22:53]Waiting for new connection... [21:22:53] Sock 9.Parse request [21:22:53]Sock 9.Check first char [21:22:53]Sock 9.First char is OK [21:22:53]request: POST /json_proto HTTP/1.0 [21:22:53]Method: POST [21:22:53]URL: /json_proto [21:22:53]Method is POST - this is cgi request [21:22:53]url: /json_proto [21:22:53]query_string will be loaded in cgi processing [21:22:53]execute_cgi json_proto POST (null) [21:22:53]execute_cgi path=json_proto method=POST [21:22:53]POST find Content-Length [21:22:53]Host: 172.17.51.3:8080 [21:22:53]Content-Length: 677 [21:22:53]Content-Type: application/json [21:22:53] [21:22:53]POST finish read [21:22:53]Found Content-Length = 677 [21:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:53]execute_script... [21:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:53]POST & json_proto [21:22:53]process_json_proto [21:22:53]json parsed OK: [21:22:53]protocol is kg_v1.0 [21:22:53]action value=close_receipt [21:22:53]process_action close_receipt [21:22:53]cmd_close_receipt [21:22:53]MH_GetDate [21:22:53]Write to MH i2c: F0 00 00 12 73 74 [21:22:53]Write i2c OK [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: F0 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: F0 09 00 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: F0 09 00 12 73 00 35 69 19 67 04 C1 95 66 5B [21:22:53]GetLastDocTimeStamp 1729718533 [21:22:53]current date 1729718581 [21:22:53]FM_GetShiftState [21:22:53]SAM_PROTO_GetShiftState [21:22:53]wFMCommunicate request_size=4 [21:22:53]MH_SAM_APDU [21:22:53]CAPDU: 80 13 01 00 [21:22:53]Write to MH i2c: E2 08 00 13 73 80 13 01 00 00 00 00 00 03 [21:22:53]Write i2c OK [21:22:53]MH_I2C_Read... [21:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:53]Read from MH i2c: E2 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 0E 00 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 0E 00 13 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 BD [21:22:53]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:22:53]wFMCommunicate OK [21:22:53]SAM_PROTO_GetShiftState done [21:22:53]FM_GetShiftState done [21:22:53]opened in 1729643755 [21:22:53]opened+sec_in_day 1729730155 [21:22:53]quantity*price = 30038 [21:22:53]sum+1 = 30039 [21:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 238 23.10.2024 21:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31294 ФПД: 266910010057275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31294&fm=266910010057275&tin=02508201610067®Number=0000000000186857&sum=30000 [21:22:54]StoreToDocumentArchive [21:22:54]shift 117 fd 31294 [21:22:54]save to /storage/0117/doc_00031294 [21:22:54]save last doc name /storage/0117/doc_00031294 to /storage/kkm_last_doc_name [21:22:54]save OK [21:22:54]Clear old archive folders... [21:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:54]tlvbuf is 00D65510 [21:22:54]SAM_PROTO_ClearQueue [21:22:54]wFMCommunicate request_size=4 [21:22:54]MH_SAM_APDU [21:22:54]CAPDU: 80 09 00 00 [21:22:54]Write to MH i2c: E2 08 00 20 73 80 09 00 00 00 00 00 00 05 [21:22:54]Write i2c OK [21:22:54]MH_I2C_Read... [21:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:54]Read from MH i2c: E2 [21:22:54]MH_I2C_Read... [21:22:54]Read from MH i2c: E2 03 00 [21:22:54]MH_I2C_Read... [21:22:54]Read from MH i2c: E2 03 00 20 73 00 90 00 07 [21:22:54]RAPDU: 90 00 [21:22:54]wFMCommunicate OK [21:22:54]SAM_PROTO_ClearQueue done [21:22:54]KKMCreateOFDPacket [21:22:54]OFDProtocolAddRootSTLVToBuf [21:22:54]FM_MakeSignedData [21:22:54]FM_MakeSignedData [21:22:54]SAM_PROTO_SignData [21:22:54]wFMCommunicate request_size=4 [21:22:54]MH_SAM_APDU [21:22:54]CAPDU: 80 0D 01 02 [21:22:54]Write to MH i2c: E2 08 00 21 73 80 0D 01 02 00 00 00 00 0D [21:22:54]Write i2c OK [21:22:54]MH_I2C_Read... [21:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:54]Read from MH i2c: E2 [21:22:54]MH_I2C_Read... [21:22:54]Read from MH i2c: E2 03 00 [21:22:54]MH_I2C_Read... [21:22:54]Read from MH i2c: E2 03 00 21 73 00 90 00 08 [21:22:54]RAPDU: 90 00 [21:22:54]wFMCommunicate OK [21:22:54]wFMCommunicate request_size=255 [21:22:54]MH_SAM_APDU [21:22:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 35 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 7A 00 00 35 04 06 00 F2 [21:22:54]Write to MH i2c: E2 02 01 22 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 35 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 7A 00 00 35 04 06 00 F2 00 00 BD [21:22:54]Write i2c OK [21:22:54]MH_I2C_Read... [21:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:55]Read from MH i2c: E2 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 03 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 03 00 22 73 00 90 00 09 [21:22:55]RAPDU: 90 00 [21:22:55]wFMCommunicate OK [21:22:55]wFMCommunicate request_size=10 [21:22:55]MH_SAM_APDU [21:22:55]CAPDU: 80 0D 02 02 05 C0 D4 56 22 3B [21:22:55]Write to MH i2c: E2 0D 00 23 73 80 0D 02 02 05 00 C0 D4 56 22 3B 00 00 61 [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:55]Read from MH i2c: E2 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 03 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 03 00 23 73 00 90 00 0A [21:22:55]RAPDU: 90 00 [21:22:55]wFMCommunicate OK [21:22:55]wFMCommunicate request_size=4 [21:22:55]MH_SAM_APDU [21:22:55]CAPDU: 80 0D 03 02 [21:22:55]Write to MH i2c: E2 08 00 24 73 80 0D 03 02 00 00 00 00 12 [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:55]Read from MH i2c: E2 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 0B 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 0B 00 24 73 00 9D 2C B9 F9 E5 8C B4 C0 90 00 73 [21:22:55]RAPDU: 9D 2C B9 F9 E5 8C B4 C0 90 00 [21:22:55]wFMCommunicate OK [21:22:55]SAM_PROTO_SignData done [21:22:55]FM_MakeSignedData done [21:22:55]CreateOFDProtocolMessage [21:22:55]wFMCommunicate request_size=4 [21:22:55]MH_SAM_APDU [21:22:55]CAPDU: 80 11 00 00 [21:22:55]Write to MH i2c: E2 08 00 25 73 80 11 00 00 00 00 00 00 12 [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:55]Read from MH i2c: E2 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 17 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 17 00 25 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [21:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:22:55]wFMCommunicate OK [21:22:55]CreateOFDProtocolMessage done [21:22:55]OFDSenderStorePacket 31294 [21:22:55]StoreOFDPacket docnum=31294 [21:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC CF 07 01 BE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 35 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 7A 00 00 35 04 06 00 F2 C0 D4 56 22 3B 9D 2C B9 F9 E5 8C B4 C0 [21:22:55]CheckFolder [21:22:55]dirname=/storage/ofd_packets [21:22:55]CheckFolder done [21:22:55]ProducePacketName [21:22:55]name=ofd_packets/00031294 [21:22:55]NVStorageSaveData ofd_packets/00031294 [21:22:55]File name is /storage/ofd_packets/00031294 [21:22:55]Write 301 bytes [21:22:55]NVStorageSaveData done [21:22:55]OFDSenderStorePacket done [21:22:55]KKMCreateOFDPacket done [21:22:55]NVStorageSaveData kkm_last_timestamp [21:22:55]File name is /storage/kkm_last_timestamp [21:22:55]Write 4 bytes [21:22:55]NVStorageSaveData done [21:22:55]ExternCall_PrintAddStr [21:22:55]wPrintStart [21:22:55]Write to MH i2c: 01 00 00 26 73 99 [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: 01 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: 01 07 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: 01 07 00 26 73 00 00 00 00 00 FF 0F AE [21:22:55]RasterBufferAndPrint [21:22:55]line Счет N : (1)343742 [21:22:55]line ИНН: 02508201610067 [21:22:55]line Контрольно-Кассовый Чек [21:22:55]line ПРОДАЖА [21:22:55]line ТРК (МРК, ГНК) : 53 [21:22:55]line Товар: 2710124130 [21:22:55]line Аи-92-К-2 [21:22:55]line 4.490 * 66.90 [21:22:55]line = 300.38 [21:22:55]line НДС 12% НСП 1% [21:22:55]line > о реализуемом товаре [21:22:55]line ОКРУГЛЕНИЕ: -0.38 [21:22:55]line ИТОГО: 300.00 [21:22:55]line Внесено: 300.00 [21:22:55]line СДАЧА: 0.00 [21:22:55]line НСП 1% : 2.66 [21:22:55]line НДС 12% : 31.90 [21:22:55]line Наличными: 300.00 [21:22:55]line Безнал.: 0.00 [21:22:55]line Место: АЗС № 78 "Партнер Нефть" [21:22:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:22:55]line СНО: Общий режим [21:22:55]line Чек 238 23.10.2024 21:23 [21:22:55]line Смена: 117 ФФД: 1.0 [21:22:55]line ЗНМ: 0300000137 [21:22:55]line РНМ: 0000000000186857 [21:22:55]line Версия ККМ: v1.0 [21:22:55]line ФМ: 0000000002094219 [21:22:55]line ФД: 31294 [21:22:55]line ФПД: 266910010057275 [21:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212301&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31294&fm=266910010057275&tin=02508201610067®Number=0000000000186857&sum=30000 [21:22:55]OFD Sender: Processing packet 31294 [packets to send 11, broken 10] [21:22:55]ProducePacketName [21:22:55]name=ofd_packets/00031294 [21:22:55]OFD Sender: To server: pG, [21:22:55]CommunicateWithHost lk.salyk.kg:30040 [21:22:55]ConnectInit lk.salyk.kg [21:22:55]written 0, free lines is 4095 [21:22:55]Connected sock=10 [21:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC CF 07 01 BE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 35 69 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 7A 00 00 35 04 06 00 F2 C0 D4 56 22 3B 9D 2C B9 F9 E5 8C B4 C0 [21:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 53 77 47 00 D7 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 7A 00 00 F4 03 04 00 AF 13 19 67 B6 04 01 00 00 22 CE AB B9 5F 93 8E 2A [21:22:55]CommunicateWithHost err = 0 [21:22:55]CheckOFDResponse [21:22:55]1017 (14) - 77093643461234 [21:22:55]1041 (16) - 0000000002094219 [21:22:55]1040 (4) - 31294 [21:22:55]1012 (4) - 23.10.2024 15:18 [21:22:55]1206 (1) - 0 [21:22:55]OFD Sender: Remove packet 31294 [21:22:55]ProducePacketName [21:22:55]name=ofd_packets/00031294 [21:22:55]NVStorageDeleteData [21:22:56]Write to MH i2c: 01 00 00 51 73 C4 [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 07 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 07 00 51 73 00 00 00 00 00 EC 0C C3 [21:22:56]RasterBufferAndPrint [21:22:56]line [21:22:56]line [21:22:56]line [21:22:56]line [21:22:56]line [21:22:56]written 0, free lines is 3314 [21:22:56]MH_Cut [21:22:56]Write to MH i2c: D1 01 00 58 73 01 9D [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: D1 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: D1 01 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: D1 01 00 58 73 00 9C [21:22:56]Write to MH i2c: 01 00 00 59 73 CC [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]OFD Sender: No OFD packet to send [21:22:56]*** Cut start [21:22:56]*** Partial cut [21:22:56]*** CUTSNS_PIN = 1 [21:22:56]*** CUTSNS_PIN = 0 [21:22:56]*** Brake cut motor [21:22:57]Read from MH i2c: 01 [21:22:57]MH_I2C_Read... [21:22:57]*** Stop cut motor [21:22:57]*** Cut end [21:22:57]Read from MH i2c: 01 07 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: 01 07 00 59 73 00 00 00 00 00 FF 0F E1 [21:22:57]process_action close_receipt done [21:22:57]requested_data is exist [21:22:57]produce_requested_data [21:22:57]requested_item fm.sn is exist - process it [21:22:57]wFMCommunicate request_size=4 [21:22:57]MH_SAM_APDU [21:22:57]CAPDU: 80 11 00 00 [21:22:57]Write to MH i2c: E2 08 00 5A 73 80 11 00 00 00 00 00 00 47 [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:57]Read from MH i2c: E2 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 17 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 17 00 5A 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [21:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:22:57]wFMCommunicate OK [21:22:57]requested_item fd.num is exist - process it [21:22:57]SAM_PROTO_GetFieldsCounters [21:22:57]wFMCommunicate request_size=4 [21:22:57]MH_SAM_APDU [21:22:57]CAPDU: 80 13 00 00 [21:22:57]Write to MH i2c: E2 08 00 5B 73 80 13 00 00 00 00 00 00 4A [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:57]Read from MH i2c: E2 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 62 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 62 00 5B 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:57]wFMCommunicate OK [21:22:57]SAM_PROTO_GetFieldsCounters done [21:22:57]requested_item shift.num is exist - process it [21:22:57]requested_item shift.opened is exist - process it [21:22:57]req_shift_opened [21:22:57]FM_GetShiftState [21:22:57]SAM_PROTO_GetShiftState [21:22:57]wFMCommunicate request_size=4 [21:22:57]MH_SAM_APDU [21:22:57]CAPDU: 80 13 01 00 [21:22:57]Write to MH i2c: E2 08 00 5C 73 80 13 01 00 00 00 00 00 4C [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:57]Read from MH i2c: E2 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 5C 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 06 [21:22:57]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:22:57]wFMCommunicate OK [21:22:57]SAM_PROTO_GetShiftState done [21:22:57]FM_GetShiftState done [21:22:57]req_shift_opened done [21:22:57]requested_item shift.open_date is exist - process it [21:22:57]req_shift_open_date [21:22:57]req_shift_open_date done [21:22:57]produce_requested_data done [21:22:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31294,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:22:57]process_action_free close_receipt [21:22:57]json_value_free [21:22:57]json_value_free done [21:22:57]process_json_proto returns [21:22:57]Send response to host [21:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31294,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:22:57]free response buf [21:22:57]execute_script done [21:22:57]execute_script returns [21:22:57]free content buf [21:22:57]Sock 9.Close socket [21:22:57]Sock 9.Thread stoped [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:54]accept exits with 7 [21:29:54]New connection [21:29:54]New thread 3066899812 created [21:29:54]Thread 3067043172 joined [21:29:54]Waiting for new connection... [21:29:54] Sock 7.Parse request [21:29:54]Sock 7.Check first char [21:29:54]Sock 7.First char is OK [21:29:54]request: POST /json_proto HTTP/1.0 [21:29:54]Method: POST [21:29:54]URL: /json_proto [21:29:54]Method is POST - this is cgi request [21:29:54]url: /json_proto [21:29:54]query_string will be loaded in cgi processing [21:29:54]execute_cgi json_proto POST (null) [21:29:54]execute_cgi path=json_proto method=POST [21:29:54]POST find Content-Length [21:29:54]Host: 172.17.51.3:8080 [21:29:54]Content-Length: 682 [21:29:54]Content-Type: application/json [21:29:54] [21:29:54]POST finish read [21:29:54]Found Content-Length = 682 [21:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:54]execute_script... [21:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:54]POST & json_proto [21:29:54]process_json_proto [21:29:54]json parsed OK: [21:29:54]protocol is kg_v1.0 [21:29:54]action value=close_receipt [21:29:54]process_action close_receipt [21:29:54]cmd_close_receipt [21:29:54]MH_GetDate [21:29:54]Write to MH i2c: F0 00 00 5D 73 BF [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: F0 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: F0 09 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: F0 09 00 5D 73 00 DA 6A 19 67 04 C1 95 66 4C [21:29:54]GetLastDocTimeStamp 1729718581 [21:29:54]current date 1729719002 [21:29:54]FM_GetShiftState [21:29:54]SAM_PROTO_GetShiftState [21:29:54]wFMCommunicate request_size=4 [21:29:54]MH_SAM_APDU [21:29:54]CAPDU: 80 13 01 00 [21:29:54]Write to MH i2c: E2 08 00 5E 73 80 13 01 00 00 00 00 00 4E [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:54]Read from MH i2c: E2 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 0E 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 0E 00 5E 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 08 [21:29:54]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:29:54]wFMCommunicate OK [21:29:54]SAM_PROTO_GetShiftState done [21:29:54]FM_GetShiftState done [21:29:54]opened in 1729643755 [21:29:54]opened+sec_in_day 1729730155 [21:29:54]quantity*price = 200043 [21:29:54]sum+1 = 200044 [21:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 239 23.10.2024 21:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31295 ФПД: 260284530539510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31295&fm=260284530539510&tin=02508201610067®Number=0000000000186857&sum=200000 [21:29:55]StoreToDocumentArchive [21:29:55]shift 117 fd 31295 [21:29:55]save to /storage/0117/doc_00031295 [21:29:55]save last doc name /storage/0117/doc_00031295 to /storage/kkm_last_doc_name [21:29:55]save OK [21:29:55]Clear old archive folders... [21:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:55]tlvbuf is 00D313C0 [21:29:55]SAM_PROTO_ClearQueue [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 09 00 00 [21:29:55]Write to MH i2c: E2 08 00 6B 73 80 09 00 00 00 00 00 00 50 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 6B 73 00 90 00 52 [21:29:55]RAPDU: 90 00 [21:29:55]wFMCommunicate OK [21:29:55]SAM_PROTO_ClearQueue done [21:29:55]KKMCreateOFDPacket [21:29:55]OFDProtocolAddRootSTLVToBuf [21:29:55]FM_MakeSignedData [21:29:55]FM_MakeSignedData [21:29:55]SAM_PROTO_SignData [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 0D 01 02 [21:29:55]Write to MH i2c: E2 08 00 6C 73 80 0D 01 02 00 00 00 00 58 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 6C 73 00 90 00 53 [21:29:55]RAPDU: 90 00 [21:29:55]wFMCommunicate OK [21:29:55]wFMCommunicate request_size=255 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 DA 6A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 7A 00 00 35 04 06 00 EC [21:29:55]Write to MH i2c: E2 02 01 6D 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 DA 6A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 7A 00 00 35 04 06 00 EC 00 00 5F [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 6D 73 00 90 00 54 [21:29:55]RAPDU: 90 00 [21:29:55]wFMCommunicate OK [21:29:55]wFMCommunicate request_size=10 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 0D 02 02 05 BA 36 FB BB F6 [21:29:55]Write to MH i2c: E2 0D 00 6E 73 80 0D 02 02 05 00 BA 36 FB BB F6 00 00 01 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 03 00 6E 73 00 90 00 55 [21:29:55]RAPDU: 90 00 [21:29:55]wFMCommunicate OK [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 0D 03 02 [21:29:55]Write to MH i2c: E2 08 00 6F 73 80 0D 03 02 00 00 00 00 5D [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 0B 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 0B 00 6F 73 00 4D C5 BD C9 4F 74 7A C7 90 00 FA [21:29:55]RAPDU: 4D C5 BD C9 4F 74 7A C7 90 00 [21:29:55]wFMCommunicate OK [21:29:55]SAM_PROTO_SignData done [21:29:55]FM_MakeSignedData done [21:29:55]CreateOFDProtocolMessage [21:29:55]wFMCommunicate request_size=4 [21:29:55]MH_SAM_APDU [21:29:55]CAPDU: 80 11 00 00 [21:29:55]Write to MH i2c: E2 08 00 70 73 80 11 00 00 00 00 00 00 5D [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:55]Read from MH i2c: E2 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 17 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 17 00 70 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [21:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:29:55]wFMCommunicate OK [21:29:55]CreateOFDProtocolMessage done [21:29:55]OFDSenderStorePacket 31295 [21:29:55]StoreOFDPacket docnum=31295 [21:29:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 3D 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 DA 6A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 7A 00 00 35 04 06 00 EC BA 36 FB BB F6 4D C5 BD C9 4F 74 7A C7 [21:29:55]CheckFolder [21:29:55]dirname=/storage/ofd_packets [21:29:55]CheckFolder done [21:29:55]ProducePacketName [21:29:55]name=ofd_packets/00031295 [21:29:55]NVStorageSaveData ofd_packets/00031295 [21:29:55]File name is /storage/ofd_packets/00031295 [21:29:55]Write 301 bytes [21:29:55]NVStorageSaveData done [21:29:55]OFDSenderStorePacket done [21:29:55]KKMCreateOFDPacket done [21:29:55]NVStorageSaveData kkm_last_timestamp [21:29:55]File name is /storage/kkm_last_timestamp [21:29:55]Write 4 bytes [21:29:55]NVStorageSaveData done [21:29:55]ExternCall_PrintAddStr [21:29:55]wPrintStart [21:29:55]Write to MH i2c: 01 00 00 71 73 E4 [21:29:55]Write i2c OK [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: 01 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: 01 07 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: 01 07 00 71 73 00 00 00 00 00 FF 0F F9 [21:29:55]RasterBufferAndPrint [21:29:55]line Счет N : (1)343743 [21:29:55]line ИНН: 02508201610067 [21:29:55]line Контрольно-Кассовый Чек [21:29:55]line ПРОДАЖА [21:29:55]line ТРК (МРК, ГНК) : 42 [21:29:55]line Товар: 2710124500 [21:29:55]line Аи-95-К-3 [21:29:55]line 26.960 * 74.20 [21:29:55]line = 2000.43 [21:29:55]line НДС 12% НСП 1% [21:29:55]line > о реализуемом товаре [21:29:55]line ОКРУГЛЕНИЕ: -0.43 [21:29:55]line ИТОГО: 2000.00 [21:29:55]line Внесено: 2000.00 [21:29:55]line СДАЧА: 0.00 [21:29:55]line НСП 1% : 17.70 [21:29:55]line НДС 12% : 212.43 [21:29:55]line Наличными: 2000.00 [21:29:55]line Безнал.: 0.00 [21:29:55]line Место: АЗС № 78 "Партнер Нефть" [21:29:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:29:55]line СНО: Общий режим [21:29:55]line Чек 239 23.10.2024 21:30 [21:29:55]line Смена: 117 ФФД: 1.0 [21:29:55]line ЗНМ: 0300000137 [21:29:55]line РНМ: 0000000000186857 [21:29:55]line Версия ККМ: v1.0 [21:29:55]line ФМ: 0000000002094219 [21:29:55]line ФД: 31295 [21:29:55]line ФПД: 260284530539510 [21:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31295&fm=260284530539510&tin=02508201610067®Number=0000000000186857&sum=200000 [21:29:56]OFD Sender: Processing packet 31295 [packets to send 11, broken 10] [21:29:56]ProducePacketName [21:29:56]name=ofd_packets/00031295 [21:29:56]OFD Sender: To server: pG, [21:29:56]CommunicateWithHost lk.salyk.kg:30040 [21:29:56]ConnectInit lk.salyk.kg [21:29:56]written 0, free lines is 4095 [21:29:56]Connected sock=10 [21:29:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 38 3D 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 DA 6A 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 7A 00 00 35 04 06 00 EC BA 36 FB BB F6 4D C5 BD C9 4F 74 7A C7 [21:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F7 A4 47 00 9B 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 32 30 39 34 32 31 39 10 04 04 00 3F 7A 00 00 F4 03 04 00 53 15 19 67 B6 04 01 00 00 B6 BB 0C BB 0F 3A 12 3B [21:29:56]CommunicateWithHost err = 0 [21:29:56]CheckOFDResponse [21:29:56]1017 (14) - 77093643461234 [21:29:56]1041 (16) - 0000000002094219 [21:29:56]1040 (4) - 31295 [21:29:56]1012 (4) - 23.10.2024 15:25 [21:29:56]1206 (1) - 0 [21:29:56]OFD Sender: Remove packet 31295 [21:29:56]ProducePacketName [21:29:56]name=ofd_packets/00031295 [21:29:56]NVStorageDeleteData [21:29:56]Write to MH i2c: 01 00 00 9C 73 0F [21:29:56]Write i2c OK [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: 01 [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: 01 07 00 [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: 01 07 00 9C 73 00 00 00 00 00 FD 0C 1F [21:29:56]RasterBufferAndPrint [21:29:56]line [21:29:56]line [21:29:56]line [21:29:56]line [21:29:56]line [21:29:56]written 0, free lines is 3334 [21:29:56]MH_Cut [21:29:56]Write to MH i2c: D1 01 00 A3 73 01 E8 [21:29:56]Write i2c OK [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: D1 [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: D1 01 00 [21:29:56]MH_I2C_Read... [21:29:56]Read from MH i2c: D1 01 00 A3 73 00 E7 [21:29:56]Write to MH i2c: 01 00 00 A4 73 17 [21:29:56]Write i2c OK [21:29:56]MH_I2C_Read... [21:29:57]OFD Sender: No OFD packet to send [21:29:57]*** Cut start [21:29:57]*** Partial cut [21:29:57]*** CUTSNS_PIN = 1 [21:29:57]*** CUTSNS_PIN = 0 [21:29:57]*** Brake cut motor [21:29:57]Read from MH i2c: 01 [21:29:57]MH_I2C_Read... [21:29:57]*** Stop cut motor [21:29:57]*** Cut end [21:29:57]Read from MH i2c: 01 07 00 [21:29:57]MH_I2C_Read... [21:29:57]Read from MH i2c: 01 07 00 A4 73 00 00 00 00 00 FF 0F 2C [21:29:57]process_action close_receipt done [21:29:57]requested_data is exist [21:29:57]produce_requested_data [21:29:57]requested_item fm.sn is exist - process it [21:29:57]wFMCommunicate request_size=4 [21:29:57]MH_SAM_APDU [21:29:57]CAPDU: 80 11 00 00 [21:29:57]Write to MH i2c: E2 08 00 A5 73 80 11 00 00 00 00 00 00 92 [21:29:57]Write i2c OK [21:29:57]MH_I2C_Read... [21:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:57]Read from MH i2c: E2 [21:29:57]MH_I2C_Read... [21:29:57]Read from MH i2c: E2 17 00 [21:29:57]MH_I2C_Read... [21:29:57]Read from MH i2c: E2 17 00 A5 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [21:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:29:57]wFMCommunicate OK [21:29:57]requested_item fd.num is exist - process it [21:29:57]SAM_PROTO_GetFieldsCounters [21:29:57]wFMCommunicate request_size=4 [21:29:57]MH_SAM_APDU [21:29:57]CAPDU: 80 13 00 00 [21:29:57]Write to MH i2c: E2 08 00 A6 73 80 13 00 00 00 00 00 00 95 [21:29:57]Write i2c OK [21:29:57]MH_I2C_Read... [21:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:58]Read from MH i2c: E2 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: E2 62 00 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: E2 62 00 A6 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [21:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:58]wFMCommunicate OK [21:29:58]SAM_PROTO_GetFieldsCounters done [21:29:58]requested_item shift.num is exist - process it [21:29:58]requested_item shift.opened is exist - process it [21:29:58]req_shift_opened [21:29:58]FM_GetShiftState [21:29:58]SAM_PROTO_GetShiftState [21:29:58]wFMCommunicate request_size=4 [21:29:58]MH_SAM_APDU [21:29:58]CAPDU: 80 13 01 00 [21:29:58]Write to MH i2c: E2 08 00 A7 73 80 13 01 00 00 00 00 00 97 [21:29:58]Write i2c OK [21:29:58]MH_I2C_Read... [21:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:58]Read from MH i2c: E2 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: E2 0E 00 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: E2 0E 00 A7 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 51 [21:29:58]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:29:58]wFMCommunicate OK [21:29:58]SAM_PROTO_GetShiftState done [21:29:58]FM_GetShiftState done [21:29:58]req_shift_opened done [21:29:58]requested_item shift.open_date is exist - process it [21:29:58]req_shift_open_date [21:29:58]req_shift_open_date done [21:29:58]produce_requested_data done [21:29:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31295,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:29:58]process_action_free close_receipt [21:29:58]json_value_free [21:29:58]json_value_free done [21:29:58]process_json_proto returns [21:29:58]Send response to host [21:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31295,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:29:58]free response buf [21:29:58]execute_script done [21:29:58]execute_script returns [21:29:58]free content buf [21:29:58]Sock 7.Close socket [21:29:58]Sock 7.Thread stoped [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:28]accept exits with 9 [21:32:28]New connection [21:32:28]New thread 3067043172 created [21:32:28]Thread 3066899812 joined [21:32:28]Waiting for new connection... [21:32:28] Sock 9.Parse request [21:32:28]Sock 9.Check first char [21:32:28]Sock 9.First char is OK [21:32:28]request: POST /json_proto HTTP/1.0 [21:32:28]Method: POST [21:32:28]URL: /json_proto [21:32:28]Method is POST - this is cgi request [21:32:28]url: /json_proto [21:32:28]query_string will be loaded in cgi processing [21:32:28]execute_cgi json_proto POST (null) [21:32:28]execute_cgi path=json_proto method=POST [21:32:28]POST find Content-Length [21:32:28]Host: 172.17.51.3:8080 [21:32:28]Content-Length: 792 [21:32:28]Content-Type: application/json [21:32:28] [21:32:28]POST finish read [21:32:28]Found Content-Length = 792 [21:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 16.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:28]execute_script... [21:32:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 16.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:28]POST & json_proto [21:32:28]process_json_proto [21:32:28]json parsed OK: [21:32:28]protocol is kg_v1.0 [21:32:28]action value=close_receipt [21:32:28]process_action close_receipt [21:32:28]cmd_close_receipt [21:32:28]MH_GetDate [21:32:28]Write to MH i2c: F0 00 00 A8 73 0A [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: F0 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: F0 09 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: F0 09 00 A8 73 00 75 6B 19 67 04 C1 95 66 33 [21:32:28]GetLastDocTimeStamp 1729719002 [21:32:28]current date 1729719157 [21:32:28]FM_GetShiftState [21:32:28]SAM_PROTO_GetShiftState [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 13 01 00 [21:32:28]Write to MH i2c: E2 08 00 A9 73 80 13 01 00 00 00 00 00 99 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 0E 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 0E 00 A9 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 53 [21:32:28]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:32:28]wFMCommunicate OK [21:32:28]SAM_PROTO_GetShiftState done [21:32:28]FM_GetShiftState done [21:32:28]opened in 1729643755 [21:32:28]opened+sec_in_day 1729730155 [21:32:28]quantity*price = 0 [21:32:28]sum+1 = 1 [21:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 240 23.10.2024 21:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 99723 ФМ: 0000000002094219 ФД: 31296 ФПД: 201676989523693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213237&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31296&fm=201676989523693&tin=02508201610067®Number=0000000000186857&sum=0 [21:32:29]StoreToDocumentArchive [21:32:29]shift 117 fd 31296 [21:32:29]save to /storage/0117/doc_00031296 [21:32:29]save last doc name /storage/0117/doc_00031296 to /storage/kkm_last_doc_name [21:32:29]save OK [21:32:29]Clear old archive folders... [21:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:29]tlvbuf is 00CDD640 [21:32:29]SAM_PROTO_ClearQueue [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 09 00 00 [21:32:29]Write to MH i2c: E2 08 00 B6 73 80 09 00 00 00 00 00 00 9B [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 03 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 03 00 B6 73 00 90 00 9D [21:32:29]RAPDU: 90 00 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_ClearQueue done [21:32:29]KKMCreateOFDPacket [21:32:29]OFDProtocolAddRootSTLVToBuf [21:32:29]FM_MakeSignedData [21:32:29]FM_MakeSignedData [21:32:29]SAM_PROTO_SignData [21:32:29]wFMCommunicate request_size=4 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 0D 01 02 [21:32:29]Write to MH i2c: E2 08 00 B7 73 80 0D 01 02 00 00 00 00 A3 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 03 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 03 00 B7 73 00 90 00 9E [21:32:29]RAPDU: 90 00 [21:32:29]wFMCommunicate OK [21:32:29]wFMCommunicate request_size=255 [21:32:29]MH_SAM_APDU [21:32:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 75 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 7A 00 00 35 04 06 00 B7 [21:32:29]Write to MH i2c: E2 02 01 B8 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 75 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 7A 00 00 35 04 06 00 B7 00 00 5D [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 03 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 03 00 B8 73 00 90 00 9F [21:32:30]RAPDU: 90 00 [21:32:30]wFMCommunicate OK [21:32:30]wFMCommunicate request_size=10 [21:32:30]MH_SAM_APDU [21:32:30]CAPDU: 80 0D 02 02 05 6C 95 51 E6 ED [21:32:30]Write to MH i2c: E2 0D 00 B9 73 80 0D 02 02 05 00 6C 95 51 E6 ED 00 00 D5 [21:32:30]Write i2c OK [21:32:30]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 03 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 03 00 B9 73 00 90 00 A0 [21:32:30]RAPDU: 90 00 [21:32:30]wFMCommunicate OK [21:32:30]wFMCommunicate request_size=4 [21:32:30]MH_SAM_APDU [21:32:30]CAPDU: 80 0D 03 02 [21:32:30]Write to MH i2c: E2 08 00 BA 73 80 0D 03 02 00 00 00 00 A8 [21:32:30]Write i2c OK [21:32:30]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 0B 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 0B 00 BA 73 00 4B BC 57 FE FC DB F7 6B 90 00 3E [21:32:30]RAPDU: 4B BC 57 FE FC DB F7 6B 90 00 [21:32:30]wFMCommunicate OK [21:32:30]SAM_PROTO_SignData done [21:32:30]FM_MakeSignedData done [21:32:30]CreateOFDProtocolMessage [21:32:30]wFMCommunicate request_size=4 [21:32:30]MH_SAM_APDU [21:32:30]CAPDU: 80 11 00 00 [21:32:30]Write to MH i2c: E2 08 00 BB 73 80 11 00 00 00 00 00 00 A8 [21:32:30]Write i2c OK [21:32:30]MH_I2C_Read... [21:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:30]Read from MH i2c: E2 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 17 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: E2 17 00 BB 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [21:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:30]wFMCommunicate OK [21:32:30]CreateOFDProtocolMessage done [21:32:30]OFDSenderStorePacket 31296 [21:32:30]StoreOFDPacket docnum=31296 [21:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E 8F 07 01 CE D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 75 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 7A 00 00 35 04 06 00 B7 6C 95 51 E6 ED 4B BC 57 FE FC DB F7 6B [21:32:30]CheckFolder [21:32:30]dirname=/storage/ofd_packets [21:32:30]CheckFolder done [21:32:30]ProducePacketName [21:32:30]name=ofd_packets/00031296 [21:32:30]NVStorageSaveData ofd_packets/00031296 [21:32:30]File name is /storage/ofd_packets/00031296 [21:32:30]Write 301 bytes [21:32:30]NVStorageSaveData done [21:32:30]OFDSenderStorePacket done [21:32:30]KKMCreateOFDPacket done [21:32:30]NVStorageSaveData kkm_last_timestamp [21:32:30]File name is /storage/kkm_last_timestamp [21:32:30]Write 4 bytes [21:32:30]NVStorageSaveData done [21:32:30]ExternCall_PrintAddStr [21:32:30]wPrintStart [21:32:30]Write to MH i2c: 01 00 00 BC 73 2F [21:32:30]Write i2c OK [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: 01 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: 01 07 00 [21:32:30]MH_I2C_Read... [21:32:30]Read from MH i2c: 01 07 00 BC 73 00 00 00 00 00 FF 0F 44 [21:32:30]RasterBufferAndPrint [21:32:30]line Счет N : (1)343744 [21:32:30]line ИНН: 02508201610067 [21:32:30]line Контрольно-Кассовый Чек [21:32:30]line ПРОДАЖА [21:32:30]line ТРК (МРК, ГНК) : 63 [21:32:30]line Товар: 2710124130 [21:32:30]line Аи-92-К-2 [21:32:30]line 16.440 * 0.00 [21:32:30]line = 0.00 [21:32:30]line НДС 12% НСП 1% [21:32:30]line > о реализуемом товаре [21:32:30]line ИТОГО: 0.00 [21:32:30]line НСП 1% : 0.00 [21:32:30]line НДС 12% : 0.00 [21:32:30]line Наличными: 0.00 [21:32:30]line Безнал.: 0.00 [21:32:30]line Место: АЗС № 78 "Партнер Нефть" [21:32:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:32:30]line СНО: Общий режим [21:32:30]line Чек 240 23.10.2024 21:32 [21:32:30]line Смена: 117 ФФД: 1.0 [21:32:30]line ЗНМ: 0300000137 [21:32:30]line РНМ: 0000000000186857 [21:32:30]line Версия ККМ: v1.0 [21:32:30]line Талоны: Топливная Карта [21:32:30]line 99723 [21:32:30]line ФМ: 0000000002094219 [21:32:30]line ФД: 31296 [21:32:30]line ФПД: 201676989523693 [21:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213237&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31296&fm=201676989523693&tin=02508201610067®Number=0000000000186857&sum=0 [21:32:30]OFD Sender: Processing packet 31296 [packets to send 11, broken 10] [21:32:30]ProducePacketName [21:32:30]name=ofd_packets/00031296 [21:32:30]OFD Sender: To server: pG, [21:32:30]CommunicateWithHost lk.salyk.kg:30040 [21:32:30]ConnectInit lk.salyk.kg [21:32:30]written 0, free lines is 4095 [21:32:30]Connected sock=10 [21:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E 8F 07 01 CE D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 75 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 7A 00 00 35 04 06 00 B7 6C 95 51 E6 ED 4B BC 57 FE FC DB F7 6B [21:32:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0C C0 47 00 B0 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 7A 00 00 F4 03 04 00 EE 15 19 67 B6 04 01 00 00 63 17 EA 99 EA DB A5 9D [21:32:31]CommunicateWithHost err = 0 [21:32:31]CheckOFDResponse [21:32:31]1017 (14) - 77093643461234 [21:32:31]1041 (16) - 0000000002094219 [21:32:31]1040 (4) - 31296 [21:32:31]1012 (4) - 23.10.2024 15:27 [21:32:31]1206 (1) - 0 [21:32:31]OFD Sender: Remove packet 31296 [21:32:31]ProducePacketName [21:32:31]name=ofd_packets/00031296 [21:32:31]NVStorageDeleteData [21:32:31]Write to MH i2c: 01 00 00 E6 73 59 [21:32:31]Write i2c OK [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: 01 [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: 01 07 00 [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: 01 07 00 E6 73 00 00 00 00 00 0A 0D 77 [21:32:31]RasterBufferAndPrint [21:32:31]line [21:32:31]line [21:32:31]line [21:32:31]line [21:32:31]line [21:32:31]written 0, free lines is 3347 [21:32:31]MH_Cut [21:32:31]Write to MH i2c: D1 01 00 ED 73 01 32 [21:32:31]Write i2c OK [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: D1 [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: D1 01 00 [21:32:31]MH_I2C_Read... [21:32:31]Read from MH i2c: D1 01 00 ED 73 00 31 [21:32:31]Write to MH i2c: 01 00 00 EE 73 61 [21:32:31]Write i2c OK [21:32:31]MH_I2C_Read... [21:32:31]OFD Sender: No OFD packet to send [21:32:31]*** Cut start [21:32:31]*** Partial cut [21:32:31]*** CUTSNS_PIN = 1 [21:32:31]*** CUTSNS_PIN = 0 [21:32:32]*** Brake cut motor [21:32:32]Read from MH i2c: 01 [21:32:32]MH_I2C_Read... [21:32:32]*** Stop cut motor [21:32:32]*** Cut end [21:32:32]Read from MH i2c: 01 07 00 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: 01 07 00 EE 73 00 00 00 00 00 FF 0F 76 [21:32:32]process_action close_receipt done [21:32:32]requested_data is exist [21:32:32]produce_requested_data [21:32:32]requested_item fm.sn is exist - process it [21:32:32]wFMCommunicate request_size=4 [21:32:32]MH_SAM_APDU [21:32:32]CAPDU: 80 11 00 00 [21:32:32]Write to MH i2c: E2 08 00 EF 73 80 11 00 00 00 00 00 00 DC [21:32:32]Write i2c OK [21:32:32]MH_I2C_Read... [21:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:32]Read from MH i2c: E2 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 17 00 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 17 00 EF 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [21:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:32]wFMCommunicate OK [21:32:32]requested_item fd.num is exist - process it [21:32:32]SAM_PROTO_GetFieldsCounters [21:32:32]wFMCommunicate request_size=4 [21:32:32]MH_SAM_APDU [21:32:32]CAPDU: 80 13 00 00 [21:32:32]Write to MH i2c: E2 08 00 F0 73 80 13 00 00 00 00 00 00 DF [21:32:32]Write i2c OK [21:32:32]MH_I2C_Read... [21:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:32]Read from MH i2c: E2 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 62 00 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 62 00 F0 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [21:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:32]wFMCommunicate OK [21:32:32]SAM_PROTO_GetFieldsCounters done [21:32:32]requested_item shift.num is exist - process it [21:32:32]requested_item shift.opened is exist - process it [21:32:32]req_shift_opened [21:32:32]FM_GetShiftState [21:32:32]SAM_PROTO_GetShiftState [21:32:32]wFMCommunicate request_size=4 [21:32:32]MH_SAM_APDU [21:32:32]CAPDU: 80 13 01 00 [21:32:32]Write to MH i2c: E2 08 00 F1 73 80 13 01 00 00 00 00 00 E1 [21:32:32]Write i2c OK [21:32:32]MH_I2C_Read... [21:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:32]Read from MH i2c: E2 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 0E 00 [21:32:32]MH_I2C_Read... [21:32:32]Read from MH i2c: E2 0E 00 F1 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9B [21:32:32]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:32:32]wFMCommunicate OK [21:32:32]SAM_PROTO_GetShiftState done [21:32:32]FM_GetShiftState done [21:32:32]req_shift_opened done [21:32:32]requested_item shift.open_date is exist - process it [21:32:32]req_shift_open_date [21:32:32]req_shift_open_date done [21:32:32]produce_requested_data done [21:32:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31296,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:32:32]process_action_free close_receipt [21:32:32]json_value_free [21:32:32]json_value_free done [21:32:32]process_json_proto returns [21:32:32]Send response to host [21:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31296,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:32:32]free response buf [21:32:32]execute_script done [21:32:32]execute_script returns [21:32:32]free content buf [21:32:32]Sock 9.Close socket [21:32:32]Sock 9.Thread stoped [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:48]accept exits with 7 [21:32:48]New connection [21:32:48]New thread 3066899812 created [21:32:48]Thread 3067043172 joined [21:32:48]Waiting for new connection... [21:32:48] Sock 7.Parse request [21:32:48]Sock 7.Check first char [21:32:48]Sock 7.First char is OK [21:32:48]request: POST /json_proto HTTP/1.0 [21:32:48]Method: POST [21:32:48]URL: /json_proto [21:32:48]Method is POST - this is cgi request [21:32:48]url: /json_proto [21:32:48]query_string will be loaded in cgi processing [21:32:48]execute_cgi json_proto POST (null) [21:32:48]execute_cgi path=json_proto method=POST [21:32:48]POST find Content-Length [21:32:48]Host: 172.17.51.3:8080 [21:32:48]Content-Length: 682 [21:32:48]Content-Type: application/json [21:32:48] [21:32:48]POST finish read [21:32:48]Found Content-Length = 682 [21:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:48]execute_script... [21:32:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:48]POST & json_proto [21:32:48]process_json_proto [21:32:48]json parsed OK: [21:32:48]protocol is kg_v1.0 [21:32:48]action value=close_receipt [21:32:48]process_action close_receipt [21:32:48]cmd_close_receipt [21:32:48]MH_GetDate [21:32:48]Write to MH i2c: F0 00 00 F2 73 54 [21:32:48]Write i2c OK [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: F0 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: F0 09 00 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: F0 09 00 F2 73 00 89 6B 19 67 04 C1 95 66 91 [21:32:48]GetLastDocTimeStamp 1729719157 [21:32:48]current date 1729719177 [21:32:48]FM_GetShiftState [21:32:48]SAM_PROTO_GetShiftState [21:32:48]wFMCommunicate request_size=4 [21:32:48]MH_SAM_APDU [21:32:48]CAPDU: 80 13 01 00 [21:32:48]Write to MH i2c: E2 08 00 F3 73 80 13 01 00 00 00 00 00 E3 [21:32:48]Write i2c OK [21:32:48]MH_I2C_Read... [21:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:48]Read from MH i2c: E2 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: E2 0E 00 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: E2 0E 00 F3 73 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 9D [21:32:48]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:32:48]wFMCommunicate OK [21:32:48]SAM_PROTO_GetShiftState done [21:32:48]FM_GetShiftState done [21:32:48]opened in 1729643755 [21:32:48]opened+sec_in_day 1729730155 [21:32:48]quantity*price = 200043 [21:32:48]sum+1 = 200044 [21:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 241 23.10.2024 21:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31297 ФПД: 50086010413816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31297&fm=50086010413816&tin=02508201610067®Number=0000000000186857&sum=200000 [21:32:50]StoreToDocumentArchive [21:32:50]shift 117 fd 31297 [21:32:50]save to /storage/0117/doc_00031297 [21:32:50]save last doc name /storage/0117/doc_00031297 to /storage/kkm_last_doc_name [21:32:50]save OK [21:32:50]Clear old archive folders... [21:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:50]tlvbuf is 00D57810 [21:32:50]SAM_PROTO_ClearQueue [21:32:50]wFMCommunicate request_size=4 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 09 00 00 [21:32:50]Write to MH i2c: E2 08 00 00 74 80 09 00 00 00 00 00 00 E6 [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 00 74 00 90 00 E8 [21:32:50]RAPDU: 90 00 [21:32:50]wFMCommunicate OK [21:32:50]SAM_PROTO_ClearQueue done [21:32:50]KKMCreateOFDPacket [21:32:50]OFDProtocolAddRootSTLVToBuf [21:32:50]FM_MakeSignedData [21:32:50]FM_MakeSignedData [21:32:50]SAM_PROTO_SignData [21:32:50]wFMCommunicate request_size=4 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 0D 01 02 [21:32:50]Write to MH i2c: E2 08 00 01 74 80 0D 01 02 00 00 00 00 EE [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 01 74 00 90 00 E9 [21:32:50]RAPDU: 90 00 [21:32:50]wFMCommunicate OK [21:32:50]wFMCommunicate request_size=255 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 89 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 7A 00 00 35 04 06 00 2D [21:32:50]Write to MH i2c: E2 02 01 02 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 89 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 7A 00 00 35 04 06 00 2D 00 00 EA [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 02 74 00 90 00 EA [21:32:50]RAPDU: 90 00 [21:32:50]wFMCommunicate OK [21:32:50]wFMCommunicate request_size=10 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 0D 02 02 05 8D 8E DB E2 F8 [21:32:50]Write to MH i2c: E2 0D 00 03 74 80 0D 02 02 05 00 8D 8E DB E2 F8 00 00 CB [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 03 00 03 74 00 90 00 EB [21:32:50]RAPDU: 90 00 [21:32:50]wFMCommunicate OK [21:32:50]wFMCommunicate request_size=4 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 0D 03 02 [21:32:50]Write to MH i2c: E2 08 00 04 74 80 0D 03 02 00 00 00 00 F3 [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 0B 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 0B 00 04 74 00 A5 6F F6 C6 4A 8A 41 16 90 00 EF [21:32:50]RAPDU: A5 6F F6 C6 4A 8A 41 16 90 00 [21:32:50]wFMCommunicate OK [21:32:50]SAM_PROTO_SignData done [21:32:50]FM_MakeSignedData done [21:32:50]CreateOFDProtocolMessage [21:32:50]wFMCommunicate request_size=4 [21:32:50]MH_SAM_APDU [21:32:50]CAPDU: 80 11 00 00 [21:32:50]Write to MH i2c: E2 08 00 05 74 80 11 00 00 00 00 00 00 F3 [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:50]Read from MH i2c: E2 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 17 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: E2 17 00 05 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [21:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:50]wFMCommunicate OK [21:32:50]CreateOFDProtocolMessage done [21:32:50]OFDSenderStorePacket 31297 [21:32:50]StoreOFDPacket docnum=31297 [21:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6C 88 07 01 5B 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 89 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 7A 00 00 35 04 06 00 2D 8D 8E DB E2 F8 A5 6F F6 C6 4A 8A 41 16 [21:32:50]CheckFolder [21:32:50]dirname=/storage/ofd_packets [21:32:50]CheckFolder done [21:32:50]ProducePacketName [21:32:50]name=ofd_packets/00031297 [21:32:50]NVStorageSaveData ofd_packets/00031297 [21:32:50]File name is /storage/ofd_packets/00031297 [21:32:50]Write 301 bytes [21:32:50]NVStorageSaveData done [21:32:50]OFDSenderStorePacket done [21:32:50]KKMCreateOFDPacket done [21:32:50]NVStorageSaveData kkm_last_timestamp [21:32:50]File name is /storage/kkm_last_timestamp [21:32:50]Write 4 bytes [21:32:50]NVStorageSaveData done [21:32:50]ExternCall_PrintAddStr [21:32:50]wPrintStart [21:32:50]Write to MH i2c: 01 00 00 06 74 7A [21:32:50]Write i2c OK [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: 01 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: 01 07 00 [21:32:50]MH_I2C_Read... [21:32:50]Read from MH i2c: 01 07 00 06 74 00 00 00 00 00 FF 0F 8F [21:32:50]RasterBufferAndPrint [21:32:50]line Счет N : (1)343745 [21:32:50]line ИНН: 02508201610067 [21:32:50]line Контрольно-Кассовый Чек [21:32:50]line ПРОДАЖА [21:32:50]line ТРК (МРК, ГНК) : 52 [21:32:50]line Товар: 2710124500 [21:32:50]line Аи-95-К-3 [21:32:50]line 26.960 * 74.20 [21:32:50]line = 2000.43 [21:32:50]line НДС 12% НСП 1% [21:32:50]line > о реализуемом товаре [21:32:50]line ОКРУГЛЕНИЕ: -0.43 [21:32:50]line ИТОГО: 2000.00 [21:32:50]line Внесено: 2000.00 [21:32:50]line СДАЧА: 0.00 [21:32:50]line НСП 1% : 17.70 [21:32:50]line НДС 12% : 212.43 [21:32:50]line Наличными: 2000.00 [21:32:50]line Безнал.: 0.00 [21:32:50]line Место: АЗС № 78 "Партнер Нефть" [21:32:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:32:50]line СНО: Общий режим [21:32:50]line Чек 241 23.10.2024 21:32 [21:32:50]line Смена: 117 ФФД: 1.0 [21:32:50]line ЗНМ: 0300000137 [21:32:50]line РНМ: 0000000000186857 [21:32:50]line Версия ККМ: v1.0 [21:32:50]line ФМ: 0000000002094219 [21:32:50]line ФД: 31297 [21:32:50]line ФПД: 50086010413816 [21:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T213257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31297&fm=50086010413816&tin=02508201610067®Number=0000000000186857&sum=200000 [21:32:50]OFD Sender: Processing packet 31297 [packets to send 11, broken 10] [21:32:50]ProducePacketName [21:32:50]name=ofd_packets/00031297 [21:32:50]OFD Sender: To server: pG, [21:32:50]CommunicateWithHost lk.salyk.kg:30040 [21:32:50]ConnectInit lk.salyk.kg [21:32:50]written 0, free lines is 4095 [21:32:50]Connected sock=10 [21:32:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6C 88 07 01 5B 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 89 6B 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 7A 00 00 35 04 06 00 2D 8D 8E DB E2 F8 A5 6F F6 C6 4A 8A 41 16 [21:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 25 8C 47 00 A9 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 7A 00 00 F4 03 04 00 02 16 19 67 B6 04 01 00 00 00 49 8F A2 B9 3E 4A 57 [21:32:51]CommunicateWithHost err = 0 [21:32:51]CheckOFDResponse [21:32:51]1017 (14) - 77093643461234 [21:32:51]1041 (16) - 0000000002094219 [21:32:51]1040 (4) - 31297 [21:32:51]1012 (4) - 23.10.2024 15:28 [21:32:51]1206 (1) - 0 [21:32:51]OFD Sender: Remove packet 31297 [21:32:51]ProducePacketName [21:32:51]name=ofd_packets/00031297 [21:32:51]NVStorageDeleteData [21:32:51]Write to MH i2c: 01 00 00 31 74 A5 [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: 01 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: 01 07 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: 01 07 00 31 74 00 00 00 00 00 FA 0C B2 [21:32:51]RasterBufferAndPrint [21:32:51]line [21:32:51]line [21:32:51]line [21:32:51]line [21:32:51]line [21:32:51]written 0, free lines is 3331 [21:32:51]MH_Cut [21:32:51]Write to MH i2c: D1 01 00 38 74 01 7E [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: D1 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: D1 01 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: D1 01 00 38 74 00 7D [21:32:51]Write to MH i2c: 01 00 00 39 74 AD [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]OFD Sender: No OFD packet to send [21:32:52]*** Cut start [21:32:52]*** Partial cut [21:32:52]*** CUTSNS_PIN = 1 [21:32:52]*** CUTSNS_PIN = 0 [21:32:52]*** Brake cut motor [21:32:52]Read from MH i2c: 01 [21:32:52]MH_I2C_Read... [21:32:52]*** Stop cut motor [21:32:52]*** Cut end [21:32:52]Read from MH i2c: 01 07 00 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: 01 07 00 39 74 00 00 00 00 00 FF 0F C2 [21:32:52]process_action close_receipt done [21:32:52]requested_data is exist [21:32:52]produce_requested_data [21:32:52]requested_item fm.sn is exist - process it [21:32:52]wFMCommunicate request_size=4 [21:32:52]MH_SAM_APDU [21:32:52]CAPDU: 80 11 00 00 [21:32:52]Write to MH i2c: E2 08 00 3A 74 80 11 00 00 00 00 00 00 28 [21:32:52]Write i2c OK [21:32:52]MH_I2C_Read... [21:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:52]Read from MH i2c: E2 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 17 00 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 17 00 3A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [21:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:52]wFMCommunicate OK [21:32:52]requested_item fd.num is exist - process it [21:32:52]SAM_PROTO_GetFieldsCounters [21:32:52]wFMCommunicate request_size=4 [21:32:52]MH_SAM_APDU [21:32:52]CAPDU: 80 13 00 00 [21:32:52]Write to MH i2c: E2 08 00 3B 74 80 13 00 00 00 00 00 00 2B [21:32:52]Write i2c OK [21:32:52]MH_I2C_Read... [21:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:52]Read from MH i2c: E2 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 62 00 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 62 00 3B 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:52]wFMCommunicate OK [21:32:52]SAM_PROTO_GetFieldsCounters done [21:32:52]requested_item shift.num is exist - process it [21:32:52]requested_item shift.opened is exist - process it [21:32:52]req_shift_opened [21:32:52]FM_GetShiftState [21:32:52]SAM_PROTO_GetShiftState [21:32:52]wFMCommunicate request_size=4 [21:32:52]MH_SAM_APDU [21:32:52]CAPDU: 80 13 01 00 [21:32:52]Write to MH i2c: E2 08 00 3C 74 80 13 01 00 00 00 00 00 2D [21:32:52]Write i2c OK [21:32:52]MH_I2C_Read... [21:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:52]Read from MH i2c: E2 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 0E 00 [21:32:52]MH_I2C_Read... [21:32:52]Read from MH i2c: E2 0E 00 3C 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E7 [21:32:52]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [21:32:52]wFMCommunicate OK [21:32:52]SAM_PROTO_GetShiftState done [21:32:52]FM_GetShiftState done [21:32:52]req_shift_opened done [21:32:52]requested_item shift.open_date is exist - process it [21:32:52]req_shift_open_date [21:32:52]req_shift_open_date done [21:32:52]produce_requested_data done [21:32:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31297,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [21:32:52]process_action_free close_receipt [21:32:52]json_value_free [21:32:52]json_value_free done [21:32:52]process_json_proto returns [21:32:52]Send response to host [21:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31297,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [21:32:52]free response buf [21:32:52]execute_script done [21:32:52]execute_script returns [21:32:52]free content buf [21:32:52]Sock 7.Close socket [21:32:52]Sock 7.Thread stoped [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:23]accept exits with 9 [22:10:23]New connection [22:10:23]New thread 3067043172 created [22:10:23]Thread 3066899812 joined [22:10:23]Waiting for new connection... [22:10:23] Sock 9.Parse request [22:10:23]Sock 9.Check first char [22:10:23]Sock 9.First char is OK [22:10:23]request: POST /json_proto HTTP/1.0 [22:10:23]Method: POST [22:10:23]URL: /json_proto [22:10:23]Method is POST - this is cgi request [22:10:23]url: /json_proto [22:10:23]query_string will be loaded in cgi processing [22:10:23]execute_cgi json_proto POST (null) [22:10:23]execute_cgi path=json_proto method=POST [22:10:23]POST find Content-Length [22:10:23]Host: 172.17.51.3:8080 [22:10:23]Content-Length: 677 [22:10:23]Content-Type: application/json [22:10:23] [22:10:23]POST finish read [22:10:23]Found Content-Length = 677 [22:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:23]execute_script... [22:10:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:23]POST & json_proto [22:10:23]process_json_proto [22:10:23]json parsed OK: [22:10:23]protocol is kg_v1.0 [22:10:23]action value=close_receipt [22:10:23]process_action close_receipt [22:10:23]cmd_close_receipt [22:10:23]MH_GetDate [22:10:23]Write to MH i2c: F0 00 00 3D 74 A0 [22:10:23]Write i2c OK [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 09 00 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 09 00 3D 74 00 58 74 19 67 04 C1 95 66 B5 [22:10:23]GetLastDocTimeStamp 1729719177 [22:10:23]current date 1729721432 [22:10:23]FM_GetShiftState [22:10:23]SAM_PROTO_GetShiftState [22:10:23]wFMCommunicate request_size=4 [22:10:23]MH_SAM_APDU [22:10:23]CAPDU: 80 13 01 00 [22:10:23]Write to MH i2c: E2 08 00 3E 74 80 13 01 00 00 00 00 00 2F [22:10:23]Write i2c OK [22:10:23]MH_I2C_Read... [22:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:23]Read from MH i2c: E2 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: E2 0E 00 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: E2 0E 00 3E 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 E9 [22:10:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:10:23]wFMCommunicate OK [22:10:23]SAM_PROTO_GetShiftState done [22:10:23]FM_GetShiftState done [22:10:23]opened in 1729643755 [22:10:23]opened+sec_in_day 1729730155 [22:10:23]quantity*price = 50041 [22:10:23]sum+1 = 50042 [22:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 242 23.10.2024 22:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31298 ФПД: 74962166933716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31298&fm=74962166933716&tin=02508201610067®Number=0000000000186857&sum=50000 [22:10:25]StoreToDocumentArchive [22:10:25]shift 117 fd 31298 [22:10:25]save to /storage/0117/doc_00031298 [22:10:25]save last doc name /storage/0117/doc_00031298 to /storage/kkm_last_doc_name [22:10:25]save OK [22:10:25]Clear old archive folders... [22:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:25]tlvbuf is 00D5E5A0 [22:10:25]SAM_PROTO_ClearQueue [22:10:25]wFMCommunicate request_size=4 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 09 00 00 [22:10:25]Write to MH i2c: E2 08 00 4B 74 80 09 00 00 00 00 00 00 31 [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 4B 74 00 90 00 33 [22:10:25]RAPDU: 90 00 [22:10:25]wFMCommunicate OK [22:10:25]SAM_PROTO_ClearQueue done [22:10:25]KKMCreateOFDPacket [22:10:25]OFDProtocolAddRootSTLVToBuf [22:10:25]FM_MakeSignedData [22:10:25]FM_MakeSignedData [22:10:25]SAM_PROTO_SignData [22:10:25]wFMCommunicate request_size=4 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 0D 01 02 [22:10:25]Write to MH i2c: E2 08 00 4C 74 80 0D 01 02 00 00 00 00 39 [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 4C 74 00 90 00 34 [22:10:25]RAPDU: 90 00 [22:10:25]wFMCommunicate OK [22:10:25]wFMCommunicate request_size=255 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 58 74 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 7A 00 00 35 04 06 00 44 [22:10:25]Write to MH i2c: E2 02 01 4D 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 58 74 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 7A 00 00 35 04 06 00 44 00 00 7D [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 4D 74 00 90 00 35 [22:10:25]RAPDU: 90 00 [22:10:25]wFMCommunicate OK [22:10:25]wFMCommunicate request_size=10 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 0D 02 02 05 2D 7D 54 E8 D4 [22:10:25]Write to MH i2c: E2 0D 00 4E 74 80 0D 02 02 05 00 2D 7D 54 E8 D4 00 00 00 [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 03 00 4E 74 00 90 00 36 [22:10:25]RAPDU: 90 00 [22:10:25]wFMCommunicate OK [22:10:25]wFMCommunicate request_size=4 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 0D 03 02 [22:10:25]Write to MH i2c: E2 08 00 4F 74 80 0D 03 02 00 00 00 00 3E [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 0B 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 0B 00 4F 74 00 34 B9 11 FE 12 70 46 EB 90 00 EE [22:10:25]RAPDU: 34 B9 11 FE 12 70 46 EB 90 00 [22:10:25]wFMCommunicate OK [22:10:25]SAM_PROTO_SignData done [22:10:25]FM_MakeSignedData done [22:10:25]CreateOFDProtocolMessage [22:10:25]wFMCommunicate request_size=4 [22:10:25]MH_SAM_APDU [22:10:25]CAPDU: 80 11 00 00 [22:10:25]Write to MH i2c: E2 08 00 50 74 80 11 00 00 00 00 00 00 3E [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:25]Read from MH i2c: E2 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 17 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: E2 17 00 50 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [22:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:10:25]wFMCommunicate OK [22:10:25]CreateOFDProtocolMessage done [22:10:25]OFDSenderStorePacket 31298 [22:10:25]StoreOFDPacket docnum=31298 [22:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F8 A2 07 01 1B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 58 74 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 7A 00 00 35 04 06 00 44 2D 7D 54 E8 D4 34 B9 11 FE 12 70 46 EB [22:10:25]CheckFolder [22:10:25]dirname=/storage/ofd_packets [22:10:25]CheckFolder done [22:10:25]ProducePacketName [22:10:25]name=ofd_packets/00031298 [22:10:25]NVStorageSaveData ofd_packets/00031298 [22:10:25]File name is /storage/ofd_packets/00031298 [22:10:25]Write 301 bytes [22:10:25]NVStorageSaveData done [22:10:25]OFDSenderStorePacket done [22:10:25]KKMCreateOFDPacket done [22:10:25]NVStorageSaveData kkm_last_timestamp [22:10:25]File name is /storage/kkm_last_timestamp [22:10:25]Write 4 bytes [22:10:25]NVStorageSaveData done [22:10:25]ExternCall_PrintAddStr [22:10:25]wPrintStart [22:10:25]Write to MH i2c: 01 00 00 51 74 C5 [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 07 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 07 00 51 74 00 00 00 00 00 FF 0F DA [22:10:25]RasterBufferAndPrint [22:10:25]line Счет N : (1)343746 [22:10:25]line ИНН: 02508201610067 [22:10:25]line Контрольно-Кассовый Чек [22:10:25]line ПРОДАЖА [22:10:25]line ТРК (МРК, ГНК) : 43 [22:10:25]line Товар: 2710124130 [22:10:25]line Аи-92-К-2 [22:10:25]line 7.480 * 66.90 [22:10:25]line = 500.41 [22:10:25]line НДС 12% НСП 1% [22:10:25]line > о реализуемом товаре [22:10:25]line ОКРУГЛЕНИЕ: -0.41 [22:10:25]line ИТОГО: 500.00 [22:10:25]line Внесено: 500.00 [22:10:25]line СДАЧА: 0.00 [22:10:25]line НСП 1% : 4.43 [22:10:25]line НДС 12% : 53.14 [22:10:25]line Наличными: 500.00 [22:10:25]line Безнал.: 0.00 [22:10:25]line Место: АЗС № 78 "Партнер Нефть" [22:10:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:10:25]line СНО: Общий режим [22:10:25]line Чек 242 23.10.2024 22:10 [22:10:25]line Смена: 117 ФФД: 1.0 [22:10:25]line ЗНМ: 0300000137 [22:10:25]line РНМ: 0000000000186857 [22:10:25]line Версия ККМ: v1.0 [22:10:25]line ФМ: 0000000002094219 [22:10:25]line ФД: 31298 [22:10:25]line ФПД: 74962166933716 [22:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31298&fm=74962166933716&tin=02508201610067®Number=0000000000186857&sum=50000 [22:10:25]OFD Sender: Processing packet 31298 [packets to send 11, broken 10] [22:10:25]ProducePacketName [22:10:26]name=ofd_packets/00031298 [22:10:26]OFD Sender: To server: pG, [22:10:26]CommunicateWithHost lk.salyk.kg:30040 [22:10:26]ConnectInit lk.salyk.kg [22:10:26]written 0, free lines is 4095 [22:10:26]Connected sock=10 [22:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F8 A2 07 01 1B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 58 74 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 7A 00 00 35 04 06 00 44 2D 7D 54 E8 D4 34 B9 11 FE 12 70 46 EB [22:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BD F6 47 00 03 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 32 30 39 34 32 31 39 10 04 04 00 42 7A 00 00 F4 03 04 00 D1 1E 19 67 B6 04 01 00 00 9D 5E CA 8F 3B 0F 11 92 [22:10:26]CommunicateWithHost err = 0 [22:10:26]CheckOFDResponse [22:10:26]1017 (14) - 77093643461234 [22:10:26]1041 (16) - 0000000002094219 [22:10:26]1040 (4) - 31298 [22:10:26]1012 (4) - 23.10.2024 16:05 [22:10:26]1206 (1) - 0 [22:10:26]OFD Sender: Remove packet 31298 [22:10:26]ProducePacketName [22:10:26]name=ofd_packets/00031298 [22:10:26]NVStorageDeleteData [22:10:26]Write to MH i2c: 01 00 00 7C 74 F0 [22:10:26]Write i2c OK [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: 01 [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: 01 07 00 [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: 01 07 00 7C 74 00 00 00 00 00 FE 0C 01 [22:10:26]RasterBufferAndPrint [22:10:26]line [22:10:26]line [22:10:26]line [22:10:26]line [22:10:26]line [22:10:26]written 0, free lines is 3332 [22:10:26]MH_Cut [22:10:26]Write to MH i2c: D1 01 00 83 74 01 C9 [22:10:26]Write i2c OK [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: D1 [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: D1 01 00 [22:10:26]MH_I2C_Read... [22:10:26]Read from MH i2c: D1 01 00 83 74 00 C8 [22:10:26]Write to MH i2c: 01 00 00 84 74 F8 [22:10:26]Write i2c OK [22:10:26]MH_I2C_Read... [22:10:26]OFD Sender: No OFD packet to send [22:10:27]*** Cut start [22:10:27]*** Partial cut [22:10:27]*** CUTSNS_PIN = 1 [22:10:27]*** CUTSNS_PIN = 0 [22:10:27]*** Brake cut motor [22:10:27]Read from MH i2c: 01 [22:10:27]MH_I2C_Read... [22:10:27]*** Stop cut motor [22:10:27]*** Cut end [22:10:27]Read from MH i2c: 01 07 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: 01 07 00 84 74 00 00 00 00 00 FF 0F 0D [22:10:27]process_action close_receipt done [22:10:27]requested_data is exist [22:10:27]produce_requested_data [22:10:27]requested_item fm.sn is exist - process it [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 11 00 00 [22:10:27]Write to MH i2c: E2 08 00 85 74 80 11 00 00 00 00 00 00 73 [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 17 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 17 00 85 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [22:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:10:27]wFMCommunicate OK [22:10:27]requested_item fd.num is exist - process it [22:10:27]SAM_PROTO_GetFieldsCounters [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 13 00 00 [22:10:27]Write to MH i2c: E2 08 00 86 74 80 13 00 00 00 00 00 00 76 [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 62 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 62 00 86 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:27]wFMCommunicate OK [22:10:27]SAM_PROTO_GetFieldsCounters done [22:10:27]requested_item shift.num is exist - process it [22:10:27]requested_item shift.opened is exist - process it [22:10:27]req_shift_opened [22:10:27]FM_GetShiftState [22:10:27]SAM_PROTO_GetShiftState [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 13 01 00 [22:10:27]Write to MH i2c: E2 08 00 87 74 80 13 01 00 00 00 00 00 78 [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 0E 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 0E 00 87 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 32 [22:10:27]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:10:27]wFMCommunicate OK [22:10:27]SAM_PROTO_GetShiftState done [22:10:27]FM_GetShiftState done [22:10:27]req_shift_opened done [22:10:27]requested_item shift.open_date is exist - process it [22:10:27]req_shift_open_date [22:10:27]req_shift_open_date done [22:10:27]produce_requested_data done [22:10:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31298,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [22:10:27]process_action_free close_receipt [22:10:27]json_value_free [22:10:27]json_value_free done [22:10:27]process_json_proto returns [22:10:27]Send response to host [22:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31298,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [22:10:27]free response buf [22:10:27]execute_script done [22:10:27]execute_script returns [22:10:27]free content buf [22:10:27]Sock 9.Close socket [22:10:27]Sock 9.Thread stoped [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:45]accept exits with 7 [22:27:45]New connection [22:27:45]New thread 3066899812 created [22:27:45]Thread 3067043172 joined [22:27:45]Waiting for new connection... [22:27:45] Sock 7.Parse request [22:27:45]Sock 7.Check first char [22:27:45]Sock 7.First char is OK [22:27:45]request: POST /json_proto HTTP/1.0 [22:27:45]Method: POST [22:27:45]URL: /json_proto [22:27:45]Method is POST - this is cgi request [22:27:45]url: /json_proto [22:27:45]query_string will be loaded in cgi processing [22:27:45]execute_cgi json_proto POST (null) [22:27:45]execute_cgi path=json_proto method=POST [22:27:45]POST find Content-Length [22:27:45]Host: 172.17.51.3:8080 [22:27:45]Content-Length: 677 [22:27:45]Content-Type: application/json [22:27:45] [22:27:45]POST finish read [22:27:45]Found Content-Length = 677 [22:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:45]execute_script... [22:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:45]POST & json_proto [22:27:45]process_json_proto [22:27:45]json parsed OK: [22:27:45]protocol is kg_v1.0 [22:27:45]action value=close_receipt [22:27:45]process_action close_receipt [22:27:45]cmd_close_receipt [22:27:45]MH_GetDate [22:27:45]Write to MH i2c: F0 00 00 88 74 EB [22:27:45]Write i2c OK [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 09 00 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: F0 09 00 88 74 00 69 78 19 67 04 C1 95 66 15 [22:27:45]GetLastDocTimeStamp 1729721432 [22:27:45]current date 1729722473 [22:27:45]FM_GetShiftState [22:27:45]SAM_PROTO_GetShiftState [22:27:45]wFMCommunicate request_size=4 [22:27:45]MH_SAM_APDU [22:27:45]CAPDU: 80 13 01 00 [22:27:45]Write to MH i2c: E2 08 00 89 74 80 13 01 00 00 00 00 00 7A [22:27:45]Write i2c OK [22:27:45]MH_I2C_Read... [22:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:45]Read from MH i2c: E2 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: E2 0E 00 [22:27:45]MH_I2C_Read... [22:27:45]Read from MH i2c: E2 0E 00 89 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 34 [22:27:45]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:27:45]wFMCommunicate OK [22:27:45]SAM_PROTO_GetShiftState done [22:27:45]FM_GetShiftState done [22:27:45]opened in 1729643755 [22:27:45]opened+sec_in_day 1729730155 [22:27:45]quantity*price = 50010 [22:27:45]sum+1 = 50012 [22:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 243 23.10.2024 22:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31299 ФПД: 230555763516770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222753&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31299&fm=230555763516770&tin=02508201610067®Number=0000000000186857&sum=50000 [22:27:46]StoreToDocumentArchive [22:27:46]shift 117 fd 31299 [22:27:46]save to /storage/0117/doc_00031299 [22:27:46]save last doc name /storage/0117/doc_00031299 to /storage/kkm_last_doc_name [22:27:46]save OK [22:27:46]Clear old archive folders... [22:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:46]tlvbuf is 00D5E730 [22:27:46]SAM_PROTO_ClearQueue [22:27:46]wFMCommunicate request_size=4 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 09 00 00 [22:27:46]Write to MH i2c: E2 08 00 96 74 80 09 00 00 00 00 00 00 7C [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 96 74 00 90 00 7E [22:27:46]RAPDU: 90 00 [22:27:46]wFMCommunicate OK [22:27:46]SAM_PROTO_ClearQueue done [22:27:46]KKMCreateOFDPacket [22:27:46]OFDProtocolAddRootSTLVToBuf [22:27:46]FM_MakeSignedData [22:27:46]FM_MakeSignedData [22:27:46]SAM_PROTO_SignData [22:27:46]wFMCommunicate request_size=4 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 0D 01 02 [22:27:46]Write to MH i2c: E2 08 00 97 74 80 0D 01 02 00 00 00 00 84 [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 97 74 00 90 00 7F [22:27:46]RAPDU: 90 00 [22:27:46]wFMCommunicate OK [22:27:46]wFMCommunicate request_size=255 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 69 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 7A 00 00 35 04 06 00 D1 [22:27:46]Write to MH i2c: E2 02 01 98 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 69 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 7A 00 00 35 04 06 00 D1 00 00 45 [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 98 74 00 90 00 80 [22:27:46]RAPDU: 90 00 [22:27:46]wFMCommunicate OK [22:27:46]wFMCommunicate request_size=10 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 0D 02 02 05 B0 72 62 A5 62 [22:27:46]Write to MH i2c: E2 0D 00 99 74 80 0D 02 02 05 00 B0 72 62 A5 62 00 00 1C [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 03 00 99 74 00 90 00 81 [22:27:46]RAPDU: 90 00 [22:27:46]wFMCommunicate OK [22:27:46]wFMCommunicate request_size=4 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 0D 03 02 [22:27:46]Write to MH i2c: E2 08 00 9A 74 80 0D 03 02 00 00 00 00 89 [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 0B 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 0B 00 9A 74 00 66 54 E4 B1 DF 71 19 7A 90 00 BC [22:27:46]RAPDU: 66 54 E4 B1 DF 71 19 7A 90 00 [22:27:46]wFMCommunicate OK [22:27:46]SAM_PROTO_SignData done [22:27:46]FM_MakeSignedData done [22:27:46]CreateOFDProtocolMessage [22:27:46]wFMCommunicate request_size=4 [22:27:46]MH_SAM_APDU [22:27:46]CAPDU: 80 11 00 00 [22:27:46]Write to MH i2c: E2 08 00 9B 74 80 11 00 00 00 00 00 00 89 [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:46]Read from MH i2c: E2 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 17 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: E2 17 00 9B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [22:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:27:46]wFMCommunicate OK [22:27:46]CreateOFDProtocolMessage done [22:27:46]OFDSenderStorePacket 31299 [22:27:46]StoreOFDPacket docnum=31299 [22:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A 2B 07 01 53 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 69 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 7A 00 00 35 04 06 00 D1 B0 72 62 A5 62 66 54 E4 B1 DF 71 19 7A [22:27:46]CheckFolder [22:27:46]dirname=/storage/ofd_packets [22:27:46]CheckFolder done [22:27:46]ProducePacketName [22:27:46]name=ofd_packets/00031299 [22:27:46]NVStorageSaveData ofd_packets/00031299 [22:27:46]File name is /storage/ofd_packets/00031299 [22:27:46]Write 301 bytes [22:27:46]NVStorageSaveData done [22:27:46]OFDSenderStorePacket done [22:27:46]KKMCreateOFDPacket done [22:27:46]NVStorageSaveData kkm_last_timestamp [22:27:46]File name is /storage/kkm_last_timestamp [22:27:46]Write 4 bytes [22:27:46]NVStorageSaveData done [22:27:46]ExternCall_PrintAddStr [22:27:46]wPrintStart [22:27:46]Write to MH i2c: 01 00 00 9C 74 10 [22:27:46]Write i2c OK [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: 01 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: 01 07 00 [22:27:46]MH_I2C_Read... [22:27:46]Read from MH i2c: 01 07 00 9C 74 00 00 00 00 00 FF 0F 25 [22:27:46]RasterBufferAndPrint [22:27:46]line Счет N : (1)343747 [22:27:46]line ИНН: 02508201610067 [22:27:46]line Контрольно-Кассовый Чек [22:27:46]line ПРОДАЖА [22:27:46]line ТРК (МРК, ГНК) : 42 [22:27:46]line Товар: 2710124500 [22:27:46]line Аи-95-К-3 [22:27:46]line 6.740 * 74.20 [22:27:46]line = 500.11 [22:27:46]line НДС 12% НСП 1% [22:27:46]line > о реализуемом товаре [22:27:46]line ОКРУГЛЕНИЕ: -0.11 [22:27:46]line ИТОГО: 500.00 [22:27:46]line Внесено: 500.00 [22:27:46]line СДАЧА: 0.00 [22:27:46]line НСП 1% : 4.43 [22:27:46]line НДС 12% : 53.11 [22:27:46]line Наличными: 500.00 [22:27:46]line Безнал.: 0.00 [22:27:46]line Место: АЗС № 78 "Партнер Нефть" [22:27:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:27:46]line СНО: Общий режим [22:27:46]line Чек 243 23.10.2024 22:27 [22:27:46]line Смена: 117 ФФД: 1.0 [22:27:46]line ЗНМ: 0300000137 [22:27:46]line РНМ: 0000000000186857 [22:27:46]line Версия ККМ: v1.0 [22:27:46]line ФМ: 0000000002094219 [22:27:46]line ФД: 31299 [22:27:46]line ФПД: 230555763516770 [22:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222753&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31299&fm=230555763516770&tin=02508201610067®Number=0000000000186857&sum=50000 [22:27:47]OFD Sender: Processing packet 31299 [packets to send 11, broken 10] [22:27:47]ProducePacketName [22:27:47]name=ofd_packets/00031299 [22:27:47]OFD Sender: To server: pG, [22:27:47]CommunicateWithHost lk.salyk.kg:30040 [22:27:47]ConnectInit lk.salyk.kg [22:27:47]written 0, free lines is 4095 [22:27:47]Connected sock=10 [22:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9A 2B 07 01 53 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 69 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 7A 00 00 35 04 06 00 D1 B0 72 62 A5 62 66 54 E4 B1 DF 71 19 7A [22:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A3 D7 47 00 DC BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 7A 00 00 F4 03 04 00 E2 22 19 67 B6 04 01 00 00 83 2E B3 BB 19 B0 09 1D [22:27:47]CommunicateWithHost err = 0 [22:27:47]CheckOFDResponse [22:27:47]1017 (14) - 77093643461234 [22:27:47]1041 (16) - 0000000002094219 [22:27:47]1040 (4) - 31299 [22:27:47]1012 (4) - 23.10.2024 16:22 [22:27:47]1206 (1) - 0 [22:27:47]OFD Sender: Remove packet 31299 [22:27:47]ProducePacketName [22:27:47]name=ofd_packets/00031299 [22:27:47]NVStorageDeleteData [22:27:47]Write to MH i2c: 01 00 00 C7 74 3B [22:27:47]Write i2c OK [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: 01 [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: 01 07 00 [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: 01 07 00 C7 74 00 00 00 00 00 EC 0C 3A [22:27:47]RasterBufferAndPrint [22:27:47]line [22:27:47]line [22:27:47]line [22:27:47]line [22:27:47]line [22:27:47]written 0, free lines is 3317 [22:27:47]MH_Cut [22:27:47]Write to MH i2c: D1 01 00 CE 74 01 14 [22:27:47]Write i2c OK [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: D1 [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: D1 01 00 [22:27:47]MH_I2C_Read... [22:27:47]Read from MH i2c: D1 01 00 CE 74 00 13 [22:27:47]Write to MH i2c: 01 00 00 CF 74 43 [22:27:47]Write i2c OK [22:27:47]MH_I2C_Read... [22:27:47]OFD Sender: No OFD packet to send [22:27:48]*** Cut start [22:27:48]*** Partial cut [22:27:48]*** CUTSNS_PIN = 1 [22:27:48]*** CUTSNS_PIN = 0 [22:27:48]*** Brake cut motor [22:27:48]Read from MH i2c: 01 [22:27:48]MH_I2C_Read... [22:27:48]*** Stop cut motor [22:27:48]*** Cut end [22:27:48]Read from MH i2c: 01 07 00 [22:27:48]MH_I2C_Read... [22:27:48]Read from MH i2c: 01 07 00 CF 74 00 00 00 00 00 FF 0F 58 [22:27:48]process_action close_receipt done [22:27:48]requested_data is exist [22:27:48]produce_requested_data [22:27:48]requested_item fm.sn is exist - process it [22:27:48]wFMCommunicate request_size=4 [22:27:48]MH_SAM_APDU [22:27:48]CAPDU: 80 11 00 00 [22:27:48]Write to MH i2c: E2 08 00 D0 74 80 11 00 00 00 00 00 00 BE [22:27:48]Write i2c OK [22:27:48]MH_I2C_Read... [22:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:48]Read from MH i2c: E2 [22:27:48]MH_I2C_Read... [22:27:48]Read from MH i2c: E2 17 00 [22:27:48]MH_I2C_Read... [22:27:48]Read from MH i2c: E2 17 00 D0 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [22:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:27:48]wFMCommunicate OK [22:27:48]requested_item fd.num is exist - process it [22:27:48]SAM_PROTO_GetFieldsCounters [22:27:48]wFMCommunicate request_size=4 [22:27:48]MH_SAM_APDU [22:27:48]CAPDU: 80 13 00 00 [22:27:48]Write to MH i2c: E2 08 00 D1 74 80 13 00 00 00 00 00 00 C1 [22:27:48]Write i2c OK [22:27:48]MH_I2C_Read... [22:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:49]Read from MH i2c: E2 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 62 00 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 62 00 D1 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [22:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:49]wFMCommunicate OK [22:27:49]SAM_PROTO_GetFieldsCounters done [22:27:49]requested_item shift.num is exist - process it [22:27:49]requested_item shift.opened is exist - process it [22:27:49]req_shift_opened [22:27:49]FM_GetShiftState [22:27:49]SAM_PROTO_GetShiftState [22:27:49]wFMCommunicate request_size=4 [22:27:49]MH_SAM_APDU [22:27:49]CAPDU: 80 13 01 00 [22:27:49]Write to MH i2c: E2 08 00 D2 74 80 13 01 00 00 00 00 00 C3 [22:27:49]Write i2c OK [22:27:49]MH_I2C_Read... [22:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:49]Read from MH i2c: E2 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 0E 00 [22:27:49]MH_I2C_Read... [22:27:49]Read from MH i2c: E2 0E 00 D2 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7D [22:27:49]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:27:49]wFMCommunicate OK [22:27:49]SAM_PROTO_GetShiftState done [22:27:49]FM_GetShiftState done [22:27:49]req_shift_opened done [22:27:49]requested_item shift.open_date is exist - process it [22:27:49]req_shift_open_date [22:27:49]req_shift_open_date done [22:27:49]produce_requested_data done [22:27:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31299,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [22:27:49]process_action_free close_receipt [22:27:49]json_value_free [22:27:49]json_value_free done [22:27:49]process_json_proto returns [22:27:49]Send response to host [22:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31299,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [22:27:49]free response buf [22:27:49]execute_script done [22:27:49]execute_script returns [22:27:49]free content buf [22:27:49]Sock 7.Close socket [22:27:49]Sock 7.Thread stoped [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:29]accept exits with 9 [22:28:29]New connection [22:28:29]New thread 3067043172 created [22:28:29]Thread 3066899812 joined [22:28:29]Waiting for new connection... [22:28:29] Sock 9.Parse request [22:28:29]Sock 9.Check first char [22:28:29]Sock 9.First char is OK [22:28:29]request: POST /json_proto HTTP/1.0 [22:28:29]Method: POST [22:28:29]URL: /json_proto [22:28:29]Method is POST - this is cgi request [22:28:29]url: /json_proto [22:28:29]query_string will be loaded in cgi processing [22:28:29]execute_cgi json_proto POST (null) [22:28:29]execute_cgi path=json_proto method=POST [22:28:29]POST find Content-Length [22:28:29]Host: 172.17.51.3:8080 [22:28:29]Content-Length: 843 [22:28:29]Content-Type: application/json [22:28:29] [22:28:29]POST finish read [22:28:29]Found Content-Length = 843 [22:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:29]execute_script... [22:28:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:29]POST & json_proto [22:28:29]process_json_proto [22:28:29]json parsed OK: [22:28:29]protocol is kg_v1.0 [22:28:29]action value=close_receipt [22:28:29]process_action close_receipt [22:28:29]cmd_close_receipt [22:28:29]MH_GetDate [22:28:29]Write to MH i2c: F0 00 00 D3 74 36 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 09 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 09 00 D3 74 00 96 78 19 67 04 C1 95 66 8D [22:28:29]GetLastDocTimeStamp 1729722473 [22:28:29]current date 1729722518 [22:28:29]FM_GetShiftState [22:28:29]SAM_PROTO_GetShiftState [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 01 00 [22:28:29]Write to MH i2c: E2 08 00 D4 74 80 13 01 00 00 00 00 00 C5 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 D4 74 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 7F [22:28:29]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetShiftState done [22:28:29]FM_GetShiftState done [22:28:29]opened in 1729643755 [22:28:29]opened+sec_in_day 1729730155 [22:28:29]quantity*price = 100015 [22:28:29]sum+1 = 100017 [22:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 244 23.10.2024 22:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 31300 ФПД: 55343404329884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31300&fm=55343404329884&tin=02508201610067®Number=0000000000186857&sum=100016 [22:28:30]StoreToDocumentArchive [22:28:30]shift 117 fd 31300 [22:28:30]save to /storage/0117/doc_00031300 [22:28:30]save last doc name /storage/0117/doc_00031300 to /storage/kkm_last_doc_name [22:28:30]save OK [22:28:30]Clear old archive folders... [22:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:30]tlvbuf is 00F002C0 [22:28:30]SAM_PROTO_ClearQueue [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 09 00 00 [22:28:30]Write to MH i2c: E2 08 00 E1 74 80 09 00 00 00 00 00 00 C7 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 E1 74 00 90 00 C9 [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]SAM_PROTO_ClearQueue done [22:28:30]KKMCreateOFDPacket [22:28:30]OFDProtocolAddRootSTLVToBuf [22:28:30]FM_MakeSignedData [22:28:30]FM_MakeSignedData [22:28:30]SAM_PROTO_SignData [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 0D 01 02 [22:28:30]Write to MH i2c: E2 08 00 E2 74 80 0D 01 02 00 00 00 00 CF [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 E2 74 00 90 00 CA [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]wFMCommunicate request_size=255 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 96 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 7A 00 00 35 04 06 00 32 [22:28:30]Write to MH i2c: E2 02 01 E3 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 96 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 7A 00 00 35 04 06 00 32 00 00 61 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 03 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 03 00 E3 74 00 90 00 CB [22:28:31]RAPDU: 90 00 [22:28:31]wFMCommunicate OK [22:28:31]wFMCommunicate request_size=10 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 0D 02 02 05 55 A3 F4 AB 9C [22:28:31]Write to MH i2c: E2 0D 00 E4 74 80 0D 02 02 05 00 55 A3 F4 AB 9C 00 00 0F [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 03 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 03 00 E4 74 00 90 00 CC [22:28:31]RAPDU: 90 00 [22:28:31]wFMCommunicate OK [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 0D 03 02 [22:28:31]Write to MH i2c: E2 08 00 E5 74 80 0D 03 02 00 00 00 00 D4 [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 0B 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 0B 00 E5 74 00 76 C7 12 14 04 2C 10 81 90 00 F9 [22:28:31]RAPDU: 76 C7 12 14 04 2C 10 81 90 00 [22:28:31]wFMCommunicate OK [22:28:31]SAM_PROTO_SignData done [22:28:31]FM_MakeSignedData done [22:28:31]CreateOFDProtocolMessage [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 11 00 00 [22:28:31]Write to MH i2c: E2 08 00 E6 74 80 11 00 00 00 00 00 00 D4 [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 17 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 17 00 E6 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [22:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:28:31]wFMCommunicate OK [22:28:31]CreateOFDProtocolMessage done [22:28:31]OFDSenderStorePacket 31300 [22:28:31]StoreOFDPacket docnum=31300 [22:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 78 07 01 3C A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 96 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 7A 00 00 35 04 06 00 32 55 A3 F4 AB 9C 76 C7 12 14 04 2C 10 81 [22:28:31]CheckFolder [22:28:31]dirname=/storage/ofd_packets [22:28:31]CheckFolder done [22:28:31]ProducePacketName [22:28:31]name=ofd_packets/00031300 [22:28:31]NVStorageSaveData ofd_packets/00031300 [22:28:31]File name is /storage/ofd_packets/00031300 [22:28:31]Write 301 bytes [22:28:31]NVStorageSaveData done [22:28:31]OFDSenderStorePacket done [22:28:31]KKMCreateOFDPacket done [22:28:31]NVStorageSaveData kkm_last_timestamp [22:28:31]File name is /storage/kkm_last_timestamp [22:28:31]Write 4 bytes [22:28:31]NVStorageSaveData done [22:28:31]ExternCall_PrintAddStr [22:28:31]wPrintStart [22:28:31]Write to MH i2c: 01 00 00 E7 74 5B [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 E7 74 00 00 00 00 00 FF 0F 70 [22:28:31]RasterBufferAndPrint [22:28:31]line Счет N : (1)343748 [22:28:31]line ИНН: 02508201610067 [22:28:31]line Контрольно-Кассовый Чек [22:28:31]line ПРОДАЖА [22:28:31]line ТРК (МРК, ГНК) : 63 [22:28:31]line Товар: 2710124130 [22:28:31]line Аи-92-К-2 [22:28:31]line 14.950 * 66.90 [22:28:31]line = 1000.16 [22:28:31]line НДС 12% НСП 1% [22:28:31]line > о реализуемом товаре [22:28:31]line ИТОГО: 1000.16 [22:28:31]line НСП 1% : 8.85 [22:28:31]line НДС 12% : 106.21 [22:28:31]line Наличными: 0.00 [22:28:31]line Безнал.: 1000.16 [22:28:31]line Место: АЗС № 78 "Партнер Нефть" [22:28:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:28:31]line СНО: Общий режим [22:28:31]line Чек 244 23.10.2024 22:28 [22:28:31]line Смена: 117 ФФД: 1.0 [22:28:31]line ЗНМ: 0300000137 [22:28:31]line РНМ: 0000000000186857 [22:28:31]line Версия ККМ: v1.0 [22:28:31]line Платежная система: АКБ Кыргызстан [22:28:31]line ФМ: 0000000002094219 [22:28:31]line ФД: 31300 [22:28:31]line ФПД: 55343404329884 [22:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T222838&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31300&fm=55343404329884&tin=02508201610067®Number=0000000000186857&sum=100016 [22:28:31]OFD Sender: Processing packet 31300 [packets to send 11, broken 10] [22:28:31]ProducePacketName [22:28:31]name=ofd_packets/00031300 [22:28:31]OFD Sender: To server: pG, [22:28:31]CommunicateWithHost lk.salyk.kg:30040 [22:28:31]ConnectInit lk.salyk.kg [22:28:31]written 0, free lines is 4095 [22:28:31]Connected sock=10 [22:28:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 78 07 01 3C A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 96 78 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 7A 00 00 35 04 06 00 32 55 A3 F4 AB 9C 76 C7 12 14 04 2C 10 81 [22:28:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B 04 47 00 9F AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 7A 00 00 F4 03 04 00 0F 23 19 67 B6 04 01 00 00 49 30 E7 CA BF AE 6D 58 [22:28:31]CommunicateWithHost err = 0 [22:28:31]CheckOFDResponse [22:28:31]1017 (14) - 77093643461234 [22:28:31]1041 (16) - 0000000002094219 [22:28:31]1040 (4) - 31300 [22:28:31]1012 (4) - 23.10.2024 16:23 [22:28:31]1206 (1) - 0 [22:28:31]OFD Sender: Remove packet 31300 [22:28:31]ProducePacketName [22:28:31]name=ofd_packets/00031300 [22:28:31]NVStorageDeleteData [22:28:32]Write to MH i2c: 01 00 00 11 75 86 [22:28:32]Write i2c OK [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 07 00 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: 01 07 00 11 75 00 00 00 00 00 0C 0D A6 [22:28:32]RasterBufferAndPrint [22:28:32]line [22:28:32]line [22:28:32]line [22:28:32]line [22:28:32]line [22:28:32]written 0, free lines is 3347 [22:28:32]MH_Cut [22:28:32]Write to MH i2c: D1 01 00 18 75 01 5F [22:28:32]Write i2c OK [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: D1 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: D1 01 00 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: D1 01 00 18 75 00 5E [22:28:32]Write to MH i2c: 01 00 00 19 75 8E [22:28:32]Write i2c OK [22:28:32]MH_I2C_Read... [22:28:32]OFD Sender: No OFD packet to send [22:28:32]*** Cut start [22:28:32]*** Partial cut [22:28:32]*** CUTSNS_PIN = 1 [22:28:32]*** CUTSNS_PIN = 0 [22:28:32]*** Brake cut motor [22:28:33]Read from MH i2c: 01 [22:28:33]MH_I2C_Read... [22:28:33]*** Stop cut motor [22:28:33]*** Cut end [22:28:33]Read from MH i2c: 01 07 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 07 00 19 75 00 00 00 00 00 FF 0F A3 [22:28:33]process_action close_receipt done [22:28:33]requested_data is exist [22:28:33]produce_requested_data [22:28:33]requested_item fm.sn is exist - process it [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 11 00 00 [22:28:33]Write to MH i2c: E2 08 00 1A 75 80 11 00 00 00 00 00 00 09 [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 17 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 17 00 1A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [22:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:28:33]wFMCommunicate OK [22:28:33]requested_item fd.num is exist - process it [22:28:33]SAM_PROTO_GetFieldsCounters [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 13 00 00 [22:28:33]Write to MH i2c: E2 08 00 1B 75 80 13 00 00 00 00 00 00 0C [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 62 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 62 00 1B 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [22:28:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:33]wFMCommunicate OK [22:28:33]SAM_PROTO_GetFieldsCounters done [22:28:33]requested_item shift.num is exist - process it [22:28:33]requested_item shift.opened is exist - process it [22:28:33]req_shift_opened [22:28:33]FM_GetShiftState [22:28:33]SAM_PROTO_GetShiftState [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 13 01 00 [22:28:33]Write to MH i2c: E2 08 00 1C 75 80 13 01 00 00 00 00 00 0E [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 0E 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 0E 00 1C 75 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 C8 [22:28:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [22:28:33]wFMCommunicate OK [22:28:33]SAM_PROTO_GetShiftState done [22:28:33]FM_GetShiftState done [22:28:33]req_shift_opened done [22:28:33]requested_item shift.open_date is exist - process it [22:28:33]req_shift_open_date [22:28:33]req_shift_open_date done [22:28:33]produce_requested_data done [22:28:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31300,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [22:28:33]process_action_free close_receipt [22:28:33]json_value_free [22:28:33]json_value_free done [22:28:33]process_json_proto returns [22:28:33]Send response to host [22:28:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31300,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [22:28:33]free response buf [22:28:33]execute_script done [22:28:33]execute_script returns [22:28:33]free content buf [22:28:33]Sock 9.Close socket [22:28:33]Sock 9.Thread stoped [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:25]recv_with_timeout no data received [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]accept exits with 7 [23:09:19]New connection [23:09:19]New thread 3066899812 created [23:09:19]Thread 3067043172 joined [23:09:19]Waiting for new connection... [23:09:19] Sock 7.Parse request [23:09:19]Sock 7.Check first char [23:09:19]Sock 7.First char is OK [23:09:19]request: POST /json_proto HTTP/1.0 [23:09:19]Method: POST [23:09:19]URL: /json_proto [23:09:19]Method is POST - this is cgi request [23:09:19]url: /json_proto [23:09:19]query_string will be loaded in cgi processing [23:09:19]execute_cgi json_proto POST (null) [23:09:19]execute_cgi path=json_proto method=POST [23:09:19]POST find Content-Length [23:09:19]Host: 172.17.51.3:8080 [23:09:19]Content-Length: 682 [23:09:19]Content-Type: application/json [23:09:19] [23:09:19]POST finish read [23:09:19]Found Content-Length = 682 [23:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:19]execute_script... [23:09:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:19]POST & json_proto [23:09:19]process_json_proto [23:09:19]json parsed OK: [23:09:19]protocol is kg_v1.0 [23:09:19]action value=close_receipt [23:09:19]process_action close_receipt [23:09:19]cmd_close_receipt [23:09:19]MH_GetDate [23:09:19]Write to MH i2c: F0 00 00 1D 75 81 [23:09:19]Write i2c OK [23:09:19]MH_I2C_Read... [23:09:19]Read from MH i2c: F0 [23:09:19]MH_I2C_Read... [23:09:19]Read from MH i2c: F0 09 00 [23:09:19]MH_I2C_Read... [23:09:19]Read from MH i2c: F0 09 00 1D 75 00 27 82 19 67 04 C1 95 66 73 [23:09:19]GetLastDocTimeStamp 1729722518 [23:09:19]current date 1729724967 [23:09:19]FM_GetShiftState [23:09:19]SAM_PROTO_GetShiftState [23:09:19]wFMCommunicate request_size=4 [23:09:19]MH_SAM_APDU [23:09:19]CAPDU: 80 13 01 00 [23:09:19]Write to MH i2c: E2 08 00 1E 75 80 13 01 00 00 00 00 00 10 [23:09:19]Write i2c OK [23:09:19]MH_I2C_Read... [23:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:19]Read from MH i2c: E2 [23:09:19]MH_I2C_Read... [23:09:19]Read from MH i2c: E2 0E 00 [23:09:19]MH_I2C_Read... [23:09:19]Read from MH i2c: E2 0E 00 1E 75 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 CA [23:09:19]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [23:09:19]wFMCommunicate OK [23:09:19]SAM_PROTO_GetShiftState done [23:09:19]FM_GetShiftState done [23:09:19]opened in 1729643755 [23:09:19]opened+sec_in_day 1729730155 [23:09:19]quantity*price = 100015 [23:09:19]sum+1 = 100017 [23:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 245 23.10.2024 23:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31301 ФПД: 77245429804362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T230928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31301&fm=77245429804362&tin=02508201610067®Number=0000000000186857&sum=100000 [23:09:20]StoreToDocumentArchive [23:09:20]shift 117 fd 31301 [23:09:20]save to /storage/0117/doc_00031301 [23:09:20]save last doc name /storage/0117/doc_00031301 to /storage/kkm_last_doc_name [23:09:20]save OK [23:09:20]Clear old archive folders... [23:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:09:20]tlvbuf is 00CDAF50 [23:09:20]SAM_PROTO_ClearQueue [23:09:20]wFMCommunicate request_size=4 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 09 00 00 [23:09:20]Write to MH i2c: E2 08 00 2B 75 80 09 00 00 00 00 00 00 12 [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:20]Read from MH i2c: E2 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 2B 75 00 90 00 14 [23:09:20]RAPDU: 90 00 [23:09:20]wFMCommunicate OK [23:09:20]SAM_PROTO_ClearQueue done [23:09:20]KKMCreateOFDPacket [23:09:20]OFDProtocolAddRootSTLVToBuf [23:09:20]FM_MakeSignedData [23:09:20]FM_MakeSignedData [23:09:20]SAM_PROTO_SignData [23:09:20]wFMCommunicate request_size=4 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 0D 01 02 [23:09:20]Write to MH i2c: E2 08 00 2C 75 80 0D 01 02 00 00 00 00 1A [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:20]Read from MH i2c: E2 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 2C 75 00 90 00 15 [23:09:20]RAPDU: 90 00 [23:09:20]wFMCommunicate OK [23:09:20]wFMCommunicate request_size=255 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 28 82 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 7A 00 00 35 04 06 00 46 [23:09:20]Write to MH i2c: E2 02 01 2D 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 28 82 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 7A 00 00 35 04 06 00 46 00 00 3E [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:20]Read from MH i2c: E2 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 2D 75 00 90 00 16 [23:09:20]RAPDU: 90 00 [23:09:20]wFMCommunicate OK [23:09:20]wFMCommunicate request_size=10 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 0D 02 02 05 41 1A 67 6D 4A [23:09:20]Write to MH i2c: E2 0D 00 2E 75 80 0D 02 02 05 00 41 1A 67 6D 4A 00 00 A0 [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:20]Read from MH i2c: E2 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 03 00 2E 75 00 90 00 17 [23:09:20]RAPDU: 90 00 [23:09:20]wFMCommunicate OK [23:09:20]wFMCommunicate request_size=4 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 0D 03 02 [23:09:20]Write to MH i2c: E2 08 00 2F 75 80 0D 03 02 00 00 00 00 1F [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:20]Read from MH i2c: E2 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 0B 00 [23:09:20]MH_I2C_Read... [23:09:20]Read from MH i2c: E2 0B 00 2F 75 00 52 AC 85 2D 6D 66 82 9C 90 00 C1 [23:09:20]RAPDU: 52 AC 85 2D 6D 66 82 9C 90 00 [23:09:20]wFMCommunicate OK [23:09:20]SAM_PROTO_SignData done [23:09:20]FM_MakeSignedData done [23:09:20]CreateOFDProtocolMessage [23:09:20]wFMCommunicate request_size=4 [23:09:20]MH_SAM_APDU [23:09:20]CAPDU: 80 11 00 00 [23:09:20]Write to MH i2c: E2 08 00 30 75 80 11 00 00 00 00 00 00 1F [23:09:20]Write i2c OK [23:09:20]MH_I2C_Read... [23:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:21]Read from MH i2c: E2 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: E2 17 00 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: E2 17 00 30 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [23:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:09:21]wFMCommunicate OK [23:09:21]CreateOFDProtocolMessage done [23:09:21]OFDSenderStorePacket 31301 [23:09:21]StoreOFDPacket docnum=31301 [23:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 3D 07 01 4F 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 28 82 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 7A 00 00 35 04 06 00 46 41 1A 67 6D 4A 52 AC 85 2D 6D 66 82 9C [23:09:21]CheckFolder [23:09:21]dirname=/storage/ofd_packets [23:09:21]CheckFolder done [23:09:21]ProducePacketName [23:09:21]name=ofd_packets/00031301 [23:09:21]NVStorageSaveData ofd_packets/00031301 [23:09:21]File name is /storage/ofd_packets/00031301 [23:09:21]Write 301 bytes [23:09:21]NVStorageSaveData done [23:09:21]OFDSenderStorePacket done [23:09:21]KKMCreateOFDPacket done [23:09:21]NVStorageSaveData kkm_last_timestamp [23:09:21]File name is /storage/kkm_last_timestamp [23:09:21]Write 4 bytes [23:09:21]NVStorageSaveData done [23:09:21]ExternCall_PrintAddStr [23:09:21]wPrintStart [23:09:21]Write to MH i2c: 01 00 00 31 75 A6 [23:09:21]Write i2c OK [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 07 00 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 07 00 31 75 00 00 00 00 00 FF 0F BB [23:09:21]RasterBufferAndPrint [23:09:21]line Счет N : (1)343749 [23:09:21]line ИНН: 02508201610067 [23:09:21]line Контрольно-Кассовый Чек [23:09:21]line ПРОДАЖА [23:09:21]line ТРК (МРК, ГНК) : 53 [23:09:21]line Товар: 2710124130 [23:09:21]line Аи-92-К-2 [23:09:21]line 14.950 * 66.90 [23:09:21]line = 1000.16 [23:09:21]line НДС 12% НСП 1% [23:09:21]line > о реализуемом товаре [23:09:21]line ОКРУГЛЕНИЕ: -0.16 [23:09:21]line ИТОГО: 1000.00 [23:09:21]line Внесено: 1000.00 [23:09:21]line СДАЧА: 0.00 [23:09:21]line НСП 1% : 8.85 [23:09:21]line НДС 12% : 106.21 [23:09:21]line Наличными: 1000.00 [23:09:21]line Безнал.: 0.00 [23:09:21]line Место: АЗС № 78 "Партнер Нефть" [23:09:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:09:21]line СНО: Общий режим [23:09:21]line Чек 245 23.10.2024 23:09 [23:09:21]line Смена: 117 ФФД: 1.0 [23:09:21]line ЗНМ: 0300000137 [23:09:21]line РНМ: 0000000000186857 [23:09:21]line Версия ККМ: v1.0 [23:09:21]line ФМ: 0000000002094219 [23:09:21]line ФД: 31301 [23:09:21]line ФПД: 77245429804362 [23:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T230928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31301&fm=77245429804362&tin=02508201610067®Number=0000000000186857&sum=100000 [23:09:21]OFD Sender: Processing packet 31301 [packets to send 11, broken 10] [23:09:21]ProducePacketName [23:09:21]name=ofd_packets/00031301 [23:09:21]OFD Sender: To server: pG, [23:09:21]CommunicateWithHost lk.salyk.kg:30040 [23:09:21]ConnectInit lk.salyk.kg [23:09:21]written 0, free lines is 4095 [23:09:21]Connected sock=10 [23:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 07 3D 07 01 4F 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 28 82 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 7A 00 00 35 04 06 00 46 41 1A 67 6D 4A 52 AC 85 2D 6D 66 82 9C [23:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8F F1 47 00 67 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 7A 00 00 F4 03 04 00 A0 2C 19 67 B6 04 01 00 00 19 04 C5 8D 36 6C 9D 7A [23:09:21]CommunicateWithHost err = 0 [23:09:21]CheckOFDResponse [23:09:21]1017 (14) - 77093643461234 [23:09:21]1041 (16) - 0000000002094219 [23:09:21]1040 (4) - 31301 [23:09:21]1012 (4) - 23.10.2024 17:04 [23:09:21]1206 (1) - 0 [23:09:21]OFD Sender: Remove packet 31301 [23:09:21]ProducePacketName [23:09:21]name=ofd_packets/00031301 [23:09:21]NVStorageDeleteData [23:09:21]Write to MH i2c: 01 00 00 5C 75 D1 [23:09:21]Write i2c OK [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 07 00 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: 01 07 00 5C 75 00 00 00 00 00 F6 0C DA [23:09:21]RasterBufferAndPrint [23:09:21]line [23:09:21]line [23:09:21]line [23:09:21]line [23:09:21]line [23:09:21]written 0, free lines is 3328 [23:09:21]MH_Cut [23:09:21]Write to MH i2c: D1 01 00 63 75 01 AA [23:09:21]Write i2c OK [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: D1 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: D1 01 00 [23:09:21]MH_I2C_Read... [23:09:21]Read from MH i2c: D1 01 00 63 75 00 A9 [23:09:21]Write to MH i2c: 01 00 00 64 75 D9 [23:09:21]Write i2c OK [23:09:21]MH_I2C_Read... [23:09:22]OFD Sender: No OFD packet to send [23:09:22]*** Cut start [23:09:22]*** Partial cut [23:09:22]*** CUTSNS_PIN = 1 [23:09:22]*** CUTSNS_PIN = 0 [23:09:22]*** Brake cut motor [23:09:23]Read from MH i2c: 01 [23:09:23]MH_I2C_Read... [23:09:23]*** Stop cut motor [23:09:23]*** Cut end [23:09:23]Read from MH i2c: 01 07 00 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: 01 07 00 64 75 00 00 00 00 00 FF 0F EE [23:09:23]process_action close_receipt done [23:09:23]requested_data is exist [23:09:23]produce_requested_data [23:09:23]requested_item fm.sn is exist - process it [23:09:23]wFMCommunicate request_size=4 [23:09:23]MH_SAM_APDU [23:09:23]CAPDU: 80 11 00 00 [23:09:23]Write to MH i2c: E2 08 00 65 75 80 11 00 00 00 00 00 00 54 [23:09:23]Write i2c OK [23:09:23]MH_I2C_Read... [23:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:23]Read from MH i2c: E2 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 17 00 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 17 00 65 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [23:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:09:23]wFMCommunicate OK [23:09:23]requested_item fd.num is exist - process it [23:09:23]SAM_PROTO_GetFieldsCounters [23:09:23]wFMCommunicate request_size=4 [23:09:23]MH_SAM_APDU [23:09:23]CAPDU: 80 13 00 00 [23:09:23]Write to MH i2c: E2 08 00 66 75 80 13 00 00 00 00 00 00 57 [23:09:23]Write i2c OK [23:09:23]MH_I2C_Read... [23:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:23]Read from MH i2c: E2 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 62 00 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 62 00 66 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [23:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:23]wFMCommunicate OK [23:09:23]SAM_PROTO_GetFieldsCounters done [23:09:23]requested_item shift.num is exist - process it [23:09:23]requested_item shift.opened is exist - process it [23:09:23]req_shift_opened [23:09:23]FM_GetShiftState [23:09:23]SAM_PROTO_GetShiftState [23:09:23]wFMCommunicate request_size=4 [23:09:23]MH_SAM_APDU [23:09:23]CAPDU: 80 13 01 00 [23:09:23]Write to MH i2c: E2 08 00 67 75 80 13 01 00 00 00 00 00 59 [23:09:23]Write i2c OK [23:09:23]MH_I2C_Read... [23:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:23]Read from MH i2c: E2 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 0E 00 [23:09:23]MH_I2C_Read... [23:09:23]Read from MH i2c: E2 0E 00 67 75 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 13 [23:09:23]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [23:09:23]wFMCommunicate OK [23:09:23]SAM_PROTO_GetShiftState done [23:09:23]FM_GetShiftState done [23:09:23]req_shift_opened done [23:09:23]requested_item shift.open_date is exist - process it [23:09:23]req_shift_open_date [23:09:23]req_shift_open_date done [23:09:23]produce_requested_data done [23:09:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31301,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [23:09:23]process_action_free close_receipt [23:09:23]json_value_free [23:09:23]json_value_free done [23:09:23]process_json_proto returns [23:09:23]Send response to host [23:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31301,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [23:09:23]free response buf [23:09:23]execute_script done [23:09:23]execute_script returns [23:09:23]free content buf [23:09:23]Sock 7.Close socket [23:09:23]Sock 7.Thread stoped [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:33]accept exits with 9 [23:29:33]New connection [23:29:33]New thread 3067043172 created [23:29:33]Thread 3066899812 joined [23:29:33]Waiting for new connection... [23:29:33] Sock 9.Parse request [23:29:33]Sock 9.Check first char [23:29:33]Sock 9.First char is OK [23:29:33]request: POST /json_proto HTTP/1.0 [23:29:33]Method: POST [23:29:33]URL: /json_proto [23:29:33]Method is POST - this is cgi request [23:29:33]url: /json_proto [23:29:33]query_string will be loaded in cgi processing [23:29:33]execute_cgi json_proto POST (null) [23:29:33]execute_cgi path=json_proto method=POST [23:29:33]POST find Content-Length [23:29:33]Host: 172.17.51.3:8080 [23:29:33]Content-Length: 677 [23:29:33]Content-Type: application/json [23:29:33] [23:29:33]POST finish read [23:29:33]Found Content-Length = 677 [23:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:33]execute_script... [23:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:33]POST & json_proto [23:29:33]process_json_proto [23:29:33]json parsed OK: [23:29:33]protocol is kg_v1.0 [23:29:33]action value=close_receipt [23:29:33]process_action close_receipt [23:29:33]cmd_close_receipt [23:29:33]MH_GetDate [23:29:33]Write to MH i2c: F0 00 00 68 75 CC [23:29:33]Write i2c OK [23:29:33]MH_I2C_Read... [23:29:33]Read from MH i2c: F0 [23:29:33]MH_I2C_Read... [23:29:33]Read from MH i2c: F0 09 00 [23:29:33]MH_I2C_Read... [23:29:33]Read from MH i2c: F0 09 00 68 75 00 E6 86 19 67 04 C1 95 66 81 [23:29:33]GetLastDocTimeStamp 1729724968 [23:29:33]current date 1729726182 [23:29:33]FM_GetShiftState [23:29:33]SAM_PROTO_GetShiftState [23:29:33]wFMCommunicate request_size=4 [23:29:33]MH_SAM_APDU [23:29:33]CAPDU: 80 13 01 00 [23:29:33]Write to MH i2c: E2 08 00 69 75 80 13 01 00 00 00 00 00 5B [23:29:33]Write i2c OK [23:29:33]MH_I2C_Read... [23:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:33]Read from MH i2c: E2 [23:29:33]MH_I2C_Read... [23:29:33]Read from MH i2c: E2 0E 00 [23:29:33]MH_I2C_Read... [23:29:33]Read from MH i2c: E2 0E 00 69 75 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 15 [23:29:33]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [23:29:33]wFMCommunicate OK [23:29:33]SAM_PROTO_GetShiftState done [23:29:33]FM_GetShiftState done [23:29:33]opened in 1729643755 [23:29:33]opened+sec_in_day 1729730155 [23:29:33]quantity*price = 30038 [23:29:33]sum+1 = 30039 [23:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 246 23.10.2024 23:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 31302 ФПД: 209328857667271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31302&fm=209328857667271&tin=02508201610067®Number=0000000000186857&sum=30000 [23:29:34]StoreToDocumentArchive [23:29:34]shift 117 fd 31302 [23:29:34]save to /storage/0117/doc_00031302 [23:29:34]save last doc name /storage/0117/doc_00031302 to /storage/kkm_last_doc_name [23:29:34]save OK [23:29:34]Clear old archive folders... [23:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:34]tlvbuf is 00F62900 [23:29:34]SAM_PROTO_ClearQueue [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 09 00 00 [23:29:34]Write to MH i2c: E2 08 00 76 75 80 09 00 00 00 00 00 00 5D [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 76 75 00 90 00 5F [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_ClearQueue done [23:29:34]KKMCreateOFDPacket [23:29:34]OFDProtocolAddRootSTLVToBuf [23:29:34]FM_MakeSignedData [23:29:34]FM_MakeSignedData [23:29:34]SAM_PROTO_SignData [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 01 02 [23:29:34]Write to MH i2c: E2 08 00 77 75 80 0D 01 02 00 00 00 00 65 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 77 75 00 90 00 60 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=255 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 E6 86 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 7A 00 00 35 04 06 00 BE [23:29:34]Write to MH i2c: E2 02 01 78 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 E6 86 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 7A 00 00 35 04 06 00 BE 00 00 BF [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 78 75 00 90 00 61 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=10 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 02 02 05 62 2C 33 D6 C7 [23:29:34]Write to MH i2c: E2 0D 00 79 75 80 0D 02 02 05 00 62 2C 33 D6 C7 00 00 D0 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 03 00 79 75 00 90 00 62 [23:29:34]RAPDU: 90 00 [23:29:34]wFMCommunicate OK [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 0D 03 02 [23:29:34]Write to MH i2c: E2 08 00 7A 75 80 0D 03 02 00 00 00 00 6A [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0B 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0B 00 7A 75 00 3A 3C A7 15 8F 8E B3 37 90 00 A4 [23:29:34]RAPDU: 3A 3C A7 15 8F 8E B3 37 90 00 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_SignData done [23:29:34]FM_MakeSignedData done [23:29:34]CreateOFDProtocolMessage [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 11 00 00 [23:29:34]Write to MH i2c: E2 08 00 7B 75 80 11 00 00 00 00 00 00 6A [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 7B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [23:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:29:34]wFMCommunicate OK [23:29:34]CreateOFDProtocolMessage done [23:29:34]OFDSenderStorePacket 31302 [23:29:34]StoreOFDPacket docnum=31302 [23:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 77 07 01 3F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 E6 86 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 7A 00 00 35 04 06 00 BE 62 2C 33 D6 C7 3A 3C A7 15 8F 8E B3 37 [23:29:34]CheckFolder [23:29:34]dirname=/storage/ofd_packets [23:29:34]CheckFolder done [23:29:34]ProducePacketName [23:29:34]name=ofd_packets/00031302 [23:29:34]NVStorageSaveData ofd_packets/00031302 [23:29:34]File name is /storage/ofd_packets/00031302 [23:29:34]Write 301 bytes [23:29:34]NVStorageSaveData done [23:29:34]OFDSenderStorePacket done [23:29:34]KKMCreateOFDPacket done [23:29:34]NVStorageSaveData kkm_last_timestamp [23:29:34]File name is /storage/kkm_last_timestamp [23:29:34]Write 4 bytes [23:29:34]NVStorageSaveData done [23:29:34]ExternCall_PrintAddStr [23:29:34]wPrintStart [23:29:34]Write to MH i2c: 01 00 00 7C 75 F1 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 07 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 07 00 7C 75 00 00 00 00 00 FF 0F 06 [23:29:34]RasterBufferAndPrint [23:29:34]line Счет N : (1)343750 [23:29:34]line ИНН: 02508201610067 [23:29:34]line Контрольно-Кассовый Чек [23:29:34]line ПРОДАЖА [23:29:34]line ТРК (МРК, ГНК) : 43 [23:29:34]line Товар: 2710124130 [23:29:34]line Аи-92-К-2 [23:29:34]line 4.490 * 66.90 [23:29:34]line = 300.38 [23:29:34]line НДС 12% НСП 1% [23:29:34]line > о реализуемом товаре [23:29:34]line ОКРУГЛЕНИЕ: -0.38 [23:29:34]line ИТОГО: 300.00 [23:29:34]line Внесено: 300.00 [23:29:34]line СДАЧА: 0.00 [23:29:34]line НСП 1% : 2.66 [23:29:34]line НДС 12% : 31.90 [23:29:34]line Наличными: 300.00 [23:29:34]line Безнал.: 0.00 [23:29:34]line Место: АЗС № 78 "Партнер Нефть" [23:29:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:29:34]line СНО: Общий режим [23:29:34]line Чек 246 23.10.2024 23:29 [23:29:34]line Смена: 117 ФФД: 1.0 [23:29:34]line ЗНМ: 0300000137 [23:29:34]line РНМ: 0000000000186857 [23:29:34]line Версия ККМ: v1.0 [23:29:34]line ФМ: 0000000002094219 [23:29:34]line ФД: 31302 [23:29:34]line ФПД: 209328857667271 [23:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232942&type=1&operation_type=1&fn_number=0000000002094219&fd_number=31302&fm=209328857667271&tin=02508201610067®Number=0000000000186857&sum=30000 [23:29:35]OFD Sender: Processing packet 31302 [packets to send 11, broken 10] [23:29:35]ProducePacketName [23:29:35]name=ofd_packets/00031302 [23:29:35]OFD Sender: To server: pG, [23:29:35]CommunicateWithHost lk.salyk.kg:30040 [23:29:35]ConnectInit lk.salyk.kg [23:29:35]written 0, free lines is 4095 [23:29:35]Connected sock=10 [23:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 95 77 07 01 3F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 E6 86 19 67 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 7A 00 00 35 04 06 00 BE 62 2C 33 D6 C7 3A 3C A7 15 8F 8E B3 37 [23:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 39 9F 47 00 59 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 7A 00 00 F4 03 04 00 5E 31 19 67 B6 04 01 00 00 37 78 D6 1C 43 7C FD AA [23:29:35]CommunicateWithHost err = 0 [23:29:35]CheckOFDResponse [23:29:35]1017 (14) - 77093643461234 [23:29:35]1041 (16) - 0000000002094219 [23:29:35]1040 (4) - 31302 [23:29:35]1012 (4) - 23.10.2024 17:24 [23:29:35]1206 (1) - 0 [23:29:35]OFD Sender: Remove packet 31302 [23:29:35]ProducePacketName [23:29:35]name=ofd_packets/00031302 [23:29:35]NVStorageDeleteData [23:29:35]Write to MH i2c: 01 00 00 A7 75 1C [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 07 00 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: 01 07 00 A7 75 00 00 00 00 00 00 0D 30 [23:29:35]RasterBufferAndPrint [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]line [23:29:35]written 0, free lines is 3334 [23:29:35]MH_Cut [23:29:35]Write to MH i2c: D1 01 00 AE 75 01 F5 [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 01 00 [23:29:35]MH_I2C_Read... [23:29:35]Read from MH i2c: D1 01 00 AE 75 00 F4 [23:29:35]Write to MH i2c: 01 00 00 AF 75 24 [23:29:35]Write i2c OK [23:29:35]MH_I2C_Read... [23:29:36]OFD Sender: No OFD packet to send [23:29:36]*** Cut start [23:29:36]*** Partial cut [23:29:36]*** CUTSNS_PIN = 1 [23:29:36]*** CUTSNS_PIN = 0 [23:29:36]*** Brake cut motor [23:29:36]Read from MH i2c: 01 [23:29:37]MH_I2C_Read... [23:29:37]*** Stop cut motor [23:29:37]*** Cut end [23:29:37]Read from MH i2c: 01 07 00 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: 01 07 00 AF 75 00 00 00 00 00 FF 0F 39 [23:29:37]process_action close_receipt done [23:29:37]requested_data is exist [23:29:37]produce_requested_data [23:29:37]requested_item fm.sn is exist - process it [23:29:37]wFMCommunicate request_size=4 [23:29:37]MH_SAM_APDU [23:29:37]CAPDU: 80 11 00 00 [23:29:37]Write to MH i2c: E2 08 00 B0 75 80 11 00 00 00 00 00 00 9F [23:29:37]Write i2c OK [23:29:37]MH_I2C_Read... [23:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:37]Read from MH i2c: E2 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 17 00 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 17 00 B0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 ED [23:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:29:37]wFMCommunicate OK [23:29:37]requested_item fd.num is exist - process it [23:29:37]SAM_PROTO_GetFieldsCounters [23:29:37]wFMCommunicate request_size=4 [23:29:37]MH_SAM_APDU [23:29:37]CAPDU: 80 13 00 00 [23:29:37]Write to MH i2c: E2 08 00 B1 75 80 13 00 00 00 00 00 00 A2 [23:29:37]Write i2c OK [23:29:37]MH_I2C_Read... [23:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:37]Read from MH i2c: E2 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 62 00 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 62 00 B1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [23:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 7A 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:37]wFMCommunicate OK [23:29:37]SAM_PROTO_GetFieldsCounters done [23:29:37]requested_item shift.num is exist - process it [23:29:37]requested_item shift.opened is exist - process it [23:29:37]req_shift_opened [23:29:37]FM_GetShiftState [23:29:37]SAM_PROTO_GetShiftState [23:29:37]wFMCommunicate request_size=4 [23:29:37]MH_SAM_APDU [23:29:37]CAPDU: 80 13 01 00 [23:29:37]Write to MH i2c: E2 08 00 B2 75 80 13 01 00 00 00 00 00 A4 [23:29:37]Write i2c OK [23:29:37]MH_I2C_Read... [23:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:37]Read from MH i2c: E2 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 0E 00 [23:29:37]MH_I2C_Read... [23:29:37]Read from MH i2c: E2 0E 00 B2 75 00 09 00 01 EB 44 18 67 00 00 00 00 90 00 5E [23:29:37]RAPDU: 09 00 01 EB 44 18 67 00 00 00 00 90 00 [23:29:37]wFMCommunicate OK [23:29:37]SAM_PROTO_GetShiftState done [23:29:37]FM_GetShiftState done [23:29:37]req_shift_opened done [23:29:37]requested_item shift.open_date is exist - process it [23:29:37]req_shift_open_date [23:29:37]req_shift_open_date done [23:29:37]produce_requested_data done [23:29:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":31302,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755} [23:29:37]process_action_free close_receipt [23:29:37]json_value_free [23:29:37]json_value_free done [23:29:37]process_json_proto returns [23:29:37]Send response to host [23:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":31302,"shift.num":117,"shift.opened":1,"shift.open_date":1729643755}}} [23:29:37]free response buf [23:29:37]execute_script done [23:29:37]execute_script returns [23:29:37]free content buf [23:29:37]Sock 9.Close socket [23:29:37]Sock 9.Thread stoped [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send